/* ==========================================================================
   ACADEMIC DEVELOPER DOCUMENTATION DESIGN SYSTEM
   Soft Light Theme | High Readability | Calm & Modern
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* Color System */
    --bg-primary: #F4F3FF;
    --bg-card: #FFFFFF;
    --bg-code: #0F1629;
    --code-text: #F8FAFC;
    
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    
    --border-color: #E2E8F0;
    --border-subtle: #F1F5F9;
    
    /* Brand Accent - Purple */
    --accent-purple: #6C4CE8;
    --purple-light: #EDE9FE;
    --purple-hover: #5538D8;
    --purple-subtle: rgba(108, 76, 232, 0.08);
    
    /* Semantic Colors */
    --blue: #2563EB;
    --blue-light: #EFF6FF;
    --blue-border: #BFDBFE;
    
    --teal: #0D9488;
    --teal-light: #F0FDFA;
    --teal-border: #99F6E4;
    
    --yellow: #F59E0B;
    --yellow-light: #FFFBEB;
    --yellow-border: #FDE68A;
    
    --red: #DC2626;
    --red-light: #FEF2F2;
    --red-border: #FECACA;

    /* Premium gradient palette */
    --grad-hero: linear-gradient(135deg, #EDE9FE 0%, #EFF6FF 50%, #F0FDF4 100%);
    --grad-purple: linear-gradient(135deg, #6C4CE8, #8B5CF6);
    --grad-card-accent: linear-gradient(135deg, #6C4CE8 0%, #0EA5E9 100%);
    
    /* Layout & Shadows */
    --max-width: 1400px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --radius-pill: 9999px;
    
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 4px 16px rgba(108, 76, 232, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 12px 32px rgba(108, 76, 232, 0.14), 0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-float: 0 20px 40px rgba(108, 76, 232, 0.12), 0 8px 16px rgba(0, 0, 0, 0.04);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    scroll-padding-top: 80px;
    background-color: var(--bg-primary);
    -webkit-overflow-scrolling: touch;
}

body {
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(ellipse 80% 50% at 20% 10%, rgba(108, 76, 232, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(14, 165, 233, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 50% 30% at 60% 20%, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   GLOBAL HEADER / STICKY NAVIGATION (PURPLE-BLUE HARMONIZED EDITORIAL THEME)
   ========================================================================== */

.nevigation {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(248, 247, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1.5px solid rgba(108, 76, 232, 0.14);
    box-shadow: 0 4px 20px -2px rgba(108, 76, 232, 0.05), 0 1px 3px rgba(15, 23, 42, 0.02);
    height: 66px;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.nevigation .logo {
    color: var(--text-primary);
    font-size: 21px;
    font-weight: 850;
    letter-spacing: -0.03em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #0284C7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nevigation .logo:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.nevigation .logo::after {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.nav-links li {
    position: relative;
    margin: 0;
}

.nav-links a {
    color: #334155;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    padding: 6px 0;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #4F46E5, #0EA5E9);
    transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
    color: #4F46E5;
    opacity: 1;
    background: transparent;
    box-shadow: none;
    transform: none;
}

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

.nav-links a.active,
.learning-page a[href*="javascript.html"].active,
.learning-page a[href*="react.html"].active {
    color: #4F46E5;
    font-weight: 750;
    background: transparent;
    box-shadow: none;
}

.nav-links a.active::after {
    display: block !important;
    width: 100% !important;
    height: 2.5px !important;
    border-radius: 2px;
    background: linear-gradient(90deg, #4F46E5 0%, #7C3AED 50%, #0EA5E9 100%) !important;
}

/* Theme Toggle Button (Disabled) */
.theme-toggle-btn {
    display: none !important;
}

/* Scrolled Nav & Dropdown for Mobile / Compact */
.nav-dropdown-wrapper {
    position: relative;
    display: none;
}

.nav-dropdown-toggle {
    background: var(--purple-light);
    border: 1px solid var(--border-color);
    color: var(--accent-purple);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 180px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    z-index: 1001;
}

.nav-dropdown-menu.active {
    display: flex;
}

.nav-dropdown-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 12px;
    font-size: 13.5px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.nav-dropdown-menu a:hover {
    background: var(--purple-light);
    color: var(--accent-purple);
}

/* ==========================================================================
   PAGE WRAPPERS & LAYOUT CONTAINER (~1400px)
   ========================================================================== */

.learning-page,
.home-page,
.projects-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 32px 80px 32px;
}

/* ==========================================================================
   TRACK HERO HEADER & BALANCED 2-COLUMN MASTERY BANNER
   ========================================================================== */

.track-hero-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    background: linear-gradient(135deg, rgba(237, 233, 254, 0.7) 0%, rgba(239, 246, 255, 0.5) 60%, rgba(240, 253, 250, 0.4) 100%);
    border: 1px solid rgba(108, 76, 232, 0.12);
    border-radius: 20px;
    padding: 32px 36px 32px 36px;
    margin-bottom: 28px;
    position: relative;
    text-align: left;
    overflow: hidden;
}

/* Decorative background orbs */
.track-hero-banner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(108, 76, 232, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.track-hero-banner::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 30%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.track-hero-left {
    flex: 1.3;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.track-hero-right {
    flex: 0.85;
    min-width: 290px;
    max-width: 380px;
    position: relative;
    z-index: 1;
}

@media (max-width: 960px) {
    .track-hero-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 24px 24px;
    }
    .track-hero-right {
        max-width: 100%;
        min-width: 0;
    }
}

.track-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.track-hero-badge.react-badge {
    color: #0369A1;
    background: linear-gradient(135deg, #E0F2FE, #DBEAFE);
    border: 1px solid #BAE6FD;
    box-shadow: 0 2px 8px rgba(3, 105, 161, 0.12);
}

.track-hero-badge.js-badge {
    color: #92400E;
    border: 1px solid #FDE68A;
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.12);
}

.track-hero-badge.html-badge {
    color: #C2410C;
    border: 1px solid #FED7AA;
    background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
    box-shadow: 0 2px 8px rgba(194, 65, 12, 0.12);
}

.track-hero-badge.css-badge {
    color: #0369A1;
    border: 1px solid #BAE6FD;
    background: linear-gradient(135deg, #F0F9FF, #E0F2FE);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12);
}

.doodle-icon {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.track-hero-title {
    color: var(--text-primary);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 10px 0;
    line-height: 1.15;
}

.track-hero-subtitle {
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.65;
    max-width: 660px;
    margin: 0 0 20px 0;
}

.track-stats-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.stat-pill {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 12.5px;
    color: #374151;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 2px 8px rgba(108, 76, 232, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.stat-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 76, 232, 0.1);
}

.stat-doodle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
}

.stat-blue .stat-doodle-icon {
    background: linear-gradient(135deg, #EEF2FF, #DBEAFE);
}

.stat-rose .stat-doodle-icon {
    background: linear-gradient(135deg, #FFF1F2, #FFE4E6);
}

.stat-amber .stat-doodle-icon {
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
}

.stat-emerald .stat-doodle-icon {
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
}

.stat-pill strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Right-Side Track Mastery Card */
.track-progress-card {
    background: #FFFFFF;
    border: 1px solid rgba(108, 76, 232, 0.15);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 4px 20px rgba(108, 76, 232, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.track-progress-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6C4CE8 0%, #0EA5E9 50%, #10B981 100%);
    border-radius: 16px 16px 0 0;
}

.progress-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.progress-card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.progress-card-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-purple);
    opacity: 0.7;
}

.track-progress-percent {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
}

.progress-badge-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EDE9FE, #DBEAFE);
    border: 2px solid rgba(108, 76, 232, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--accent-purple);
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(108, 76, 232, 0.15);
}

.track-progress-track {
    width: 100%;
    height: 8px;
    background: #F1F5F9;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.track-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6C4CE8 0%, #0EA5E9 60%, #10B981 100%);
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: #64748B;
    font-weight: 500;
}

.progress-milestone-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   CURRICULUM SEARCH & FILTER BAR
   ========================================================================== */

.curriculum-search-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 auto 26px auto;
    width: 100%;
}

.curriculum-search-box {
    flex: 1.8;
    min-width: 260px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 10px;
    padding: 10px 16px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(108, 76, 232, 0.04);
}

.curriculum-search-box:focus-within {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(108, 76, 232, 0.1), 0 4px 16px rgba(108, 76, 232, 0.08);
    background: #FFFFFF;
}

.curriculum-search-icon {
    flex-shrink: 0;
    color: var(--text-muted);
}

.curriculum-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13.5px;
    font-family: inherit;
    font-weight: 500;
}

.curriculum-search-input::placeholder {
    color: #94A3B8;
}

.curriculum-filters-box {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.curriculum-filter-btn {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 8px;
    padding: 8px 14px;
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.curriculum-filter-btn:hover {
    border-color: rgba(108, 76, 232, 0.3);
    color: var(--accent-purple);
    background: rgba(237, 233, 254, 0.5);
    transform: translateY(-1px);
}

.curriculum-filter-btn.active {
    background: linear-gradient(135deg, #6C4CE8, #8B5CF6);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(108, 76, 232, 0.3);
}

.curriculum-filter-btn[data-filter="completed"].active {
    background: linear-gradient(135deg, #059669, #0D9488);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.curriculum-filter-btn[data-filter="bookmarked"].active {
    background: linear-gradient(135deg, #D97706, #F59E0B);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.filter-doodle-icon {
    flex-shrink: 0;
}

/* ==========================================================================
   CURRICULUM LESSON CARDS — PREMIUM DESIGN
   ========================================================================== */

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

.chapters-section-title {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.chapters-section-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    background: var(--purple-light);
    border-radius: 5px;
    border: 1px solid rgba(108, 76, 232, 0.15);
}

.chapters-section-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 400;
}

.learning-page .lesson-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1100px) {
    .learning-page .lesson-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .learning-page .lesson-container {
        grid-template-columns: 1fr;
    }
}

.learning-page .lesson-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px 22px 16px 22px;
    box-shadow: 0 2px 8px rgba(108, 76, 232, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    text-align: left;
    overflow: hidden;
}

/* Colored top-line accent on all cards */
.learning-page .lesson-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6C4CE8, #0EA5E9);
    border-radius: 14px 14px 0 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.learning-page .lesson-card:hover::before {
    opacity: 1;
}

.learning-page .lesson-card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 76, 232, 0.25);
    box-shadow: var(--shadow-hover);
}

.learning-page .card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.learning-page .lesson-card span:first-child,
.learning-page .lesson-card .chapter-number-pill {
    color: #4F46E5;
    background: #EEF2FF;
    border: 1px solid rgba(79, 70, 229, 0.15);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-block;
    letter-spacing: 0.02em;
}

.card-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-action-btn {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.card-action-btn:hover {
    border-color: #CBD5E1;
    color: #0F172A;
    background: #F1F5F9;
    transform: scale(1.06);
}

.card-action-btn.bookmark-btn:hover {
    color: #D97706;
    border-color: #FCD34D;
    background: #FFFBEB;
}

.card-action-btn.complete-btn:hover {
    color: #059669;
    border-color: #A7F3D0;
    background: #ECFDF5;
}

.learning-page .lesson-card.is-bookmarked {
    border-left: 3.5px solid #F59E0B;
    background: linear-gradient(135deg, #FFFBEB 0%, #FFFFFF 30%);
}

.learning-page .lesson-card.is-bookmarked .bookmark-btn {
    background: #FEF3C7;
    border-color: #F59E0B;
    color: #B45309;
}

.learning-page .lesson-card.is-completed {
    border-left: 3.5px solid #10B981;
    background: linear-gradient(135deg, #ECFDF5 0%, #FFFFFF 30%);
}

.learning-page .lesson-card.is-completed .chapter-number-pill,
.learning-page .lesson-card.is-completed span:first-child {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    border-color: #6EE7B7;
    color: #059669;
}

.learning-page .lesson-card.is-completed .complete-btn {
    background: linear-gradient(135deg, #10B981, #0D9488);
    border-color: #10B981;
    color: #FFFFFF;
}

.learning-page .lesson-card h2 {
    color: #0F172A;
    font-size: 16px;
    font-weight: 600;
    margin: 6px 0 8px 0;
    letter-spacing: -0.015em;
    line-height: 1.35;
    transition: color 0.15s ease;
}

.learning-page .lesson-card:hover h2 {
    color: #0F172A;
}

.learning-page .lesson-card p {
    color: #64748B;
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0 0 16px 0;
    font-weight: 400;
    flex: 1;
}

/* Concept Highlight Tags inside card summaries */
.concept-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 2px;
    vertical-align: baseline;
    transition: transform 0.15s ease;
}

.concept-tag:hover {
    transform: translateY(-1px);
}

.concept-tag.purple,
.concept-tag.indigo {
    background: #EDE9FE;
    color: #4F46E5;
}

.concept-tag.emerald,
.concept-tag.green {
    background: #D1FAE5;
    color: #059669;
}

.concept-tag.amber,
.concept-tag.orange {
    background: #FFEDD5;
    color: #EA580C;
}

.concept-tag.sky,
.concept-tag.blue {
    background: #E0F2FE;
    color: #0284C7;
}

.concept-tag.rose,
.concept-tag.pink {
    background: #FFE4E6;
    color: #E11D48;
}

.learning-page .lesson-card a {
    color: #4338CA;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #F1F5F9;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.15s ease;
    margin-top: auto;
}

.learning-page .lesson-card a:hover {
    color: #312E81;
}

.learning-page .lesson-card a span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #EEF2FF;
    color: #4F46E5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    border: none;
    padding: 0;
    letter-spacing: normal;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.learning-page .lesson-card:hover a span {
    background: #4F46E5;
    color: #FFFFFF;
    transform: translateX(3px);
}

/* Empty State */
.no-results-state {
    text-align: center;
    padding: 50px 24px;
    background: #FFFFFF;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    margin: 20px auto 40px auto;
    max-width: 480px;
}

.no-results-icon {
    font-size: 40px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.no-results-state h3 {
    color: var(--text-primary);
    font-size: 19px;
    margin: 0 0 6px 0;
}

.no-results-state p {
    color: var(--text-secondary);
    font-size: 14.5px;
    margin: 0 0 20px 0;
}

.reset-filter-btn {
    background: var(--accent-purple);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.reset-filter-btn:hover {
    background: var(--purple-hover);
}

/* ==========================================================================
   HOME PAGE / HERO / COMING SOON
   ========================================================================== */

.hero-section {
    text-align: center;
    padding: 70px 40px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 40px;
}

.hero-badge {
    display: inline-block;
    color: var(--accent-purple);
    background: var(--purple-light);
    border: 1px solid rgba(108, 76, 232, 0.2);
    padding: 5px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    color: var(--text-primary);
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0 0 16px 0;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.65;
    max-width: 640px;
    margin: 0 auto 36px auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-btn {
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-btn.primary {
    background: var(--accent-purple);
    color: #FFFFFF;
    border: 1px solid var(--accent-purple);
}

.hero-btn.primary:hover {
    background: var(--purple-hover);
    border-color: var(--purple-hover);
}

.hero-btn.secondary {
    background: #FFFFFF;
    color: var(--accent-purple);
    border: 1px solid var(--border-color);
}

.hero-btn.secondary:hover {
    border-color: var(--accent-purple);
    background: var(--purple-light);
}

/* ==========================================================================
   PROJECTS SHOWCASE & LABS (projects.html)
   ========================================================================== */

/* Hub Directory Header & Badge */
.hub-header-badge {
    display: inline-block;
    background: var(--purple-light);
    color: var(--accent-purple);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Projects Catalog Grid */
.projects-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 32px;
}

.catalog-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(108, 76, 232, 0.15);
    border-color: var(--accent-purple);
}

.catalog-card-banner {
    height: 130px;
    background: linear-gradient(135deg, rgba(237, 233, 254, 0.6) 0%, rgba(245, 243, 255, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.catalog-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-purple);
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mini Previews inside Cards */
.mini-shape-preview .preview-morph-shape {
    width: 48px;
    height: 48px;
    background: var(--accent-purple);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(108, 76, 232, 0.4);
}

.mini-pulse-preview {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 48px;
}

.preview-pulse-bar {
    width: 10px;
    border-radius: 4px;
    background: var(--accent-purple);
}

.preview-pulse-bar.p1 { height: 44px; opacity: 0.9; }
.preview-pulse-bar.p2 { height: 26px; opacity: 0.6; }
.preview-pulse-bar.p3 { height: 36px; opacity: 0.75; }

.mini-kanban-preview {
    display: flex;
    gap: 8px;
}

.mini-kanban-preview .preview-col {
    width: 26px;
    height: 48px;
    background: rgba(108, 76, 232, 0.15);
    border-radius: 4px;
    border: 1.5px dashed var(--accent-purple);
}

.catalog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.catalog-tags-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.catalog-tag {
    background: var(--purple-light);
    color: var(--accent-purple);
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.catalog-card-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.35;
}

.catalog-card-body p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.catalog-skills-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 8px 0 4px 0;
}

.catalog-skills-list code {
    font-size: 11px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 2px 7px;
    border-radius: 4px;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.launch-project-btn {
    background: var(--accent-purple);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.launch-project-btn:hover {
    background: var(--purple-hover);
}

.catalog-card:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-arrow {
    transition: transform 0.2s ease;
}

/* Dedicated Workspace Nav & Tabs */
.workspace-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.back-hub-btn {
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.back-hub-btn:hover {
    background: var(--purple-light);
    color: var(--accent-purple);
    border-color: var(--accent-purple);
}

.project-tab-switcher {
    display: flex;
    gap: 6px;
    background: var(--purple-light);
    padding: 4px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: #FFFFFF;
    color: var(--accent-purple);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.workspace-bottom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}

.workspace-nav-btn {
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.workspace-nav-btn:hover {
    background: var(--purple-light);
    color: var(--accent-purple);
    border-color: var(--accent-purple);
}

.project-card-wrapper {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-card);
    margin-top: 20px;
}

.project-info {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.project-info h2 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0;
}

.project-card-wrapper .content {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.project-card-wrapper .click1,
.project-card-wrapper .click2 {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    min-height: 440px;
}

.click1 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

/* Input row — stays horizontally at the top */
.inputs-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: center;
    width: 100%;
}

.inputs-row .input-group {
    flex-shrink: 0;
}

/* Button grid — 3 columns, 2 rows, pinned to the bottom */
.button-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: auto;   /* pushes button group to the bottom */
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.click1 input[type="color"] {
    width: 44px;
    height: 38px;
    padding: 2px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #FFFFFF;
    cursor: pointer;
}

.click1 input[type="text"] {
    width: 100%;
    height: 38px;
    padding: 6px 12px;
    background: #FFFFFF;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
}

.click1 input[type="text"]:focus {
    border-color: var(--accent-purple);
}

.click1 input[type="range"] {
    flex: 1;
    cursor: pointer;
    accent-color: var(--accent-purple);
}

#rotationValue {
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 600;
    min-width: 32px;
}

.click1 button {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0 10px;
    height: 52px;
    width: 100%;
}

.click1 button:hover {
    background: var(--purple-light);
    color: var(--accent-purple);
    border-color: var(--accent-purple);
}

/* Apply button — same size as others, just purple */
.button6 {
    background: var(--accent-purple) !important;
    color: #FFFFFF !important;
    border: 1px solid var(--accent-purple) !important;
}

.button6:hover {
    background: var(--purple-hover) !important;
}


.click2 {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #FFFFFF;
}

.shape-box {
    width: 200px;
    height: 200px;
    background: var(--accent-purple);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.square { border-radius: 0; }
.rounded { border-radius: 20px; }
.circle { border-radius: 50%; }
.diamond { border-radius: 0; }

/* Badges & Properties Inspector */
.project-badge-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.proj-badge {
    background: var(--accent-purple);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.proj-tag {
    background: var(--purple-light);
    color: var(--accent-purple);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
}

.live-props-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.prop-chip {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: var(--purple-light);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', Consolas, monospace;
}

/* Learning Drawer & Educational Code Breakdown */
.project-learning-drawer {
    margin-top: 28px;
    border-top: 1px solid var(--border-color);
    padding-top: 22px;
}

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

.drawer-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.drawer-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--purple-light);
    color: var(--accent-purple);
}

.drawer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.code-box {
    background: #0F172A;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    border: 1px solid #1E293B;
}

.code-header {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94A3B8;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.code-box pre {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.code-box code {
    color: #F8FAFC !important;
    font-family: 'JetBrains Mono', Consolas, monospace !important;
}

/* ==========================================================================
   SYNTAX HIGHLIGHTING TOKENS (Unified VS Code Dark+ IDE Theme)
   ========================================================================== */
.code-box, pre.code-snippet, .workbench-editor, .code-editor-block {
    background: #0D0D12 !important;
}

.code-box code, pre code {
    color: #F8FAFC !important;
    font-family: 'JetBrains Mono', Consolas, 'Fira Code', monospace !important;
    font-variant-ligatures: none !important;
    font-feature-settings: "liga" 0, "calt" 0 !important;
}

/* Keywords: const, let, var, function, if, else, for, return, switch, try, catch */
.hl-keyword, .tok-kw, .tok-keyword          { color: #C084FC !important; font-weight: 600 !important; }

/* Functions / Methods: querySelectorAll, forEach, setAttribute, addEventListener */
.hl-func, .tok-fn, .tok-method             { color: #FCD34D !important; font-weight: 600 !important; }

/* Built-ins / Globals / HTML Tags: document, window, console, <div>, <button>, <h1> */
.hl-builtin, .tok-sel, .tok-builtin, .hl-tag, .tok-tag { color: #38BDF8 !important; font-weight: 600 !important; }

/* Attributes: id=, class=, src=, type= */
.hl-attr, .tok-attr                        { color: #9CDCFE !important; }

/* Properties: .innerHTML, .className, .value, .textContent, .style, color: */
.hl-prop, .tok-prop, .tok-property         { color: #7DD3FC !important; }

/* Variables / Identifiers: textarea, box, header, btn, dots */
.hl-var, .tok-var                          { color: #9CDCFE !important; }

/* Strings: '...', "...", `...` */
.hl-str, .hl-string, .tok-str, .tok-string { color: #FB923C !important; }

/* Numbers / Hex / Constants: 0, 100, 28px, #6C4CE8, true, false, null */
.hl-number, .tok-num, .tok-number, .hl-val, .tok-val, .hl-atom, .tok-atom { color: #A3E635 !important; font-weight: 600 !important; }

/* Comments: // ..., /* ... */, <!-- ... --> */
.hl-comment, .hl-cmt, .tok-cm, .tok-comment { color: #7EC770 !important; font-style: italic !important; }

/* Doctype & Entity */
.hl-doctype                                { color: #C084FC !important; font-weight: 700 !important; }
.hl-entity                                 { color: #38BDF8 !important; }

/* Operators & Punctuation: =, +, &&, ||, ;, {, } */
.hl-op, .tok-op                            { color: #F8FAFC !important; }
.hl-punct, .tok-punct, .tok-punc           { color: #F8FAFC !important; }
.hl-plain                                  { color: #F8FAFC !important; }

.interview-takeaway {
    margin-top: 14px;
    background: var(--purple-light);
    border-left: 4px solid var(--accent-purple);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    color: var(--text-primary);
    line-height: 1.55;
}

/* ==========================================================================
   PROJECT 02: DEBOUNCE & THROTTLE PLAYGROUND LAYOUT
   ========================================================================== */
.debounce-playground-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dt-controls-panel {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dt-input-area label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.search-icon {
    position: absolute;
    left: 14px;
    font-size: 14px;
    pointer-events: none;
}

#dtSearchInput {
    width: 100%;
    height: 46px;
    padding: 0 85px 0 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 14px;
    background: #FFFFFF;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
}

#dtSearchInput:focus {
    border-color: var(--accent-purple);
}

#dtClearBtn {
    position: absolute;
    right: 8px;
    height: 32px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--purple-light);
    color: var(--accent-purple);
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
}

.dt-mouse-area {
    height: 64px;
    border: 1.5px dashed var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: crosshair;
    background: rgba(108, 76, 232, 0.03);
    transition: all 0.2s ease;
}

.dt-mouse-area:hover {
    border-color: var(--accent-purple);
    background: rgba(108, 76, 232, 0.08);
}

.dt-sliders-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: center;
}

.dt-slider-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dt-slider-item label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.dt-slider-item input[type="range"] {
    cursor: pointer;
    accent-color: var(--accent-purple);
}

.dt-actions {
    align-self: end;
}

.dt-btn-primary {
    background: var(--accent-purple);
    color: #FFFFFF;
    border: 1px solid var(--accent-purple);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dt-btn-primary:hover {
    background: var(--purple-hover);
}

.dt-btn-secondary {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dt-btn-secondary:hover {
    background: var(--purple-light);
    color: var(--accent-purple);
}

.dt-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dt-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.dt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dt-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.dt-status-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
}

.raw-pill { background: #FEE2E2; color: #DC2626; }
.deb-pill { background: #E0E7FF; color: #4338CA; }
.deb-pill.active { background: #FEF3C7; color: #D97706; }
.deb-pill.executed { background: #DCFCE7; color: #15803D; }
.thr-pill { background: #EDE9FE; color: #6D28D9; }
.thr-pill.active { background: #FEF3C7; color: #D97706; }

.dt-counter {
    font-size: 44px;
    font-weight: 800;
    font-family: 'JetBrains Mono', Consolas, monospace;
    text-align: center;
    padding: 6px 0;
    color: var(--accent-purple);
}

.dt-pulse-bar {
    height: 4px;
    width: 100%;
    background: #E5E7EB;
    border-radius: 2px;
    transition: all 0.1s ease;
}

.dt-pulse-bar.pulsing {
    background: var(--accent-purple);
    box-shadow: 0 0 10px rgba(108, 76, 232, 0.6);
}

.dt-card-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.highlight-val {
    color: var(--accent-purple);
    font-weight: 700;
}

/* ==========================================================================
   PROJECT 03: KANBAN BOARD LAYOUT
   ========================================================================== */
.kanban-app-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.kanban-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.kanban-input-group {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 650px;
}

#kanbanTaskInput {
    flex: 1;
    height: 42px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 13.5px;
    background: #FFFFFF;
    color: var(--text-primary);
    outline: none;
}

#kanbanPrioritySelect {
    height: 42px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    background: #FFFFFF;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
}

.kanban-meta-buttons {
    display: flex;
    gap: 10px;
}

.kanban-board-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    min-height: 420px;
}

.kanban-column {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.kanban-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.col-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.col-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.todo-dot { background: #EF4444; }
.inprogress-dot { background: #F59E0B; }
.done-dot { background: #10B981; }

.col-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.col-count-badge {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--text-primary);
}

.kanban-cards-dropzone {
    flex: 1;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.kanban-cards-dropzone.drag-over {
    background: rgba(108, 76, 232, 0.08);
    outline: 2px dashed var(--accent-purple);
}

.kanban-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px;
    box-shadow: var(--shadow-card);
    cursor: grab;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s ease;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.kanban-card.dragging {
    opacity: 0.4;
    cursor: grabbing;
}

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-priority {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.priority-high { background: #FEE2E2; color: #DC2626; }
.priority-medium { background: #FEF3C7; color: #D97706; }
.priority-low { background: #DCFCE7; color: #15803D; }

.card-delete-btn {
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0 4px;
}

.card-delete-btn:hover {
    color: #EF4444;
}

.card-text {
    font-size: 13.5px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-secondary);
}

.kanban-empty-placeholder {
    text-align: center;
    padding: 40px 16px;
    color: #9CA3AF;
    font-size: 13px;
    border: 1.5px dashed var(--border-color);
    border-radius: var(--radius-sm);
    margin-top: 10px;
}

/* ==========================================================================
   GLOBAL CODE BLOCKS & OUTPUT CONSOLE
   High Contrast Dark Theme for Code
   ========================================================================== */

pre {
    background: #0F172A;
    border: 1px solid #1E293B;
    border-radius: 10px;
    padding: 16px 18px;
    overflow-x: auto;
    margin: 14px 0 10px 0;
    position: relative;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
}

pre code {
    color: #E2E8F0;
    font-family: 'JetBrains Mono', Consolas, Monaco, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.55;
}

:not(pre) > code,
p code,
li code,
td code,
span code,
div > code {
    color: var(--accent-purple, #6C4CE8);
    background: var(--purple-light, #F0EBFF);
    font-family: 'JetBrains Mono', Consolas, Monaco, "Courier New", monospace;
    font-size: 0.84em;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid rgba(108, 76, 232, 0.12);
    white-space: nowrap;
    display: inline-block;
    vertical-align: baseline;
    line-height: 1.35;
}

:not(pre) > code sup,
p code sup,
li code sup,
td code sup {
    font-size: 0.72em;
    vertical-align: super;
    line-height: 0;
}

/* Copy Code Button (Icon-Only, Extreme Top Right Corner Everywhere) */
.code-block-wrapper {
    position: relative;
    margin: 14px 0 10px 0;
}

.code-block-wrapper pre {
    margin: 0;
}

.copy-code-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    padding: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 5px;
    color: #94A3B8;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.copy-code-btn:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    transform: scale(1.08);
}

.copy-code-btn.copied {
    background: rgba(16, 185, 129, 0.35);
    border-color: rgba(16, 185, 129, 0.7);
    color: #34D399;
}

/* ==========================================================================
   SYNTAX HIGHLIGHTING (Vibrant IDE Developer Theme)
   ========================================================================== */

.hl-comment, .hl-cmt, .tok-cm, .tok-comment {
    color: #7EC770 !important;
    font-style: italic !important;
}

.hl-keyword, .hl-kw, .tok-kw, .tok-keyword {
    color: #C084FC !important; /* Electric Purple / Violet for keywords */
    font-weight: 600 !important;
}

.hl-string, .hl-str, .tok-str, .tok-string {
    color: #FB923C !important; /* Warm Coral / Orange-Peach for strings */
}

.hl-number, .hl-num, .tok-num, .tok-number {
    color: #A3E635 !important; /* Mint / Lime green for numbers & units */
    font-weight: 600 !important;
}

.hl-atom, .hl-bool, .tok-bool, .tok-atom {
    color: #A3E635 !important; /* Lime green for true, false, null, undefined */
    font-weight: 600 !important;
}

.hl-builtin, .hl-tag, .tok-tag, .tok-builtin {
    color: #38BDF8 !important; /* Sky Blue / Cyan for console, Promise, Array, Object, tags */
    font-weight: 600 !important;
}

.hl-func, .hl-fn, .tok-fn, .tok-func {
    color: #FCD34D !important; /* Warm Gold / Yellow for function calls & methods */
    font-weight: 600 !important;
}

.hl-prop, .tok-prop {
    color: #7DD3FC !important; /* Light Sky Blue for properties */
}

.hl-var, .hl-attr, .tok-var, .tok-attr {
    color: #9CDCFE !important; /* Ice Blue / Light Cyan for variables & attributes */
}

.hl-op, .tok-op {
    color: #F8FAFC !important; /* Soft White for operators */
}

.hl-punct, .tok-punct {
    color: #F8FAFC !important; /* Soft White for punctuation */
}

/* ==========================================================================
   EXAMPLE OUTPUT BOX (Sleek Dark Terminal Console Style)
   ========================================================================== */

.example-output {
    background: #0B1120;
    border: 1px solid #1E293B;
    border-left: 3.5px solid #10B981;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 8px 0 24px 0;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.example-output .example-output-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #10B981;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.example-output .example-output-header::before {
    content: "▶";
    font-size: 8px;
}

.example-output-code {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #E2E8F0 !important;
    font-family: 'JetBrains Mono', Consolas, Monaco, monospace !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
}

/* Output Console */
.output-box {
    min-height: 44px;
    max-height: 320px;
    overflow-y: auto;
    background: var(--bg-code);
    border: 1px solid #2B3548;
    border-left: 3.5px solid var(--teal);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: #34D399;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.5;
    white-space: pre-wrap;
    margin-top: 10px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
    .learning-page .lesson-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .curriculum-search-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .curriculum-filters-box {
        justify-content: flex-start;
    }
    .projects-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nevigation {
        padding: 0 20px;
    }
    .nav-links {
        display: none;
    }
    .nav-dropdown-wrapper {
        display: block;
    }
    .learning-page,
    .home-page,
    .projects-page {
        padding: 24px 16px 60px 16px;
    }
    .learning-page .lesson-container {
        grid-template-columns: 1fr;
    }
    .projects-catalog-grid {
        grid-template-columns: 1fr;
    }
    .workspace-nav-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .project-tab-switcher {
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
    }
    .project-card-wrapper {
        padding: 24px 18px;
    }
    .project-card-wrapper .content {
        flex-direction: column;
    }
    .inputs-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .drawer-grid {
        grid-template-columns: 1fr;
    }
    .dt-sliders-row {
        grid-template-columns: 1fr;
    }
    .dt-cards-grid {
        grid-template-columns: 1fr;
    }
    .kanban-action-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .kanban-input-group {
        flex-direction: column;
        max-width: 100%;
    }
    .kanban-meta-buttons {
        justify-content: flex-start;
    }
    .kanban-board-grid {
        grid-template-columns: 1fr;
    }
    .workspace-bottom-nav {
        flex-direction: column;
        gap: 12px;
    }
    .workspace-nav-btn {
        width: 100%;
        text-align: center;
    }
}





