/* =====================================================
   ICSP eLearning Portal - Main Stylesheet
   ===================================================== */

/* CSS Variables */
:root {
    --primary-color: #1a365d;
    --primary-light: #2c5282;
    --primary-dark: #0f2942;
    --secondary-color: #d69e2e;
    --secondary-light: #ecc94b;
    --success-color: #38a169;
    --danger-color: #e53e3e;
    --warning-color: #dd6b20;
    --info-color: #3182ce;
    --light-bg: #f7fafc;
    --dark-text: #1a202c;
    --gray-text: #718096;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

/* =====================================================
   NAVIGATION
   ===================================================== */

.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.nav-link {
    color: var(--dark-text) !important;
    font-weight: 500;
    padding: 10px 20px !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, #4299e1 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    background-size: 200px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-title span {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.btn-primary-custom {
    background: var(--secondary-color);
    color: var(--primary-dark);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: var(--secondary-light);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-custom {
    background: transparent;
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--white);
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease 0.5s backwards;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* =====================================================
   FEATURES SECTION
   ===================================================== */

.features-section {
    padding: 100px 0;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--secondary-color);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* =====================================================
   COURSES SECTION
   ===================================================== */

.courses-section {
    padding: 100px 0;
}

.course-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.course-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-thumbnail img {
    transform: scale(1.1);
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-color);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-badge.free {
    background: var(--success-color);
    color: var(--white);
}

.course-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-category {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.course-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    color: var(--gray-text);
    font-size: 0.9rem;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.course-instructor img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.course-instructor span {
    font-size: 0.9rem;
    color: var(--gray-text);
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */

.about-section {
    padding: 100px 0;
    background: var(--light-bg);
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-content p {
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
}

.about-list li i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */

.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.testimonials-section .section-title h2,
.testimonials-section .section-title p {
    color: var(--white);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    margin: 15px;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
}

.testimonial-author h4 {
    margin: 0;
    font-size: 1rem;
}

.testimonial-author span {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* =====================================================
   STATS SECTION
   ===================================================== */

.stats-section {
    padding: 60px 0;
    background: var(--secondary-color);
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* =====================================================
   CTA SECTION
   ===================================================== */

.cta-section {
    padding: 100px 0;
    background: var(--light-bg);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 30px;
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo i {
    color: var(--secondary-color);
}

.footer p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    opacity: 0.7;
}

/* =====================================================
   DASHBOARD STYLES
   ===================================================== */

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--light-bg);
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1a365d 0%, #2d4a7c 50%, #3d5a8c 100%);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white !important;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.sidebar-header .navbar-brand i {
    color: #d4b87a !important;
}

.sidebar-header p {
    color: white !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

.sidebar-menu {
    padding: 20px 12px;
}

.menu-section {
    padding: 10px 12px;
    font-size: 10px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.menu-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.3s;
    margin-bottom: 4px;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    transform: translateX(4px);
}

.menu-item.active {
    background: linear-gradient(135deg, #A9A9A9 0%, #9E9E9E 100%) !important;
    color: #000080 !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.menu-item.active i {
    color: #000080 !important;
}

.menu-item i {
    width: 20px;
    text-align: center;
    color: white !important;
}

.menu-badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 30px;
}

.topbar {
    background: var(--white);
    padding: 15px 30px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
    margin: -30px -30px 30px -30px;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    outline: none;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-text);
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    position: relative;
}

.user-dropdown img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    min-width: 200px;
    display: none;
    z-index: 100;
}

.user-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-text);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 5px 0;
}

/* Dashboard Cards */
.dashboard-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Stats Cards */
.stat-card {
    background: var(--white) !important;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex !important;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-header {
    flex-shrink: 0;
}

.stat-icon {
    width: 56px !important;
    height: 56px !important;
    border-radius: 12px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-value {
    font-size: 1.8rem !important;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem !important;
    color: var(--gray-text);
    margin-top: 2px;
}

.stat-icon.primary {
    background: rgba(26, 54, 93, 0.1);
    color: var(--primary-color);
}

.stat-icon.success {
    background: rgba(56, 161, 105, 0.1);
    color: var(--success-color);
}

.stat-icon.warning {
    background: rgba(221, 107, 32, 0.1);
    color: var(--warning-color);
}

.stat-icon.info {
    background: rgba(49, 130, 206, 0.1);
    color: var(--info-color);
}

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--gray-text);
    margin: 0;
}

/* Tables */
.table-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px 25px;
    text-align: left;
}

.data-table th {
    background: var(--light-bg);
    color: var(--gray-text);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.data-table tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: var(--light-bg);
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(56, 161, 105, 0.1);
    color: var(--success-color);
}

.status-badge.pending {
    background: rgba(221, 107, 32, 0.1);
    color: var(--warning-color);
}

.status-badge.inactive {
    background: rgba(113, 128, 150, 0.1);
    color: var(--gray-text);
}

/* =====================================================
   RESPONSIVE STYLES
   ===================================================== */

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
    
    .about-content {
        margin-bottom: 40px;
    }
    
    /* Stats Grid Responsive */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Stats Grid Mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.rounded { border-radius: 0.5rem; }
.rounded-lg { border-radius: 1rem; }
.rounded-circle { border-radius: 50%; }

.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }

