/* styles.css - Modern Dark & Red Theme */
html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    background-color: #020617; /* Deepest Slate / Black */
    color: #f1f5f9;
    color-scheme: dark;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Global Select & Option Styling */
select {
    color-scheme: dark;
}

select option {
    background-color: #0f172a;
    color: #f1f5f9;
}

/* Table Layouts */
.main-feed-table {
    table-layout: fixed;
    width: 100%;
}

.main-feed-table th, .main-feed-table td {
    padding: 12px 16px;
}

/* Cards & Containers */
.card {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.glass-card {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(239, 68, 68, 0.1) !important;
}

/* Red Accents & Glows */
.text-accent {
    color: #ef4444; /* Red 500 */
}

.bg-accent {
    background-color: #ef4444;
}

.glow-red {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
}

.glow-red:hover {
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.4) !important;
}

/* Severity Colors */
.status-critical {
    color: #ff0000;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.status-high {
    color: #ef4444;
    font-weight: 700;
}

.status-warning {
    color: #f97316;
    font-weight: 600;
}

.status-info {
    color: #94a3b8;
}

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

.animate-fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ef4444;
}

/* APT Tab Styles */
.apt-tab-active {
    background: linear-gradient(135deg, #ef4444, #991b1b);
    border-color: #f87171 !important;
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.apt-tab-inactive {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

.apt-tab-inactive:hover {
    background: #334155;
    color: white;
}

/* Breaking News Marquee */
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.animate-marquee {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 160s linear infinite; /* Much slower */
}

#breaking-news-banner {
    background: linear-gradient(90deg, #7f1d1d 0%, #020617 15%, #020617 85%, #7f1d1d 100%);
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.breaking-tag {
    background-color: #ef4444;
    box-shadow: 5px 0 15px rgba(239, 68, 68, 0.4);
}

/* Modern Gradient Text */
.text-gradient-red {
    background: linear-gradient(135deg, #fff 0%, #f87171 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme { filter: invert(1) hue-rotate(180deg); background-color: #f8fafc; } 
body.light-theme img, body.light-theme video, body.light-theme canvas, body.light-theme .leaflet-container { filter: invert(1) hue-rotate(180deg); }