:root {
    --primary: #00f3ff;
    --primary-glow: rgba(0, 243, 255, 0.4);
    --secondary: #bc6ff1;
    --bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #f59e0b;
}

* { margin: 0; padding: 0; box-box: border-box; }
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Universal Navbar Spacing */
.navbar {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    top: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    background: rgba(2, 6, 23, 0.98);
}

/* Universal Page Wrapper */
#page-wrapper {
    transition: opacity 0.5s ease;
}

/* Universal Hero / Section Spacing */
.hero, section:first-of-type {
    padding-top: 120px !important; /* Forces universal spacing below fixed nav */
}

.hero {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 120px 20px 60px;
}

.hero-bg {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: url('assets/sentinel_brand.jpg') center/cover no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: radial-gradient(circle at center, rgba(2, 6, 23, 0.95) 0%, var(--bg) 90%);
    z-index: -1;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px var(--primary-glow);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.section-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #fff;
}

/* Radio Dock */
.radio-dock { display: none !important; }
.radio-dock:hover { transform: translateY(-3px); }
.radio-dock audio { height: 28px; border-radius: 20px; width: 150px; }
.radio-label { font-family: 'Orbitron', sans-serif; font-size: 0.6rem; color: var(--primary); font-weight: 900; }

/* Grid and Cards */
.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 18px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}
.card:hover { border-color: var(--primary-glow); transform: translateY(-5px); }

/* Navigation links */
.nav-links { display: flex; gap: 15px; list-style: none; }
.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    transition: 0.3s;
}

.btn-glow {
    background: var(--primary);
    color: #0c1222;
    box-shadow: 0 0 20px var(--primary-glow);
}
.btn-glow:hover { transform: scale(1.05); box-shadow: 0 0 30px var(--primary); }

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary-glow); color: #fff; }

@media (max-width: 900px) {
    .grid-3 { grid-template-columns: 1fr; }
    .navbar { width: 95%; top: 10px; }
    .radio-dock { display: none !important; }
}

/* Loading Indicator for SPA */
#loader-bar { display: none !important; }

/* Radio Dock Refinement */
.radio-dock { display: none !important; }
.radio-dock:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3), 0 15px 35px rgba(0,0,0,0.8);
}
.radio-label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Page content fade */
.content-fade {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Status Monitoring Tables */
.monitor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.monitor-box { background: rgba(15, 23, 42, 0.6); border: 1px solid var(--border); border-radius: 20px; padding: 25px; }
.monitor-title { font-family: 'Orbitron', sans-serif; font-size: 0.9rem; color: var(--primary); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; display: flex; align-items: center; gap: 10px; }
.monitor-title::before { content: ''; width: 8px; height: 8px; background: var(--primary); border-radius: 50%; display: inline-block; animation: pulse 1.5s infinite; }

.status-table { width: 100%; border-collapse: collapse; font-size: 0.72rem; font-family: 'Inter', sans-serif; }
.status-table th { text-align: left; color: var(--text-muted); padding: 10px; border-bottom: 2px solid var(--border); text-transform: uppercase; font-size: 0.65rem; }
.status-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); color: var(--text); }
.status-table tr:hover { background: rgba(0, 243, 255, 0.05); }

.tag-red { color: #ef4444; font-weight: 800; }
.tag-green { color: #10b981; font-weight: 800; }
.tag-blue { color: var(--primary); font-weight: 800; }

.nav-logo { height: 28px; width: auto; vertical-align: middle; margin-right: 12px; border-radius: 4px; }
