/* Interactive English Lab - Modern Pastel Theme */

:root {
    --primary: #0d9488;
    --secondary: #0f766e;
    --accent: #10b981;
    --accent-soft: #ccfbf1;
    --warning: #fbbf24;
    --danger: #ef4444;
    --muted: #94a3b8;
    --light: #f0fdfa;
    --lighter: #ffffff;
    --dark: #111d1c;
    --shadow-soft: 0 20px 45px rgba(13, 148, 136, 0.08);
    --shadow-card: 0 15px 35px rgba(13, 148, 136, 0.08);
    --radius: 12px;
    --transition: all 0.25s ease-in-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Inter', 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--light);
    color: var(--dark);
    min-height: 100vh;
    line-height: 1.7;
}

img {
    max-width: 100%;
    border-radius: var(--radius);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Sticky Navbar */
.ielab-navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(79, 70, 229, 0.08);
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: var(--transition);
}

.ielab-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.ielab-navbar .nav-link {
    position: relative;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--dark);
    transition: var(--transition);
}

.ielab-navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.4rem;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 99px;
    transform: scaleX(0);
    transform-origin: center;
    transition: var(--transition);
}

.ielab-navbar .nav-link:hover,
.ielab-navbar .nav-link.active {
    color: var(--primary);
}

.ielab-navbar .nav-link:hover::after,
.ielab-navbar .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border: none;
    outline: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 0 5rem;
.hero--compact {
    padding: 4rem 0;
    background: var(--light);
}

    background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.15), transparent 45%),
                radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.18), transparent 40%),
                var(--light);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 4vw, 3.75rem);
    font-weight: 700;
    color: var(--dark);
}

.hero-content p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
}

.hero-cta .btn {
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
}

.hero-art {
    position: relative;
    padding: 2rem;
}

.hero-art::before,
.hero-art::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    z-index: 0;
    opacity: 0.5;
}

.hero-art::before {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: rotate(-6deg);
}

.hero-art::after {
    background: #fff;
    transform: rotate(6deg);
}

.hero-art img {
    position: relative;
    z-index: 1;
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
}

/* Buttons */
.btn {
    border-radius: 999px;
.modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: var(--shadow-soft);
}

.nav-pills .nav-link {
    border-radius: 999px;
    color: var(--muted);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

    padding: 0.65rem 1.75rem;
    font-weight: 600;
    border: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.35);
}

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

.btn-outline-primary:hover {
    background: var(--secondary);
    color: #fff;
}

.btn:active {
    transform: scale(0.96);
}

.btn .ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Reusable Sections */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title span {
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 0.2em;
}

.section-title h2 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    margin-top: 0.5rem;
}

.section-title p {
    color: var(--muted);
    max-width: 620px;
    margin: 0.75rem auto 0;
}

/* Cards */
.soft-card {
    background: var(--lighter);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 1.75rem;
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: var(--transition);
}

.soft-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 55px rgba(79, 70, 229, 0.12);
}

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

.course-tile {
    background: var(--lighter);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-tile:hover {
    transform: translateY(-8px) scale(1.01);
}

.course-tile img {
    height: 220px;
    object-fit: cover;
    width: 100%;
    border-radius: 0;
}

.course-info {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-info .btn {
    margin-top: auto;
}

.course-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.course-info p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pill {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.15);
    color: var(--secondary);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.progress-badge {
    background: rgba(34, 197, 94, 0.18);
    color: var(--accent);
}

.floating-card {
    position: relative;
    overflow: hidden;
}

.floating-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

/* Dashboard stats */
.stat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.75rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(34, 197, 94, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: var(--shadow-soft);
}

.stat-chip h2 {
    font-size: 2.75rem;
    font-weight: 700;
}

.stat-chip span {
    color: var(--muted);
}

/* Lesson layout */
.lesson-wrapper {
    background: var(--lighter);
    border-radius: 32px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.lesson-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.lesson-media {
    margin: 2rem 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

/* Quiz options */
.quiz-option {
    border: 2px solid rgba(148, 163, 184, 0.4);
    border-radius: 18px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.quiz-option:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-3px);
}

.quiz-option input {
    accent-color: var(--primary);
    transform: scale(1.4);
}

.quiz-option.selected {
    border-color: var(--secondary);
    background: rgba(99, 102, 241, 0.12);
}

/* Auth cards */
.auth-shell {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-panel {
    background: var(--lighter);
    border-radius: 28px;
    padding: 3rem;
    width: 100%;
    max-width: 540px;
    box-shadow: var(--shadow-soft);
}

.form-control,
.form-select {
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    transition: var(--transition);
    background: rgba(248, 249, 255, 0.8);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.15);
}

.form-floating > label {
    color: var(--muted);
}

.contact-info {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
}

/* Animations */
.fade-up,
.fade-left,
.fade-right,
.scale-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.fade-left {
    transform: translateX(-40px);
}

.fade-right {
    transform: translateX(40px);
}

.scale-in {
    transform: scale(0.9);
}

.fade-up.visible,
.fade-left.visible,
.fade-right.visible,
.scale-in.visible {
    opacity: 1;
    transform: none;
}

.floating-hover {
    transition: var(--transition);
}

.floating-hover:hover {
    transform: translateY(-6px);
}

/* About page */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.timeline-step {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 18px;
    background: rgba(79, 70, 229, 0.05);
}

.timeline-step span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--lighter);
    display: grid;
    place-items: center;
    color: var(--secondary);
    font-weight: 600;
}

.team-card img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
}

