/* Student Dashboard Styles */
:root {
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;
    --secondary: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --dark: #111827;
    --gray: #6B7280;
    --light-gray: #F3F4F6;
    --border: #E5E7EB;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.15);

    /* Icon Colors */
    --icon-home: #3B82F6;
    --icon-document: #8B5CF6;
    --icon-folder: #F59E0B;
    --icon-chart: #10B981;
    --icon-user: #06B6D4;
    --icon-calendar: #EC4899;
    --icon-success: #10B981;
    --icon-warning: #F59E0B;
    --icon-danger: #EF4444;
    --icon-info: #3B82F6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #EBF4FF 0%, #E0E7FF 50%, #F3E8FF 100%);
    min-height: 100vh;
    color: var(--dark);
}

/* Header Styles */
.dashboard-header {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: #0985be;
    color: white;
    border: none;
    padding: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    
}

.mobile-menu-toggle:hover {
    background: #0771a0;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle.active {
    background: #ef4444;
    transform: translateY(-50%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

.mobile-menu-toggle.active:hover {
    background: #dc2626;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.6);
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span {
    background: white;
    height: 3px;
    width: 24px;
}


/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar Styles */
.sidebar {
    width: 70px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 1001;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar:hover {
    width: 250px;
}

/* Sidebar Logo */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

/* When sidebar is collapsed (70px) */
.sidebar:not(:hover) .sidebar-logo {
    justify-content: flex-start;
    padding: 20px 15px;
}

/* When sidebar is expanded - align to left */
.sidebar:hover .sidebar-logo {
    justify-content: flex-start;
    padding: 20px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    opacity: 1;
    transition: width 0.3s ease, height 0.3s ease;
}

/* Ensure logo is always visible, even when sidebar is collapsed */
.sidebar:not(:hover) .logo-img {
    opacity: 1;
    display: block;
}

.logo-text {
    color: black;
    font-weight: bold;
    font-size: 18px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar:hover .logo-text {
    opacity: 1;
}


.sidebar-nav {
    padding-top: 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray);
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}

.nav-item:hover {
    background: var(--light-gray);
    color: var(--primary);
}

.nav-item.active {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-left: 4px solid var(--primary);
    padding-left: 16px;
}

/* Removed - conflicted with UNIFORM ICON SYSTEM at line 465 */
/* .nav-item .nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
} */

.nav-item .nav-text {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar:hover .nav-item .nav-text {
    opacity: 1;
}

/* === SIDEBAR USER PROFILE CARD (PROFESSIONAL) === */
.sidebar-user-profile {
    margin-top: auto;
    background: #F8FAFC;
    padding: 1rem;
    border-radius: 0;
    border-top: 1px solid var(--border);
}

.sidebar-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-profile-icon {
    width: 40px;
    height: 40px;
    background: #EEF2FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-profile-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.sidebar-user-badge {
    background: #D1FAE5;
    color: #065F46;
    padding: 0.25rem 0.65rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sidebar-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.sidebar-user-name {
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-email {
    color: var(--gray);
    font-size: 0.75rem;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #FEE2E2;
    color: #991B1B;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.sidebar-logout-btn:hover {
    background: #FECACA;
    transform: translateY(-1px);
}

.sidebar-logout-btn:active {
    transform: translateY(0);
}

.sidebar-logout-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Collapsed Sidebar - Hide User Profile Details */
.sidebar:not(:hover) .sidebar-user-profile {
    padding: 0.75rem;
}

.sidebar:not(:hover) .sidebar-profile-header {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar:not(:hover) .sidebar-user-badge {
    display: none;
}

.sidebar:not(:hover) .sidebar-user-details {
    display: none;
}

.sidebar:not(:hover) .sidebar-logout-text {
    display: none;
}

.sidebar:not(:hover) .sidebar-logout-btn {
    padding: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Expanded Sidebar - Show Full Profile */
.sidebar:hover .sidebar-user-profile {
    padding: 1rem;
}

.sidebar:hover .sidebar-profile-header {
    flex-direction: row;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.sidebar:hover .sidebar-user-badge {
    display: block;
}

.sidebar:hover .sidebar-user-details {
    display: flex;
}

.sidebar:hover .sidebar-logout-text {
    display: inline;
}

.sidebar:hover .sidebar-logout-btn {
    padding: 0.75rem 1.25rem;
    justify-content: center;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px;
    margin-left: 70px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    width: calc(100% - 70px);
    max-width: calc(100% - 70px);
}

.sidebar:hover ~ .main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    max-width: calc(100% - 250px);
}

.content-section {
    display: none !important;
}

.content-section.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

/* Content Cards */
.content-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 25px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    padding: 20px 25px;
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.card-title {
    color: var(--dark);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========================================
   UNIFORM ICON SYSTEM
   ======================================== */

/* Base Icon Styles - All icons have consistent sizing */
.title-icon i,
.info-icon i,
.nav-icon i,
.action-icon i,
.doc-icon i,
.stat-icon i,
.qa-icon i,
.dropzone-icon i,
.alert-icon i {
    transition: all 0.3s ease;
    display: inline-block;
}

/* Sidebar Navigation Icons - SAME SIZE AS TITLE ICONS */
.nav-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 1.5rem !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.nav-icon i {
    font-size: 1.5rem !important;
}

/* Title Icons - Uniform across all sections */
.title-icon {
    font-size: 1.5rem !important;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.title-icon i {
    font-size: 1.5rem !important;
}

/* Info Icons - Uniform */
.info-icon {
    font-size: 1.3rem !important;
    width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.info-icon i {
    font-size: 1.3rem !important;
}

/* Action Button Icons - Uniform */
.action-icon {
    font-size: 1.3rem !important;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-icon i {
    font-size: 1.3rem !important;
}

/* Document Icons - Uniform */
.doc-icon {
    font-size: 1.5rem !important;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.doc-icon i {
    font-size: 1.5rem !important;
}

/* Stat Icons - Uniform and Larger */
.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 12px;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 2.5rem !important;
}

/* Quick Access Icons - Uniform */
.qa-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem !important;
    background: var(--light-gray);
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.qa-icon i {
    font-size: 2rem !important;
}

/* Alert Icons - Uniform */
.alert-icon {
    font-size: 1.3rem !important;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.alert-icon i {
    font-size: 1.3rem !important;
}

/* Dropzone Icons - Uniform */
.dropzone-icon {
    font-size: 3rem !important;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropzone-icon i {
    font-size: 3rem !important;
}

/* Navigation Icons */
/* Sidebar Nav Icons - Vibrant Colors with !important to override active state */
.nav-icon .fa-home { color: #3B82F6 !important; }
.nav-icon .fa-file-alt { color: #8B5CF6 !important; }
.nav-icon .fa-folder { color: #F59E0B !important; }
.nav-icon .fa-tasks { color: #10B981 !important; }
.nav-icon .fa-book { color: #8B5CF6 !important; }
.nav-icon .fa-chart-bar { color: #10B981 !important; }
.nav-icon .fa-calendar-alt { color: #EC4899 !important; }
.nav-icon .fa-user { color: #06B6D4 !important; }

/* Stat Icons Colors */
.stat-icon .fa-school { color: #F59E0B !important; }

/* Title Icons */
.title-icon .fa-link { color: #8B5CF6; }
.title-icon .fa-graduation-cap { color: #3B82F6; }
.title-icon .fa-chart-bar { color: #10B981; }
.title-icon .fa-folder,
.title-icon .fa-folder-open { color: #F59E0B !important; }
.title-icon .fa-bolt { color: #F59E0B; }
.title-icon .fa-file-alt { color: #8B5CF6; }
.title-icon .fa-user { color: #06B6D4; }
.title-icon .fa-book { color: #8B5CF6; }
.title-icon .fa-book-open { color: #EC4899; }
.title-icon .fa-chalkboard-teacher { color: #F97316; }
.title-icon .fa-users { color: #06B6D4; }
.title-icon .fa-hand-sparkles { color: #F59E0B; }
.title-icon .fa-info-circle { color: #667eea; }

/* Info Icons */
.info-icon .fa-user { color: #3B82F6; }
.info-icon .fa-id-card { color: #8B5CF6; }
.info-icon .fa-hashtag { color: #10B981; }
.info-icon .fa-book { color: #F59E0B; }
.info-icon .fa-door-open { color: #EC4899; }
.info-icon .fa-calendar-alt { color: #EF4444; }
.info-icon .fa-graduation-cap { color: #3B82F6; }
.info-icon .fa-map-marker-alt { color: #EF4444; }
.info-icon .fa-home { color: #10B981; }
.info-icon .fa-list-alt { color: #8B5CF6; }
.info-icon .fa-info-circle { color: #3B82F6; }

/* Document Status Icons */
.doc-status.verified .fa-check-circle { color: #10B981; }
.doc-status.pending .fa-clock { color: #F59E0B; }
.doc-status.not-uploaded .fa-cloud-upload-alt { color: #6B7280; }

/* Action Icons */
.action-icon .fa-cloud-upload-alt { color: #3B82F6; }
.action-icon .fa-edit { color: #8B5CF6; }
.action-icon .fa-print { color: #10B981; }
.action-icon .fa-calendar-alt { color: #EC4899; }

/* Document Icons - Colorful with High Specificity */
.document-status-item .doc-icon i { transition: all 0.3s ease; }
.document-status-item .doc-icon .fa-file-alt,
.doc-icon .fa-file-alt { color: #3B82F6 !important; }
.document-status-item .doc-icon .fa-image,
.doc-icon .fa-image { color: #EC4899 !important; }
.document-status-item .doc-icon .fa-upload,
.doc-icon .fa-upload { color: #10B981 !important; }

/* Alert Icon */
.alert-icon .fa-bullhorn { color: #F59E0B; }

/* Section Title Icons - Colorful */
.section-title i,
.section-title .fa-file-alt { color: #8B5CF6 !important; }
.section-title .fa-folder,
.section-title .fa-folder-open { color: #F59E0B !important; }

/* Action Button Icons - Colorful */
.action-icon .fa-cloud-upload-alt { color: #3B82F6 !important; }
.action-icon .fa-file-alt { color: #8B5CF6 !important; }
.action-icon .fa-tasks { color: #10B981 !important; }
.action-icon .fa-home { color: #F59E0B !important; }

/* Stat Icons - Colors Only (size defined in uniform system above) */
.stat-icon .fa-book { color: #8B5CF6; }
.stat-icon .fa-chart-bar { color: #10B981; }
.stat-icon .fa-calendar-alt { color: #EC4899; }

/* Quick Access Icons */
.qa-icon .fa-book { color: #8B5CF6; }
.qa-icon .fa-chart-bar { color: #10B981; }
.qa-icon .fa-calendar-alt { color: #EC4899; }
.qa-icon .fa-user { color: #3B82F6; }

.status-badge {
    background: linear-gradient(135deg, #FEF3C7, #FED7AA);
    color: #92400E;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s ease infinite;
}

.card-body {
    padding: 20px;
}

/* Details Section */
.details-section,
.document-status-section {
    margin-bottom: 30px;
}

.section-title {
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 32px;
}

.detail-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    align-items: flex-start !important;
}

.detail-label {
    color: var(--gray);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: var(--dark);
    font-size: 1rem;
    font-weight: 600;
}

.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.status-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.status-text {
    color: #000000;
}

/* Document Status */
.documents-container {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
}

.documents-header {
    background: var(--white);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--dark);
    box-shadow: var(--shadow-sm);
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-item {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.document-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.doc-name {
    color: var(--dark);
    font-weight: 500;
    flex: 1;
}

.doc-status {
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 9.5px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    letter-spacing: 0.2px;
    width: 130px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
}

.doc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.doc-icon svg {
    display: block;
    width: 14px;
    height: 14px;
}

.doc-status.verified {
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.doc-status.pending {
    background: #fef3c7;
    color: #92400e;
    border-color: #fbbf24;
}

.doc-status.not-uploaded {
    background: #fee2e2;
    color: #991b1b;
    border-color: #f87171;
}

.doc-status.rejected {
    background: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.doc-status.reupload-requested {
    background: #fecaca;
    color: #7f1d1d;
    border-color: #f87171;
    font-size: 9px;
    letter-spacing: 0.1px;
}

/* Update Alert */
.update-alert {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    border: 1px solid #60A5FA;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1E3A8A;
    animation: slideIn 0.5s ease;
}

.alert-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.alert-text {
    line-height: 1.5;
    font-size: 0.95rem;
}

.alert-text a {
    color: inherit;
    font-weight: 600;
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.action-btn {
    background: linear-gradient(135deg, var(--light-gray), var(--white));
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}

.action-btn:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(129, 140, 248, 0.15));
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.action-btn:hover .action-icon {
    transform: scale(1.15);
}

/* Removed - conflicted with UNIFORM ICON SYSTEM at line 506 */
/* .action-icon {
    font-size: 2rem;
    transition: transform 0.3s ease;
} */

.action-text {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 10px 0;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.timeline-marker {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: #e5e7eb;
    border: 3px solid #d1d5db;
    color: #9ca3af;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.timeline-marker i {
    font-size: 20px;
}

/* Colorful Timeline Icons for different states */
.timeline-item:not(.completed):not(.active):not(.rejected):not(.approved) .timeline-marker .fa-paper-plane { color: #10B981; }
.timeline-item:not(.completed):not(.active):not(.rejected):not(.approved) .timeline-marker .fa-file-upload { color: #3B82F6; }
.timeline-item:not(.completed):not(.active):not(.rejected):not(.approved) .timeline-marker .fa-search { color: #8B5CF6; }
.timeline-item:not(.completed):not(.active):not(.rejected):not(.approved) .timeline-marker .fa-shield-alt { color: #F59E0B; }
.timeline-item:not(.completed):not(.active):not(.rejected):not(.approved) .timeline-marker .fa-award { color: #EC4899; }

.timeline-line {
    width: 3px;
    flex: 1;
    background: #e5e7eb;
    margin-top: -3px;
}

/* Completed State */
.timeline-item.completed .timeline-marker {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.timeline-item.completed .timeline-line {
    background: linear-gradient(180deg, #10b981, #e5e7eb);
}

/* Active/In Progress State */
.timeline-item.active .timeline-marker {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #f59e0b;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    animation: pulse 2s ease infinite;
}

.timeline-item.active .timeline-line {
    background: #e5e7eb;
}

/* Rejected State */
.timeline-item.rejected .timeline-marker {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #ef4444;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.timeline-item.rejected .timeline-line {
    background: #e5e7eb;
}

/* Approved State */
.timeline-item.approved .timeline-marker {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    min-width: 0;
}

.timeline-item.completed .timeline-content {
    border-left: 4px solid #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.timeline-item.active .timeline-content {
    border-left: 4px solid #f59e0b;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

.timeline-item.rejected .timeline-content {
    border-left: 4px solid #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

.timeline-item.approved .timeline-content {
    border-left: 4px solid #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.timeline-content:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
}

.timeline-content h4 {
    color: #111827;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.timeline-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.timeline-badge.completed {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.timeline-badge.active {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.timeline-badge.pending {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.timeline-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.timeline-badge.approved {
    background: #dbeafe;
    color: #1e3a8a;
    border: 1px solid #3b82f6;
}

.timeline-date {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.timeline-desc {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    flex-direction: column;
    gap: 20px;
}

.loading-overlay.show {
    display: flex;
}

.spinner {
    border: 4px solid var(--white);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.loading-overlay p {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
}

.loading-text {
    text-align: center;
    color: var(--gray);
    padding: 40px;
}

/* Action Buttons */
.action-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Student Profile Card */
.student-profile-card {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    color: white;
    box-shadow: var(--shadow-lg);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.profile-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.grade-info {
    font-size: 1rem;
    opacity: 0.9;
}

.application-id {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

/* Application Info Grid */
.application-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Info Cards */
.info-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.info-card.full-width {
    grid-column: 1 / -1;
}

.info-card-header {
    background: #F8FAFC;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card-header h4 {
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 600;
    margin: 0;
}

/* Removed - conflicted with UNIFORM ICON SYSTEM at line 493 */
/* .info-icon {
    font-size: 1.2rem;
} */

.info-card-body {
    padding: 20px;
}

.info-card-body .info-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
}

.info-card-body .info-row:last-child {
    border-bottom: none;
}

.info-row.same-as-current {
    justify-content: center;
    flex-direction: row;
}

.info-card-body .info-label {
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card-body .info-value {
    color: var(--dark);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    max-width: 100%;
}

.same-address-text {
    color: var(--primary);
    font-style: italic;
    text-align: center;
    max-width: 100%;
}

/* Document Status List */
.document-status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.document-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border: 1px solid var(--border);
    border-left: 4px solid var(--border);
    border-radius: 10px;
    transition: all 0.3s ease;
    gap: 15px;
    position: relative;
}

.document-status-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

/* Status-based styling for document items */
.document-status-item.status-verified {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border-left-color: #10B981;
    border-color: #A7F3D0;
}

.document-status-item.status-rejected {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border-left-color: #EF4444;
    border-color: #FECACA;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.document-status-item.status-reupload {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-left-color: #F59E0B;
    border-color: #FDE68A;
}

.document-status-item.status-pending {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border-left-color: #3B82F6;
    border-color: #BFDBFE;
}

.document-status-item.status-not-uploaded {
    background: white;
    border-left-color: #E5E7EB;
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
    margin-right: 10px;
}

/* Removed - conflicted with UNIFORM ICON SYSTEM at line 520 */
/* .doc-icon {
    font-size: 1.8rem;
    width: 40px;
    text-align: center;
} */

.doc-details h4 {
    margin: 0 0 4px 0;
    color: #000000;
    font-size: 1rem;
    font-weight: 600;
}

.doc-requirement {
    font-size: 0.85rem;
    color: #000000;
    font-weight: 500;
}

/* Document Note Styles - Restructured */
.doc-note {
    margin-top: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FED7AA 100%);
    border-left: 4px solid #F59E0B;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
    animation: slideDown 0.3s ease;
    position: relative;
    overflow: hidden;
}

.doc-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #F59E0B, #FBBF24, #F59E0B);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.note-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.note-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-note .note-icon {
    color: #D97706;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.note-title {
    color: #92400E;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.note-message {
    margin: 0;
    color: #92400E;
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 500;
}

.note-instruction {
    margin: 0;
    color: #78350F;
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.9;
}

/* Rejected Document Note - Red variant */
.doc-note.rejected {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    border-left-color: #EF4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

.doc-note.rejected::before {
    background: linear-gradient(90deg, #EF4444, #F87171, #EF4444);
}

.doc-note.rejected .note-icon {
    color: #DC2626;
}

.doc-note.rejected .note-title {
    color: #991B1B;
}

.doc-note.rejected .note-message {
    color: #991B1B;
}

.doc-note.rejected .note-instruction {
    color: #7F1D1D;
}

/* Document Actions Container */
.doc-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* View Document Button */
.view-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-doc-btn:hover {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.view-doc-btn:active {
    transform: translateY(0);
}

.view-doc-btn i {
    font-size: 0.9rem;
}

.doc-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 9.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 130px;
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
}

.doc-status-badge[data-status="not-uploaded"] {
    background: #fee2e2;
    color: #991b1b;
    border-color: #f87171;
}

.doc-status-badge[data-status="not-uploaded"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.doc-status-badge[data-status="uploaded"] {
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
    cursor: default;
    pointer-events: none;
}

.doc-status-badge[data-status="pending"],
.doc-status-badge.pending {
    background: #fef3c7;
    color: #92400e;
    border-color: #fbbf24;
    cursor: not-allowed;
}

.doc-status-badge[data-status="locked"] {
    background: #e5e7eb;
    color: #6b7280;
    border-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
}

.doc-status-badge[data-status="verified"],
.doc-status-badge.verified {
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
    cursor: not-allowed;
}

.doc-status-badge[data-status="rejected"],
.doc-status-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
    cursor: pointer;
}

.doc-status-badge[data-status="rejected"]:hover,
.doc-status-badge.rejected:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.doc-status-badge[data-status="reupload-requested"],
.doc-status-badge.reupload-requested {
    background: #fecaca;
    color: #7f1d1d;
    border-color: #f87171;
    cursor: pointer;
    font-size: 9px;
    letter-spacing: 0.1px;
}

.doc-status-badge[data-status="reupload-requested"]:hover,
.doc-status-badge.reupload-requested:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Upload Panel */
.document-upload-panel {
    margin-top: 20px;
    background: #FAFBFC;
    border: 2px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

.upload-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.upload-panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.close-panel-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-panel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.upload-panel-body {
    padding: 25px;
}

/* Upload Dropzone */
.upload-dropzone {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
}

.upload-dropzone.drag-over {
    background: #F0F9FF;
    border-color: var(--primary);
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.dropzone-icon {
    font-size: 3rem;
}

.dropzone-text {
    color: var(--gray);
    font-size: 1rem;
    margin: 0;
}

.choose-file-btn {
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.choose-file-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dropzone-hint {
    color: var(--gray);
    font-size: 0.85rem;
    margin: 0;
}

/* File Preview Area */
.file-preview-area {
    margin-top: 20px;
}

.file-preview-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.preview-image-container {
    width: 100px;
    height: 100px;
    background: var(--light-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 5px 0;
}

.file-size {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.file-actions .action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.preview-btn {
    background: var(--light-gray);
    color: var(--dark);
}

.preview-btn:hover {
    background: var(--border);
}

.delete-btn {
    background: #FEE2E2;
    color: #991B1B;
}

.delete-btn:hover {
    background: #FECACA;
}

.submit-document-btn {
    margin-top: 20px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--secondary), #059669);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.submit-document-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-document-btn:disabled {
    background: var(--gray);
    cursor: not-allowed;
}

/* Document Review Modal - Matching documents.html style */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content-large {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e5e7eb;
    background: #F9FAFB;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.close {
    color: #999;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #000;
}

.modal-body-document {
    padding: 20px 30px;
    overflow: auto;
    flex: 1;
    background: #F9FAFB;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-body-document img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-body-document iframe {
    width: 100%;
    height: 70vh;
    border: none;
    border-radius: 8px;
    background: white;
}

.document-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px;
}

.document-loader p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Loading State */
.upload-loading {
    padding: 40px;
    text-align: center;
}

.upload-loading .spinner {
    margin: 0 auto 20px;
}

/* Message */
.document-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

.document-message.success {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    border: 1px solid #10B981;
    color: #047857;
}

.document-message.error {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    border: 1px solid var(--danger);
    color: #991B1B;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .file-preview-card {
        flex-direction: column;
        text-align: center;
    }
    
    .file-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Document Grid */
.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.document-card {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.document-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.document-card h4 {
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.doc-requirement {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

/* Status Badge Variants */
.status-badge.status-pending_review {
    background: linear-gradient(135deg, #FEF3C7, #FED7AA);
    color: #92400E;
}

.status-badge.status-under_review {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: #1E3A8A;
}

.status-badge.status-approved {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #047857;
}

.status-badge.status-rejected {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: #991B1B;
}

.status-badge.status-enrolled {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #047857;
}

.status-badge.status-documents_pending {
    background: linear-gradient(135deg, #FEF3C7, #FED7AA);
    color: #92400E;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(7px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-7px);
    }

    .card-header {
        padding: 16px 70px 16px 20px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .card-title {
        width: 100%;
        font-size: 1.1rem;
    }

    .status-badge {
        width: auto;
        max-width: fit-content;
    }

    .mobile-menu-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        top: 50%;
        transform: translateY(-50%);
        right: 18px;
    }

    .mobile-menu-toggle:hover {
        transform: translateY(-50%) scale(1.05);
    }

    .mobile-menu-toggle.active {
        transform: translateY(-50%);
    }

    .mobile-menu-toggle.active:hover {
        transform: translateY(-50%) scale(1.05);
    }

    .mobile-menu-toggle span {
        width: 20px;
        height: 2.5px;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 250px;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar.show .nav-item .nav-text,
    .sidebar.show .logo-text {
        opacity: 1;
    }

    /* Mobile Sidebar - Always show full user profile */
    .sidebar .sidebar-user-profile {
        padding: 1rem !important;
    }

    .sidebar .sidebar-profile-header {
        flex-direction: row !important;
        margin-bottom: 0.75rem !important;
        padding-bottom: 0.75rem !important;
        border-bottom: 1px solid var(--border) !important;
        gap: 0 !important;
    }

    .sidebar .sidebar-user-badge {
        display: block !important;
    }

    .sidebar .sidebar-user-details {
        display: flex !important;
        flex-direction: column !important;
    }

    .sidebar .sidebar-logout-text {
        display: inline !important;
    }

    .sidebar .sidebar-logout-btn {
        padding: 0.75rem 1.25rem !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        margin-top: 0 !important;
    }

    /* Override collapsed state for mobile */
    .sidebar:not(:hover) .sidebar-user-profile {
        padding: 1rem !important;
    }

    .sidebar:not(:hover) .sidebar-profile-header {
        flex-direction: row !important;
        gap: 0 !important;
        margin-bottom: 0.75rem !important;
        padding-bottom: 0.75rem !important;
        border-bottom: 1px solid var(--border) !important;
    }

    .sidebar:not(:hover) .sidebar-user-badge {
        display: block !important;
    }

    .sidebar:not(:hover) .sidebar-user-details {
        display: flex !important;
    }

    .sidebar:not(:hover) .sidebar-logout-text {
        display: inline !important;
    }

    .sidebar:not(:hover) .sidebar-logout-btn {
        padding: 0.75rem 1.25rem !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        margin-top: 0 !important;
    }

    .mobile-overlay.show {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
        width: 100%;
        max-width: 100%;
    }

    .sidebar:hover ~ .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .application-info-grid {
        grid-template-columns: 1fr;
    }
    
    .student-profile-card {
        flex-direction: column;
        text-align: center;
    }
    
    .info-value {
        max-width: 50%;
    }
    
    .timeline {
        padding: 10px 0;
    }

    .timeline-item {
        gap: 15px;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
    }

    .timeline-marker i {
        font-size: 18px;
    }

    .timeline-content {
        padding: 15px 18px;
    }

    .timeline-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .timeline-content h4 {
        font-size: 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Keep logo text visible in mobile - it's important for branding */
    .logo-text {
        display: block;
        font-size: 0.85rem;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .card-header {
        padding: 14px 65px 14px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .card-title {
        width: 100%;
        font-size: 1rem;
        margin: 0;
    }

    .status-badge {
        width: auto;
        max-width: fit-content;
        align-self: flex-start;
    }

    .mobile-menu-toggle {
        display: flex;
        width: 42px;
        height: 42px;
        top: 50%;
        transform: translateY(-50%);
        right: 16px;
    }

    .mobile-menu-toggle:hover {
        transform: translateY(-50%) scale(1.05);
    }

    .mobile-menu-toggle.active {
        transform: translateY(-50%);
    }

    .mobile-menu-toggle.active:hover {
        transform: translateY(-50%) scale(1.05);
    }

    .mobile-menu-toggle span {
        width: 19px;
        height: 2.5px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-button {
        width: 100%;
        justify-content: center;
    }

    /* Fix document items in mobile view */
    .document-status-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 15px;
        gap: 10px;
    }

    .doc-info {
        width: 100%;
        margin-right: 0;
    }

    .doc-details h4 {
        font-size: 0.9rem;
        word-break: break-word;
        line-height: 1.3;
    }

    .doc-requirement {
        font-size: 0.75rem;
    }

    .doc-note {
        padding: 12px 14px;
    }

    .note-header {
        gap: 6px;
    }

    .doc-note .note-icon {
        font-size: 1rem;
    }

    .note-title {
        font-size: 0.85rem;
    }

    .note-message {
        font-size: 0.8rem;
    }

    .note-instruction {
        font-size: 0.75rem;
    }

    .doc-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .view-doc-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }

    .doc-status-badge {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Document Review Modal - Mobile */
    .modal {
        padding: 5px;
    }

    .modal-content-large {
        width: 98%;
        max-width: 100%;
        max-height: 98vh;
        border-radius: 8px;
    }

    .modal-header {
        padding: 12px 16px;
    }

    .modal-header h2 {
        font-size: 1rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: calc(100% - 40px);
    }

    .modal-body-document {
        padding: 8px;
        background: white;
    }

    .modal-body-document iframe {
        border-radius: 4px;
    }

    .close {
        font-size: 26px;
        min-width: 32px;
        flex-shrink: 0;
    }

    /* Document Upload Panel - Mobile */
    .document-upload-panel {
        padding: 15px;
    }

    .upload-panel-header {
        padding: 12px 0;
    }

    .upload-panel-header h3 {
        font-size: 1.1rem;
    }

    .upload-dropzone {
        padding: 30px 15px;
        min-height: 180px;
    }

    .dropzone-icon {
        font-size: 2.5rem;
    }

    .dropzone-text {
        font-size: 0.9rem;
    }

    .choose-file-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .dropzone-hint {
        font-size: 0.75rem;
    }

    /* Removed - conflicted with UNIFORM ICON SYSTEM at line 520 */
    /* .doc-icon {
        font-size: 1.5rem;
        width: 35px;
        flex-shrink: 0;
    } */
}

/* Print Styles */
@media print {
    .dashboard-header,
    .sidebar,
    .action-btn,
    .btn-primary,
    .mobile-menu-toggle,
    .action-button {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
        max-width: 100%;
    }
    
    .content-card {
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .info-card {
        page-break-inside: avoid;
    }
}
/* Account Linking Styles */
.link-account-banner {
    border-left: 4px solid var(--primary);
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
}

.link-banner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.link-banner-text {
    padding-right: 20px;
}

.banner-description {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.banner-instructions {
    color: var(--dark);
    margin-bottom: 10px;
}

.banner-requirements {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.banner-requirements li {
    color: var(--dark);
    padding: 8px 0;
    font-weight: 500;
}

.link-form-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.link-account-form .form-group {
    margin-bottom: 20px;
}

.link-account-form label {
    display: block;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.link-account-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.link-account-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-hint {
    display: block;
    color: var(--gray);
    font-size: 0.8rem;
    margin-top: 5px;
}

.btn-link-account {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-link-account:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-link-account:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
}

.link-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

.link-message.success {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    border: 1px solid #10B981;
    color: #047857;
}

.link-message.error {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    border: 1px solid var(--danger);
    color: #991B1B;
}

/* Student Info Card */
.student-info-card {
    border-left: 4px solid var(--secondary);
}

.status-badge.linked {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #047857;
}

.student-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #E0E7EB;
    transform: translateY(-2px);
}

/* Removed - conflicted with UNIFORM ICON SYSTEM at line 493 */
/* .info-item .info-icon {
    font-size: 1.8rem;
    width: 45px;
    text-align: center;
    flex-shrink: 0;
} */

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-content .info-label {
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-content .info-value {
    color: var(--dark);
    font-size: 1.05rem;
    font-weight: 600;
    word-break: break-word;
}

/* Responsive for account linking */
@media (max-width: 768px) {
    .link-banner-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .link-banner-text {
        padding-right: 0;
    }

    .student-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   ENROLLED STUDENT DASHBOARD STYLES
   ========================================== */

/* Enrolled Welcome Card */
.enrolled-welcome-card {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border: none;
    color: white;
}

.enrolled-welcome-card .card-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.enrolled-welcome-card .card-title {
    color: white;
}

.enrolled-welcome-content {
    padding: 10px 0;
}

.enrolled-welcome-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.enrolled-welcome-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.enrolled-lrn {
    font-size: 0.95rem;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.enrolled-lrn strong {
    color: var(--white);
    font-weight: 700;
}

/* Quick Stats Grid */
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-card.section-stat {
    border-left-color: #3B82F6;
}

.stat-card.grade-stat {
    border-left-color: #10B981;
}

.stat-card.year-stat {
    border-left-color: #F59E0B;
}

/* Removed - conflicted with UNIFORM ICON SYSTEM at line 534 */
/* .stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 12px;
    flex-shrink: 0;
} */

.stat-content {
    flex: 1;
}

.stat-content h4 {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-content p {
    color: var(--dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.stat-content span {
    display: block;
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Today's Schedule List */
.today-schedule-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.schedule-item {
    background: white;
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 12px 16px;
    min-height: auto;
    display: flex;
    align-items: stretch;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.schedule-item:hover {
    background: white;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.schedule-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6B7280;
}

.schedule-time i {
    font-size: 14px;
    opacity: 0.5;
    flex-shrink: 0;
}

.schedule-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.schedule-details .subject {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.schedule-details .teacher {
    font-size: 0.8rem;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.schedule-details .teacher i {
    font-size: 14px;
    opacity: 0.5;
    flex-shrink: 0;
}

.schedule-details .location {
    font-size: 0.8rem;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.schedule-details .location i {
    font-size: 14px;
    opacity: 0.5;
    flex-shrink: 0;
}

.schedule-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
    opacity: 0.7;
}
}

/* Mobile: 1 column */
@media (max-width: 768px) {
    .today-schedule-list {
        grid-template-columns: 1fr;
    }
}

/* Schedule Action Footer */
.schedule-action-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f3f4f6;
    text-align: center;
}

.btn-view-full-schedule {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.btn-view-full-schedule:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.btn-view-full-schedule:active {
    transform: translateY(0);
}

.btn-view-full-schedule i:first-child {
    font-size: 1rem;
}

.btn-view-full-schedule i:last-child {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.btn-view-full-schedule:hover i:last-child {
    transform: translateX(3px);
}

/* Section Info Card */
.section-info-card {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border-left: 4px solid var(--primary);
}

.section-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.section-detail-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-detail-item .label {
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-detail-item .value {
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 700;
}

/* Adviser Card */
.adviser-card {
    background: linear-gradient(135deg, #FEF3C7 0%, #FED7AA 100%);
    border-left: 4px solid #F59E0B;
}

/* Grades Table */
.grade-period-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.period-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray);
}

.period-btn:hover {
    background: var(--light-gray);
    border-color: var(--primary);
}

.period-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.overall-performance {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.performance-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.performance-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.performance-card.average {
    border-color: #3B82F6;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}

.performance-card.highest {
    border-color: #10B981;
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
}

.performance-card.lowest {
    border-color: #F59E0B;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
}

.performance-card h4 {
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.performance-card .grade {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.performance-card .subject {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 5px;
}

.grades-table-container {
    overflow-x: auto;
}

.grades-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.grades-table thead {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
}

.grades-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 2px solid var(--border);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grades-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--dark);
}

.grades-table tbody tr:hover {
    background: var(--light-gray);
}

.grades-table .subject-cell {
    font-weight: 600;
}

.grades-table .grade-cell {
    text-align: center;
    font-weight: 700;
}

.grades-table .average-cell {
    text-align: center;
    font-weight: 700;
    color: var(--primary);
}

/* Grade Badge Colors */
.grade-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
}

.grade-excellent {
    background: #D1FAE5;
    color: #065F46;
}

.grade-good {
    background: #DBEAFE;
    color: #1E3A8A;
}

.grade-fair {
    background: #FEF3C7;
    color: #92400E;
}

.grade-needs-improvement {
    background: #FEE2E2;
    color: #991B1B;
}

/* Performance Summary */
.performance-summary {
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border-left: 4px;
    /* padding: 10px 25px; */
    border-radius: 12px;
    /* margin-top: 15px; */
}

.performance-summary h4 {
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.performance-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.performance-summary li {
    padding: 8px 0;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.performance-summary li::before {
    content: "✓";
    color: #10B981;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Schedule Table */
.schedule-table-container {
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.schedule-table thead {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
}

.schedule-table th {
    padding: 18px 12px;
    text-align: center;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 2px solid var(--border);
    font-size: 1rem;
}

.schedule-table td {
    padding: 20px 14px;
    border: 1px solid var(--border);
    text-align: center;
    font-size: 0.95rem;
    vertical-align: middle;
}

.schedule-table tbody tr:hover {
    background: var(--light-gray);
}

.schedule-table .time-cell {
    font-weight: 600;
    background: var(--light-gray);
    white-space: nowrap;
    font-size: 0.95rem;
}

.schedule-table .subject-name {
    font-weight: 600;
    color: var(--dark);
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.schedule-table .teacher-name {
    color: var(--gray);
    font-size: 0.9rem;
}

.schedule-table .room-number {
    color: var(--primary);
    font-size: 0.85rem;
    display: block;
    margin-top: 4px;
}

/* ====================================
   TIMETABLE TABLE LAYOUT (TABLE BASED)
   ==================================== */
.timetable-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.student-timetable-wrapper {
    overflow-x: auto;
}

.timetable-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.timetable-table thead {
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.timetable-table th {
    padding: 16px 12px;
    text-align: center;
    font-weight: 700;
    color: white;
    border-right: 1px solid #1E40AF;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timetable-table th:first-child {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
    border-right: 2px solid #1E40AF;
}

.timetable-table th:last-child {
    border-right: none;
}

.timetable-table td {
    padding: 8px 6px;
    border: 1px solid #E5E7EB;
    text-align: center;
    vertical-align: middle;
    min-height: 70px;
}

.timetable-table td:first-child {
    background: #F3F4F6;
    border-right: 2px solid #D1D5DB;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    white-space: nowrap;
    padding: 12px 8px;
}

.timetable-table tbody tr:nth-child(odd) td:first-child {
    background: #F9FAFB;
}

.timetable-table tbody tr:hover td:not(:first-child) {
    background: #F8FAFC;
}

/* Class Period Block */
.class-period-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    border-radius: 8px;
    padding: 10px 8px;
    margin: 2px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.class-period-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.class-period-block .subject-text {
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 4px;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
    word-wrap: break-word;
}

.class-period-block .time-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
}

.class-period-block .time-text i {
    font-size: 9px;
}

.class-period-block .teacher-text {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    white-space: normal;
    word-wrap: break-word;
    font-weight: 500;
}

/* Empty cell styling */
.timetable-table td:not(:first-child):empty::after,
.timetable-table td:not(:first-child):has(> *:only-child[style*="color: rgb(156, 163, 175)"])::after {
    content: '--';
    color: #9CA3AF;
}

/* Teachers List */
.teachers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.teacher-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.teacher-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.teacher-info .subject {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.teacher-info .name {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 600;
}

/* Profile Section */
.profile-header-card {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border: none;
    color: white;
    text-align: center;
    padding: 40px 30px;
}

.profile-photo {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.profile-header-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-header-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 5px 0;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.profile-info-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.profile-info-header {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    padding: 15px 20px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-info-header h3 {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 600;
    margin: 0;
}

.profile-info-body {
    padding: 20px;
}

.profile-field {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
}

.profile-field:last-child {
    border-bottom: none;
}

.profile-field .label {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.profile-field .value {
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
}

/* Edit Profile Button */
.edit-profile-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.edit-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* No Data Message */
.no-data-message {
    text-align: center;
    color: var(--gray);
    padding: 40px 20px;
    font-size: 1rem;
}

/* Classmates Info Styles */
.classmates-info {
    text-align: center;
    padding: 20px;
}

.classmates-info .stat-item {
    margin-bottom: 20px;
}

.classmates-info .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.classmates-info .stat-label {
    font-size: 1.1rem;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-note {
    background: var(--light-gray);
    padding: 15px 20px;
    border-radius: 8px;
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.note-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* Subject Teachers List */
.subject-teachers-list {
    margin-top: 30px;
}

.subject-teachers-list h3 {
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

/* Schedule Actions */
.schedule-actions {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--dark);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px 30px;
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

.profile-photo-container {
    text-align: center;
}

.profile-header-info h3 {
    font-size: 2rem;
    color: white;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.profile-header-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 5px 0;
    font-weight: 500;
}

.profile-ids {
    font-size: 0.95rem;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.profile-ids strong {
    color: var(--white);
    font-weight: 700;
}

/* Profile Information Sections */
.profile-info-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.profile-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px 30px;
}

.profile-section h3 {
    color: var(--dark);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    row-gap: 25px;
}

.profile-section:last-child .info-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.profile-section:last-child .info-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 25px 0;
    border-bottom: 1px solid #E5E7EB;
}

.profile-section:last-child .info-row:last-child {
    border-bottom: none;
}

.profile-section:last-child .info-row > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-section:last-child .info-row.full-width {
    display: flex;
    flex-direction: column;
    gap: 8px;
    grid-template-columns: none;
    padding-bottom: 25px;
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    border-bottom: none;
}

.info-label {
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
}

.info-value {
    color: var(--dark);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    word-break: break-word;
}

.info-row.full-width {
    grid-column: 1 / -1;
}

/* Profile Actions */
.profile-actions {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

/* Responsive for Enrolled Dashboard */
@media (max-width: 768px) {
    .quick-stats-grid {
        grid-template-columns: 1fr;
    }

    .overall-performance {
        grid-template-columns: 1fr;
    }

    .schedule-table {
        font-size: 0.75rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 8px 5px;
    }

    .teachers-list,
    .teachers-grid {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-info-sections {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-row {
        flex-direction: column;
        gap: 5px;
    }

    .info-row .info-value {
        text-align: left;
    }

    /* Contact Information Section - Mobile Fix */
    .profile-section {
        padding: 20px 15px;
    }

    .profile-section h3 {
        font-size: 1rem;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    /* Fix 3-column grid to single column on mobile */
    .profile-section:last-child .info-row {
        grid-template-columns: 1fr !important;
        gap: 15px;
        padding: 20px 0;
    }

    .profile-section:last-child .info-row > div {
        gap: 6px;
    }

    .info-label {
        font-size: 0.8rem;
    }

    .info-value {
        font-size: 0.95rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .section-details-grid {
        grid-template-columns: 1fr;
    }

    .quick-access-grid {
        grid-template-columns: 1fr;
    }

    .academic-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .profile-section {
        padding: 15px 12px;
        margin: 0 -5px;
    }

    .profile-section h3 {
        font-size: 0.95rem;
    }

    .profile-section:last-child .info-row {
        padding: 15px 0;
        gap: 12px;
    }

    .info-label {
        font-size: 0.75rem;
    }

    .info-value {
        font-size: 0.9rem;
    }
}

/* Quick Access Cards */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.quick-access-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: left;
}

.quick-access-card:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(129, 140, 248, 0.15));
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Removed - conflicted with UNIFORM ICON SYSTEM at line 547 */
/* .qa-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
} */

.quick-access-card:hover .qa-icon {
    background: rgba(79, 70, 229, 0.1);
    transform: scale(1.15);
}

.qa-content {
    flex: 1;
}

.qa-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 4px 0;
    transition: color 0.3s ease;
}

.quick-access-card:hover .qa-content h4 {
    color: var(--primary);
}

.qa-content p {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0;
    transition: color 0.3s ease;
}

.quick-access-card:hover .qa-content p {
    color: var(--gray);
}

/* Academic Information Grid */
.academic-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.academic-info-item {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.academic-info-item:hover {
    background: #E5E7EB;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.aci-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    flex-shrink: 0;
}

.aci-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.aci-label {
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aci-value {
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 700;
}

/* ========================================
   MY GRADES SECTION - ENHANCED DESIGN
   ======================================== */

/* Two Column Layout */
.grades-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 25px;
    margin-bottom: 25px;
}

.grades-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.current-column {
    min-width: 0;
}

.history-column {
    position: sticky;
    top: 30px;
    align-self: flex-start;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: visible;
}

.history-container {
    min-height: 0;
    overflow: visible;
}

/* Scrollbar styling for history column */
.history-column::-webkit-scrollbar {
    width: 8px;
}

.history-column::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 4px;
}

.history-column::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.history-column::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

/* Grading Scale Legend */
.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legend-badge {
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 80px;
    text-align: center;
}

.legend-badge.excellent {
    background: #D1FAE5;
    color: #065F46;
}

.legend-badge.very-good {
    background: #DBEAFE;
    color: #1E3A8A;
}

.legend-badge.good {
    background: #FEF3C7;
    color: #92400E;
}

.legend-badge.fair {
    background: #FED7AA;
    color: #9A3412;
}

.legend-badge.poor {
    background: #FEE2E2;
    color: #991B1B;
}

.legend-text {
    color: var(--dark);
    font-size: 0.95rem;
}

/* Current Grade Card - Highlighted */
.current-grade-card {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1), var(--shadow-xl);
}

/* Status Badge - Current */
.status-badge.current {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #065F46;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

/* Performance Summary Grid */
.performance-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.summary-card {
    border-radius: 10px;
    padding: 18px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.summary-card:first-child {
    background: #D1FAE5;
}

.summary-card:nth-child(2) {
    background: #FEF3C7;
}

.summary-card:nth-child(3) {
    background: #EDE9FE;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.summary-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-icon i {
    color: white;
    font-size: 1.2rem;
}

.summary-content {
    flex: 1;
}

.summary-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(0,0,0,0.55);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.summary-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
    line-height: 1.1;
}

.summary-rank {
    display: block;
    font-size: 0.8rem;
    color: rgba(0,0,0,0.5);
    margin-top: 3px;
}

/* History Container - Wrapper for all history cards */
.history-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    min-height: auto;
    height: auto;
}

.history-container .card-header {
    padding: 20px 25px;
    background: var(--white);
    color: var(--dark);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 12px 12px 0 0;
}

.history-container .card-header i {
    color: var(--primary);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.history-container .card-header > div {
    flex: 1;
}

.history-container .card-header h2 {
    color: var(--dark);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.history-container .card-subtitle {
    color: var(--gray);
    font-size: 0.875rem;
    margin: 0;
}

.history-container .card-body {
    padding: 20px;
    overflow: visible;
}

/* Individual Grade History Cards */
.history-card {
    margin-bottom: 15px;
    background: #F8FAFC;
    border-radius: 10px;
}

.history-card:last-child {
    margin-bottom: 0;
}

.history-header {
    cursor: pointer;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background 0.2s ease;
    background: white;
}

.history-header:hover {
    background: #F1F5F9;
}

.history-icon-box {
    width: 45px;
    height: 45px;
    background: #8B5CF6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.history-title-section {
    flex: 1;
    min-width: 0;
}

.history-title-section .card-title {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
}

.grade-year-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #E5E7EB;
    color: var(--gray);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.history-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.history-avg {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
}

.history-body {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.history-body.collapsed {
    max-height: 0;
    padding: 0 25px !important;
}

/* History Preview Layout */
.history-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.preview-stat {
    background: #F8FAFC;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
}

.preview-stat:first-child {
    background: #D1FAE5;
}

.preview-stat:nth-child(2) {
    background: #FEF3C7;
}

.preview-stat:nth-child(3) {
    background: #EDE9FE;
}

.preview-label {
    display: block;
    font-size: 0.7rem;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.preview-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.preview-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #F8FAFC;
    border-radius: 6px;
    font-size: 0.875rem;
}

.preview-row span:first-child {
    font-weight: 500;
    color: var(--dark);
}

.preview-row .grade-cell {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

.toggle-btn {
    background: var(--light-gray);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: var(--border);
}

.toggle-btn i {
    color: var(--gray);
    transition: transform 0.3s ease;
}

.toggle-btn.rotated i {
    transform: rotate(180deg);
}

/* Grades Table Enhancements */
.grades-table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.grades-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.grades-table thead {
    background: linear-gradient(135deg, #F8FAFC, #F1F5F9);
}

.grades-table th {
    padding: 15px 12px;
    text-align: center !important;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.grades-table th:first-child {
    text-align: left !important;
}

.grades-table tbody tr {
    border-bottom: 1px solid #F3F4F6;
    transition: background 0.2s ease;
}

.grades-table tbody tr:hover {
    background: #FAFBFC;
}

.grades-table td {
    padding: 15px 12px;
    font-size: 0.95rem;
    text-align: center !important;
}

.grades-table td:first-child {
    text-align: left !important;
}

.subject-name {
    font-weight: 600;
    color: var(--dark);
}

.teacher-name {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Grade Cells with Color Coding */
.grade-cell {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 45px;
    text-align: center;
}

.grade-cell.excellent {
    background: #D1FAE5;
    color: #065F46;
}

.grade-cell.very-good {
    background: #DBEAFE;
    color: #1E3A8A;
}

.grade-cell.good {
    background: #FEF3C7;
    color: #92400E;
}

.grade-cell.fair {
    background: #FED7AA;
    color: #9A3412;
}

.grade-cell.poor {
    background: #FEE2E2;
    color: #991B1B;
}

/* Remarks Column */
.grades-table td:last-child {
    text-align: left !important;
    padding-left: 20px;
}

.remark {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.remark.excellent {
    background: #D1FAE5;
    color: #065F46;
}

.remark.very-good {
    background: #DBEAFE;
    color: #1E3A8A;
}

.remark.good {
    background: #FEF3C7;
    color: #92400E;
}

.remark.fair {
    background: #FED7AA;
    color: #9A3412;
}

.remark.poor {
    background: #FEE2E2;
    color: #991B1B;
}

/* View Full Button */
.view-full-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.view-full-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.view-full-btn i {
    margin-right: 0.5rem;
}

/* Back Button - Gray */
.view-full-btn.back-btn {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
}

.view-full-btn.back-btn:hover {
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* Archived Header */
.archived-header {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%) !important;
    padding: 20px 25px !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.archived-header i {
    color: white;
    font-size: 1.25rem;
}

.archived-header h2 {
    flex: 1;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.archived-badge {
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Responsive Design for Grades Section */

/* Extra Large Desktop (1600px+) */
@media (min-width: 1600px) {
    .grades-layout {
        grid-template-columns: 1fr 420px;
        gap: 30px;
    }
    
    .performance-summary {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

/* Large Desktop (1400px - 1599px) */
@media (max-width: 1599px) and (min-width: 1400px) {
    .grades-layout {
        grid-template-columns: 1fr 400px;
        gap: 25px;
    }
}

/* Standard Desktop (1200px - 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
    .grades-layout {
        grid-template-columns: 1fr 380px;
        gap: 20px;
    }
    
    .performance-summary {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .summary-card {
        padding: 16px 14px;
    }
}

/* Small Desktop / Large Tablet Landscape (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .grades-layout {
        grid-template-columns: 1fr 360px;
        gap: 18px;
    }
    
    .history-column {
        position: relative;
        top: 0;
        max-height: 600px;
    }
    
    .performance-summary {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .summary-card {
        padding: 14px 12px;
    }
    
    .summary-icon {
        width: 42px;
        height: 42px;
    }
    
    .history-icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .grades-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .history-column {
        position: relative;
        top: 0;
        max-height: none;
        overflow-y: visible;
    }
    
    .performance-summary {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .summary-card {
        padding: 15px 12px;
    }
    
    .summary-icon {
        width: 45px;
        height: 45px;
    }
    
    .grades-table-container {
        overflow-x: auto;
    }
    
    .grades-table {
        min-width: 750px;
    }
    
    .history-header {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .history-icon-box {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }
}

/* Mobile Landscape / Small Tablet (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .grades-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .legend-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .performance-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .summary-card:last-child {
        grid-column: 1 / -1;
    }
    
    .summary-value {
        font-size: 1.6rem;
    }
    
    .summary-card {
        padding: 16px;
    }
    
    .summary-icon {
        width: 40px;
        height: 40px;
    }
    
    .grades-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .grades-table {
        min-width: 700px;
    }
    
    .grades-table th,
    .grades-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    .grade-cell {
        padding: 4px 8px;
        font-size: 0.85rem;
        min-width: 45px;
    }
    
    .remark {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    .history-header {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .history-icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .history-title-section .card-title {
        font-size: 1rem;
    }
    
    .grade-year-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .card-header h2 {
        font-size: 1.1rem;
    }
    
    .history-container .card-header {
        padding: 15px 18px;
    }
}

/* Mobile Portrait (below 576px) */
@media (max-width: 575px) {
    .grades-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .legend-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .legend-item {
        padding: 10px 12px;
    }
    
    .performance-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .summary-card {
        padding: 14px;
        gap: 10px;
    }
    
    .summary-icon {
        width: 38px;
        height: 38px;
    }
    
    .summary-icon i {
        font-size: 1rem;
    }
    
    .summary-value {
        font-size: 1.5rem;
    }
    
    .summary-label {
        font-size: 0.7rem;
    }
    
    .grades-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    .grades-table {
        min-width: 650px;
    }
    
    .grades-table th,
    .grades-table td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
    
    .grade-cell {
        padding: 3px 6px;
        font-size: 0.8rem;
        min-width: 40px;
    }
    
    .remark {
        padding: 3px 8px;
        font-size: 0.7rem;
    }
    
    .history-header {
        padding: 12px;
        gap: 10px;
    }
    
    .history-icon-box {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .history-title-section .card-title {
        font-size: 0.95rem;
    }
    
    .grade-year-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
    
    .toggle-btn {
        width: 30px;
        height: 30px;
    }
    
    .toggle-btn i {
        font-size: 0.9rem;
    }
    
    .card-header h2 {
        font-size: 1rem;
    }
    
    .card-subtitle {
        font-size: 0.75rem;
    }
    
    .history-container .card-header {
        padding: 12px 15px;
        gap: 6px;
    }
    
    .history-container .card-header i {
        font-size: 1.1rem;
    }
    
    .preview-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .preview-stat {
        padding: 10px;
    }
    
    .preview-label {
        font-size: 0.65rem;
    }
    
    .preview-value {
        font-size: 1.1rem;
    }
    
    .preview-table {
        gap: 6px;
    }
    
    .preview-row {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .view-full-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .summary-value {
        font-size: 1.25rem;
    }
    
    .summary-label {
        font-size: 0.7rem;
    }
    
    .grades-table {
        font-size: 0.8rem;
    }
    
    .grades-table th,
    .grades-table td {
        padding: 8px 6px;
    }
    
    .performance-card .grade {
        font-size: 2rem;
    }
}

/* ============================================
   RE-ENROLLMENT SECTION STYLES
   ============================================ */

/* Re-Enrollment Status Banner */
.re-enrollment-status-banner .card-body {
    padding: 2rem;
}

.loading-message {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
    font-size: 1rem;
}

/* Re-Enrollment Form Card - Premium Design */
.re-enrollment-form-card {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
}

.re-enrollment-form-card .card-header {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border: none;
    padding: 25px 30px;
}

.re-enrollment-form-card .card-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.re-enrollment-form-card .card-title .title-icon i {
    font-size: 1.6rem;
    opacity: 0.95;
}

/* Instructions Banner - Modern Gradient */
.re-enrollment-instructions {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border-left: 5px solid #6366F1;
    padding: 1.75rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.instruction-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.125rem;
}

.instruction-header i {
    color: #6366F1;
    font-size: 1.35rem;
    background: white;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.instruction-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.re-enrollment-instructions p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.125rem;
    font-size: 0.95rem;
}

.re-enrollment-instructions ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.re-enrollment-instructions ul li {
    padding: 0.625rem 0.625rem 0.625rem 2.5rem;
    position: relative;
    color: #475569;
    background: white;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.re-enrollment-instructions ul li:hover {
    background: #F8FAFC;
    transform: translateX(4px);
}

.re-enrollment-instructions ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 12px;
    color: #6366F1;
    font-size: 0.9rem;
    background: #EEF2FF;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

/* Re-Enrollment Form - Premium Card Design */
.re-enrollment-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0.5rem;
}

.form-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid #E5E7EB;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.form-section:hover {
    border-color: #C7D2FE;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding-bottom: 0.875rem;
    border-bottom: 2px solid #F3F4F6;
}

.section-title i {
    color: #6366F1;
    font-size: 1.25rem;
    background: #EEF2FF;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.info-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.info-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.info-grid-1col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.info-item label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1E293B;
    letter-spacing: 0.01em;
}

.required {
    color: #EF4444;
    font-weight: 700;
}

.info-item input,
.info-item textarea,
.info-item select {
    padding: 0.875rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    background: white;
}

.info-item input:hover,
.info-item textarea:hover,
.info-item select:hover {
    border-color: #C7D2FE;
}

.info-item input:focus,
.info-item textarea:focus,
.info-item select:focus {
    outline: none;
    border-color: #6366F1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: #FAFBFF;
}

.form-select {
    background-color: white;
    cursor: pointer;
}

.readonly-input {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    color: #64748B;
    cursor: not-allowed;
    border-color: #E2E8F0;
}

.readonly-input:hover {
    border-color: #E2E8F0 !important;
}

textarea {
    resize: vertical;
    font-family: inherit;
    min-height: 120px;
    line-height: 1.6;
}

/* Confirmation Checkbox */
.confirmation-checkbox {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.confirmation-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.confirmation-checkbox label {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--gray);
    cursor: pointer;
}

/* Confirmation Question */
.confirmation-question {
    padding: 1.5rem;
    background: #F3F4F6;
    border-radius: 8px;
}

.confirmation-text {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.yes-no-options {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #0985be;
}

.radio-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
}

/* Data Privacy Notice - Enhanced Design */
.data-privacy-notice {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-left: 5px solid #F59E0B;
    padding: 1.75rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.data-privacy-notice p {
    font-size: 0.875rem;
    line-height: 1.8;
    color: #78350F;
    text-align: justify;
}

/* Confirmation Checkbox - Enhanced */
.confirmation-checkbox {
    background: white;
    padding: 1.25rem;
    border-radius: 10px;
    border: 2px solid #E5E7EB;
    transition: all 0.3s ease;
}

.confirmation-checkbox:hover {
    border-color: #C7D2FE;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

.confirmation-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: #6366F1;
}

.confirmation-checkbox label {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #475569;
    cursor: pointer;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-submit {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    letter-spacing: 0.02em;
}

.btn-submit i {
    font-size: 1.125rem;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

.btn-submit:disabled {
    background: linear-gradient(135deg, #9CA3AF 0%, #6B7280 100%);
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

/* Field Error Message */
.field-error-message {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: #FEF2F2;
    border: 1.5px solid #FCA5A5;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    margin-top: -0.25rem;
    animation: slideDown 0.2s ease;
}

.field-error-message i {
    color: #F97316;
    font-size: 1rem;
    flex-shrink: 0;
}

.field-error-message .error-text {
    color: #991B1B;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
}

.info-item input.error {
    border-color: #F97316 !important;
    background: #FFF7ED;
}

.info-item input.error:focus {
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

/* Re-Enroll Message */
.re-enroll-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.3s ease;
}

.re-enroll-message.success {
    background: #D1FAE5;
    border-left: 4px solid #10B981;
    color: #065F46;
}

.re-enroll-message.error {
    background: #FEE2E2;
    border-left: 4px solid #EF4444;
    color: #991B1B;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Re-Enrollment Submitted Card */
.re-enrollment-submitted-card {
    margin-top: 1.5rem;
}

.submission-success-content {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: #10B981;
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.submission-success-content h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.submission-success-content > p {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Confirmation Details */
.confirmation-details {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.confirmation-details h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.25rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: var(--gray);
    font-size: 0.9375rem;
}

.detail-value {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9375rem;
}

/* Next Steps */
.next-steps {
    background: #FFFBEB;
    border-left: 4px solid #F59E0B;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: left;
}

.next-steps h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.next-steps ul {
    list-style: none;
    padding-left: 0;
}

.next-steps ul li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--gray);
    line-height: 1.6;
}

.next-steps ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #F59E0B;
    font-weight: 700;
}

/* Status Badge - Confirmed */
.status-badge.confirmed {
    background: #D1FAE5;
    color: #065F46;
}

/* Responsive Design for Re-Enrollment */
@media (max-width: 768px) {
    .info-grid-2col {
        grid-template-columns: 1fr;
    }

    .re-enrollment-instructions {
        padding: 1.25rem;
    }

    .form-section {
        padding: 1.25rem;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    .form-actions {
        justify-content: stretch;
    }

    .detail-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .submission-success-content {
        padding: 1.5rem;
    }
}
