/* GTBA Portal Styles - Professional Light Blue and White Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-blue: #2E86AB;       /* Professional Blue */
    --light-blue: #E8F4F8;        /* Very Light Blue */
    --accent-blue: #87CEEB;       /* Sky Blue for accents */
    --dark-blue: #1B4F72;         /* Deep Blue */
    --white: #FFFFFF;
    --black: #2C3E50;             /* Softer black */
    --gray: #5D6D7E;              /* Professional gray */
    --light-gray: #F8F9FA;
    --border-gray: #E5E8EB;
    --success: #27AE60;
    --danger: #E74C3C;
    --warning: #F39C12;
    --info: #3498DB;
    --success-light: #D5EDDA;
    --danger-light: #F8D7DA;
    --warning-light: #FFF3CD;
    --info-light: #D1ECF1;
    --success-dark: #155724;
    --danger-dark: #721C24;
    --warning-dark: #856404;
    --info-dark: #0C5460;
    --shadow-light: rgba(46, 134, 171, 0.08);
    --shadow-medium: rgba(46, 134, 171, 0.15);
    --shadow-dark: rgba(46, 134, 171, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 50%, #F4F8FB 100%);
    color: var(--black);
    min-height: 100vh;
    line-height: 1.7;
    font-size: 16px;
    letter-spacing: -0.01em;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: 0 1px 3px var(--shadow-light), 0 4px 12px var(--shadow-medium);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-gray);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.logo-text {
    color: var(--dark-blue);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.logo-subtitle {
    color: var(--gray);
    font-size: 0.8rem;
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

/* Navigation - Hidden (using sidebar instead) */
.nav-menu {
    display: none;
}

.nav-menu a {
    display: none;
}

.nav-menu .active {
    display: none;
}

.nav-menu li span {
    display: none;
    white-space: nowrap;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(ellipse at center, var(--light-blue) 0%, var(--white) 70%);
}

.login-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 40px var(--shadow-light), 0 8px 16px var(--shadow-medium);
    padding: 3.5rem;
    width: 100%;
    max-width: 480px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue), var(--dark-blue));
}

