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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: white;
    min-height: 100vh;
}

/* Professional Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    text-decoration: none;
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.nav-logo a:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.nav-link:hover {
    color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
}

.logout-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: white !important;
    border-radius: 12px !important;
    position: relative;
    overflow: hidden;
}

.logout-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f87171, #ef4444);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logout-btn:hover::before {
    opacity: 1;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1e293b;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger:hover {
    background: rgba(79, 70, 229, 0.1);
}

.hamburger:hover span {
    background: #4f46e5;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 80px 20px;
    text-align: center;

}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color:white;
    background: linear-gradient(135deg, #000000, #000000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #000000;
    margin-bottom: 40px;
}

.lead1{
  font-size: 1.25rem;
  font-weight: 300;
  color:white;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.user-welcome {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.user-welcome p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #333;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 16px 32px;
    border-radius: 16px;
    border: none;
    box-shadow:
        0 8px 24px rgba(79, 70, 229, 0.25),
        0 4px 12px rgba(124, 58, 237, 0.15);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 12px 32px rgba(79, 70, 229, 0.3),
        0 6px 16px rgba(124, 58, 237, 0.2);
    background: linear-gradient(135deg, #5b52e8, #8b5cf6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.btn-secondary:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

.btn-full {
    width: 100%;
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #000000;
}

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

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Enhanced Professional Login Page Styles */
.login-page {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 25%, #4338ca 50%, #6366f1 75%, #8b5cf6 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
    z-index: -1;
    animation: float 25s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    25% { transform: translateY(-15px) rotate(0.5deg) scale(1.02); }
    50% { transform: translateY(10px) rotate(-0.5deg) scale(0.98); }
    75% { transform: translateY(-5px) rotate(0.3deg) scale(1.01); }
}

.navbar-transparent {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-transparent .nav-logo a {
    color: white;
}

.navbar-transparent .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-transparent .nav-link:hover,
.navbar-transparent .nav-link.active {
    color: white;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    font-size: 1.5rem;
    color: #ffd700;
}

.logo-text {
    font-weight: 700;
    font-size: 1.3rem;
}

.login-container {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    padding: 60px 50px;
    border-radius: 28px;
    box-shadow:
        0 32px 120px rgba(0, 0, 0, 0.12),
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    width: 100%;
    max-width: 520px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.login-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 40px 140px rgba(0, 0, 0, 0.15),
        0 12px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Smooth animations for form elements */
.form-group {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }

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

/* Enhanced focus states */
.input-wrapper:focus-within {
    transform: scale(1.02);
}

/* Smooth transitions for interactive elements */
.google-login-btn,
.login-btn,
.signup-link,
.test-login-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading state for login button */
.login-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.login-btn.loading i {
    animation: spin 1s linear infinite;
}

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

.login-header {
    text-align: center;
    margin-bottom: 45px;
    position: relative;
}

.login-icon {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #ec4899);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow:
        0 20px 40px rgba(79, 70, 229, 0.25),
        0 8px 16px rgba(124, 58, 237, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.login-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #ec4899);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    filter: blur(8px);
}

.login-icon i {
    font-size: 2.4rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-title {
    font-size: 2.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b, #334155, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 18px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.login-subtitle {
    color: #64748b;
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 380px;
    margin: 0 auto;
    font-weight: 400;
}

.error-message {
    background: #ffe6e6;
    color: #d63031;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeout-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.timeout-message i {
    color: #f39c12;
    margin-top: 2px;
}

.google-login-section {
    margin-bottom: 20px;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 12px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.05),
        0 2px 4px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.google-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(66, 133, 244, 0.1), transparent);
    transition: left 0.5s ease;
}

.google-login-btn:hover::before {
    left: 100%;
}

.google-login-btn:hover {
    border-color: #4285f4;
    background: rgba(66, 133, 244, 0.03);
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.08),
        0 4px 8px rgba(0, 0, 0, 0.05);
}

.google-login-btn i {
    color: #4285f4;
    font-size: 1.2rem;
}

.google-note {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-top: 10px;
    font-style: italic;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group label i {
    color: #667eea;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 18px 24px 18px 56px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    color: #1e293b;
    font-weight: 500;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.02);
}

.input-wrapper input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow:
        0 0 0 4px rgba(79, 70, 229, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    background: #fefefe;
}

.input-wrapper input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.input-icon {
    position: absolute;
    left: 18px;
    color: #999;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.input-wrapper:focus-within .input-icon {
    color: #667eea;
}

.password-toggle {
    position: absolute;
    right: 18px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #667eea;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    transition: color 0.3s ease;
}

.checkbox-container:hover {
    color: #667eea;
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #667eea;
    transform: scale(1.1);
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.forgot-password:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.login-btn {
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.login-btn i {
    font-size: 1.1rem;
}

.login-footer {
    text-align: center;
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.signup-section {
    margin-bottom: 25px;
}

.signup-text {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 0.95rem;
}

.signup-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.1);
}

.signup-link:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
    text-decoration: none;
}

.test-login-section {
    margin-top: 20px;
}

.test-login-text {
    margin: 0 0 12px 0;
    color: #888;
    font-size: 0.9rem;
}

.test-login-btn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.test-login-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.footer-transparent {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.footer-transparent .footer-content p {
    color: rgba(255, 255, 255, 0.8);
}

/* Professional Dashboard */
.dashboard-container {
    padding: 50px 24px;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: calc(100vh - 70px);
}

.dashboard-header {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    padding: 40px;
    border-radius: 24px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899, #f59e0b);
}

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

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.user-details h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.user-details p {
    color: #666;
    font-size: 1.1rem;
}

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

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    padding: 32px;
    border-radius: 20px;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.06),
        0 4px 16px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(226, 232, 240, 0.9);
}

