:root {
    --color-a: #10b981;
    --color-t: #f43f5e;
    --color-c: #3b82f6;
    --color-g: #f59e0b;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(51, 65, 85, 0.5);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* DNA Helix Animation */
.dna-helix {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.helix-strand {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    box-shadow: 0 0 20px currentColor;
    animation: rotate 8s linear infinite;
    transform-style: preserve-3d;
}

.helix-strand:nth-child(1) { animation-delay: 0s; color: var(--color-a); }
.helix-strand:nth-child(2) { animation-delay: 0.5s; color: var(--color-t); }
.helix-strand:nth-child(3) { animation-delay: 1s; color: var(--color-c); }
.helix-strand:nth-child(4) { animation-delay: 1.5s; color: var(--color-g); }
.helix-strand:nth-child(5) { animation-delay: 2s; color: var(--color-a); }
.helix-strand:nth-child(6) { animation-delay: 2.5s; color: var(--color-t); }

@keyframes rotate {
    0% {
        transform: rotateY(0deg) translateY(0px) translateZ(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: rotateY(360deg) translateY(-200px) translateZ(100px);
        opacity: 0;
    }
}

/* Base Colors */
.base-a { color: var(--color-a); text-shadow: 0 0 10px rgba(16, 185, 129, 0.3); }
.base-t { color: var(--color-t); text-shadow: 0 0 10px rgba(244, 63, 94, 0.3); }
.base-c { color: var(--color-c); text-shadow: 0 0 10px rgba(59, 130, 246, 0.3); }
.base-g { color: var(--color-g); text-shadow: 0 0 10px rgba(245, 158, 11, 0.3); }

/* Tab Buttons */
.tab-btn {
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
}

.tab-btn:hover {
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.5);
}

.tab-btn.active {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

/* Upload Zone */
.upload-zone {
    transition: all 0.3s ease;
}

.upload-zone.dragover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
    transform: scale(1.02);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

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

/* Typing cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: #10b981;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Grid Background Pattern */
.bg-grid {
    background-size: 40px 40px;
    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);
}

/* Glowing Effects */
.glow-emerald {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.glow-cyan {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

/* Binary Rain Effect for Processing */
.binary-rain {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: rgba(16, 185, 129, 0.3);
    animation: rain 1s linear infinite;
}

@keyframes rain {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}