/* ================================================================
   jft.cienciadados — Design System
   Dark mode premium com glassmorphism
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- Tokens ---- */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-blue: #3b82f6;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;

    --gradient-blue: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --gradient-emerald: linear-gradient(135deg, #10b981, #06b6d4);
    --gradient-amber: linear-gradient(135deg, #f59e0b, #ef4444);
    --gradient-red: linear-gradient(135deg, #ef4444, #ec4899);

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --font: 'Inter', -apple-system, sans-serif;
}

html {
    overflow-x: hidden;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--accent-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-cyan); }

/* ---- Layout ---- */
.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-glass);
    padding: 24px 16px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
}


.sidebar-nav { list-style: none; flex: 1; }

.sidebar-nav li { margin-bottom: 4px; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-nav a:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.sidebar-nav a.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.sidebar-nav .icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.main {
    flex: 1;
    margin-left: 260px;
    padding: 32px 40px;
    min-width: 0; /* Evita que o flex-item estoure o container */
}

/* ---- Page Header ---- */
.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---- Hero Banner ---- */
.hero-banner {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
    background: url('/static/img/og_thumbnail.png') no-repeat center center;
    background-size: cover;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-end;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 14, 26, 0.2), rgba(10, 14, 26, 0.9));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 32px 40px;
}

.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1rem;
    color: var(--accent-cyan);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* ---- Cards Grid ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.2);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: 0.5s;
}

.stat-card:hover::after {
    left: 100%;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card.blue::before { background: var(--gradient-blue); }
.stat-card.emerald::before { background: var(--gradient-emerald); }
.stat-card.amber::before { background: var(--gradient-amber); }
.stat-card.red::before { background: var(--gradient-red); }

.stat-card .label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.stat-card .icon-bg {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    opacity: 0.08;
}

/* ---- Tables ---- */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    overflow-x: auto;
    overflow-y: hidden;
    display: block;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    backdrop-filter: blur(12px);
    margin-bottom: 24px;
}

.table-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.table-header .badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-glass);
    white-space: nowrap;
}

tbody td {
    padding: 12px 16px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

tbody tr {
    transition: var(--transition);
}

tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

/* ---- Badges ---- */
.badge-sev {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-sev-1 { background: rgba(100,116,139,0.2); color: #94a3b8; }
.badge-sev-2 { background: rgba(59,130,246,0.15); color: #60a5fa; }
.badge-sev-3 { background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge-sev-4 { background: rgba(239,68,68,0.15); color: #f87171; }

.badge-status {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
}

.badge-status.ok { background: rgba(16,185,129,0.15); color: #34d399; }
.badge-status.erro { background: rgba(239,68,68,0.15); color: #f87171; }
.badge-status.parcial { background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge-status.pendente { background: rgba(100,116,139,0.15); color: #94a3b8; }

/* Base Button Reset */
button {
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    backdrop-filter: blur(8px);
    text-decoration: none;
}

.filter-btn:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-blue);
    border: none;
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.filter-btn.active:hover {
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
    transform: translateY(-2px) scale(1.02);
}

/* ---- Filters Row (Search + Dropdown) ---- */
.filter-row {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 16px;
    margin-bottom: 32px;
    align-items: center;
}


.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    width: 100%;
    padding: 14px 40px 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(12px);
}

.custom-select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.custom-select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    pointer-events: none;
}

.custom-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Local Search Bar (ajustado para grid) */
.search-box {
    position: relative;
    margin-bottom: 0;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-box .icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.5;
    z-index: 2;
}

@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
    }
}

/* ---- Search Hero (Explorador) ---- */
.search-hero {
    padding: 60px 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.search-hero h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 32px;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-hero .search-box input {
    font-size: 1.1rem;
    padding: 18px 24px 18px 56px;
    border-radius: 16px;
}

.search-hero .search-box .icon {
    left: 22px;
    font-size: 1.4rem;
}

/* Entity Badges */
.entity-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entity-badge.pessoa { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); }
.entity-badge.empresa { background: rgba(16, 185, 129, 0.1); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.entity-badge.orgao { background: rgba(139, 92, 246, 0.1); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.2); }




/* ---- Pagination ---- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 16px;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-glass);
    transition: var(--transition);
}

.pagination a:hover { border-color: var(--accent-blue); }
.pagination .current {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

/* ---- Section ---- */
.section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- Grid 2 cols ---- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ---- Expandable rows ---- */
.expandable-content {
    display: none;
    padding: 16px 24px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid var(--border-glass);
}

.expandable-content.show { display: block; }

.expand-btn {
    background: none;
    border: none;
    color: var(--accent-blue);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font);
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.expand-btn:hover { background: rgba(59,130,246,0.1); }

/* ---- Empty state ---- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--text-secondary); }

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

.animate-in {
    animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.slide-up {
    animation: slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ---- Chart Containers ---- */
.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 24px;
    height: 100%;
    backdrop-filter: blur(12px);
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    margin-top: 16px;
}

.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.05s; }
.stat-card:nth-child(3) { animation-delay: 0.1s; }
.stat-card:nth-child(4) { animation-delay: 0.15s; }

/* ---- Responsive Navigation (Mobile Header & Drawer) ---- */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1100;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}

.mobile-logo-text {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent-cyan);
    letter-spacing: -0.02em;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-mini-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: opacity 0.8s ease-in-out;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.3));
}

