* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f6fa;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

nav button {
    padding: 0.75rem 1.5rem;
    background-color: #fff;
    color: #2c3e50;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

nav button:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Section Styles */
section {
    display: none;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease;
}

section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

/* Dashboard Styles */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.stats div {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.stats div:hover {
    transform: translateY(-5px);
}

.stats span {
    display: block;
    font-size: 1.5rem;
    color: #3498db;
    margin-top: 0.5rem;
}

/* Form Styles */
form {
    display: grid;
    gap: 1rem;
    max-width: 500px;
}

input, select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

button {
    padding: 0.75rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

/* Room Allocation */
#roomList {
    max-height: 300px;
    overflow-y: auto;
    margin: 1rem 0;
}

#roomList p {
    padding: 0.5rem;
    background: #f8f9fd;
    margin: 0.5rem 0;
    border-radius: 5px;
}

/* Messages */
#registrationMessage, #allocationMessage {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

/* Previous styles remain the same, adding these new ones */

#auth-container {
    max-width: 500px;
    margin: 5rem auto;
}

#auth-container section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#auth-container form {
    display: grid;
    gap: 1rem;
}

#auth-container a {
    color: #3498db;
    text-decoration: none;
}

#auth-container a:hover {
    text-decoration: underline;
}

#loginMessage, #signupMessage {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

/* Hide registration button for students */
.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    nav {
        flex-direction: column;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
}