/* Glassmorphism and Custom Styles */
:root {
    --primary: #2b4bee;
    --background-light: #f6f6f8;
    --background-dark: #101322;
}

body {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass {
    background: rgba(16, 19, 34, 0.7);
    border: 1px solid rgba(43, 75, 238, 0.2);
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.folder-tree-item:hover {
    background: rgba(43, 75, 238, 0.1);
}

/* Transitions for SPA */
.view-transition {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.5s forwards;
}

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

.scale-in {
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.history-item {
    transition: all 0.2s ease;
}

.tech-chip {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    transition: all 0.2s ease;
}

.tech-chip:hover {
    background: rgba(43, 75, 238, 0.1);
    color: var(--primary);
}

.tech-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(43, 75, 238, 0.3);
}

/* Blueprint Aesthetic */
.blueprint-mode {
    background-color: #1a3a6c !important;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) !important;
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px !important;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px !important;
}

.sketch-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: sketchDraw 3s ease-in-out forwards;
}

@keyframes sketchDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.btn-github {
    background: #24292e;
    color: white;
}

.btn-github:hover {
    background: #2f363d;
}

.btn-sandbox {
    background: #1389fd;
    color: white;
}

.btn-sandbox:hover {
    background: #0076e4;
}

#blueprint-sketch-overlay {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.blueprint-mode #blueprint-sketch-overlay {
    opacity: 1;
}