.mobile-logo-text small {
    display: block;
    font-size: 0.62rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ---- Sidebar Logo & Brand ---- */
.sidebar-logo {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza logo e texto horizontalmente */
    text-align: center;   /* Garante que as linhas de texto fiquem centralizadas */
    gap: 12px;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.02);
}

.brand-logo-wrapper {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px; /* Aumentado o espaço entre logo e texto */
}

.brand-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5));
    transition: opacity 0.8s ease-in-out;
}

.brand-text {
    font-weight: 800;
    font-size: 1.4rem;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-top: 5px;
}

.brand-text small {
    display: block;
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--text-secondary);
    -webkit-text-fill-color: initial;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 4px;
}

.mobile-nav-toggle {
    display: none;
    position: relative; /* Agora relativo ao mobile-header */
    z-index: 1101;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-blue);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-header { display: flex; }
    .mobile-nav-toggle { display: flex; }
    
    .sidebar-logo { display: none; } /* Remove redundância no mobile */
    
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 280px;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex; /* Garante que o flex do sidebar-nav funcione */
        padding: 100px 16px 24px; /* Espaço para o cabeçalho e botão de fechar */
    }

    .sidebar.show {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }

    .sidebar-overlay.show {
        display: block;
        opacity: 1;
    }

    .main {
        margin-left: 0;
        padding: 80px 15px 40px; /* Padding lateral reduzido para dar espaço à tabela */
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    thead th, tbody td { padding: 10px 8px; font-size: 0.8rem; }
    
    .page-header h1 { font-size: 1.8rem; }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-glass); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ---- Tooltip ---- */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.tooltip:hover::after { opacity: 1; }

/* ---- Live Status Indicator (Sidebar) ---- */
.live-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    margin-top: 12px;
}

.pulse-led {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ---- Notice Banner (Dashboard) ---- */
.notice-banner {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius);
    padding: 14px 20px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(10px);
}

.notice-banner .icon {
    font-size: 1.2rem;
    animation: shake 5s infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

.notice-content {
    flex: 1;
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.notice-content strong { color: var(--accent-blue); }

.last-update-tag {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

/* ---- Site Footer ---- */
.site-footer {
    margin-top: 60px;
    padding: 60px 40px 40px; /* Adicionado padding lateral de 40px */
    border-top: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-brand .logo-mini {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 8px var(--accent-cyan));
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 280px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-blue);
    padding-left: 5px;
}

.footer-status-card {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.footer-status-card .status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

