html {
    scroll-behavior: smooth;
}

:root {
    /* === MODERN SAAS PREMIUM THEME === */
    --primary: #6C4CF1;
    --primary-light: #8B5CF6;
    --primary-accent: #6C4CF1;
    --primary-dark: #4C2ECC;
    --gold: #8B5CF6;
    --gold-light: #F8D7FF;

    /* Backgrounds - Soft Clean */
    --bg-main: #FAFAFC;
    --bg-card: #FFFFFF;
    --card-bg: #FFFFFF;
    --bg-gradient: linear-gradient(135deg, #FAFAFC 0%, #F5F3FF 100%);
    --bg-surface: #FFFFFF;
    --bg-card-light: #FFFFFF;

    /* Text - Dark Professional */
    --text-main: #1F1F28;
    --text-muted: #6B7280;
    --text-on-dark: #FFFFFF;
    --text-heading: #111827;

    /* Borders & Shadows - Soft Glass */
    --glass-border: rgba(108, 76, 241, 0.1);
    --glass-shadow: 0 10px 30px rgba(108, 76, 241, 0.05);
    --shadow-soft: 0 4px 16px rgba(31, 31, 40, 0.05);
    --shadow-md: 0 8px 24px rgba(31, 31, 40, 0.08);
    --shadow-premium: 0 20px 50px rgba(108, 76, 241, 0.08);
    --shadow-sm: 0 2px 8px rgba(31, 31, 40, 0.04);
    --shadow-heavy: 0 25px 60px rgba(31, 31, 40, 0.1);
    --glow-blue: 0 0 20px rgba(108, 76, 241, 0.2);
    --glow-gold: 0 0 20px rgba(248, 215, 255, 0.4);

    /* Radius */
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --accent: #8B5CF6;
    --accent-color: #6C4CF1;

    /* Sidebar */
    --sidebar-width: 280px;
    --header-height: 70px;
    --primary-rgb: 108, 76, 241;
}

/* --- Thesis Tracking & Stage Management Premium Styles --- */
.search-section-premium {
    border-top: 4px solid var(--primary-accent);
}

.card-header-simple {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid #000000;
}

.card-header-simple h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #000000;
}

.search-actions-centered {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-search-main {
    padding: 12px 35px;
    font-weight: 600;
    font-size: 1rem;
}

.search-results-list-premium {
    padding: 0 20px 20px;
}

.results-header {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 600;
}

.results-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.result-item-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.result-item-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-accent);
}

.result-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-info strong {
    font-size: 1rem;
    color: var(--primary-dark);
}

.result-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-recall-sm {
    background: var(--primary-light);
    color: #ffffff !important;
    border: 1px solid var(--glass-border);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-recall-sm i {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.btn-recall-sm:hover {
    background: #334155;
    transform: translateY(-2px);
}

/* Roadmap Tracker */
.roadmap-main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: rgba(var(--primary-rgb), 0.02);
    border-bottom: 1px solid #333333;
    flex-wrap: wrap;
    gap: 20px;
}

.roadmap-main-header .header-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.roadmap-main-header .icon-circle {
    width: 50px;
    height: 50px;
    background: var(--primary-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.roadmap-main-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.roadmap-main-header p {
    margin: 5px 0 0;
    color: var(--text-muted);
}

.badge-progress-premium {
    background: var(--primary-accent);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
}

.roadmap-tracker-wrapper {
    padding: 40px 60px;
    position: relative;
    overflow-x: auto;
}

.roadmap-line-track {
    height: 4px;
    background: #e2e8f0;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.roadmap-line-fill {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    background: var(--primary-accent);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.roadmap-node {
    position: relative;
    z-index: 2;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.node-dot {
    width: 36px;
    height: 36px;
    background: #000000;
    border: 2px solid #000000;
    border-radius: 8px; /* Square look */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #ffffff !important;
    transition: all 0.3s;
}

.roadmap-node span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #000000;
    white-space: nowrap;
}

.roadmap-node.completed .node-dot {
    background: #10b981; /* Keep success color but square */
    border-color: #10b981;
    color: white;
}

.roadmap-node.completed span {
    color: #10b981;
}

.roadmap-node.active .node-dot {
    background: #000000;
    border-color: #000000;
    color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

/* Stage Cards Grid */
.thesis-tracking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
}

.tracking-stage-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
}

/* Specific Stage Colors - Soft & Light */
#stage-card-1 { background: #f0f9ff !important; border-color: #bae6fd !important; } /* Light Blue */
#stage-card-2 { background: #f0fdf4 !important; border-color: #bbf7d0 !important; } /* Light Green */
#stage-card-3 { background: #fffbeb !important; border-color: #fef08a !important; } /* Light Yellow */
#stage-card-4 { background: #f5f3ff !important; border-color: #ddd6fe !important; } /* Light Purple */
#stage-card-5 { background: #fff1f2 !important; border-color: #fecdd3 !important; } /* Light Pink */
#stage-card-6 { background: #fff7ed !important; border-color: #ffedd5 !important; } /* Light Orange */
#stage-card-7 { background: #f0fdfa !important; border-color: #99f6e4 !important; } /* Light Teal */

.tracking-stage-card.locked {
    opacity: 0.7;
    filter: grayscale(0.5);
    pointer-events: none;
}

.tracking-stage-card.locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 5;
}

.stage-header {
    padding: 20px;
    background: var(--bg-main);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stage-id {
    width: 36px;
    height: 36px;
    background: var(--primary-dark);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.stage-title {
    flex: 1;
}

.stage-title h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary-dark);
}

.status-badge-premium {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    background: #e2e8f0;
    color: #000000;
}

.status-badge-premium.completed {
    background: #dcfce7;
    color: #15803d;
}

.status-badge-premium.in-progress {
    background: #fef9c3;
    color: #854d0e;
}

.lock-icon {
    color: #000000;
}

.stage-body {
    padding: 20px;
}

.btn-save-stage {
    width: 100%;
    background: var(--primary-accent);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s;
}

.btn-save-stage:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-finish-tracking {
    background: #059669;
    font-size: 1.1rem;
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-dark);
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s;
}

.custom-checkbox input:checked + .checkmark {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
}

.custom-checkbox input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Student Status Card (Public Home) */
.student-status-card {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.status-header {
    background: var(--primary-dark);
    color: white;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-icon {
    width: 45px;
    height: 45px;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
}

.status-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.status-body {
    padding: 30px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #333333;
}

.status-row-featured {
    margin-top: 25px;
    padding: 20px;
    background: var(--bg-main);
    border-radius: 15px;
    border-right: 5px solid var(--primary-accent);
}

.current-stage-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    color: var(--primary-accent);
    font-weight: 700;
    font-size: 1.2rem;
}

.status-badge-lg {
    background: #dcfce7;
    color: #15803d;
    padding: 4px 15px;
    border-radius: 50px;
    font-weight: bold;
}

/* --- Responsive & Mobile Media Queries --- */

/* Sidebar Mobile Handling */
@media (max-width: 991px) {
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        height: auto;
        padding: 15px;
        position: relative;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .sidebar-header img {
        width: 40px;
    }

    .admin-sidebar nav {
        display: none; /* Hide nav on mobile by default, add hamburger logic if needed */
    }

    .admin-main {
        padding: 15px;
    }

    .thesis-tracking-grid {
        grid-template-columns: 1fr;
    }

    .roadmap-tracker-wrapper {
        padding: 20px;
    }

    /* Transform Horizontal Roadmap to Vertical Stepper on Mobile */
    .roadmap-line-track {
        flex-direction: column;
        height: auto;
        width: 2px;
        margin: 20px auto;
        background: #e2e8f0;
        gap: 30px;
    }

    .roadmap-line-fill {
        width: 2px !important;
        height: 0%; /* Dynamic via JS if updated */
        left: 50%;
        transform: translateX(-50%);
    }

    .roadmap-node {
        flex-direction: row;
        gap: 20px;
        width: 100%;
        justify-content: center;
    }

    .roadmap-node span {
        width: 100px;
        text-align: right;
    }
}

/* Mobile Toggle Button */
.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-dark);
    cursor: pointer;
    padding: 5px;
}

/* Sidebar Mobile Handling Improved */
@media (max-width: 991px) {
    .mobile-toggle-btn {
        display: block;
    }

    .admin-sidebar {
        flex-direction: column !important;
        align-items: flex-start !important;
        height: auto !important;
        transition: all 0.3s ease;
    }

    .sidebar-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .admin-sidebar nav {
        display: none;
        width: 100%;
        margin-top: 15px;
    }

    .admin-sidebar.open nav {
        display: block;
    }

    .admin-sidebar.open .sidebar-footer {
        display: block;
    }

    .sidebar-footer {
        display: none;
        width: 100%;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }

    .nav-item {
        padding: 12px 15px;
    }
}

/* Forms and Inputs on Mobile */
@media (max-width: 576px) {
    .form-row-2, .form-row-3 {
        grid-template-columns: 1fr;
    }

    .header-actions {
        width: 100%;
    }

    .header-actions button {
        width: 100%;
    }

    .btn-search-main {
        width: 100%;
    }
    
    .management-actions-row {
        flex-direction: column;
    }
    
    .management-actions-row button {
        width: 100%;
    }
}

.nav-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle i { width: 28px; height: 28px; }

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

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background-color: var(--bg-main);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    font-size: 15px;
}

/* Scrollbar Styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.hidden { display: none !important; }

/* Soft Light Glassmorphism Utility */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

/* Mobile Nav Styles */
@media (max-width: 991px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--primary);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        transition: 0.3s ease-in-out;
        z-index: 999;
        box-shadow: var(--glass-shadow);
        border-top: 1px solid var(--glass-border);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-link {
        color: var(--text-main) !important;
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        padding: 15px;
        border-bottom: 1px solid var(--glass-border);
    }

    .mobile-toggle {
        display: block !important;
    }
}

/* Hero Section & Search */
.nav-premium {
    position: fixed;
    top: 0; width: 100%;
    height: 80px;
    display: flex;
    flex-direction: row-reverse; /* RTL: Logo Right, Buttons Left */
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    z-index: 1100; /* Higher than other fixed elements */
    transition: var(--transition-smooth);
    background: transparent;
}

.nav-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 80px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
}

