@theme inline {
    --color-background: var(--background);
    --color-foreground: var(--foreground);
    --color-primary: var(--primary);
    --color-primary-foreground: var(--primary-foreground);
    --color-secondary: var(--secondary);
    --color-secondary-foreground: var(--secondary-foreground);
    --color-muted: var(--muted);
    --color-muted-foreground: var(--muted-foreground);
    --color-accent: var(--accent);
    --color-accent-foreground: var(--accent-foreground);
    --color-destructive: var(--destructive);
    --color-card: var(--card);
    --color-card-foreground: var(--card-foreground);
    --color-popover: var(--popover);
    --color-popover-foreground: var(--popover-foreground);
    --color-border: var(--border);
    --color-input: var(--input);
    --color-ring: var(--ring);
    --color-chart-1: var(--chart-1);
    --color-chart-2: var(--chart-2);
    --color-chart-3: var(--chart-3);
    --color-chart-4: var(--chart-4);
    --color-chart-5: var(--chart-5);

    --font-font-sans: var(--font-sans);
    --font-font-heading: var(--font-heading);
    --font-font-serif: var(--font-serif);
    --font-font-mono: var(--font-mono);

    --radius-sm: calc(var(--radius) - 4px);
    --radius-md: calc(var(--radius) - 2px);
    --radius-lg: var(--radius);
    --radius-xl: calc(var(--radius) + 4px);
}

:root {
    --background: #121212;
    --foreground: #f5f5f5;
    --primary: #007AFF;
    --primary-foreground: #ffffff;
    --secondary: #2d2d2d;
    --secondary-foreground: #ffffff;
    --muted: #3a3a3a;
    --muted-foreground: #a1a1aa;
    --accent: #2d2d2d;
    --accent-foreground: #ffffff;
    --destructive: #ef4444;
    --card: #1e1e1e;
    --card-foreground: #ffffff;
    --popover: #1e1e1e;
    --popover-foreground: #ffffff;
    --border: #333333;
    --input: #2d2d2d;
    --ring: #007AFF;
    --chart-1: #007AFF;
    --chart-2: #3b82f6;
    --chart-3: #60a5fa;
    --chart-4: #93c5fd;
    --chart-5: #bfdbfe;

    --font-sans: "Inter";
    --font-heading: "Inter";
    --font-serif: "Playfair Display";
    --font-mono: "JetBrains Mono";

    --radius: 0.5rem;

    /* SmartLayout System Dimensions (Default / Minimums) */
    --sidebar-width: 312px;
    --filmstrip-height: 248px;
    /* Approx h-62 */
}

/* Animations */
@keyframes pulse-border {

    0%,
    100% {
        border-color: var(--primary);
    }

    50% {
        border-color: rgba(0, 122, 255, 0.5);
    }
}

@keyframes float {

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

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

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 122, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 122, 255, 0.8);
    }
}

@keyframes slow-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes intense-pink-pulse {

    0%,
    100% {
        background-color: rgba(244, 114, 182, 0.05);
        border-color: rgba(244, 114, 182, 0.2);
        box-shadow: inset 0 0 10px rgba(244, 114, 182, 0.05);
    }

    50% {
        background-color: rgba(244, 114, 182, 0.2);
        border-color: rgba(244, 114, 182, 0.6);
        box-shadow: inset 0 0 20px rgba(244, 114, 182, 0.2), 0 0 15px rgba(244, 114, 182, 0.2);
    }
}

/* Subtle Pulsing Glow and Grain */
.glow-background {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at center, rgba(0, 122, 255, 0.3) 0%, transparent 90%);
    filter: blur(80px);
    opacity: 0.5;
    animation: slow-pulse 6s ease-in-out infinite;
    pointer-events: none;
}

.grain-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Utils */
.file-input-hidden {
    display: none;
}

#gl-canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Ensure image fills container */
#original-img,
#graded-img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    transform-origin: center center;
    transition: transform 0.1s ease-out;
}

/* Desktop Only Barrier */
#mobile-block {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

@media (max-width: 1023px) {
    #mobile-block {
        display: flex;
    }
}

/* Image Loaded State - Remove Glows */
body.image-loaded .glow-background {
    display: none !important;
    animation: none !important;
    opacity: 0 !important;
}

body.image-loaded #viewer-container,
body.image-loaded #viewer-wrapper,
body.image-loaded #viewer {
    box-shadow: none !important;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}