:root {
    /* Light Theme Focus on UI Showcase */
    --color-base: #f8fafc;
    /* slate-50 */
    --color-panel: #ffffff;
    --color-border: #e2e8f0;
    /* slate-200 */
    --color-text: #0f172a;
    /* slate-900 */
    --color-muted: #64748b;
    /* slate-500 */
    --color-primary: #e11d48;
    /* rose-600 */
}

.dark {
    /* Dark Theme */
    --color-base: #020617;
    /* slate-950 */
    --color-panel: #0f172a;
    /* slate-900 */
    --color-border: #1e293b;
    /* slate-800 */
    --color-text: #f8fafc;
    /* slate-50 */
    --color-muted: #94a3b8;
    /* slate-400 */
    --color-primary: #fb7185;
    /* rose-400 */
}

/* Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.8);
}

/* Glass UI */
.glass-nav {
    background: rgba(var(--color-panel), 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

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

.anim-fade-in {
    animation: fadeIn 0.2s ease-out forwards;
}

/* Checkerboard for Canvas */
.checkerboard {
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0, 0, 0, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.03) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.dark .checkerboard {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.02) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.02) 75%);
}

/* Sidebar Nav Links */
.nav-link {
    transition: all 0.2s ease;
}

.nav-link.active {
    background-color: var(--color-base);
    color: var(--color-primary);
    font-weight: 600;
}

.nav-link:not(.active):hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.dark .nav-link:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* JSX Syntax Highlighting Mock */
.code-tag {
    color: #569CD6;
}

.code-attr {
    color: #9CDCFE;
}

.code-string {
    color: #CE9178;
}

.code-text {
    color: #D4D4D4;
}