body {
    font-family: "Poppins", sans-serif;
    background-color: #e0e7ff;
    color: #000000;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
header {
    width: 100%;
    padding: 10px 0;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 97%;
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
}
.logo {
    height: 35px;
}
.class-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}
/* Make the dropdown smaller to match header width */
#class-selector {
    width: 100px; /* Reduced width */
    font-size: 14px; /* Smaller font */
    padding: 5px; /* Reduced padding */
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}
.profile-button, .home-button {
    padding: 8px 15px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    font-family: "Poppins", sans-serif;
    transition: all 0.3s ease;
    margin-left: 10px;
}
.profile-button:hover, .home-button:hover {
    transform: translateY(-2px);
    background-color: #0056b3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.profile-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Navigation buttons container */
.nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}
.container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 70%;
    max-width: 1500px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
    margin-top: 20px;
    overflow-x: hidden;
    max-width: 100%;
}
h1 {
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    margin-bottom: 20px;
}
input {
    padding: 5px;
    margin: 5px 0;
    width: 100px;
    max-width: 100px;
    box-sizing: border-box;
    display: inline-block;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
}
input::placeholder {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: #888;
}
input.empty {
    border-color: GoldenRod;
}
.blue-button, .red-button {
    padding: 8px 15px;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    margin: 3px 6px;
    font-family: "Poppins", sans-serif;
}

/* Make h4 elements in buttons have the same boldness as nav-button */
.blue-button h4, .red-button h4 {
    margin: 5px 0;
    font-weight: bold;
}
.blue-button {
    background-color: #007bff;
}
.red-button {
    background-color: #ff0000;
}
.blue-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background-color: #0056b3;
}
.red-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background-color: #b30000;
}
.result {
    margin-top: 15px;
    font-weight: bold;
}
form {
    font-size: 15px;
    margin: 10px 0;
}
.dropdown {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    margin: 5px 0;
    cursor: pointer;
}
/* Make the dropdown in the header much smaller */
.header-container .dropdown {
    padding: 5px;
    font-size: 13px;
    width: 100px;
}

/* Modal login animation styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
}

.login-form {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    font-family: "Poppins", sans-serif;
    transform: scale(0.8) translateY(-20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                opacity 0.3s ease;
}

.modal-overlay.visible .login-form {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Closing animation */
.modal-overlay.closing {
    opacity: 0;
}

.modal-overlay.closing .login-form {
    transform: scale(0.8) translateY(-10px);
    opacity: 0;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
}
.login-form input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    max-width: none;
}
.login-form label {
    display: block;
    margin-bottom: 5px;
}
.login-form button {
    padding: 8px 15px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#login-btn {
    background-color: #4CAF50;
}
#login-btn:hover {
    background-color: #388E3C;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#login-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
#cancel-btn {
    background-color: #f44336;
}
#cancel-btn:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#cancel-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
#login-error {
    color: red;
    margin-top: 10px;
    text-align: center;
    display: none;
}
#user-name-display {
    margin-right: 10px;
    font-weight: bold;
}
a {
  margin: 0;
  padding: 0;
  text-decoration: none;
  border: none;
}

/* Login message styles */
#login-message {
    animation: fadeIn 0.5s ease-in-out;
}

/* Animation for login message */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Login prompt button styling */
#login-prompt-btn {
    font-size: 15px;
    padding: 10px 20px;
}