.nav-premium.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 70px;
    border-bottom: 1px solid rgba(108, 76, 241, 0.1);
    box-shadow: 0 4px 20px rgba(31, 31, 40, 0.05);
}

.nav-links {
    display: flex;
    gap: 35px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-premium.scrolled .nav-link {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-premium.scrolled .nav-link:hover {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

#management-portal-btn {
    background: rgba(108, 76, 241, 0.1) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(108, 76, 241, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#management-portal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 76, 241, 0.15);
    background: var(--primary) !important;
    color: white !important;
}

#management-portal-btn i {
    width: 18px;
    height: 18px;
}


/* Hero Section Refined - Light Premium SaaS */
.hero-section {
    min-height: 85vh;
    background: radial-gradient(circle at top right, rgba(248, 215, 255, 0.4) 0%, transparent 40%),
                radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
                var(--bg-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--text-main);
    text-align: center;
    padding: 120px 20px 80px;
    overflow: hidden;
    border-bottom: 1px solid rgba(108, 76, 241, 0.05);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(108, 76, 241, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(250, 250, 252, 1), transparent);
    z-index: 1;
    pointer-events: none;
}

@keyframes pulseGlow {
    from { opacity: 0.7; transform: translateX(-50%) scale(0.95); }
    to { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

.hero-content {
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Poppins', 'Cairo', sans-serif;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-heading);
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-family: 'Poppins', 'Tajawal', sans-serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 40px;
    color: var(--text-muted);
    font-weight: 500;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.btn-archive-hero {
    background: var(--gold);
    color: var(--primary);
    border: 2px solid var(--gold);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-archive-hero:hover {
    background: transparent;
    color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

.academic-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    opacity: 1;
}

.academic-divider .line {
    height: 2px;
    width: 100px;
    background: #000000;
}

.academic-divider i {
    color: var(--gold);
}

/* Search Box - Outdoorsy SaaS Pill Style */
.search-box {
    display: flex;
    gap: 0;
    padding: 8px;
    border-radius: 60px;
    background: #FFFFFF;
    border: 1px solid rgba(108, 76, 241, 0.08);
    box-shadow: 0 15px 35px rgba(31, 31, 40, 0.06), 0 5px 15px rgba(31, 31, 40, 0.03);
    margin-top: 40px;
    position: relative;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    z-index: 10;
    align-items: center;
}

.input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 30px;
    background: transparent;
    border-radius: 60px;
    color: var(--text-muted);
}

.input-wrapper input {
    border: none;
    outline: none;
    width: 100%;
    padding: 20px 0;
    font-family: inherit;
    font-size: 1.15rem;
    background: transparent;
    color: var(--text-main);
    font-weight: 500;
}

.input-wrapper input::placeholder {
    color: var(--text-muted) !important;
    font-weight: 400;
}

.search-box .btn-primary {
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.2rem;
    background: var(--text-main);
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(31, 31, 40, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-box .btn-primary:hover {
    background: var(--primary);
    transform: scale(1.05);
}

/* Hide the duplicate search text and replace it with an icon inside the button */
#search-btn {
    text-indent: -9999px;
    position: relative;
}
#search-btn::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-size: cover;
    text-indent: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.search-info {
    margin-top: 30px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 1;
}

/* Modals */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: flex-start; /* Changed from center to allow top-aligned scrolling */
    justify-content: center;
    z-index: 2000; /* Higher than nav (1000) */
    overflow-y: auto; /* Enable scrolling for long forms */
    padding: 40px 15px;
    backdrop-filter: blur(4px);
}

.modal-content {
    width: 100%;
    max-width: 450px;
    padding: 35px;
    border-radius: var(--radius-lg);
    position: relative;
    margin: auto;
    background: rgba(18, 28, 52, 0.97);
    border: 1px solid rgba(59, 108, 223, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(59, 108, 223, 0.1);
    color: var(--text-main);
}

body.modal-open {
    overflow: hidden;
    height: 100vh;
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-main);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: var(--transition-smooth);
}

.close-modal:hover {
    background: var(--bg-card);
    transform: scale(1.1);
    color: var(--danger);
}

/* Result Page */
#student-result-page {
    padding: 50px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.back-btn {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.btn-home-premium {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    font-size: 0.95rem;
}

.btn-home-premium:hover {
    background: var(--primary-dark) !important;
    transform: translateX(-5px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.badge-status {
    background: var(--success);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 800;
}

/* Timeline Vertical */
.timeline-vertical {
    margin-top: 30px;
}

.timeline-item {
    display: flex;
    gap: 30px;
    padding-bottom: 40px;
    position: relative;
}

.timeline-item::after {
    content: "";
    position: absolute;
    top: 30px; right: 14px;
    width: 2px; height: calc(100% - 30px);
    background: #e2e8f0;
}

.timeline-item:last-child::after { display: none; }

.t-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-item.done .t-icon { background: var(--primary); color: white; }
.timeline-item.active .t-icon { background: var(--accent-color); color: white; }

.t-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.t-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.glass-inner {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(59, 108, 223, 0.15);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fadeInUp {
    animation: fadeInUp 1s ease forwards;
}

/* Login Page Layout */
#login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    position: relative;
    padding: 20px;
}

#login-container::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

.login-card {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    z-index: 1;
    background: #ffffff;
    border: 2px solid #000000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.logo-section {
    margin-bottom: 35px;
}

.logo {
    width: 100px;
    margin-bottom: 20px;
}

.login-card h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.login-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form Elements */
.form-group {
    text-align: right;
    margin-bottom: 20px;
}

[dir="ltr"] .form-group { text-align: left; }

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #000000;
    color: #ffffff !important;
    stroke: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    z-index: 2;
    padding: 6px;
}

[dir="ltr"] .input-with-icon i { right: auto; left: 10px; }

.input-with-icon input {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    background: var(--bg-card);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

[dir="ltr"] .input-with-icon input { padding: 14px 15px 14px 45px; }

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary i {
    width: 18px;
}

.login-footer {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
}

#lang-toggle {
    background: none;
    border: 1px solid #e2e8f0;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 600;
}

/* --- Premium Admin Dashboard UI --- */
.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    background: var(--bg-main);
}

.admin-sidebar {
    background: #FFFFFF !important;
    border-left: 1px solid rgba(108, 76, 241, 0.1) !important;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 10px 0 30px rgba(31, 31, 40, 0.03);
    width: 280px;
    height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 0;
    scrollbar-width: thin;
}

/* Independent Scroll Utility */
.independent-scroll {
    overflow-y: auto;
    scrollbar-width: thin;
}

.independent-scroll::-webkit-scrollbar,
.admin-sidebar::-webkit-scrollbar,
.admin-main::-webkit-scrollbar {
    width: 5px;
}

.independent-scroll::-webkit-scrollbar-thumb,
.admin-sidebar::-webkit-scrollbar-thumb,
.admin-main::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
}

.independent-scroll:hover::-webkit-scrollbar-thumb,
.admin-sidebar:hover::-webkit-scrollbar-thumb,
.admin-main:hover::-webkit-scrollbar-thumb {
    background: rgba(108, 76, 241, 0.2);
}

.independent-scroll::-webkit-scrollbar-thumb:hover,
.admin-sidebar::-webkit-scrollbar-thumb:hover,
.admin-main::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.sidebar-header {
    padding: 0 15px 30px;
    border-bottom: 1px solid rgba(108, 76, 241, 0.1);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-header i {
    width: 44px;
    height: 44px;
    background: rgba(108, 76, 241, 0.1);
    color: var(--primary) !important;
    stroke: var(--primary) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    padding: 8px;
}

.sidebar-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-heading) !important;
    margin: 0;
}

.admin-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.admin-sidebar .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    color: var(--text-muted) !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    border: 1px solid transparent;
}

.admin-sidebar .nav-item.active {
    background: rgba(108, 76, 241, 0.08) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    border-color: rgba(108, 76, 241, 0.2);
    box-shadow: 0 4px 15px rgba(108, 76, 241, 0.05);
}

.admin-sidebar .nav-item.active i {
    background: var(--primary) !important;
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.admin-sidebar .nav-item i {
    width: 34px;
    height: 34px;
    background: rgba(108, 76, 241, 0.05);
    color: var(--text-muted) !important;
    stroke: var(--text-muted) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    padding: 6px;
}

.admin-sidebar .nav-item:hover i {
    transform: scale(1.1);
}

.admin-sidebar .nav-item.active i {
    background: var(--bg-card);
    color: #000000 !important;
    stroke: #000000 !important;
}

.admin-main {
    padding: 40px;
    height: 100vh;
    overflow-y: auto;
    background: var(--bg-main);
    flex: 1;
    scroll-behavior: smooth;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dashboard-header h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #000000 !important;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    margin: 20px 0;
    cursor: pointer;
    transition: 0.3s;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.05);
}

.upload-area i {
    width: 48px; height: 48px;
    color: var(--primary);
    margin-bottom: 15px;
}

.chart-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.table-section {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin-top: 30px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
}

/* Main Dashboard Layout */
#main-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
#sidebar {
    width: var(--sidebar-width);
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 100;
    background: var(--primary);
    border-left: 1px solid var(--glass-border);
}

[dir="ltr"] #sidebar { border-left: none; border-right: 1px solid var(--glass-border); }

.sidebar-header {
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-logo {
    width: 40px;
}

.univ-name {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--primary-dark);
    line-height: 1.2;
}

.sidebar-nav {
    flex: 1;
    padding: 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-item:hover, .nav-item.active {
    background: rgba(0, 0, 0, 0.1);
    color: var(--primary);
}

.nav-item.active {
    font-weight: 700;
    background: var(--primary);
    color: white;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 700;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Content Area */
#content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

#top-bar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

#page-title {
    font-size: 1.25rem;
    font-weight: 800;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Admin Table Actions */
.table-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #475569;
}

.btn-icon:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-2px);
}

.btn-icon.text-danger {
    color: #ef4444;
}

.btn-icon.text-danger:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.btn-icon i {
    width: 16px;
    height: 16px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-radius: var(--radius-md);
    width: 300px;
}

.search-bar input {
    background: none;
    border: none;
    outline: none;
    width: 100%;
    font-family: inherit;
    font-size: 0.9rem;
}

.notifications {
    position: relative;
    cursor: pointer;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 10px;
}

#dynamic-content {
    padding: 30px;
}

