/* ==========================================================================
   Apex Sentinel Suite - Enterprise Cyber Operations Theme & Luxury UI
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --color-bg-primary: #020617;
    --color-bg-surface: #0f172a;
    --color-border-subtle: #1e293b;
    --color-accent-cyan: #06b6d4;
    --color-accent-indigo: #6366f1;
    --color-status-success: #10b981;
    --color-status-danger: #f43f5e;
    --color-status-warning: #f59e0b;
}

/* Global Font & Antialiasing */
html, body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Monospace restricted strictly to Code, IPs, Hashes & LTR numbers */
.font-mono, code, pre, time {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    letter-spacing: -0.01em;
}

/* Fix Arabic ligatures: Never apply letter-spacing to Arabic */
[dir="rtl"] {
    letter-spacing: normal !important;
}

[dir="rtl"] span:not(.font-mono),
[dir="rtl"] p,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] div:not(.font-mono),
[dir="rtl"] button:not(.fa),
[dir="rtl"] a,
[dir="rtl"] label {
    font-family: 'Cairo', system-ui, sans-serif;
    letter-spacing: 0 !important;
}

/* Ensure FontAwesome Icons maintain their icon glyphs */
.fa, .fa-solid, .fa-regular, .fa-brands, [class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    letter-spacing: normal !important;
    font-style: normal !important;
}

/* Custom Smooth Scrollbar for SOC Audit Feeds & Tables */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(2, 6, 23, 0.7);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #06b6d4;
}

/* Cyber Card Micro-interactions */
.cyber-card {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cyber-card:hover {
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 4px 20px -2px rgba(6, 182, 212, 0.08);
}

/* Pulse Glowing Effects for Threat & Isolation Indicators */
@keyframes cyberGlowPulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 24px rgba(244, 63, 94, 0.8);
    }
}

.glow-isolated {
    animation: cyberGlowPulse 2s infinite ease-in-out;
}