/* Contact */
.contact-form {
    background: var(--lighter);
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
}

.contact-form textarea {
    min-height: 160px;
}

.map-wrapper iframe {
    border-radius: 24px;
    min-height: 300px;
    width: 100%;
    border: none;
    box-shadow: var(--shadow-soft);
}

/* Footer */
footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.8);
    padding: 2.5rem 0;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 991px) {
    .hero {
        text-align: center;
    }
    .hero-cta .btn {
        width: 100%;
    }
    .contact-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575px) {
    .auth-panel {
        padding: 2rem;
    }
    .hero {
        padding: 4rem 0 3rem;
    }
    .course-info {
        padding: 1.25rem;
    }
}

/* Utility spacing */
.section-space {
    padding: 5rem 0;
}

.badge-outline {
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 0.2rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
}

.xp-chip {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent);
    border-radius: 999px;
    padding: 0.2rem 0.9rem;
    font-weight: 600;
}

.streak-chip {
    background: rgba(249, 115, 22, 0.15);
    color: #ea580c;
    border-radius: 999px;
    padding: 0.2rem 0.9rem;
    font-weight: 600;
}

/* Auth Modal Slider */
.auth-toggle-wrapper {
    position: relative;
    display: flex;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 999px;
    padding: 6px;
    width: 100%;
}
.auth-toggle-bg {
    position: absolute;
    top: 6px;
    left: 6px;
    bottom: 6px;
    width: calc(50% - 6px);
    background: white;
    border-radius: 999px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}
.auth-toggle-btn {
    position: relative;
    flex: 1;
    z-index: 2;
    background: none;
    border: none;
    padding: 10px 0;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.3s;
}
.auth-toggle-btn.active {
    color: var(--primary);
}
.auth-slider-container {
    overflow: hidden;
    width: 100%;
}
.auth-slider {
    display: flex;
    width: 200%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-pane {
    width: 50%;
    flex: 0 0 50%;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.custom-input {
    background: #f1f5f9 !important;
    border: 2px solid transparent !important;
    border-radius: 16px !important;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    color: var(--dark) !important;
    font-weight: 500;
}
.custom-input::placeholder {
    color: #94a3b8 !important;
}
.custom-input:focus {
    background: white !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
}
.form-floating > label {
    color: #475569;
    font-weight: 500;
}
.auth-submit-btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

/* Modern Input with Icon */
.modern-input {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0.65rem 1rem 0.65rem 2.5rem !important;
    color: var(--dark) !important;
    font-weight: 500;
    transition: all 0.2s ease;
}
.modern-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
}
.modern-input::placeholder {
    color: #94a3b8 !important;
    font-weight: 400;
}
.input-icon-wrapper > svg:first-child {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    pointer-events: none;
}
.btn-eye {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    z-index: 5;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}
.btn-eye:hover {
    background: #f1f5f9;
}

/* Admin Dashboard Premium UI */
.admin-header-card {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    border-radius: 20px;
    padding: 2.5rem 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px -5px rgba(13, 148, 136, 0.3);
}
.admin-header-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    border-radius: 50%;
}
.admin-header-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    border-radius: 50%;
}
.admin-stat-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}
.admin-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08);
}
.admin-stat-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}
.admin-stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.admin-stat-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--dark);
    line-height: 1.2;
}
.admin-stat-info span {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}
.stat-trend {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.stat-trend .trend-val {
    color: #10b981;
    font-weight: 700;
}
.card-container {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
}
.table-modern {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}
.table-modern thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 1rem 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}
.table-modern tbody tr {
    transition: all 0.2s ease;
}
.table-modern tbody tr:hover {
    background: #f8fafc;
}
.table-modern td {
    padding: 1rem 0.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}
.table-modern tbody tr:last-child td {
    border-bottom: none;
}
.xp-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    width: 120px;
}
.xp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 3px;
}
.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Dashboard Sidebar Layout */
.dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: var(--primary); /* Teal/Tosca */
    border-right: none;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}