/* Component Specific Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 25px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i { width: 28px; }

/* Sections Styling */
section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
}

/* Premium Cards Grid */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

@media (max-width: 480px) {
    .premium-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.premium-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 33, 71, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 33, 71, 0.03);
    display: flex;
    flex-direction: column;
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 33, 71, 0.12);
}

.program-card {
    position: relative;
    border-bottom: 4px solid var(--primary);
}

.card-img {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.premium-card:hover .card-img img {
    transform: scale(1.1);
}

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
    line-height: 1.4;
}

.card-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex: 1;
    line-height: 1.6;
}

/* Downloads Section */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.download-item:hover {
    border-color: var(--accent);
    background: #fffdf5;
    transform: translateX(-5px);
}

.download-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-info h4 {
    font-size: 1rem;
    font-weight: 700;
}

.download-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Navbar Premium */
.nav-premium {
    position: fixed;
    top: 0; width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav-premium.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-premium .logo-top {
    height: 50px;
    filter: brightness(0) invert(1);
    transition: var(--transition-smooth);
}

.nav-premium.scrolled .logo-top {
    filter: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-premium.scrolled .nav-link {
    color: var(--primary);
}

.nav-link:hover {
    color: var(--accent) !important;
}

.management-btn {
    background: var(--accent);
    color: var(--primary);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.management-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .nav-premium { padding: 0 20px; }
    .nav-links { display: none; }
    .search-container h1 { font-size: 2.2rem; }
}
.status-badge.pending { background: rgba(245, 158, 11, 0.1); color: var(--warning); }

/* Timeline for student view */
.timeline {
    position: relative;
    padding: 20px 0;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 4px;
    background: #e2e8f0;
    z-index: 0;
}

.milestone {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 15%;
}

.milestone-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 4px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: 0.3s;
}

.milestone.completed .milestone-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.milestone.current .milestone-icon {
    border-color: var(--primary);
    color: var(--primary);
}

/* Statistics Section - Reference Style */
.stats-section {
    padding: 60px 20px;
    background: transparent;
    z-index: 10;
    position: relative;
    margin-top: -60px;
    width: 95%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-item {
    background: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid #000000;
    border-bottom: 6px solid #000000;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #000000;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 33, 71, 0.1);
}

.stat-icon-wrapper {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    transition: var(--transition-smooth);
}

.stat-icon-wrapper i {
    width: 32px;
    height: 32px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 700;
}

/* Colors matching the reference image */
.stat-item:nth-child(1) { border-bottom-color: #2563eb; }
.stat-item:nth-child(1) .stat-icon-wrapper { color: #2563eb; }
.stat-item:nth-child(1) .stat-number { color: #2563eb; }

.stat-item:nth-child(2) { border-bottom-color: #0ea5e9; }
.stat-item:nth-child(2) .stat-icon-wrapper { color: #0ea5e9; }
.stat-item:nth-child(2) .stat-number { color: #0ea5e9; }

.stat-item:nth-child(3) { border-bottom-color: #10b981; }
.stat-item:nth-child(3) .stat-icon-wrapper { color: #10b981; }
.stat-item:nth-child(3) .stat-number { color: #10b981; }

.stat-item:nth-child(4) { border-bottom-color: #f59e0b; }
.stat-item:nth-child(4) .stat-icon-wrapper { color: #f59e0b; }
.stat-item:nth-child(4) .stat-number { color: #f59e0b; }

.stat-item:nth-child(5) { border-bottom-color: #f97316; }
.stat-item:nth-child(5) .stat-icon-wrapper { color: #f97316; }
.stat-item:nth-child(5) .stat-number { color: #f97316; }

.stat-item:nth-child(6) { border-bottom-color: #8b5cf6; }
.stat-item:nth-child(6) .stat-icon-wrapper { color: #8b5cf6; }
.stat-item:nth-child(6) .stat-number { color: #8b5cf6; }

.stat-item:nth-child(7) { border-bottom-color: #ec4899; }
.stat-item:nth-child(7) .stat-icon-wrapper { color: #ec4899; }
.stat-item:nth-child(7) .stat-number { color: #ec4899; }

.stat-item:nth-child(8) { border-bottom-color: #ef4444; }
.stat-item:nth-child(8) .stat-icon-wrapper { color: #ef4444; }
.stat-item:nth-child(8) .stat-number { color: #ef4444; }

.stat-item:nth-child(9) { border-bottom-color: #6366f1; }
.stat-item:nth-child(9) .stat-icon-wrapper { color: #6366f1; }
.stat-item:nth-child(9) .stat-number { color: #6366f1; }

@media (max-width: 768px) {
    .stats-section { margin-top: -30px; }
    .stat-number { font-size: 1.8rem; }
}

/* Scroll Reveal — ظاهر دائماً */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fe-stat-skeleton .stat-number {
    opacity: 0.45;
    animation: fe-stat-pulse 1.2s ease-in-out infinite;
}

@keyframes fe-stat-pulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.85; }
}

/* Premium Card Enhancements */
.card-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.program-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 33, 71, 0.85);
    backdrop-filter: blur(8px);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.program-tag i {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    margin-top: 15px;
    transition: var(--transition-smooth);
}

.btn-text:hover {
    color: var(--accent);
    gap: 10px;
}

.btn-primary-outline {
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    font-size: 0.9rem;
}

.btn-primary-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 33, 71, 0.1);
}

.btn-primary-outline i {
    width: 18px;
    height: 18px;
}

.card-footer-action {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 33, 71, 0.05);
}

/* Quick Portals - Screenshot Style */
.quick-portals {
    margin-top: 40px;
    padding: 0 5%;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.portal-card {
    background: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid #000000;
}

.portal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.portal-info h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 5px;
}

.portal-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.portal-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}

.portal-icon-circle i {
    width: 28px;
    height: 28px;
}

/* Sidebar Resources - Screenshot Style */
.sidebar-resource-card {
    background: #ffffff;
    backdrop-filter: blur(8px);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #000000;
}

.sidebar-resource-card h4 {
    color: #000000;
}

.sidebar-resource-card:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--primary-accent);
    transform: translateX(-5px);
}

.resource-body h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.resource-meta {
    display: flex;
    gap: 15px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.resource-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.resource-meta i { width: 14px; height: 14px; }

.resource-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-icon-box i { width: 20px; height: 20px; }

.resource-action-chevron {
    color: #e2e8f0;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* Footer Enhancements */
.landing-footer {
    background: #ffffff;
    color: #000000;
    padding: 60px 20px;
    margin-top: 100px;
    border-top: 2px solid #000000;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-text h4 {
    margin: 0;
    font-size: 1.1rem;
}

.brand-text span {
    font-size: 0.85rem;
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* Error Text Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-text:not(.hidden) {
    animation: shake 0.3s ease-in-out;
}

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

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

.hidden {
    display: none !important;
}

/* --- Admin Layout & Dashboard Styles --- */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-main);
    color: #1e293b;
    font-family: 'Inter', sans-serif;
}

.admin-sidebar {
    width: 280px;
    height: 100vh;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    border-left: 1px solid #e2e8f0;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 0 10px;
}

.sidebar-header img {
    height: 40px;
}

.sidebar-header h3 {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 5px;
    font-weight: 600;
}

.nav-item i { width: 20px; }

.nav-item.active, .nav-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.admin-main {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 35px;
}

.dashboard-header h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 800;
}

.dashboard-header p {
    color: var(--text-muted);
}

.charts-row {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
    border: 1px solid #f1f5f9;
}

.stat-card:hover { transform: translateY(-5px); }

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
}

/* Tables */
.table-section {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}

/* Details Modal Specifics */
/* --- Premium Student Profile & Dashboard --- */
.container-premium {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

.student-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    border: 1px solid var(--glass-border);
    animation: slideDown 0.5s ease-out;
}

.profile-main-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-premium);
}

.avatar-circle i { width: 40px; height: 40px; }

.profile-text-area h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.profile-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.profile-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-meta i { width: 16px; height: 16px; color: var(--primary); }

.profile-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.badge-status-premium {
    padding: 8px 20px;
    background: var(--success);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Dashboard Grid */
.student-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

@media (max-width: 992px) {
    .student-dashboard-grid { grid-template-columns: 1fr; }
    .student-profile-header { flex-direction: column; gap: 20px; text-align: center; }
    .profile-main-info { flex-direction: column; }
    .profile-actions { align-items: center; }
}

.dashboard-col {
    padding: 30px;
    border-radius: var(--radius-lg);
}

.col-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--glass-border);
}

.col-header i { color: var(--primary); width: 24px; height: 24px; }
.col-header h3 { font-size: 1.3rem; color: var(--primary-dark); }

/* Premium Timeline */
.premium-timeline {
    position: relative;
    padding-right: 30px;
}

.premium-timeline::before {
    content: '';
    position: absolute;
    right: 7px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: #e2e8f0;
    border-radius: 3px;
}

.timeline-step {
    position: relative;
    padding-bottom: 40px;
}

.timeline-step:last-child { padding-bottom: 0; }

.t-marker {
    position: absolute;
    right: -30px;
    top: 0;
    width: 18px;
    height: 18px;
    background: var(--bg-card);
    border: 3px solid #cbd5e1;
    border-radius: 50%;
    z-index: 2;
    transition: var(--transition-smooth);
}

.timeline-step.done .t-marker {
    background: var(--success);
    border-color: var(--success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.timeline-step.active .t-marker {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(108, 76, 241, 0.22), 0 0 15px rgba(108, 76, 241, 0.35);
}

.t-content-premium {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.timeline-step.active .t-content-premium {
    border: 2px solid var(--primary-accent);
    border-right-width: 5px;
    background: linear-gradient(135deg, rgba(108, 76, 241, 0.1) 0%, rgba(108, 76, 241, 0.03) 45%, #ffffff 100%);
    box-shadow: 0 6px 22px rgba(108, 76, 241, 0.14);
}

.timeline-step.done .t-content-premium {
    border: 2px solid rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, #ffffff 100%);
}

.timeline-step.pending .t-content-premium {
    border: 1px solid #e2e8f0;
    background: #fafafa;
    opacity: 0.92;
}

.t-content-premium h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.t-content-premium span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Premium Info List */
.premium-info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.p-info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #333333;
}

.p-info-item:last-child { border-bottom: none; }

.p-info-item label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Professional Card Headers */
.card-header-premium {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.header-icon-box {
    width: 45px;
    height: 45px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(37, 99, 235, 0.05);
}

.header-icon-box i { width: 22px; height: 22px; }

.header-text h4 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin: 0;
}

.header-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Supervision Info Grid */
.supervision-info-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    border: 1px solid #f1f5f9;
    transition: var(--transition-smooth);
}

.info-row:hover {
    background: var(--bg-card);
    border-color: var(--primary-light);
    transform: translateX(-5px);
    box-shadow: var(--shadow-soft);
}

.info-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-label i { width: 18px; height: 18px; color: var(--primary); }

.info-value {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1rem;
}

/* Updates Feed */
.updates-feed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feed-item {
    background: var(--bg-card);
    padding: 18px;
    border-radius: var(--radius-md);
    border-right: 4px solid var(--primary);
    box-shadow: var(--shadow-soft);
}

.feed-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.feed-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
}

.empty-state-modern {
    text-align: center;
    padding: 30px;
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    border: 1px dashed #cbd5e1;
}

.empty-state-modern i {
    width: 35px; height: 35px;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.empty-state-modern p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Premium Sidebar Resources --- */
.sidebar-resource-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    text-decoration: none;
    margin-bottom: 12px;
    border: 1px solid #f1f5f9;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.sidebar-resource-card:hover {
    transform: translateX(-8px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-premium);
}

.resource-icon-box {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-icon-box.accent-guide {
    background: #eff6ff;
    color: var(--primary);
}

.resource-icon-box.accent-form {
    background: #fdf2f8;
    color: #db2777;
}

.resource-icon-box i { width: 22px; height: 22px; }

.resource-body { flex: 1; }

.resource-body h4 {
    font-size: 0.95rem;
    color: var(--text-main);
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.resource-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.resource-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.resource-action-chevron {
    color: #cbd5e1;
    transition: var(--transition-smooth);
}

.sidebar-resource-card:hover .resource-action-chevron {
    color: var(--primary);
    transform: translateX(-3px);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.details-modal-content {
    max-width: 800px !important;
    padding: 0 !important;
    overflow: hidden;
}

.details-hero-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-bottom: 5px solid var(--accent);
}

.details-body {
    padding: 40px;
    text-align: right;
}

.details-body h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 800;
}

.details-meta-tags {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.details-tag {
    background: var(--bg-main);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.details-tag i { width: 16px; color: var(--primary); }

.details-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    white-space: pre-wrap;
}

/* Smooth Image Loading */
.smooth-img {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.smooth-img.loaded {
    opacity: 1;
}

.img-placeholder {
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: skeleton-shine 1.5s linear infinite;
}

@keyframes skeleton-shine {
    to { background-position-x: -200%; }
}

@media (max-width: 768px) {
    .details-hero-img { height: 200px; }
    .details-body { padding: 25px; }
    .details-body h2 { font-size: 1.5rem; }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: right;
    padding: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 2px solid #f8fafc;
    font-weight: 700;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.9rem;
    color: #334155;
}

.data-table tr:hover { background: var(--bg-main); }

/* Utilities */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Media Queries --- */

@media (max-width: 1024px) {
    .hero-section { min-height: 80vh; }
    .search-container h1 { font-size: 2.8rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-premium {
        padding: 15px 20px;
        flex-direction: column;
        height: auto;
        gap: 0;
        align-items: stretch;
    }
    .nav-mobile-header { width: 100%; }
    .mobile-toggle { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 15px;
    }
    .nav-links.active { display: flex; }
    .management-btn { width: 100%; text-align: center; }

    /* Hero Section */
    .hero-section { padding-top: 100px; }
    .search-container h1 { font-size: 2rem; }
    .search-container p { font-size: 0.9rem; }
    .search-box { 
        flex-direction: column; 
        padding: 15px; 
        background: rgba(255, 255, 255, 0.15);
    }
    .input-wrapper { padding: 12px 20px; }
    .search-box .btn-primary { padding: 12px; margin-top: 5px; }

    /* Result Page */
    .result-header { flex-direction: column; gap: 20px; text-align: center; }
    .back-btn { width: 100%; justify-content: center; }
    .student-brief { margin: 15px 0; }
    .timeline-item { gap: 15px; }

    /* Stats */
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item { padding: 20px; }

    /* Sections */
    section { padding: 50px 15px; }
    .section-title h2 { font-size: 1.8rem; }
    
    /* Grids */
    .premium-grid, .download-grid { 
        grid-template-columns: 1fr !important; 
        gap: 20px; 
        display: grid !important; /* Ensure it is displayed */
    }
    
    #programs, 
    #landing-programs-grid,
    .program-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .premium-grid {
        display: grid !important;
    }
    
    #programs .scroll-reveal, 
    #landing-programs-grid .scroll-reveal,
    .program-card.scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        transition: none !important;
    }
    
    /* Footer */
    .footer-content { 
        flex-direction: column; 
        gap: 30px; 
        text-align: center; 
    }
    .footer-brand { justify-content: center; }
    .social-links { justify-content: center; }
    
    /* Admin */
    .admin-layout { flex-direction: column; }
    .admin-sidebar { 
        width: 100%; 
        height: auto; 
        position: relative; 
        border-left: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 15px;
    }
    .admin-main { padding: 20px 15px; }
    .dashboard-header { flex-direction: column; gap: 15px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .charts-row { flex-direction: column; }
    
    /* Table Responsive */
    .table-container { overflow-x: auto; }
    .data-table, .admin-table { min-width: 600px; }
}

@media (max-width: 480px) {
    .search-container h1 { font-size: 1.6rem; }
    .logo-top { height: 45px; }
    .hero-content { padding: 15px; }
    .modal-content { padding: 25px 20px; width: 95%; }
}
/* Admin Management Specific Styles */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: rgba(0, 33, 71, 0.05);
    padding: 15px;
    text-align: right;
    font-weight: 700;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #333333;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.admin-activity-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.admin-activity-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.admin-activity-card .no-img {
    height: 150px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.admin-activity-card .card-info {
    padding: 15px;
    flex: 1;
}

.admin-activity-card .card-actions {
    padding: 10px 15px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid #cbd5e1;
    background: var(--bg-card);
}

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

.w-full { width: 100%; }

/* Student Type Badge */
.type-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.type-internal { background: #fee2e2; color: #991b1b; }
.type-regular { background: #dcfce7; color: #166534; }

/* Dashboard Link Fix */
.link {
    color: var(--primary-light);
    text-decoration: underline;
    cursor: pointer;
}

/* Progress Bar Styles */
.progress-bar {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 15px;
}

#upload-progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

#upload-status-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* Search Results UI */
.results-list {
    max-height: 350px;
    overflow-y: auto;
    margin-top: 15px;
    padding-right: 5px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 33, 71, 0.1);
}

.result-item:hover {
    background: rgba(0, 33, 71, 0.05);
    border-color: var(--primary);
    transform: translateX(-5px);
}

.result-info h4 { 
    margin: 0; 
    font-size: 1rem; 
    color: var(--primary); 
    font-weight: 700;
}

.result-info span { 
    font-size: 0.85rem; 
    color: var(--text-muted); 
}

.result-action {
    color: var(--primary);
}

/* Activity Card Enhanced Styles */
.activity-card .card-img {
    position: relative;
}

.activity-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.activity-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.activity-meta i {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.card-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.btn-evidence {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-evidence:hover {
    color: var(--accent);
}

/* Admin Activity Styles */
.act-type {
    display: inline-block;
    font-size: 0.7rem;
    background: rgba(0, 33, 71, 0.05);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: 700;
}

.act-date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.admin-activity-card .card-info small {
    display: block;
    margin-top: 8px;
    color: var(--primary-light);
    font-weight: 600;
}

/* --- New Layout Components (Nafezly Redesign) --- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

.breadcrumb-area {
    margin-top: 40px;
    margin-bottom: 30px;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.page-main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
}

.main-layout-grid {
    display: grid;
    grid-template-columns: 1fr 350px; /* Right column main, Left column sidebar */
    gap: 40px;
    margin-bottom: 80px;
    align-items: start;
}

.main-content-area {
    min-width: 0;
}

/* Sidebar Info Card */
.sidebar-info-area {
    position: sticky;
    top: 100px;
}

.info-sidebar-card {
    padding: 30px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-premium);
    border: 1px solid #f1f5f9;
}

.card-header-sidebar {
    border-bottom: 1px solid #333333;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-header-sidebar h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.sidebar-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.sidebar-item .label {
    color: var(--text-muted);
}

.sidebar-item .value {
    font-weight: 700;
    color: var(--text-main);
}

.admin-brief {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.sidebar-mini-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.admin-brief .name {
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0;
}

.admin-brief .loc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Section Subtitle */
.section-subtitle {
    margin-bottom: 30px;
    border-right: 4px solid var(--primary);
    padding-right: 15px;
    text-align: right;
}

.section-subtitle h3 {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.section-subtitle p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 5px;
}

/* Sidebar Downloads List Styles */
.sidebar-downloads-list {
    margin-top: 30px;
}

.sidebar-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-main);
    padding-right: 10px;
}

.sidebar-section-title i {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

.sidebar-forms-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-form-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.sidebar-form-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: var(--primary);
    background: var(--bg-card);
}

.sidebar-form-card .form-icon-side {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-form-card:hover .form-icon-side {
    background: var(--primary);
    color: white;
    transform: rotate(-10deg);
}

.sidebar-form-card .form-info-side {
    flex: 1;
    margin: 0 15px;
    text-align: right;
}

.sidebar-form-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.4;
    color: var(--text-dark);
}

.sidebar-form-card span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.sidebar-form-card .download-icon-side {
    color: var(--primary);
    width: 20px;
    height: 20px;
    opacity: 0.4;
    transition: all 0.3s;
}

.sidebar-form-card:hover .download-icon-side {
    opacity: 1;
    transform: translateY(2px);
}

/* Custom Search Box Refinement */
.search-box {
    max-width: 700px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.input-wrapper {
    flex: 1;
    background: var(--bg-card);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: #1e293b;
}

.input-wrapper input {
    border: none;
    outline: none;
    width: 100%;
    padding: 12px 0;
    font-family: inherit;
    font-size: 1rem;
}

.search-box .btn-primary {
    width: auto !important;
    padding: 0 30px !important;
    border-radius: 8px !important;
    margin: 0 !important;
}

/* Statistics Grid Redesign */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: var(--bg-card);
    padding: 30px 15px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-bottom: 5px solid transparent;
    transition: all 0.3s ease;
    min-height: 180px;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    width: 24px;
    height: 24px;
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.stat-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Specific Card Colors */
.color-1 { border-bottom-color: #2563eb; } .color-1 .stat-icon i, .color-1 .stat-value { color: #2563eb; }
.color-2 { border-bottom-color: #06b6d4; } .color-2 .stat-icon i, .color-2 .stat-value { color: #06b6d4; }
.color-3 { border-bottom-color: #10b981; } .color-3 .stat-icon i, .color-3 .stat-value { color: #10b981; }
.color-4 { border-bottom-color: #f59e0b; } .color-4 .stat-icon i, .color-4 .stat-value { color: #f59e0b; }
.color-5 { border-bottom-color: #ef4444; } .color-5 .stat-icon i, .color-5 .stat-value { color: #ef4444; }
.color-6 { border-bottom-color: #8b5cf6; } .color-6 .stat-icon i, .color-6 .stat-value { color: #8b5cf6; }
.color-7 { border-bottom-color: #ec4899; } .color-7 .stat-icon i, .color-7 .stat-value { color: #ec4899; }
.color-8 { border-bottom-color: #dc2626; } .color-8 .stat-icon i, .color-8 .stat-value { color: #dc2626; }
.color-9 { border-bottom-color: #6366f1; } .color-9 .stat-icon i, .color-9 .stat-value { color: #6366f1; }

@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* Result Item (Search results list inside hero) */
.results-list-integrated {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    margin-top: 10px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

/* Responsive Fixes */
@media (max-width: 1100px) {
    .main-layout-grid {
        grid-template-columns: 1fr;
    }
    .sidebar-info-area {
        order: 2;
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .page-main-title { font-size: 1.8rem; }
    .hero-section { min-height: 60vh; }
    .search-box { flex-direction: column; padding: 15px; }
    .search-box .btn-primary { width: 100% !important; }
}

/* Footer Styles */
.main-footer {
    background: linear-gradient(135deg, #0284c7, #1e40af);
    color: white;
    padding: 80px 0 40px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.main-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);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-logo img {
    height: 50px;
}

.footer-logo span {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: white;
}

.footer-col-about p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.social-links-footer {
    display: flex;
    gap: 15px;
}

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

.social-links-footer a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-col-links h4, .footer-col-contact h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    color: white;
}

.footer-col-links h4::after, .footer-col-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

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

.footer-col-links ul li {
    margin-bottom: 12px;
}

.footer-col-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-col-links ul li a:hover {
    color: #fcd34d; /* Golden accent for hover */
    padding-right: 8px;
}

.footer-col-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Sidebar Action Buttons Enhancement */
.sidebar-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.btn-sidebar-accent {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 33, 71, 0.15);
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
}

.btn-sidebar-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 33, 71, 0.25);
    filter: brightness(1.1);
}

.btn-sidebar-accent i {
    width: 20px;
    height: 20px;
}

/* Complaints Section at Bottom (Premium Layout) */
.complaints-section {
    margin-top: 80px;
    margin-bottom: 80px;
}

.complaints-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding: 40px;
    border-radius: 24px;
    background: var(--bg-card);
    box-shadow: 0 20px 50px rgba(0, 33, 71, 0.08);
    border: 1px solid rgba(0, 33, 71, 0.05);
}

.complaints-info-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 33, 71, 0.02);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.info-card-mini:hover {
    background: rgba(0, 33, 71, 0.06);
    transform: translateX(-8px);
}

.info-card-mini i {
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.info-card-mini h4 {
    font-size: 1rem;
    margin: 0 0 4px 0;
    color: var(--primary);
    font-weight: 700;
}

.info-card-mini p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .complaints-grid {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    
    .complaints-info-box {
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .info-card-mini {
        flex: 1;
        min-width: 250px;
    }
}

/* View More Buttons */
.view-more-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.btn-secondary {
    background: var(--bg-card);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 33, 71, 0.2);
}

.btn-secondary i {
    width: 20px;
    height: 20px;
}

/* View Headers */
.view-header {
    padding: 40px;
    border-radius: 24px;
    margin-bottom: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

.view-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.view-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.view-header .back-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.view-header .back-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .view-header {
        padding: 60px 20px 30px;
    }
    .view-header h2 {
        font-size: 1.6rem;
    }
    .view-header .back-btn {
        top: 10px;
        right: 10px;
    }
}

/* --- Additional Premium Styles for Student Archive & Admin --- */

/* Theme Toggle */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nav-premium.scrolled .theme-toggle {
    background: var(--bg-main);
    color: var(--text-main);
    border-color: #333333;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    background: var(--gold);
    color: var(--primary);
}

/* Archive Results View */
.archive-results-container {
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.archive-header-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-accent));
    color: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-premium);
}

.student-main-info h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.student-main-info p {
    opacity: 0.9;
    font-size: 1rem;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.archive-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #e2e8f0;
    transition: var(--transition-smooth);
}

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

.card-title-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.card-title-area i {
    color: var(--primary-accent);
}

.card-title-area h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.doc-status-list {
    list-style: none;
}

.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8fafc;
}

.doc-item:last-child { border-bottom: none; }

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-completed { background: #dcfce7; color: #166534; }
.status-missing { background: #fee2e2; color: #991b1b; }
.status-pending { background: #fef9c3; color: #854d0e; }

.eligibility-alert {
    grid-column: 1 / -1;
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
}

.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-warning { background: #fff7ed; color: #9a3412; border: 1px solid #fdba74; }

/* Admin Sidebar Navigation */
.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 10px;
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.admin-nav-item:hover, .admin-nav-item.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-nav-item.active {
    background: var(--gold);
    color: var(--primary);
    font-weight: 700;
}

/* Empty State Modern */
.empty-state-modern {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.empty-state-modern i {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* --- New Student Dashboard Enhancements --- */
.academic-status-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.status-mini-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
}

.status-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}

.status-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon-box i {
    width: 24px;
    height: 24px;
}

.status-info {
    display: flex;
    flex-direction: column;
}

.status-info label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.status-info span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Archive Summary Card */
.archive-summary-card {
    padding: 25px;
    border-radius: var(--radius-lg);
}

.progress-container-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: auto;
}

#archive-progress-text {
    font-weight: 800;
    color: var(--gold);
    font-size: 1.1rem;
}

.progress-bar-sm {
    width: 150px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

#archive-progress-fill {
    height: 100%;
    background: var(--gold);
    transition: width 1s ease-in-out;
}

.archive-docs-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.doc-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--bg-main);
    color: var(--text-muted);
}

.doc-badge.verified {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.doc-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.doc-badge.missing {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Workflow Section */
.workflow-content {
    padding: 20px 0;
}

.title-submission-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.title-submission-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    font-family: inherit;
    resize: vertical;
}

.workflow-status-stepper {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    position: relative;
}

.workflow-status-stepper::before {
    content: '';
    position: absolute;
    top: 15px; left: 0; right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.step-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.step-item.active .step-marker {
    border-color: var(--primary-accent);
    color: var(--primary-accent);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.2);
}

.step-item.done .step-marker {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
    color: white;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
}

.step-item.active .step-label, .step-item.done .step-label {
    color: var(--text-main);
}

/* Results List in Modal */
.results-list {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: var(--radius-md);
    background: var(--bg-main);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.result-item:hover {
    background: var(--bg-card);
    border-color: var(--primary-accent);
    box-shadow: var(--shadow-soft);
}

.result-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-main);
}

.result-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.result-action i {
    width: 20px;
    height: 20px;
    color: var(--primary-accent);
}

/* Thesis Tracking Grid */
.thesis-tracking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.stage-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    padding: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
}

.stage-card:hover:not(.locked) {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-accent);
}

.stage-card.locked {
    opacity: 0.7;
    filter: grayscale(0.5);
    cursor: not-allowed;
    background: var(--bg-main);
}

.stage-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333333;
}

.stage-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.stage-title i {
    width: 24px;
    height: 24px;
    color: var(--primary-accent);
}

.stage-status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-completed { background: #dcfce7; color: #166534; }
.status-pending { background: #fef9c3; color: #854d0e; }
.status-not-started { background: var(--bg-main); color: #000000; }

.stage-body {
    padding: 20px;
}

.stage-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.stage-info-label { color: var(--text-muted); }
.stage-info-value { font-weight: 600; color: var(--text-main); }

.stage-footer {
    padding: 15px 20px;
    background: var(--bg-main);
    border-top: 1px solid #f1f5f9;
}

.locked-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.locked-icon-box {
    background: var(--bg-card);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    color: var(--text-muted);
}

/* Supervisor Search */
.supervisor-search-container {
    position: relative;
    width: 100%;
}

.supervisor-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 5px;
}

.supervisor-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid #333333;
}

.supervisor-item:last-child { border-bottom: none; }
.supervisor-item:hover { background: var(--bg-main); color: var(--primary-accent); }

/* Audit Logs */
.audit-logs-container {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
}

.audit-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted #cbd5e1;
    font-size: 0.85rem;
}

.audit-item:last-child { border-bottom: none; }
.audit-label { color: var(--text-muted); }
.audit-value { font-weight: 600; }

/* Timeline Preview */
.timeline-preview-mini {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.timeline-dot-mini {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
}

.timeline-dot-mini.active { background: var(--primary-accent); }
.timeline-dot-mini.done { background: var(--success); }

@media (max-width: 768px) {
    .thesis-tracking-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Added Missing Styles for Modern Portal --- */
.supervisor-search-container {
    position: relative;
    width: 100%;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 5px;
}

.supervisor-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
    border-bottom: 1px solid #333333;
}

.supervisor-item:hover {
    background: var(--bg-main);
    color: var(--primary);
}

.admin-reply-box {
    margin-top: 10px;
    padding: 12px;
    background: var(--bg-main);
    border-right: 4px solid var(--primary);
    font-size: 0.85rem;
    border-radius: 4px;
    line-height: 1.5;
}

.results-list-integrated {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 2000;
    margin-top: 10px;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

.results-list-integrated .result-item {
    padding: 15px 20px;
    border-bottom: 1px solid #333333;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-list-integrated .result-item:hover {
    background: var(--bg-main);
    padding-right: 25px;
}

.results-list-integrated .result-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--primary);
}

.results-list-integrated .result-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Premium Thesis Tracking UI */
.details-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item strong {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.detail-item span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.radio-group-premium {
    display: flex;
    gap: 15px;
    background: var(--bg-main);
    padding: 10px;
    border-radius: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.radio-item:hover {
    background: var(--bg-card);
}

.radio-item input[type="radio"] {
    accent-color: var(--primary-accent);
    width: 18px;
    height: 18px;
}

.audit-badges-top {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.audit-item {
    background: var(--bg-main);
    color: #000000;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.audit-item i {
    width: 14px;
    height: 14px;
}

.stage-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.stage-actions button {
    flex: 1;
}

.btn-success {
    background: var(--success);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-success:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-danger:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.link-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px dashed var(--primary-accent);
    margin-top: 10px;
    transition: all 0.3s;
}

.link-sm:hover {
    background: rgba(37, 99, 235, 0.05);
    border-style: solid;
}

@keyframes glow {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    50% { box-shadow: 0 0 20px 10px rgba(37, 99, 235, 0.2); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.highlight-glow {
    animation: glow 2s ease-in-out;
    border: 2px solid var(--primary-accent) !important;
}

/* Supervisor Portal Styles */
.btn-supervisor-portal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(124, 58, 237, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-supervisor-portal:hover {
    background: #7c3aed;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-hero-student, .btn-hero-supervisor, .btn-hero-activities {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.btn-hero-supervisor {
    background: #7c3aed;
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

.btn-hero-activities {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-hero-student:hover, .btn-hero-supervisor:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-supervisor {
    background: #7c3aed;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-supervisor:hover {
    background: #6d28d9;
    transform: translateY(-2px);
}

.audit-info-premium {
    margin-top: 25px;
    padding: 20px;
    background: var(--bg-main);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.audit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.audit-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.audit-box label {
    font-size: 0.75rem;
    color: #000000;
    font-weight: 600;
}

.audit-box span {
    font-size: 0.85rem;
    color: #0f172a;
    font-weight: 500;
}

.form-actions-premium {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.form-actions-premium .btn-primary { flex: 2; }
.form-actions-premium .btn-secondary { flex: 1; }
.form-actions-premium .btn-danger { flex: 1; }

.btn-secondary {
    background: #e2e8f0;
    color: #000000;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

/* Status Badge Styles */
.badge-status-premium {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-status-active { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.badge-status-pending { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.badge-status-withdrawn { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* Supervisor Item Style */
.supervisor-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #333333;
}

.supervisor-item:hover {
    background: var(--bg-main);
    color: var(--primary-accent);
}

.supervisor-results-box {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 50;
    max-height: 200px;
    overflow-y: auto;
}

/* Premium Checkbox */
.checkbox-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.checkbox-premium:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--primary-accent);
}

.checkbox-premium input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-accent);
}

.checkbox-premium span {
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
}

.audit-info-sm {
    margin-top: 15px;
    font-size: 0.75rem;
    color: #000000;
}

.audit-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background: rgba(15, 23, 42, 0.03);
    padding: 10px 15px;
    border-radius: 8px;
    border-right: 4px solid #94a3b8;
    margin-top: 10px;
}

.audit-badge span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* Search Dropdown Alias */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 5px;
}

.search-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #333333;
    font-size: 0.85rem;
}

.search-item:hover {
    background: var(--bg-main);
    color: var(--primary-accent);
}

/* Quick Portals Section */
.quick-portals {
    margin: -50px auto 40px;
    position: relative;
    z-index: 10;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.portal-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--glass-shadow);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid var(--glass-border);
}

.portal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-accent);
}

.portal-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.portal-student .portal-icon { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.portal-supervisor .portal-icon { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }
.portal-admin .portal-icon { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.portal-info h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.portal-info p {
    font-size: 0.85rem;
    color: #000000;
}

@media (max-width: 768px) {
    .quick-portals { margin-top: 20px; }
}

/* Search Results for Tracking */
.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.result-item-premium:hover {
    border-color: var(--primary-accent) !important;
    background: #f8fafc !important;
    transform: translateX(-5px);
}

/* Thesis Roadmap Tracker */
.roadmap-tracker-container {
    margin-top: 20px;
    position: relative;
}

.roadmap-line-track {
    height: 4px;
    background: #e2e8f0;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 2px;
}

.roadmap-line-fill {
    position: absolute;
    height: 100%;
    background: var(--primary-accent);
    left: 0;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.roadmap-node {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    cursor: help;
}

.roadmap-node i {
    font-size: 14px;
    color: #000000;
    margin-bottom: 2px;
}

.roadmap-node span {
    font-size: 12px;
    font-weight: 800;
    color: #000000;
    position: absolute;
    bottom: -25px;
    white-space: nowrap;
}

.roadmap-node.active {
    border-color: var(--primary-accent);
    background: var(--primary-accent);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
}

.roadmap-node.active i, .roadmap-node.active span {
    color: white;
}

.roadmap-node.completed {
    border-color: #10b981;
    background: #10b981;
}

.roadmap-node.completed i, .roadmap-node.completed span {
    color: white;
}

/* Stage Card Premium States */
.tracking-stage-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.tracking-stage-card.locked {
    opacity: 1;
    pointer-events: none;
    filter: none; /* Removed grayscale */
    background: #f1f5f9 !important;
}

.tracking-stage-card.active {
    border-color: var(--primary-accent);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.1);
    transform: scale(1.02);
    z-index: 5;
}

.tracking-stage-card.completed {
    border-color: #10b981;
    background: #f0fdf4 !important;
}

.stage-number {
    width: 35px;
    height: 35px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #000000;
    margin-left: 15px;
}

.completed .stage-number {
    background: #10b981;
    color: white;
}

.active .stage-number {
    background: var(--primary-accent);
    color: white;
}

.stage-status-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.locked .stage-status-badge { background: #cbd5e1; color: #000000; }
.active .stage-status-badge { background: var(--primary-accent); color: white; animation: pulse 2s infinite; }
.completed .stage-status-badge { background: #10b981; color: white; }

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Thesis Tracking Layout */
.thesis-tracking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.section-header-premium {
    border-radius: 15px 15px 0 0;
}

.badge-premium {
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.2);
}

.roadmap-tracker-container {
    padding-top: 10px;
}

/* Public Timeline Styles */
.timeline-step .status-text {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 2px;
}

.timeline-step.done .status-text { color: #10b981; }
.timeline-step.active .status-text { color: var(--primary-accent); }

.timeline-step .update-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #000000;
    margin-top: 5px;
}

/* Sidebar Header Premium Enhancements */
.sidebar-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-right: 5px;
}

.sidebar-section-header span {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
}

.sidebar-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.sidebar-section-header:hover .sidebar-icon-box {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.sidebar-icon-box i {
    width: 20px;
    height: 20px;
}

/* Light Theme Overrides */
body.light-theme {
    --bg-main: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --bg-card: rgba(255, 255, 255, 0.9);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass-border: rgba(15, 23, 42, 0.1);
}

body.light-theme .nav-premium:not(.scrolled) .nav-link { color: #1e293b; }
body.light-theme .hero-title { color: #1e293b; }
body.light-theme .hero-subtitle { color: #000000; }
body.light-theme .nav-logo-placeholder .logo-text { color: #1e293b; }

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .search-box { flex-direction: column; border-radius: 20px; padding: 15px; }
    .input-wrapper { width: 100%; border-radius: 12px; }
    .search-box .btn-primary { width: 100%; height: 50px; margin-top: 10px; }
    .nav-premium { padding: 0 5%; }
    .nav-logo-placeholder .logo-text { font-size: 1rem; }
}
/* Calm Academic Footer */
.main-footer {
    background: var(--bg-main);
    color: #000000;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    position: relative;
    margin-top: 100px;
}

.main-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    direction: rtl;
}

.footer-col-about .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 900;
    color: #000000 !important;
}

.footer-col-about .footer-logo span {
    color: #000000 !important;
}

.footer-col-about p {
    color: #000000 !important;
    opacity: 1 !important;
    font-weight: 600 !important;
    line-height: 1.8;
    margin-bottom: 25px;
}

.social-links-footer {
    display: flex;
    gap: 15px;
}

.social-links-footer a {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #000000 !important;
    transition: var(--transition-smooth);
}

.social-links-footer a i {
    color: #000000 !important;
}

.social-links-footer a:hover {
    background: var(--gold);
    color: white !important;
    transform: translateY(-5px);
}

.footer-col-links h4, .footer-col-contact h4 {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    color: #000000 !important;
}

.footer-col-links h4::after, .footer-col-contact h4::after {
    content: "";
    position: absolute;
    bottom: 0; right: 0;
    width: 40px;
    height: 3px;
    background: var(--gold);
}

.footer-col-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.footer-col-links a {
    color: #000000 !important;
    opacity: 1 !important;
    font-weight: 700 !important;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col-links a:hover {
    color: var(--primary-accent) !important;
    padding-right: 10px;
}

.footer-col-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #000000 !important;
    font-weight: 700 !important;
    margin-bottom: 15px;
}

.footer-col-contact i {
    color: var(--gold) !important;
    width: 20px;
}

.footer-bottom {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    text-align: center;
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 1rem;
}

.footer-bottom p {
    margin-bottom: 10px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Professional Academic Stat Cards - Refined & Expansive */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.stat-item {
    background: white !important;
    padding: 30px 20px !important;
    border-radius: 20px !important;
    text-align: center !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03) !important;
    transition: var(--transition-smooth) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
    position: relative !important;
    overflow: hidden !important;
    border-bottom: 5px solid #e2e8f0 !important; /* Default border */
}

.stat-item:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
}

.stat-icon-wrapper {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    background: rgba(15, 23, 42, 0.03);
}

.stat-icon-wrapper i {
    width: 28px;
    height: 28px;
}

.stat-number {
    font-size: 3.5rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    margin: 0 !important;
    font-family: 'Poppins', sans-serif !important;
    letter-spacing: -2px;
}

.stat-label {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #000000 !important;
    margin: 0 !important;
    opacity: 1 !important;
}

/* Roadmap Grid Landing Styles */
.roadmap-grid-landing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.roadmap-item-landing {
    background: var(--bg-card);
    padding: 25px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: var(--transition-smooth);
}

.roadmap-item-landing:hover {
    transform: translateY(-5px);
    border-color: var(--primary-accent);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.step-num {
    position: absolute;
    top: 15px; right: 15px;
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--primary-accent);
    opacity: 0.3;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-main);
    color: var(--primary-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.roadmap-item-landing h4 {
    font-size: 1rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 10px;
}

.roadmap-item-landing p {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.5;
}

/* Color Themes for Stats */
.stat-item.theme-blue { border-bottom-color: #2563eb !important; }
.stat-item.theme-blue .stat-number { color: #2563eb !important; }
.stat-item.theme-blue .stat-icon-wrapper { background: rgba(37, 99, 235, 0.1); color: #2563eb; }

.stat-item.theme-cyan { border-bottom-color: #0ea5e9 !important; }
.stat-item.theme-cyan .stat-number { color: #0ea5e9 !important; }
.stat-item.theme-cyan .stat-icon-wrapper { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }

.stat-item.theme-green { border-bottom-color: #10b981 !important; }
.stat-item.theme-green .stat-number { color: #10b981 !important; }
.stat-item.theme-green .stat-icon-wrapper { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.stat-item.theme-orange { border-bottom-color: #f59e0b !important; }
.stat-item.theme-orange .stat-number { color: #f59e0b !important; }
.stat-item.theme-orange .stat-icon-wrapper { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.stat-item.theme-indigo { border-bottom-color: #6366f1 !important; }
.stat-item.theme-indigo .stat-number { color: #6366f1 !important; }
.stat-item.theme-indigo .stat-icon-wrapper { background: rgba(99, 102, 241, 0.1); color: #6366f1; }

.stat-item.theme-purple { border-bottom-color: #8b5cf6 !important; }
.stat-item.theme-purple .stat-number { color: #8b5cf6 !important; }
.stat-item.theme-purple .stat-icon-wrapper { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

/* High-Contrast Academic Accessibility Overrides */
.nav-link { color: #000000 !important; font-weight: 700 !important; }
.hero-title { color: #000000 !important; }
.hero-subtitle { color: #000000 !important; opacity: 1 !important; font-weight: 700 !important; }

/* Activity & Program Content Visibility */
.premium-card, .activity-card, .program-card, .portal-card {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    color: #000000 !important;
}

.premium-card h3, .activity-card h3, .program-card h3, .portal-card h3 {
    color: #000000 !important;
    font-weight: 800 !important;
}

.premium-card p, .activity-card p, .program-card p, .portal-card p {
    color: #1e293b !important;
    font-weight: 500 !important;
}

.section-subtitle h3 { color: #000000 !important; font-weight: 800 !important; }
.section-subtitle p { color: #000000 !important; opacity: 0.8 !important; }

/* Dashboard & Admin Text Visibility */
.col-header h3, .profile-text-area h2, .header-text h4 {
    color: #000000 !important;
}

.info-label, .p-info-item label {
    color: #000000 !important;
    font-weight: 600 !important;
}

.info-value, .stat-value {
    color: #000000 !important;
    font-weight: 800 !important;
}

/* --- Thesis Tracking Premium Search Styles --- */
.result-item-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.result-item-premium:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: var(--primary-accent);
}

.result-info .result-name {
    display: block;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #000000;
}

.result-meta i {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-top: -2px;
}

.meta-divider {
    color: #e2e8f0;
}

.btn-recall-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1.5rem;
    background: var(--primary-accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.2);
}

.btn-recall-action:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 15px rgba(124, 58, 237, 0.3);
    gap: 15px;
}

.loading-spinner-container {
    text-align: center;
    padding: 3rem;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.no-results-msg {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
    color: #64748b;
}

.no-results-msg i {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

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

.info-box {
    background: white;
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.info-box strong {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.info-box span {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
}

/* --- Professional Notification System --- */
.notification-container {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.notification {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideInLeft 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

.notification.fade-out {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.5s ease;
}

.notification-success {
    border-right: 5px solid #10b981;
}

.notification-success i {
    color: #10b981;
}

.notification-error {
    border-right: 5px solid #ef4444;
}

.notification-error i {
    color: #ef4444;
}

.notification-info {
    border-right: 5px solid var(--primary-accent);
}

.notification-info i {
    color: var(--primary-accent);
}

.notification span {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
}

/* --- FINAL ACADEMIC LIGHT THEME FORCED --- */
body, .admin-layout, .admin-main, .admin-sidebar, .admin-card, .table-section, .modal-content, .dashboard-header, .stage-header, .stage-footer, .roadmap-tracker-wrapper, .data-table, .data-table th, .data-table td, .info-row, .audit-info-premium, .supervisor-editor-container {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
}

/* Force text and icons to be black by default */
h1, h2, h3, h4, h5, h6, p, span, div, label, b, strong, small, .nav-link {
    color: #000000 !important;
}

i, svg, [data-lucide] {
    color: #000000;
    stroke: #000000;
}

/* Override for icons inside dark circles/boxes */
.ql-icon-box i, .ql-icon-box [data-lucide], 
.portal-icon-circle i, .portal-icon-circle [data-lucide],
.stat-icon-wrapper i, .stat-icon-wrapper [data-lucide],
.btn-primary i, .btn-primary [data-lucide],
.nav-item.active i, .nav-item.active [data-lucide] {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* Force borders to be black */
body *, .admin-main *, .admin-sidebar *, .modal-content *, .table-section * {
    border-color: #000000 !important;
}

/* Inputs and Forms */
input, select, textarea {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}

::placeholder {
    color: #666666 !important;
}

/* Buttons - Unified Academic Style (Black background, White text) */
.btn-primary, .btn-success, .btn-danger, .btn-secondary, .btn-ghost, .btn-save-stage, .btn-edit-stage, .btn-recall-sm, .header-actions button {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
    font-weight: 700 !important;
}

.btn-primary:hover, .btn-success:hover, .btn-danger:hover {
    background-color: #333333 !important;
}

.btn-primary * , .btn-success * , .btn-danger * {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* Navigation - Active state highlight */
.nav-item.active {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.nav-item.active i, .nav-item.active * {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* Table Enhancements */
.data-table th {
    background-color: #f1f5f9 !important;
    border-bottom: 3px solid #000000 !important;
}

.data-table tr {
    border-bottom: 2px solid #000000 !important;
}

.data-table tr:hover {
    background-color: #f8fafc !important;
}



/* --- Smart Quick Links (Smart Icons) Styles --- */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition-smooth);
    text-align: center;
    border: 2px solid #000000;
    background: #ffffff;
    min-height: 140px;
}

.quick-link-card:hover {
    transform: translateY(-8px);
    background: #f8fafc;
    border-color: #000000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.ql-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.quick-link-card:hover .ql-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.ql-icon-box i {
    width: 30px;
    height: 30px;
    stroke-width: 2.5px;
}

.ql-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
    display: block;
}

.ql-info {
    width: 100%;
}

/* Admin Specific for Quick Links */
.drag-handle {
    color: var(--text-muted);
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

.icon-preview-sm i {
    width: 18px;
    height: 18px;
}

/* Modal specific progress bar */
.progress-bar-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

/* Responsive adjustments for quick links */
@media (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .quick-link-card {
        padding: 15px 10px;
        min-height: 120px;
    }
    
    .ql-icon-box {
        width: 50px;
        height: 50px;
    }
}

/* --- Smart Quick Links Landing Page Styles --- */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.quick-link-card {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 0 #000000;
}

.quick-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 0 #000000;
    background: #f8fafc;
}

.ql-icon-box {
    width: 60px;
    height: 60px;
    background: #000000;
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.quick-link-card:hover .ql-icon-box {
    transform: rotate(10deg);
    background: var(--gold);
}

.ql-icon-box i {
    width: 30px;
    height: 30px;
    stroke-width: 2.5px;
}

.ql-label {
    font-weight: 800;
    font-size: 0.95rem;
    color: #000000;
    text-align: center;
}

/* --- Admin Dashboard Cards & UI Improvements --- */
.admin-nav-card {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
    color: #000000;
}

.admin-nav-card:hover {
    background: #f1f5f9;
    border-color: var(--gold);
    transform: scale(1.02);
}

.admin-nav-card i {
    width: 32px;
    height: 32px;
    color: #000000;
}

.admin-form .form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #000000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.required {
    color: #dc2626;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

#reg-progress-fill {
    height: 100%;
    background: var(--gold);
    transition: width 0.3s ease;
}

.search-bar-sm input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    width: 250px;
}

.badge-success { background: #dcfce7; color: #15803d; }
.badge-danger { background: #fee2e2; color: #991b1b; }

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Final UI Polish - Button Colors & Contrast --- */
#search-btn, .btn-primary {
    background: #000000 !important;
    color: #ffffff !important;
}

.btn-hero-student {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-hero-student i, .btn-hero-student span {
    color: #ffffff !important;
}

.btn-hero-supervisor {
    background: #7c3aed !important; /* Premium Purple */
    color: #ffffff !important;
    border: 2px solid #7c3aed;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-hero-supervisor i, .btn-hero-supervisor span {
    color: #ffffff !important;
}

/* Fix for Activities & Programs "View More" Buttons */
.btn-secondary {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-secondary i, .btn-secondary span {
    color: #ffffff !important;
}

.btn-hero-student:hover, .btn-hero-supervisor:hover, .btn-secondary:hover {
    filter: brightness(1.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Ensure icons inherit color properly */
.btn-hero-student i svg, .btn-hero-supervisor i svg, .btn-secondary i svg {
    stroke: #ffffff !important;
}

/* --- Premium DataTables Custom Styles --- */
.dataTables_wrapper {
    padding: 20px 0;
    font-family: inherit;
}

.dataTables_wrapper .dataTables_filter {
    margin-bottom: 20px;
    text-align: left;
}
[dir="rtl"] .dataTables_wrapper .dataTables_filter {
    text-align: left;
    float: left;
}

.dataTables_wrapper .dataTables_filter input {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 16px;
    margin-left: 10px;
    margin-right: 10px;
    outline: none;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #000000;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

.dataTables_wrapper .dataTables_length select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    outline: none;
    background: #f8fafc;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 6px 14px !important;
    margin: 0 4px;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #000000 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Bulk Upload Enhancements */
#bulk-import-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
}
/* --- Academic Process Tracking Module Styles --- */
.academic-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.status-mini-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

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

.status-icon-box {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-info label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.filter-group-premium .filter-select,
.filter-group-premium .filter-date {
    padding: 8px 15px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.1);
    background: white;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
}

.filter-group-premium .filter-select:focus,
.filter-group-premium .filter-date:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.academic-entry-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.academic-entry-table th {
    padding: 12px;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
}

.academic-entry-table td {
    padding: 8px;
    background: rgba(255,255,255,0.03);
}

.academic-entry-table input,
.academic-entry-table select {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    background: white;
    font-family: inherit;
    font-size: 0.85rem;
}

.academic-row.fade-in {
    animation: slideInUp 0.3s ease forwards;
}

.progress-bar-mini {
    width: 100%;
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.academic-header-info {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.required {
    color: #ef4444;
    margin-right: 2px;
}

@media print {
    .admin-sidebar, .header-actions, .filter-group-premium, .close-modal, .btn-icon {
        display: none !important;
    }
    .modal {
        position: static !important;
        background: white !important;
        padding: 0 !important;
    }
    .modal-content {
        box-shadow: none !important;
        border: none !important;
        width: 100% !important;
        max-width: none !important;
    }
    .academic-entry-table input,
    .academic-entry-table select {
        border: none !important;
        background: transparent !important;
    }
}

/* --- Rating & Evaluation Badges --- */
.rating-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

.rating-excellent { background: rgba(16, 185, 129, 0.15); color: #059669; border: 1px solid rgba(16, 185, 129, 0.3); }
.rating-very-good { background: rgba(59, 130, 246, 0.15); color: #2563eb; border: 1px solid rgba(59, 130, 246, 0.3); }
.rating-good { background: rgba(124, 58, 237, 0.15); color: #7c3aed; border: 1px solid rgba(124, 58, 237, 0.3); }
.rating-fair { background: rgba(245, 158, 11, 0.15); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.3); }
.rating-poor { background: rgba(239, 68, 68, 0.15); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.3); }

.badge-outline {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* --- Premium Academic Arrow Roadmap Infographic --- */
.roadmap-arrows-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 10px;
    margin-top: 40px;
    direction: rtl;
}

.roadmap-arrow-step {
    flex: 1;
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 24px 16px !important;
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    min-width: 0; /* Prevents overflow */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.roadmap-arrow-step:hover {
    transform: translateY(-8px);
    border-color: #2563eb !important;
    box-shadow: 0 15px 30px rgba(37,99,235,0.08);
}

.arrow-step-badge {
    position: absolute;
    top: -12px;
    right: 15px;
    background: #000000 !important;
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.arrow-step-icon {
    width: 48px;
    height: 48px;
    background: #f1f5f9 !important;
    color: #2563eb !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.roadmap-arrow-step:hover .arrow-step-icon {
    background: #2563eb !important;
    color: #ffffff !important;
    transform: scale(1.1);
}

.arrow-step-icon i, .arrow-step-icon svg {
    width: 22px !important;
    height: 22px !important;
    stroke: currentColor !important;
    color: currentColor !important;
}

.roadmap-arrow-step h4 {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #000000 !important;
    margin-top: 0;
    margin-bottom: 8px !important;
}

.roadmap-arrow-step p {
    font-size: 0.75rem !important;
    color: #475569 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.roadmap-flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8 !important;
    animation: arrowPulse 2s infinite;
}

.roadmap-flow-arrow i, .roadmap-flow-arrow svg {
    width: 24px !important;
    height: 24px !important;
    stroke: currentColor !important;
    color: currentColor !important;
}

@keyframes arrowPulse {
    0% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(-5px); opacity: 1; }
    100% { transform: translateX(0); opacity: 0.5; }
}

/* Individual Step Theme Borders for Premium Touch */
.roadmap-arrow-step.step-1 { border-bottom: 4px solid #3b82f6 !important; }
.roadmap-arrow-step.step-2 { border-bottom: 4px solid #10b981 !important; }
.roadmap-arrow-step.step-3 { border-bottom: 4px solid #f59e0b !important; }
.roadmap-arrow-step.step-4 { border-bottom: 4px solid #8b5cf6 !important; }
.roadmap-arrow-step.step-5 { border-bottom: 4px solid #ec4899 !important; }
.roadmap-arrow-step.step-6 { border-bottom: 4px solid #06b6d4 !important; }
.roadmap-arrow-step.step-7 { border-bottom: 4px solid #10b981 !important; }

@media (max-width: 1024px) {
    .roadmap-arrows-container {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .roadmap-flow-arrow {
        transform: rotate(-90deg);
        margin: 5px 0;
        animation: arrowPulseVertical 2s infinite;
    }
    
    @keyframes arrowPulseVertical {
        0% { transform: translateY(0) rotate(-90deg); opacity: 0.5; }
        50% { transform: translateY(5px) rotate(-90deg); opacity: 1; }
        100% { transform: translateY(0) rotate(-90deg); opacity: 0.5; }
    }
}

/* --- Premium Graduate Marketing Styles --- */

/* Hero Buttons */
.btn-primary-marketing {
    background: linear-gradient(135deg, var(--blue, #2563eb), #1d4ed8) !important;
    color: #ffffff !important;
    padding: 12px 28px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    font-size: 0.95rem !important;
}

.btn-primary-marketing:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5) !important;
}

.btn-secondary-marketing {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0f172a !important;
    padding: 12px 28px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: 2px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    font-size: 0.95rem !important;
}

.btn-secondary-marketing:hover {
    background: #ffffff !important;
    border-color: var(--blue, #2563eb) !important;
    color: var(--blue, #2563eb) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1) !important;
}

.btn-text-marketing {
    background: transparent !important;
    color: #475569 !important;
    padding: 12px 24px !important;
    border: none !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    font-size: 0.95rem !important;
}

.btn-text-marketing:hover {
    color: var(--blue, #2563eb) !important;
    transform: translateX(-3px) !important;
}

/* Why Choose Us Section */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
    direction: rtl;
}

.why-us-card {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 20px !important;
    padding: 30px 24px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.why-us-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #10b981);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.why-us-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.3) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(37, 99, 235, 0.03) !important;
}

.why-us-card:hover::before {
    opacity: 1;
}

.why-us-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

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

.why-us-icon i, .why-us-icon svg {
    width: 26px !important;
    height: 26px !important;
}

.why-us-card h4 {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-top: 0;
    margin-bottom: 10px !important;
}

.why-us-card p {
    font-size: 0.85rem !important;
    color: #475569 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Enhanced Master's Programs Cards */
.program-marketing-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.program-marketing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(37, 99, 235, 0.4) !important;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.08) !important;
}

.program-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: all 0.4s ease;
}

.program-marketing-card:hover .program-card-image {
    transform: scale(1.03);
}

.program-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.program-badge-degree {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(8px);
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 50px;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.1);
}

.program-card-content {
    padding: 24px !important;
    display: flex;
    flex-direction: column;
    flex: 1;
    direction: rtl;
}

.program-card-content h3 {
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    margin-top: 0;
    margin-bottom: 12px !important;
    transition: color 0.3s ease;
}

.program-marketing-card:hover .program-card-content h3 {
    color: var(--blue, #2563eb);
}

.program-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.program-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem !important;
    color: #64748b !important;
    background: #f8fafc !important;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.program-card-meta span i, .program-card-meta span svg {
    width: 14px !important;
    height: 14px !important;
    color: var(--blue, #2563eb);
}

.program-card-content p {
    font-size: 0.8rem !important;
    color: #475569 !important;
    line-height: 1.6 !important;
    margin-top: 0;
    margin-bottom: 20px !important;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-program-details {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 10px 18px !important;
    font-weight: 800 !important;
    font-size: 0.8rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.btn-program-details:hover {
    background: var(--blue, #2563eb) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

.btn-program-details i, .btn-program-details svg {
    transition: transform 0.3s ease;
}

.btn-program-details:hover i, .btn-program-details:hover svg {
    transform: translateX(-4px);
}

/* Success Stories Carousel */
.stories-carousel-container {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 24px !important;
    padding: 40px !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    direction: rtl;
}

.stories-track {
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    width: 100%;
    max-width: 800px;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.story-slide.active {
    display: flex;
    opacity: 1;
}

.story-avatar-container {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 24px;
}

.story-avatar-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.story-cap-icon {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: var(--gold, #d97706) !important;
    color: #ffffff !important;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.story-cap-icon i, .story-cap-icon svg {
    width: 14px !important;
    height: 14px !important;
}

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

.story-text {
    font-size: 1.15rem !important;
    color: #334155 !important;
    font-style: italic !important;
    line-height: 1.8 !important;
    margin-bottom: 20px !important;
    max-width: 700px;
    position: relative;
}

.story-text::before {
    content: '“';
    font-size: 4rem;
    color: rgba(37, 99, 235, 0.1);
    position: absolute;
    top: -30px;
    right: -25px;
    font-family: serif;
}

.story-name {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 4px !important;
}

.story-program-name {
    font-size: 0.85rem !important;
    color: var(--blue, #2563eb) !important;
    font-weight: 700 !important;
}

.stories-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.btn-carousel-control {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.btn-carousel-control:hover {
    background: var(--blue, #2563eb) !important;
    color: #ffffff !important;
    border-color: var(--blue, #2563eb) !important;
    transform: scale(1.05);
}

.btn-carousel-control i, .btn-carousel-control svg {
    width: 18px !important;
    height: 18px !important;
}

.stories-indicators {
    display: flex;
    gap: 8px;
}

.stories-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stories-indicators .indicator.active {
    background: var(--blue, #2563eb);
    width: 24px;
    border-radius: 4px;
}

/* responsive overrides */
@media (max-width: 768px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    .stories-carousel-container {
        padding: 24px !important;
    }
    .story-text {
        font-size: 0.95rem !important;
    }
    .btn-primary-marketing, .btn-secondary-marketing {
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
    }
}