.login-logo {
    width: 110px;
    height: 110px;
    margin: 0 auto 2rem;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    font-weight: bold;
    border: 4px solid var(--primary-blue);
    box-shadow: 0 8px 24px var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.login-logo img {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.login-title {
    color: var(--dark-blue);
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.login-subtitle {
    color: var(--gray);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.75rem;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--black);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    color: var(--black);
    font-weight: 400;
    position: relative;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(46, 134, 171, 0.1);
    transform: translateY(-1px);
}

.form-control:hover {
    border-color: var(--primary-blue);
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-dark);
}

.btn-logout {
    background: linear-gradient(135deg, var(--danger), #c82333);
    color: var(--white);
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.btn-logout:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* Alert Messages */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    border-left: 4px solid;
    box-shadow: 0 2px 8px var(--shadow-light);
    position: relative;
}

.alert-danger {
    background: linear-gradient(135deg, #fdebee, #fdf2f4);
    color: #721c24;
    border-left-color: var(--danger);
}

.alert-success {
    background: linear-gradient(135deg, #e8f6f3, #f0f9f6);
    color: #155724;
    border-left-color: var(--success);
}

.alert-warning {
    background: linear-gradient(135deg, #fff8e6, #fffbf0);
    color: #856404;
    border-left-color: var(--warning);
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 140px);
    background: var(--light-gray);
}

.welcome-section {
    background: linear-gradient(135deg, var(--white) 0%, #f8fafb 100%);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 24px var(--shadow-light), 0 4px 8px var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue), var(--dark-blue));
}

.welcome-title {
    color: var(--dark-blue);
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.welcome-subtitle {
    color: var(--gray);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.student-info {
    background: linear-gradient(135deg, var(--light-blue) 0%, rgba(232, 244, 248, 0.7) 100%);
    padding: 1.5rem;
    border-radius: 16px;
    margin-top: 1.5rem;
    border: 1px solid rgba(46, 134, 171, 0.1);
}

.student-info h4 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.student-info p {
    margin: 0.5rem 0;
    color: var(--black);
    font-weight: 500;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.dashboard-card {
    background: linear-gradient(135deg, var(--white) 0%, #fbfcfd 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 24px var(--shadow-light), 0 4px 8px var(--shadow-medium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(46, 134, 171, 0.08);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px var(--shadow-medium), 0 8px 16px var(--shadow-dark);
}

.card-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: var(--white);
    box-shadow: 0 4px 12px var(--shadow-medium);
    transition: transform 0.3s ease;
}

.dashboard-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.card-description {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.card-link {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.card-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.card-link:hover::before {
    left: 100%;
}

.card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-dark);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--white) 0%, #f8fafb 100%);
    border-top: 1px solid var(--border-gray);
    padding: 2.5rem 0;
    text-align: center;
    color: var(--gray);
    margin-top: auto;
    box-shadow: 0 -2px 8px var(--shadow-light);
}

.footer p {
    margin: 0.5rem 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .nav-menu a {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .nav-menu li span {
        font-size: 0.8rem;
        margin-right: 0.25rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .login-card {
        padding: 2.5rem 1.5rem;
        margin: 1rem;
        max-width: 100%;
    }
    
    .login-title {
        font-size: 1.875rem;
    }
    
    .welcome-title {
        font-size: 2.25rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dashboard-card {
        padding: 2rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

.justify-center { justify-content: center; }
.align-center { align-items: center; }
.flex-column { flex-direction: column; }

/* ========================================
   SIDEBAR NAVIGATION STYLES
======================================== */

/* Sidebar Container */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--dark-blue) 0%, #1e3a5f 100%);
    color: var(--white);
    z-index: 1050;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.sidebar.active {
    left: 0;
}

/* Sidebar Header */
.sidebar-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--white);
    padding: 4px;
}

.sidebar-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-top: -2px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* User Info */
.sidebar-user {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.user-avatar i {
    z-index: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
    text-transform: capitalize;
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-section {
    padding: 1rem 1.25rem 0.5rem;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-item {
    margin: 0;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 0;
    position: relative;
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    transform: translateX(4px);
}

.menu-link.active {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    color: var(--white);
    border-right: 3px solid var(--accent-blue);
}

.menu-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-blue);
    border-radius: 0 4px 4px 0;
}

.menu-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    opacity: 0.8;
}

.menu-link:hover i,
.menu-link.active i {
    opacity: 1;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #3498db;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.profile-btn:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.5);
    color: #2980b9;
    transform: translateY(-1px);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #ff6b6b;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.5);
    color: #ff5252;
    transform: translateY(-1px);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Header Updates for Sidebar */
.header {
    background: var(--white);
    box-shadow: 0 1px 3px var(--shadow-light), 0 4px 12px var(--shadow-medium);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid var(--border-gray);
    height: 70px;
}

.header-content {
    height: 70px;
    max-width: none;
    margin: 0;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
}

.sidebar-trigger {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--dark-blue);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-trigger:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: auto;
}

.header-logo .logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.header-logo .logo-text {
    color: var(--dark-blue);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.header-logo .logo-subtitle {
    color: var(--gray);
    font-size: 0.75rem;
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.welcome-text {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

/* Main Wrapper */
.main-wrapper {
    transition: margin-left 0.3s ease;
    min-height: calc(100vh - 70px);
}

/* Body States */
body.sidebar-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        left: -100%;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .welcome-text {
        display: none;
    }
}

@media (min-width: 1200px) {
    .sidebar {
        width: 300px;
        left: -300px;
    }
    
    .sidebar-user {
        padding: 1.5rem;
    }
    
    .user-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .menu-link {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Animation Enhancements */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.sidebar.active {
    animation: slideInLeft 0.3s ease-out;
}

/* Focus States for Accessibility */
.sidebar-trigger:focus,
.sidebar-toggle:focus,
.menu-link:focus,
.logout-btn:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .sidebar {
        border-right: 2px solid var(--white);
    }
    
    .menu-link.active {
        background: var(--white);
        color: var(--dark-blue);
    }
}

/* Student Registration & Records Styles */
.registration-container {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-medium);
    overflow: hidden;
}

.registration-form {
    max-width: none;
}

.form-section {
    padding: 2.5rem;
    border-bottom: 1px solid var(--border-gray);
}

.form-section:last-child {
    border-bottom: none;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-blue);
}

.section-header i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.section-header h3 {
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 1.4rem;
}

.section-header small {
    color: var(--gray);
    font-style: italic;
    margin-left: auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-grid:last-child {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-group label.required::after {
    content: " *";
    color: var(--danger);
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--black);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px var(--shadow-light);
    transform: translateY(-1px);
}

.form-group small {
    color: var(--gray);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.form-check input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-actions {
    padding: 2rem 2.5rem;
    background: var(--light-gray);
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Header Actions */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-gray);
}

.header-left h1 {
    color: var(--dark-blue);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-left p {
    color: var(--gray);
    font-size: 1.1rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Alert Styles */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.alert-success {
    background: #D5F4E6;
    color: #0F5132;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: #F8D7DA;
    color: #842029;
    border-left: 4px solid var(--danger);
}

.alert i {
    font-size: 1.25rem;
}

/* Button Enhancements */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-blue);
}

.btn-secondary {
    background: var(--gray);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--black);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-info {
    background: var(--accent-blue);
    color: var(--white);
}

.btn-info:hover {
    background: var(--primary-blue);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .content-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .form-section {
        padding: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-left h1 {
        font-size: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 1rem;
    }
    
    .form-actions {
        padding: 1.5rem;
    }
    
    .header-left h1 {
        font-size: 1.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Tab and Modal Styles for Subject Curriculum Management */
.tabs-container {
    margin-bottom: 2rem;
}

.tabs {
    display: flex;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: var(--light-gray);
    color: var(--black);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
}

.tab-btn:hover {
    background: var(--border-gray);
}

.tab-btn.active {
    background: var(--primary-blue) !important;
    color: white !important;
}

.tab-content {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Responsive tab styles */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-radius: 0;
    }
    
    .tab-btn:first-child {
        border-radius: 15px 15px 0 0;
    }
    
    .tab-btn:last-child {
        border-radius: 0 0 15px 15px;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

/* Form styling improvements for the new page */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--black);
    font-weight: 600;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(46, 134, 171, 0.1);
}

.form-checkbox {
    margin-right: 0.5rem;
    transform: scale(1.2);
}