.stat-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow:
        0 8px 24px rgba(79, 70, 229, 0.25),
        0 4px 12px rgba(124, 58, 237, 0.15);
    position: relative;
}

.stat-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(6px);
}

.stat-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.action-card {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    padding: 40px 32px;
    border-radius: 24px;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.06),
        0 6px 20px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(226, 232, 240, 0.8);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-card:hover::before {
    opacity: 1;
}

.action-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow:
        0 24px 72px rgba(0, 0, 0, 0.1),
        0 12px 32px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(226, 232, 240, 0.9);
}

.action-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow:
        0 12px 32px rgba(79, 70, 229, 0.25),
        0 6px 16px rgba(124, 58, 237, 0.15);
    position: relative;
    transition: all 0.3s ease;
}

.action-card-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 23px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(8px);
}

.action-card-icon i {
    font-size: 2.2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.action-card:hover .action-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow:
        0 16px 40px rgba(79, 70, 229, 0.3),
        0 8px 20px rgba(124, 58, 237, 0.2);
}

.action-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.action-card p {
    color: #64748b;
    margin-bottom: 28px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.recent-activity {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.recent-activity h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.activity-content p {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.activity-time {
    font-size: 0.9rem;
    color: #666;
}

/* Error Page */
.error-container {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.error-content {
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
}

.error-icon {
    font-size: 4rem;
    color: #ff4757;
    margin-bottom: 20px;
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.error-message {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-content p {
    color: #666;
    font-size: 0.9rem;
}

/* Role Selection Styles */
.role-selection-container {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.role-selection-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
}

.role-header {
    text-align: center;
    margin-bottom: 40px;
}

.role-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.role-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.role-options {
    display: grid;
    gap: 20px;
}

.role-option {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.role-option:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.role-radio {
    display: none;
}

.role-radio:checked + .role-label {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.role-label {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    cursor: pointer;
    margin: 0;
}

.role-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.role-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.role-content p {
    color: #666;
    margin-bottom: 15px;
}

.role-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.role-content li {
    color: #666;
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.role-content li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Pending Approval Styles */
.pending-approval-container {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pending-approval-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
}

.pending-icon {
    font-size: 4rem;
    color: #ffa500;
    margin-bottom: 20px;
}

.pending-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.pending-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.pending-details {
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #666;
}

.detail-item i {
    color: #667eea;
    width: 20px;
}

.pending-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.pending-note {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    color: #666;
}

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

.student-badge {
    background: #e3f2fd;
    color: #1976d2;
}

.teacher-badge {
    background: #f3e5f5;
    color: #7b1fa2;
}

.admin-badge {
    background: #ffebee;
    color: #d32f2f;
}

/* Quiz Management Styles */
.quiz-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quiz-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.quiz-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.quiz-content {
    flex: 1;
}

.quiz-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.quiz-content p {
    color: #666;
    margin-bottom: 10px;
}

.quiz-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #999;
}

.quiz-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.quiz-status.approved {
    background: #e8f5e8;
    color: #2e7d32;
}

.quiz-status.pending {
    background: #fff3e0;
    color: #f57c00;
}

.quiz-teacher {
    color: #667eea;
    font-weight: 500;
}

.quiz-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Admin Dashboard Styles */
.admin-sections {
    display: grid;
    gap: 30px;
    margin-bottom: 30px;
}

.admin-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.admin-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.pending-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pending-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

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

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-details-small h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.user-details-small p {
    color: #666;
    margin-bottom: 5px;
}

.request-date {
    font-size: 0.8rem;
    color: #999;
}

.pending-actions {
    display: flex;
    gap: 10px;
}

.btn-success {
    background: #4caf50;
    color: white;
}

.btn-success:hover {
    background: #45a049;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover {
    background: #da190b;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.empty-state-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Role Redirect Section */
.role-redirect-section {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.role-redirect-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.role-redirect-section p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.role-actions {
    margin-bottom: 20px;
}

.pending-notice {
    background: #fff3e0;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e65100;
}

.pending-notice i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid rgba(226, 232, 240, 0.8);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 16px 20px;
        border-radius: 12px;
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .action-cards {
        grid-template-columns: 1fr;
    }

    .user-info {
        flex-direction: column;
        text-align: center;
    }

    .nav-container {
        padding: 0 15px;
    }

    .login-card {
        padding: 30px 20px;
        max-width: 400px;
    }
    
    .login-title {
        font-size: 1.8rem;
    }
    
    .login-subtitle {
        font-size: 1rem;
    }
    
    .login-icon {
        width: 70px;
        height: 70px;
    }
    
    .login-icon i {
        font-size: 1.8rem;
    }

    .dashboard-container {
        padding: 24px 16px;
        background: #f8fafc;
    }

    .dashboard-header {
        padding: 24px 20px;
        margin-bottom: 24px;
    }

    .user-info {
        gap: 16px;
    }

    .stat-card {
        padding: 24px 20px;
        gap: 16px;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .action-card {
        padding: 28px 20px;
    }

    .action-card-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .action-card-icon i {
        font-size: 1.8rem;
    }

    .action-card h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .action-card p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .login-title {
        font-size: 1.5rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
    }
    
    .login-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .login-icon i {
        font-size: 1.5rem;
    }
    
    .login-card {
        padding: 25px 20px;
        max-width: 350px;
        margin: 0 15px;
    }
    
    .form-group input {
        padding: 14px 18px 14px 45px;
        font-size: 0.95rem;
    }
    
    .input-icon {
        left: 16px;
        font-size: 0.9rem;
    }
    
    .password-toggle {
        right: 16px;
        font-size: 0.9rem;
    }
    
    .login-btn {
        padding: 14px 20px;
        font-size: 1rem;
        min-height: 50px;
    }

    .dashboard-header {
        padding: 20px;
    }

    .user-details h1 {
        font-size: 1.5rem;
    }

    .dashboard-container {
        padding: 20px 12px;
    }

    .stat-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .stat-icon {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }

    .action-card {
        padding: 24px 16px;
        border-radius: 20px;
    }

    .action-card-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

    .action-card-icon i {
        font-size: 1.6rem;
    }

    .action-card h3 {
        font-size: 1.3rem;
    }
}

/* Additional responsive styles for very small screens */
@media (max-width: 360px) {
    .login-card {
        padding: 20px 15px;
        max-width: 320px;
    }
    
    .login-title {
        font-size: 1.4rem;
    }
    
    .login-subtitle {
        font-size: 0.85rem;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .login-container {
        padding: 10px;
        min-height: 100vh;
    }
    
    .login-card {
        padding: 30px 25px;
        max-width: 500px;
    }
    
    .login-header {
        margin-bottom: 25px;
    }
    
    .login-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}

/* Quiz Actions Styles */
.quiz-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
}

.quiz-item {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-danger {
    background: #ff4757;
    color: white;
}

.btn-danger:hover {
    background: #ff3742;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 90px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1001;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left: 4px solid #2ed573;
}

.notification.error {
    border-left: 4px solid #ff4757;
}

.notification i {
    font-size: 1.1rem;
}

.notification.success i {
    color: #2ed573;
}

.notification.error i {
    color: #ff4757;
}

/* Responsive adjustments for quiz actions */
@media (max-width: 768px) {
    .quiz-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .quiz-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }

    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

/* Specific rule to ensure student profile modal is hidden by default */
#studentProfileModal {
    display: none;
}

/* When modal should be shown, this class can override the default */
#studentProfileModal.show {
    display: block;
}

/* Specific rule to ensure teacher quiz modal is hidden by default */
#quizModal {
    display: none;
}

/* When quiz modal should be shown, this class can override the default */
#quizModal.show {
    display: block;
}

/* Content Viewer Modal Styles */
#contentViewerModal {
    display: none;
}

#contentViewerModal.show {
    display: block;
}

.content-modal {
    max-width: 90%;
    max-height: 90%;
    width: 1000px;
}

.content-modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
}

.content-viewer-options {
    text-align: center;
    padding: 20px;
}

.office-viewer {
    padding: 20px;
}

.viewer-info h3 {
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.viewer-info p {
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.office-viewer-container {
    margin-bottom: 20px;
}

.viewer-alternatives {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.viewer-note {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
}

.viewer-note i {
    margin-right: 5px;
}

.viewer-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.viewer-buttons .btn {
    flex: 1;
    min-width: 180px;
}

.pdf-viewer {
    width: 100%;
    height: 600px;
}

.pdf-viewer iframe {
    border: 1px solid #ddd;
    border-radius: 8px;
}

.content-viewer-fallback {
    text-align: center;
    padding: 40px 20px;
}

.fallback-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-modal {
        width: 95%;
        margin: 2% auto;
    }

    .content-modal-body {
        max-height: 80vh;
    }

    .viewer-buttons {
        flex-direction: column;
    }

    .pdf-viewer {
        height: 400px;
    }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.quiz-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.quiz-modal-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quiz-modal-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quiz-modal-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.quiz-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.quiz-card-title h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.quiz-card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.quiz-card-content {
    color: #666;
    font-size: 0.9rem;
}

.quiz-card-content p {
    margin: 5px 0;
}

.quiz-card-content strong {
    color: #333;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .quiz-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .quiz-card-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .quiz-filters {
        justify-content: center;
    }
}

/* Quiz View Styles */
.quiz-view-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.quiz-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.quiz-title-section h1 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 2rem;
    font-weight: 700;
}

.quiz-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.quiz-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #666;
}

.quiz-meta i {
    color: #667eea;
}

.quiz-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.quiz-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quiz-description {
    margin-bottom: 30px;
}

.quiz-description h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.quiz-description p {
    color: #666;
    line-height: 1.6;
}

.quiz-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.stat-item i {
    color: #667eea;
    font-size: 1.2rem;
}

.stat-item strong {
    color: #333;
}

.questions-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.question-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.question-header {
    background: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.question-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.question-points {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.question-content {
    padding: 20px;
}

.question-text {
    font-size: 1rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.option-item:hover {
    background: #f8f9fa;
}

.option-item.correct-answer {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.option-label {
    font-weight: 600;
    color: #667eea;
    min-width: 20px;
}

.option-text {
    flex: 1;
}

.correct-icon {
    color: #28a745;
    margin-left: auto;
}

.question-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #666;
}

.question-type {
    display: flex;
    align-items: center;
    gap: 5px;
}

.correct-answer-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #28a745;
    font-weight: 500;
}

/* Print styles */
@media print {
    .navbar, .footer, .quiz-actions {
        display: none !important;
    }

    .main-content {
        margin-top: 0 !important;
    }

    .quiz-view-container {
        padding: 0 !important;
    }

    .quiz-header, .quiz-content {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Responsive quiz view */
@media (max-width: 768px) {
    .quiz-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .quiz-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .quiz-meta {
        flex-direction: column;
        gap: 10px;
    }

    .quiz-stats {
        grid-template-columns: 1fr;
    }

    .question-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Quiz Taking Styles */
.quiz-taking-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.quiz-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.quiz-info h1 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
}

.quiz-info p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

.quiz-timer {
    text-align: center;
    flex-shrink: 0;
}

.timer-display {
    background: #667eea;
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-info {
    color: #666;
    font-size: 0.9rem;
}

.quiz-progress {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    width: 0%;
}

.quiz-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

.question-container {
    max-width: 800px;
    margin: 0 auto;
}

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

.question-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.question-text {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 25px;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    user-select: none;
    position: relative;
}

.option-item:hover {
    border-color: #667eea;
    background: #f8f9fa;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.option-item:active {
    transform: translateX(3px);
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.2);
}

.option-item.option-selected {
    border-color: #667eea;
    background: linear-gradient(to right, #f0f4ff, #f8faff);
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.15);
}

.option-item.option-selected::before {
    content: '✓';
    position: absolute;
    right: 20px;
    color: #667eea;
    font-size: 18px;
    font-weight: bold;
}

.option-item input[type="radio"] {
    display: none;
}

.option-item.option-selected .option-text {
    color: #667eea;
    font-weight: 600;
}

.option-item input[type="radio"]:checked + .option-label + .option-text {
    color: #667eea;
    font-weight: 600;
}

.option-item input[type="radio"]:checked ~ .option-text {
    color: #667eea;
    font-weight: 600;
}

.option-item:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: linear-gradient(to right, #f0f4ff, #f8faff);
}

.option-label {
    font-weight: 600;
    color: #667eea;
    min-width: 25px;
}

.option-text {
    flex: 1;
    color: #333;
}

.quiz-navigation {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.question-indicators {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.question-indicator {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    background: white;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.question-indicator:hover {
    border-color: #667eea;
    color: #667eea;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.question-indicator.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
}

.question-indicator.answered {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.question-indicator.answered::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 18px;
    height: 18px;
    background: #28a745;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.question-indicator.active.answered {
    background: #667eea;
    border-color: #667eea;
}

/* Available Quizzes Styles */
.quizzes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.quizzes-header {
    text-align: center;
    margin-bottom: 40px;
}

.quizzes-header h1 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.quizzes-header p {
    color: #666;
    font-size: 1.1rem;
}

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

.quiz-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.quiz-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.quiz-card-content h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.quiz-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.quiz-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.9rem;
}

.meta-item i {
    color: #667eea;
}

.meta-item.previous-score {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.meta-item.previous-score i {
    color: #2e7d32;
}

.meta-item.attempt-count {
    background: #fff3e0;
    color: #e65100;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.meta-item.attempt-count i {
    color: #e65100;
}

.btn-disabled {
    background: #6c757d;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-disabled:hover {
    background: #6c757d;
    color: #fff;
}

/* Student Profile Modal Styles */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.checkbox-item label {
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-end;
}

.form-actions .btn {
    min-width: 100px;
}

.quiz-author {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.quiz-author i {
    color: #667eea;
}

.quiz-card-actions {
    text-align: center;
}

/* Quiz Result Styles */
.result-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.result-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.result-title h1 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 2rem;
    font-weight: 700;
}

.result-title h2 {
    margin: 0;
    color: #666;
    font-size: 1.2rem;
    font-weight: 500;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    text-align: center;
}

.score-circle.excellent {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.score-circle.good {
    background: linear-gradient(135deg, #17a2b8, #20c997);
}

.score-circle.average {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.score-circle.poor {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
}

.score-percentage {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

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

.result-summary {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.summary-item i {
    font-size: 1.5rem;
    color: #667eea;
}

.summary-content h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
}

.summary-content p {
    margin: 0;
    color: #666;
    font-size: 1.1rem;
    font-weight: 600;
}

.result-analysis {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.result-analysis h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.questions-analysis {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.question-analysis {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.question-analysis.correct {
    border-left: 4px solid #28a745;
    background: #f8fff9;
}

.question-analysis.incorrect {
    border-left: 4px solid #dc3545;
    background: #fff8f8;
}

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

.question-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.question-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.question-analysis.correct .question-status {
    color: #28a745;
}

.question-analysis.incorrect .question-status {
    color: #dc3545;
}

.answer-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.answer-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.answer-item strong {
    color: #333;
    min-width: 120px;
}

.correct-answer {
    color: #28a745;
    font-weight: 600;
}

.incorrect-answer {
    color: #dc3545;
    font-weight: 600;
}

.performance-insights {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.performance-insights h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

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

.insight-item {
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.insight-item.excellent {
    background: #f8fff9;
    border-left: 4px solid #28a745;
}

.insight-item.good {
    background: #f0f8ff;
    border-left: 4px solid #17a2b8;
}

.insight-item.average {
    background: #fffbf0;
    border-left: 4px solid #ffc107;
}

.insight-item.poor {
    background: #fff8f8;
    border-left: 4px solid #dc3545;
}

.insight-item i {
    font-size: 1.5rem;
    margin-top: 2px;
}

.insight-item.excellent i {
    color: #28a745;
}

.insight-item.good i {
    color: #17a2b8;
}

.insight-item.average i {
    color: #ffc107;
}

.insight-item.poor i {
    color: #dc3545;
}

.insight-item h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.insight-item p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* My Results Styles */
.results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-header h1 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.results-header p {
    color: #666;
    font-size: 1.1rem;
}

.performance-summary {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.summary-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.summary-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.summary-content h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
}

.summary-number {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
}

.summary-date {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

.results-list {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.results-list h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.result-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.result-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.result-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.result-date {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.score-badge {
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.score-badge.excellent {
    background: #28a745;
}

.score-badge.good {
    background: #17a2b8;
}

.score-badge.average {
    background: #ffc107;
    color: #333;
}

.score-badge.poor {
    background: #dc3545;
}

.result-details {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.9rem;
}

.detail-item i {
    color: #667eea;
}

.result-actions {
    text-align: right;
}

.performance-chart {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.performance-chart h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.chart-container {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 200px;
    padding: 20px 0;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex: 1;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bar-fill {
    width: 100%;
    min-height: 20px;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
}

.bar-fill.excellent {
    background: #28a745;
}

.bar-fill.good {
    background: #17a2b8;
}

.bar-fill.average {
    background: #ffc107;
}

.bar-fill.poor {
    background: #dc3545;
}

.bar-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
}

.chart-labels {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.chart-label {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quiz-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .quiz-timer {
        align-self: center;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .question-indicators {
        justify-content: center;
    }

    .quizzes-grid {
        grid-template-columns: 1fr;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .result-actions {
        flex-direction: column;
        align-items: center;
    }

    .chart-container {
        height: 150px;
    }
}

/* Session timeout warning styles */
.session-warning {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    max-width: 300px;
    display: none;
    animation: slideInRight 0.3s ease;
}

.session-warning.show {
    display: block;
}

.session-warning i {
    color: #f39c12;
    margin-right: 8px;
}

.session-warning .warning-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.session-warning .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.session-warning .btn-extend {
    background: #28a745;
    color: white;
}

.session-warning .btn-extend:hover {
    background: #218838;
}

.session-warning .btn-logout {
    background: #dc3545;
    color: white;
}

.session-warning .btn-logout:hover {
    background: #c82333;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Quiz Results Styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.quiz-info-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quiz-info-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.quiz-info-card p {
    color: #666;
    margin-bottom: 16px;
}

.results-summary {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-item i {
    font-size: 1.5rem;
    color: #667eea;
}

.stat-item h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    margin: 0;
}

.stat-item p {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.results-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.results-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.results-table {
    overflow-x: auto;
}

.results-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.results-table th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e9ecef;
}

.results-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.results-table tr:hover {
    background: #f8f9fa;
}

.score-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    display: inline-block;
}

.score-badge.excellent {
    background: #d4edda;
    color: #155724;
}

.score-badge.good {
    background: #d1ecf1;
    color: #0c5460;
}

.score-badge.needs-improvement {
    background: #f8d7da;
    color: #721c24;
}

/* Results List Styles */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.result-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.result-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.result-content {
    flex: 1;
}

.result-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.result-content p {
    color: #666;
    margin-bottom: 8px;
}

.result-meta {
    display: flex;
    gap: 16px;
    align-items: center;
}

.result-score {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.result-score.excellent {
    background: #d4edda;
    color: #155724;
}

.result-score.good {
    background: #d1ecf1;
    color: #0c5460;
}

.result-score.needs-improvement {
    background: #f8d7da;
    color: #721c24;
}

.result-date {
    font-size: 0.85rem;
    color: #999;
}

.result-actions {
    display: flex;
    gap: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .summary-stats {
        grid-template-columns: 1fr;
    }

    .results-table {
        font-size: 0.9rem;
    }

    .results-table th,
    .results-table td {
        padding: 8px 12px;
    }

    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .result-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* Quiz Results Grid Styles */
.quiz-results-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quiz-results-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

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

.quiz-result-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.quiz-result-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.quiz-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.quiz-result-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.quiz-result-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.mini-stat i {
    color: #667eea;
    width: 16px;
}

.quiz-result-actions {
    display: flex;
    justify-content: flex-end;
}

/* Active Navigation Link */
.nav-link.active {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-weight: 600;
}

/* Bootstrap-style nav-link active state */
.navbar-nav .nav-link.active {
    color: #667eea !important;
    font-weight: 600;
}

/* Responsive Design for Quiz Results */
@media (max-width: 768px) {
    .quiz-results-grid {
        grid-template-columns: 1fr;
    }

    .quiz-result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .quiz-result-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* Content Upload Styles */
.content-upload-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.upload-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.file-upload-area {
    border: 2px dashed #667eea;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.file-upload-area:hover {
    border-color: #764ba2;
    background: #f0f2ff;
}

.file-upload-area.dragover {
    border-color: #764ba2;
    background: #e8ecff;
    transform: scale(1.02);
}

.file-upload-area i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 16px;
}

.file-upload-area p {
    margin: 8px 0;
    color: #666;
}

.file-types {
    font-size: 0.9rem;
    color: #999;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #e8f5e8;
    border-radius: 8px;
    border: 1px solid #4caf50;
}

.file-info i {
    color: #4caf50;
}

.content-list-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-list-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

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

.content-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.content-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.content-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.content-info {
    flex: 1;
}

.content-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.content-info p {
    color: #666;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.content-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.content-category {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.content-date {
    color: #999;
    font-size: 0.8rem;
}

.content-stats {
    display: flex;
    gap: 16px;
}

.content-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #666;
}

.content-stats .stat-item i {
    color: #667eea;
}

.content-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Responsive Design for Content */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .content-actions {
        align-self: stretch;
        justify-content: flex-end;
    }

    .file-upload-area {
        padding: 20px 10px;
    }

    .file-upload-area i {
        font-size: 2rem;
    }
}

/* Study Material Styles */
.study-material-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.material-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

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

.material-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.material-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.material-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.material-info {
    flex: 1;
}

.material-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.material-info p {
    color: #666;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.material-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.material-category {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.material-teacher {
    color: #666;
    font-size: 0.8rem;
}

.material-date {
    color: #999;
    font-size: 0.8rem;
}

.material-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.material-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #666;
}

.material-stats .stat-item i {
    color: #667eea;
}

.material-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e9ecef;
}

/* Responsive Design for Study Material */
@media (max-width: 768px) {
    .material-filters {
        flex-direction: column;
        gap: 12px;
    }

    .material-grid {
        grid-template-columns: 1fr;
    }

    .material-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .material-actions {
        align-self: stretch;
        justify-content: flex-end;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Admin Content Management Styles */
.content-management-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.content-card.approved {
    border-left: 4px solid #28a745;
}

.content-card.pending {
    border-left: 4px solid #ffc107;
}

.content-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.content-status.approved {
    background: #d4edda;
    color: #155724;
}

.content-status.pending {
    background: #fff3cd;
    color: #856404;
}

.content-status i {
    margin-right: 4px;
}

.admin-actions {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Error Page Styles */
.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.error-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.error-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.error-card h1 {
    color: #333;
    margin-bottom: 16px;
    font-size: 1.8rem;
}

.error-card p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* PowerPoint Viewer Styles */
.powerpoint-viewer-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.viewer-header {
    text-align: center;
    margin-bottom: 30px;
}

.viewer-header h1 {
    color: #333;
    margin-bottom: 8px;
}

.file-info {
    color: #666;
    font-size: 0.9rem;
}

.viewer-content {
    margin-bottom: 30px;
}

.viewer-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.option-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.option-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.option-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.option-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.option-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.viewer-info {
    background: #e8f4fd;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #007bff;
}

.viewer-info h3 {
    color: #333;
    margin-bottom: 12px;
}

.viewer-info p {
    color: #666;
    margin-bottom: 12px;
}

.viewer-info ul {
    color: #666;
    padding-left: 20px;
}

.viewer-info li {
    margin-bottom: 8px;
}

.viewer-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Embedded Viewer Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 95%;
    height: 95%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

.modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.viewer-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #333;
}

.tab-btn.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background: white;
}

.viewer-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.viewer-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-size: 1.1rem;
}

.loading-message i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #007bff;
}

.loading-message p {
    margin: 0;
}

.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #dc3545;
    font-size: 1.1rem;
    text-align: center;
    padding: 20px;
}

.error-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #dc3545;
}

.error-message p {
    margin: 0 0 20px 0;
    color: #666;
}

.error-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* File Viewer Styles */
.file-viewer {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.file-info {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.file-info h3 {
    color: #333;
    margin-bottom: 10px;
}

.file-info p {
    color: #666;
    margin: 5px 0;
}

.file-size {
    font-size: 0.9rem;
    color: #999;
}

.viewer-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.viewer-option {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.viewer-option.full-width {
    width: 100%;
}

.viewer-option h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.viewer-option p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.external-viewers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.external-viewers .btn {
    text-align: left;
    justify-content: flex-start;
}

.embedded-viewers {
    margin-top: 15px;
}

.viewer-iframe {
    width: 100%;
    height: 600px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: white;
}

.viewer-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 10px;
}

.viewer-tabs .tab-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.3s;
    border-radius: 4px;
}

.viewer-tabs .tab-btn:hover {
    background: #e9ecef;
    color: #333;
}

.viewer-tabs .tab-btn.active {
    color: #007bff;
    background: white;
    font-weight: 500;
}

/* Responsive Design for PowerPoint Viewer */
@media (max-width: 768px) {
    .viewer-options {
        grid-template-columns: 1fr;
    }

    .viewer-actions {
        flex-direction: column;
        align-items: center;
    }

    .modal-content {
        width: 95%;
        height: 95%;
    }

    .viewer-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* Grade Level Styles */
.content-grade, .material-grade {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 4px;
}

.content-grade i, .material-grade i {
    font-size: 0.7rem;
}

/* Form group spacing for grade level */
.form-group select[name="gradeLevel"] {
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-group select[name="gradeLevel"]:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-text.text-muted {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Grade Level Notice */
.grade-level-notice {
    margin: 20px 0;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Language Selection Styles */
.radio-group .radio-item label i.fa-flag {
    color: #007bff;
    margin-right: 8px;
}

.radio-group .radio-item:hover label i.fa-flag {
    color: #0056b3;
}

.radio-group .radio-item input:checked + label i.fa-flag {
    color: #28a745;
}

#language-selection-info {
    animation: fadeIn 0.3s ease-in;
}

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

/* Organization Code Display Styles */
.organization-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.organization-info h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.organization-code-section {
    margin-top: 0.8rem;
}

.organization-code label {
    display: block;
    color: #000000;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.code-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.code-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.code-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.copy-btn {
    padding: 0.75rem;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.copy-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

.help-text {
    color: #000000;
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 500;
}

.help-text i {
    color: #4f46e5;
}

/* Quiz question images */
.question-image-container {
    margin: 15px 0;
    text-align: center;
}

.question-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}



/* Question Images Display */
.question-images-container {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.question-images-title {
    font-size: 18px;
    color: #495057;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.question-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.question-image-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.question-image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.question-image-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.question-image-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.question-image-type {
    font-size: 12px;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
}

.question-image-display {
    width: 100%;
    height: auto;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.question-image-display:hover {
    transform: scale(1.02);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.image-modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #aaa;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.image-modal-close:hover {
    color: #000;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

#modalImageTitle {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}
