/* OnaySIM - Modern Commercial SaaS Design System */

:root {
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-subtle: #f1f5f9;
    --border-card: #e2e8f0;
    --text-primary: #0f172a;
    --text-muted: #64748b;
    --brand-primary: #4f46e5;
    --brand-hover: #4338ca;
}

html.dark {
    --bg-page: #0b0f19;
    --bg-card: #151d2f;
    --bg-card-subtle: #0f1726;
    --border-card: #1e293b;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --brand-primary: #6366f1;
    --brand-hover: #4f46e5;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    transition: background-color 0.25s ease, color 0.25s ease;
    -webkit-font-smoothing: antialiased;
}

.shadow-xs {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
html.dark ::-webkit-scrollbar-thumb {
    background: #334155;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Radar & Pulse Animations */
@keyframes radarWave {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.radar-ring {
    animation: radarWave 2s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideDownCard {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-slide-in {
    animation: slideDownCard 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Toast message animation */
.toast-msg {
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Service Item Hover Effects */
.service-item-btn {
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-item-btn:hover {
    transform: translateY(-1px);
}

/* Number code glowing box */
.code-glow {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}
