/* Premium Dashboard Theme Refresh */

body {
    background-color: #1a1a1a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Card Styling */
.card {
    margin-bottom: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    background: #2c3e50 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    overflow: hidden;
}

.card-header {
    background: #34495e !important;
    color: #00bcd4 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 12px 20px !important;
}

/* Badge Pulse Animation */
.badge-pulse {
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(0, 188, 212, 0.4);
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Data Table Overrides */
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner th {
    background-color: #34495e !important;
    color: #ecf0f1 !important;
    font-size: 0.9rem !important;
    border: none !important;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner td {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    font-size: 0.9rem !important;
}

/* Links & Accents */
.text-cyan {
    color: #00bcd4 !important;
    transition: all 0.2s ease;
    font-weight: 500;
}

.text-cyan:hover {
    color: #4dd0e1 !important;
    text-decoration: none;
    padding-left: 2px;
}

/* Navbar Tweaks */
.navbar {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Responsive Table scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .p-4 {
        padding: 1rem !important;
    }

    .card {
        margin-bottom: 15px;
        border-radius: 10px;
    }

    .card-header {
        padding: 10px 15px !important;
        font-size: 0.75rem;
    }

    /* Reduce font size for tables on mobile */
    .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner th,
    .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner td {
        font-size: 0.75rem !important;
        padding: 8px !important;
    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    /* Stack elements in Status card on small mobile */
    #status-container {
        margin-bottom: 10px;
    }
}
