/* SinavBox - Main Stylesheet - Design System Compliant */
:root {
    /* Primary Color: Brand Teal (aligned with landing page) */
    --primary-color: #5FA8B8;
    --primary-dark: #2C5F6F;
    --primary-hover: #2C5F6F;
    
    /* Secondary Color: Success Green */
    --secondary-color: #16A34A;
    
    /* Accent Color: Focus Amber */
    --accent-color: #F59E0B;
    
    /* Status Colors */
    --success-color: #16A34A;
    --danger-color: #ef4444;
    --warning-color: #F59E0B;
    --info-color: #5FA8B8;
    
    /* Backgrounds */
    --bg-main: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-secondary: #F8FAFC;
    
    /* Text Colors */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    
    /* Borders and Dividers */
    --border-color: #E5E7EB;
    --divider-color: #E5E7EB;
    
    /* Shadows - Design System Compliant */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Border Radius - rounded-lg (8px) */
    --border-radius: 0.5rem;
    --border-radius-md: 0.375rem;
    --border-radius-lg: 0.5rem;
    
    /* Transitions - 150-250ms as per design system */
    --transition: all 0.2s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.25s ease;
    
    /* Legacy compatibility */
    --light-color: #f8fafc;
    --dark-color: #0F172A;
    --bg-primary: #ffffff;
    
    /* Sidebar Colors - Design System Compliant (using primary color) */
    --sidebar-bg: var(--primary-color);
    --sidebar-bg-hover: rgba(255, 255, 255, 0.1);
    --sidebar-bg-active: rgba(255, 255, 255, 0.15);
    --sidebar-text: #ffffff;
    --sidebar-text-muted: rgba(255, 255, 255, 0.8);
    --sidebar-border: rgba(255, 255, 255, 0.1);
    --sidebar-header-bg: rgba(0, 0, 0, 0.1);
    --sidebar-user-bg: rgba(0, 0, 0, 0.1);
    --sidebar-footer-bg: rgba(0, 0, 0, 0.1);
    --sidebar-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --sidebar-glow: 0 0 20px rgba(30, 58, 138, 0.3);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-main);
    font-weight: 400;
}

/* RTL Font Family Support */
html[dir="rtl"] body {
    font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* Add padding only when header is present */
body:has(.header-modern) {
    padding-top: 80px; /* Account for fixed navbar */
}

/* Remove padding for sidebar layouts */
body:has(.student-layout),
body:has(.admin-layout) {
    padding-top: 0;
}

/* Typography - Design System Compliant */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-weight: 700; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }
h4 { font-weight: 600; }

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
}

/* Enhanced Navigation Styles */
.header-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

/* Ensure landing page header navbar uses full width */
.header-modern .navbar .container {
  
    padding-left: 1rem;
    padding-right: 1rem;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    text-decoration: none;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--primary-hover);
    transform: translateY(-1px);
    transition: var(--transition);
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.brand-icon:hover {
    background: var(--primary-hover);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.brand-tagline {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(30, 58, 138, 0.1);
    transform: translateY(-1px);
    transition: var(--transition);
}

.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(30, 58, 138, 0.1);
}

.user-menu {
    background: rgba(30, 58, 138, 0.1);
    border-radius: 8px;
    padding: 0.5rem 1rem !important;
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    transition: var(--transition);
}

.user-avatar:hover {
    background: var(--primary-hover);
}

.user-info {
    text-align: left;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}

.dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.btn-modern {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-modern:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 80px);
}

/* Enhanced Footer */
.footer-modern {
    background: var(--text-primary);
    color: white;
    margin-top: 0;
}

.footer-brand .brand-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
}

.footer-heading {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    color: white;
    transition: var(--transition);
}

/* Registration Page Styles */
.bg-gradient-primary {
    background: var(--primary-color) !important;
}

.feature-icon {
    transition: var(--transition);
}

