:root {
    --color-background: #0f172a;
    --color-surface: #1e293b;
    --color-primary: #3b82f6;
    --color-accent: #0ea5e9;
    --color-text-main: #f8fafc;
    --color-blob1: rgba(37, 99, 235, 0.1);
    --color-blob2: rgba(8, 145, 178, 0.1);
}

[data-theme="dracula"] {
    --color-background: #282a36;
    --color-surface: #44475a;
    --color-primary: #ff79c6;
    --color-accent: #bd93f9;
    --color-text-main: #f8f8f2;
    --color-blob1: rgba(255, 121, 198, 0.1);
    --color-blob2: rgba(189, 147, 249, 0.1);
}

[data-theme="monokai"] {
    --color-background: #272822;
    --color-surface: #3e3d32;
    --color-primary: #f92672;
    --color-accent: #a6e22e;
    --color-text-main: #f8f8f2;
    --color-blob1: rgba(249, 38, 114, 0.1);
    --color-blob2: rgba(166, 226, 46, 0.1);
}

body { background-color: var(--color-background); color: var(--color-text-main); font-family: 'Inter', sans-serif; transition: background-color 0.3s, color 0.3s; }
        
        /* Subtle Grid Background Pattern */
        .grid-pattern {
            background-image: linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
                              linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
            background-size: 40px 40px;
            background-position: center top;
        }

        /* Glassmorphism Search Bar */
        .search-glass {
            background: rgba(30, 41, 59, 0.5);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
        }
        
        .search-glass:focus-within {
            border-color: rgba(59, 130, 246, 0.5);
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.2), 0 8px 32px 0 rgba(0, 0, 0, 0.3);
        }

        /* Custom Scrollbar */
        .custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
        .custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
        .custom-scrollbar::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
        .custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #475569; }

        /* Loader */
        .loader-spinner {
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            border-top: 2px solid var(--color-primary);
            width: 20px;
            height: 20px;
            animation: spin 1s linear infinite;
        }
        @keyframes spin { 100% { transform: rotate(360deg); } }

        /* Version Tag hover effect */
        .version-tag { z-index: 10; position: relative; }
        .version-tag:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }

        /* Modal Animation */
        .modal-enter { animation: modalIn 0.2s ease-out forwards; }
        @keyframes modalIn {
            from { opacity: 0; transform: scale(0.95) translateY(10px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        /* Card Stagger Animation */
        .card-enter {
            opacity: 0;
            transform: translateY(20px);
            animation: cardFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }
        @keyframes cardFadeIn {
            to { opacity: 1; transform: translateY(0); }
        }

        /* Subtle Floating Animation for Background Blobs */
        .blob-float { animation: floatBlob 15s ease-in-out infinite alternate; background-color: var(--color-blob1); }
        .blob-float-delayed { animation: floatBlob 18s ease-in-out infinite alternate-reverse; background-color: var(--color-blob2); }
        @keyframes floatBlob {
            0% { transform: translate(0px, 0px) scale(1); }
            33% { transform: translate(30px, -50px) scale(1.1); }
            66% { transform: translate(-20px, 20px) scale(0.9); }
            100% { transform: translate(0px, 0px) scale(1); }
        }