.sidebar-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}
.sidebar-header img {
    /* If logo is dark, this makes it white */
    filter: brightness(0) invert(1);
}
.sidebar-user-profile {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-nav {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.sidebar-nav::-webkit-scrollbar {
    display: none;             /* Chrome, Safari and Opera */
}
.sidebar-nav-title {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
    margin-top: 1rem;
}
.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin: 0.25rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease;
}
.sidebar-nav li a:hover, .sidebar-nav li a.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.sidebar-nav li a .icon {
    width: 24px;
    margin-right: 12px;
    text-align: center;
    font-size: 1.1rem;
}
.sidebar-promo-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 1.25rem;
    margin: 1.5rem 1rem;
    position: relative;
    overflow: hidden;
    color: white;
}
.sidebar-promo-card .rocket-icon {
    font-size: 3rem;
    position: absolute;
    right: -5px;
    top: -5px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-10px) rotate(45deg); }
    100% { transform: translateY(0px) rotate(45deg); }
}
.dashboard-main-content {
    margin-left: 260px;
    min-height: 100vh;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
}
.dashboard-top-header {
    position: sticky;
    top: 0;
    z-index: 1020;
}
.dashboard-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1030;
}
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1035;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Admin Premium Forms */
.admin-form-header {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    padding: 2rem;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    position: relative;
    overflow: hidden;
}
.admin-form-header::after {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    padding: 2.5rem 2rem;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-modern-control {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}
.form-modern-control:focus {
    background-color: #fff;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.upload-dashed-box {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.upload-dashed-box:hover {
    border-color: #6366f1;
    background-color: #eef2ff;
}
.upload-dashed-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.upload-icon {
    font-size: 2.5rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    display: inline-block;
    transition: color 0.2s ease;
}
.upload-dashed-box:hover .upload-icon {
    color: var(--primary);
}

/* Master Materials Frontend Styles */
.material-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    height: 100%;
}
.material-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
    transform: translateY(-2px);
    color: inherit;
}
.material-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}
.material-card-content h5 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.3rem;
}
.material-card-content p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Icon Themes */
.theme-blue-clock { background: #e0f2fe; color: #0284c7; }
.theme-orange-question { background: #ffedd5; color: #ea580c; }
.theme-blue-node { background: #ccfbf1; color: #0d9488; }
.theme-yellow-arrows { background: #fef3c7; color: #d97706; }
.theme-blue-chat { background: #dbeafe; color: #2563eb; }
.theme-yellow-bolt { background: #fef08a; color: #ca8a04; }
.theme-blue-link { background: #cffafe; color: #0891b2; }
.theme-orange-user { background: #ffedd5; color: #f97316; }
.theme-blue-hash { background: #e0f2fe; color: #0369a1; }
.theme-yellow-stars { background: #fef9c3; color: #eab308; }
.theme-blue-pin { background: #ccfbf1; color: #0d9488; }
.theme-orange-box { background: #ffedd5; color: #ea580c; }
.theme-blue-speech { background: #e0e7ff; color: #6366f1; }
.theme-yellow-connect { background: #fef3c7; color: #b45309; }

/* Level Tabs */
.level-tabs {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
    scrollbar-width: thin;
}
.level-tabs::-webkit-scrollbar {
    height: 4px;
}
.level-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.level-tab-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-decoration: none;
}

/* Level Tab Distinct Colors */
.level-tab-slate { color: #475569; background: #f1f5f9; border-color: #e2e8f0; }
.level-tab-slate.active, .level-tab-slate:hover { background: #475569; color: #fff; border-color: #475569; }

.level-tab-blue { color: #2563eb; background: #eff6ff; border-color: #bfdbfe; }
.level-tab-blue.active, .level-tab-blue:hover { background: #2563eb; color: #fff; border-color: #2563eb; }

.level-tab-emerald { color: #059669; background: #ecfdf5; border-color: #a7f3d0; }
.level-tab-emerald.active, .level-tab-emerald:hover { background: #059669; color: #fff; border-color: #059669; }

.level-tab-amber { color: #d97706; background: #fffbeb; border-color: #fde68a; }
.level-tab-amber.active, .level-tab-amber:hover { background: #d97706; color: #fff; border-color: #d97706; }

.level-tab-violet { color: #7c3aed; background: #f5f3ff; border-color: #ddd6fe; }
.level-tab-violet.active, .level-tab-violet:hover { background: #7c3aed; color: #fff; border-color: #7c3aed; }

.level-tab-pink { color: #db2777; background: #fdf2f8; border-color: #fbcfe8; }
.level-tab-pink.active, .level-tab-pink:hover { background: #db2777; color: #fff; border-color: #db2777; }

.level-tab-red { color: #dc2626; background: #fef2f2; border-color: #fecaca; }
.level-tab-red.active, .level-tab-red:hover { background: #dc2626; color: #fff; border-color: #dc2626; }


@media (max-width: 991.98px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
    }
    .dashboard-sidebar.show {
        transform: translateX(0);
    }
    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    .dashboard-main-content {
        margin-left: 0;
    }
    .dashboard-mobile-header {
        display: flex !important;
    }
    .dashboard-header-spacer {
        display: block !important;
    }
}
