/* NumVerse - Media Pembelajaran Interaktif Konversi Bilangan */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600;700;800&display=swap');

:root {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --accent: #8b5cf6;
    --warning: #f59e0b;
    --danger: #ef4444;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

code, pre, .font-mono {
    font-family: 'JetBrains Mono', monospace, Consolas, Courier;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}
.dark ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animations */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.8);
    }
}

.glow-active {
    animation: pulseGlow 2s infinite ease-in-out;
}

/* Bit switch card transition */
.bit-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bit-card:active {
    transform: scale(0.95);
}

/* Tab Active states */
.nav-tab.active {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: white !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.nav-tab.active svg {
    color: white;
}

/* Step-by-Step Step Card */
.step-card {
    position: relative;
    border-left: 4px solid #3b82f6;
}

/* Division step table highlight */
.remainder-highlight {
    background: linear-gradient(135deg, #10b98120, #05966930);
    border: 1px solid #10b98160;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