/* =====================================================
   EXAMINATION SYSTEM STYLES
   ===================================================== */

/* Submenu Styles */
.menu-item.has-submenu {
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark-text);
    transition: var(--transition);
    border-left: 3px solid transparent;
    padding: 12px 25px;
}

.menu-link:hover,
.menu-link.active {
    background: var(--light-bg);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.menu-link i:first-child {
    width: 20px;
    text-align: center;
}

.submenu-arrow {
    margin-left: auto;
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.submenu-arrow {
    margin-left: auto;
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.menu-item.has-submenu:hover .submenu-arrow {
    transform: translateX(3px);
}

.menu-item .submenu {
    display: none;
    padding-left: 20px;
    margin-top: 5px;
}

.menu-item.has-submenu:hover .submenu {
    display: block;
}

.menu-item .submenu-link {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-text);
    font-size: 0.85rem;
    transition: var(--transition);
    border-left: 2px solid transparent;
}

.menu-item .submenu-link:hover,
.menu-item .submenu-link.active {
    background: var(--light-bg);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.menu-item .submenu-link i {
    width: 16px;
    text-align: center;
    font-size: 0.75rem;
}

/* Examination Dashboard */
.exam-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

exam-dashboard-header h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

.exam-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.exam-stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.exam-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.exam-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
}

.exam-stat-icon.total { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.exam-stat-icon.active { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.exam-stat-icon.scheduled { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.exam-stat-icon.closed { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.exam-stat-icon.completed { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.exam-stat-icon.flagged { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.exam-stat-icon.performance { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.exam-stat-icon.published { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }

.exam-stat-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.exam-stat-info p {
    font-size: 0.85rem;
    color: var(--gray-text);
    margin: 0;
}

/* Exam Table */
.exam-table-container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.exam-table-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.exam-table-header h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
}

.exam-table-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.exam-table-filters select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.85rem;
    outline: none;
}

.exam-table {
    width: 100%;
    border-collapse: collapse;
}

.exam-table th {
    padding: 15px;
    text-align: left;
    background: var(--light-bg);
    color: var(--gray-text);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exam-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.exam-table tbody tr:hover {
    background: var(--light-bg);
}

.exam-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.exam-badge.draft { background: #e9ecef; color: #495057; }
.exam-badge.scheduled { background: #fff3cd; color: #856404; }
.exam-badge.active { background: #d4edda; color: #155724; }
.exam-badge.completed { background: #cce5ff; color: #004085; }
.exam-badge.grading { background: #f8d7da; color: #721c24; }
.exam-badge.published { background: #d1ecf1; color: #0c5460; }
.exam-badge.archived { background: #e2e3e5; color: #383d41; }

.exam-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
    background: #f0f0f0;
    color: #555;
    text-transform: capitalize;
}

.exam-actions {
    display: flex;
    gap: 5px;
}

.exam-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.exam-action-btn.view { background: #e3f2fd; color: #1976d2; }
.exam-action-btn.edit { background: #fff3e0; color: #f57c00; }
.exam-action-btn.schedule { background: #e8f5e9; color: #388e3c; }
.exam-action-btn.attempts { background: #f3e5f5; color: #7b1fa2; }
.exam-action-btn.analytics { background: #e0f7fa; color: #0097a7; }
.exam-action-btn.export { background: #fce4ec; color: #c2185b; }
.exam-action-btn.delete { background: #ffebee; color: #d32f2f; }

.exam-action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(26, 54, 93, 0.4);
    color: white;
}

.btn-secondary {
    background: #f8f9fa;
    color: var(--dark-text);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: #e9ecef;
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: white;
    border-radius: 16px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Form Styles */
.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title i {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check label {
    font-size: 0.9rem;
    color: var(--dark-text);
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Exam Create Container */
.exam-create-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.exam-create-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    color: white;
}

.exam-create-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.exam-create-header-content i {
    font-size: 42px;
    opacity: 0.9;
}

.exam-create-header-content h2 {
    margin: 0 0 5px;
    font-size: 1.5rem;
    font-weight: 600;
}

.exam-create-header-content p {
    margin: 0;
    opacity: 0.85;
    font-size: 0.9rem;
}

.exam-create-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Form Card */
.form-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.form-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--border-color);
}

.form-card-header i {
    font-size: 20px;
    color: var(--primary-color);
}

.form-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
}

.form-card-body {
    padding: 25px;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 30px;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 25px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-actions .btn {
    padding: 12px 28px;
    font-weight: 500;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Question Bank */
.question-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.question-type-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #e3f2fd;
    color: #1976d2;
}

.question-difficulty {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.question-difficulty.easy { background: #d4edda; color: #155724; }
.question-difficulty.medium { background: #fff3cd; color: #856404; }
.question-difficulty.hard { background: #f8d7da; color: #721c24; }

.question-text {
    font-size: 0.95rem;
    color: var(--dark-text);
    line-height: 1.6;
    margin-bottom: 15px;
}

.question-meta {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: var(--gray-text);
}

.question-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Live Monitoring */
.live-attempt-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    border-left: 4px solid #11998e;
}

.live-attempt-card.flagged {
    border-left-color: #f5576c;
}

.attempt-timer {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.attempt-timer.warning {
    color: #f5576c;
}

.attempt-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.active { background: #38ef7d; }
.status-indicator.idle { background: #f5576c; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Grading */
.grading-question {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.student-answer {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--dark-text);
}

.correct-answer {
    background: #d4edda;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #155724;
}

.grading-form {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.marks-input {
    width: 80px !important;
}

/* Results */
.result-grade {
    font-weight: 700;
    font-size: 1rem;
}

.result-grade.A { color: #28a745; }
.result-grade.B { color: #17a2b8; }
.result-grade.C { color: #9E9E9E; }
.result-grade.D { color: #fd7e14; }
.result-grade.F { color: #dc3545; }

.result-pass { color: #28a745; }
.result-fail { color: #dc3545; }
.result-pending { color: #9E9E9E; }

/* Exam Result Popup Modal */
.result-score-large {
    font-size: 4rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}

.result-score-large.pass {
    color: #28a745;
}

.result-score-large.fail {
    color: #dc3545;
}

/* Analytics */
.analytics-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.chart-container {
    position: relative;
    height: 300px;
    margin-top: 15px;
}

/* Integrity Logs */
.integrity-log-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.severity-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.severity-badge.low { background: #d4edda; color: #155724; }
.severity-badge.medium { background: #fff3cd; color: #856404; }
.severity-badge.high { background: #f8d7da; color: #721c24; }
.severity-badge.critical { background: #721c24; color: white; }

/* Tabs */
.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
}

.tab {
    padding: 12px 20px;
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-text);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-text);
}

/* Bulk Actions */
.bulk-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 8px;
    margin-bottom: 20px;
}

.bulk-checkbox {
    width: 18px;
    height: 18px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 3.75rem;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--gray-text);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 0.9rem;
    color: #999;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover,
.pagination button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.page-header-actions {
    display: flex;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }
    
    .exam-table-container {
        overflow-x: auto;
    }
    
    .exam-table {
        min-width: 800px;
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    .exam-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
 