.feature-icon:hover {
    transform: scale(1.1);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.input-group .btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.input-group .btn-outline-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.alert {
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.alert-success {
    background: rgba(22, 163, 74, 0.1);
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    background: rgba(30, 58, 138, 0.1);
    color: #1e40af;
    border-left: 4px solid var(--info-color);
}

.btn-close {
    filter: none;
}

/* Registration Benefits Card */
.card-header.bg-success {
    background: var(--success-color) !important;
}

/* Enhanced Form Styling */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Password Toggle Button */
.input-group .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid.py-5 {
        padding: 2rem 1rem !important;
    }
    
    .card {
        margin: 0 0.5rem;
    }
    
    .feature-icon {
        margin-bottom: 1rem;
    }
}

.contact-info .contact-item {
    color: #cbd5e1;
    font-weight: 500;
}

.contact-info .contact-item i {
    color: var(--primary-color);
    width: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.btn-success {
    background-color: var(--success-color);
    color: white;
    transition: var(--transition);
}

.btn-success:hover {
    background-color: #15803d;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transition: var(--transition);
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 16px 24px;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.card-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Legacy Hero Section (for backward compatibility) */
.hero {
    background: var(--primary-color);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Features */
.features {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.feature-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: var(--transition);
}

.feature-icon:hover {
    background: var(--primary-hover);
}

/* Dashboard Stats */
.dashboard-stats {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--bg-primary);
    cursor: pointer;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table th {
    background: var(--bg-secondary);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.table tbody tr:hover {
    background: var(--bg-secondary);
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(22, 163, 74, 0.1);
    border-color: var(--success-color);
    color: #065f46;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--accent-color);
    color: #92400e;
}

.alert-info {
    background: rgba(30, 58, 138, 0.1);
    border-color: var(--primary-color);
    color: #1e3a8a;
}

/* Progress */
.progress {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.2s ease;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: white;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

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

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

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

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

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

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .dashboard-stats {
        padding: 2rem 0;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem;
    }
    
    .navbar-brand .brand-tagline {
        display: none;
    }
    
    .user-info {
        display: none !important;
    }
}

/* Sidebar Layout Styles */
.student-layout,
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: var(--transition);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    box-shadow: var(--sidebar-shadow);
    backdrop-filter: blur(10px);
}

.sidebar-header {
    background: var(--sidebar-header-bg);
    border-bottom: 1px solid var(--sidebar-border);
    backdrop-filter: blur(10px);
    position: relative;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.sidebar-header .brand-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.sidebar-header .brand-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.sidebar-header .brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--sidebar-text);
    margin: 0;
}

.sidebar-header .brand-tagline {
    font-size: 0.75rem;
    color: var(--sidebar-text-muted);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.sidebar-user {
    background: var(--sidebar-user-bg);
    border-bottom: 1px solid var(--sidebar-border);
    backdrop-filter: blur(10px);
    position: relative;
}

.sidebar-user::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.sidebar-user .user-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

.sidebar-user .user-avatar:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.sidebar-user .user-name {
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.sidebar-user .user-role {
    font-size: 0.75rem;
    color: white !important;
    margin: 0;
    font-weight: 500;
    opacity: 0.8;
}

.sidebar-nav {
    padding: 1.5rem 0;
}

.sidebar-nav .nav-item {
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.sidebar-nav .nav-link {
    color: var(--sidebar-text-muted) !important;
    padding: 0.875rem 1.25rem !important;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.sidebar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: -1;
}

.sidebar-nav .nav-link:hover {
    color: var(--sidebar-text) !important;
    background: var(--sidebar-bg-hover) !important;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
    transition: var(--transition);
}

.sidebar-nav .nav-link:hover::before {
    opacity: 0.1;
}

.sidebar-nav .nav-link.active {
    color: var(--sidebar-text) !important;
    background: var(--sidebar-bg-active) !important;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(4px);
}

.sidebar-nav .nav-link.active::before {
    opacity: 1;
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.sidebar-nav .nav-link:hover i,
.sidebar-nav .nav-link.active i {
    transform: scale(1.05);
    color: white;
}

.sidebar-footer {
    background: var(--sidebar-footer-bg);
    border-top: 1px solid var(--sidebar-border);
    backdrop-filter: blur(10px);
    position: relative;
}

.sidebar-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.sidebar-footer .btn {
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--sidebar-text-muted);
}

.sidebar-footer .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-1px);
    transition: var(--transition);
}

.main-content {
    flex: 1;
    background: var(--bg-secondary);
    min-height: 100vh;
}

/* Add left margin only when sidebar is present */
.student-layout .main-content,
.admin-layout .main-content {
    margin-left: 280px;
}

.top-bar {
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
}

.top-bar h4 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

.sidebar-toggle {
    color: var(--text-primary);
    border: none;
    background: none;
    font-size: 1.1rem;
}

.sidebar-toggle:hover {
    color: var(--primary-color);
}

.content-wrapper {
    padding: 2rem;
}

/* Responsive sidebar */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
        box-shadow: var(--sidebar-shadow), var(--sidebar-glow);
    }
    
    .student-layout .main-content,
    .admin-layout .main-content {
        margin-left: 0;
    }
    
    .content-wrapper {
        padding: 1rem;
    }
}

/* Sidebar scrollbar styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Sidebar animations - Design System Compliant (150-250ms) */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-nav .nav-item {
    animation: slideInLeft 0.2s ease forwards;
}

.sidebar-nav .nav-item:nth-child(1) { animation-delay: 0.1s; }
.sidebar-nav .nav-item:nth-child(2) { animation-delay: 0.2s; }
.sidebar-nav .nav-item:nth-child(3) { animation-delay: 0.3s; }
.sidebar-nav .nav-item:nth-child(4) { animation-delay: 0.4s; }
.sidebar-nav .nav-item:nth-child(5) { animation-delay: 0.5s; }
.sidebar-nav .nav-item:nth-child(6) { animation-delay: 0.6s; }
.sidebar-nav .nav-item:nth-child(7) { animation-delay: 0.7s; }
.sidebar-nav .nav-item:nth-child(8) { animation-delay: 0.8s; }
.sidebar-nav .nav-item:nth-child(9) { animation-delay: 0.9s; }
.sidebar-nav .nav-item:nth-child(10) { animation-delay: 1.0s; }

/* Overlay for mobile sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

/* Welcome text styling */
.welcome-text {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Course Progress Card Styling */
.course-progress-card {
    background: var(--primary-color);
    color: white !important;
    border-radius: 8px;
    overflow: hidden;
}

.course-progress-card h6,
.course-progress-card p,
.course-progress-card small,
.course-progress-card .opacity-75 {
    color: white !important;
}

.course-progress-card .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.course-progress-card .btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: none;
    font-weight: 600;
}

.course-progress-card .btn-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

/* Animations - Design System Compliant (150-250ms) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.2s ease-out;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pagination - Override Bootstrap blue with primary color */
.page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
    transition: var(--transition);
}

.page-link:hover {
    color: var(--primary-dark);
    background-color: var(--gray-100);
    border-color: var(--primary-color);
}

.page-link:focus {
    color: var(--primary-dark);
    background-color: var(--gray-100);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(95, 168, 184, 0.25);
}

.page-item.active .page-link {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-item.active .page-link:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}