@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f7f6;
    color: #000;
}

/* FULL SAPPHIRE HEADER SECTION */
header { 
    background-color: #0F52BA; 
    padding: 60px 20px 40px;
    text-align: center;
    width: 100%;
}
.radar-container {
    position: relative;
    width: 100%;
    /* Prevents layout shifts while loading */
    min-height: 600px;
}

/* Adds a tech-border glow to the radar when in Sapphire theme */
.bg-sapphire .radar-container {
    box-shadow: 0 0 20px rgba(15, 82, 186, 0.4);
}

@media (max-width: 768px) {
    .radar-container iframe {
        height: 400px;
    }
}

/* Specific highlight for neutralized threats */
#threat-count {
    text-shadow: 0 0 15px rgba(255, 77, 77, 0.5);
    font-family: 'Courier New', monospace;
}

/* Red-bordered rows for the cyber tracker */
.cyber-track-row {
    border: 2px solid #ff4d4d !important;
    background: rgba(255, 77, 77, 0.05) !important;
}
.logo {
    font-size: 5.5rem;
    font-weight: 900;
    color: #FFFFFF !important; /* Force Pure White */
    text-decoration: none;
    display: inline-block;
    letter-spacing: -4px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

/* NAVIGATION ANIMATIONS */
nav { display: flex; justify-content: center; }
.nav-links { display: flex; list-style: none; gap: 10px; }

.nav-links a {
    text-decoration: none;
    color: #FFFFFF !important; /* Pure White Text */
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

/* Hover Animation: Scale and Glow */
.nav-links a:hover {
    transform: translateY(-3px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.1); /* Subtle highlight */
}

/* Animated Underline Effect */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 5px;
    left: 50%;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 60%;
}

/* Active State: Highlight with Gold or White background */
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 5px rgba(255,255,255,0.2);
}

/* Click (Active/Mousedown) Animation handled via JS transform */

.container { max-width: 1200px; margin: 30px auto; padding: 0 20px; }

.data-block {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.label { font-size: 0.7rem; font-weight: 900; color: #666; letter-spacing: 1.5px; text-transform: uppercase; }
.value-title { font-size: 1.8rem; font-weight: 900; margin: 5px 0; }
.value-number { font-size: 3rem; font-weight: 900; color: #0F52BA; }

/* 70% Scale Side-by-Side Logic */
.flex-row { display: flex; gap: 20px; flex-wrap: wrap; margin: 20px 0; }
.small-scale { 
    flex: 1; 
    transform: scale(0.7); 
    transform-origin: top center;
    margin-bottom: -100px; /* Counteract transform space */
}

/* Color Tables */
.color-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.color-table td { padding: 12px; font-weight: 900; border: 1px solid #ddd; }
.bg-green { background-color: #00b050; color: white; }
.bg-yellow { background-color: #ffff00; color: black; }
.bg-red { background-color: #ff0000; color: white; }

/* Tracker Styles */
.grand-total-box { background: #1a1a1a; color: #fcd116; padding: 20px; border-radius: 8px; text-align: center; margin: 15px 0; }
.total-number { font-size: 3.5rem; font-weight: 900; }
.scroll-container { height: 400px; overflow: hidden; border: 1px solid #ddd; border-radius: 8px; }
.scroll-content { animation: scroll-up 40s linear infinite; }
@keyframes scroll-up { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
.track-row { display: flex; justify-content: space-between; padding: 12px 20px; font-weight: 700; border-bottom: 1px solid #eee; }