/**
 * Standalone Walikota Command Center Dashboard CSS
 * Dedicated Stylesheet for Domain Walikota Package (walkotkupang.next.or.id)
 */

body {
    background-color: #0b1329;
    color: #f8fafc;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

.command-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(51, 65, 85, 0.6);
    backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pulse-live {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* STANDALONE LIGHT MODE OVERRIDES */
html.light body {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

html.light header {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05) !important;
}

html.light header h1 {
    color: #0f172a !important;
}

html.light header button,
html.light header div.rounded-2xl {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

html.light header button:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

html.light .command-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
}

html.light .text-white {
    color: #0f172a !important;
}

html.light .text-slate-100 {
    color: #1e293b !important;
}

html.light .text-slate-300 {
    color: #334155 !important;
}

html.light .text-slate-400 {
    color: #64748b !important;
}

html.light .text-slate-500 {
    color: #64748b !important;
}

html.light .bg-slate-900,
html.light .bg-slate-950,
html.light .bg-slate-800,
html.light .bg-slate-700 {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html.light .bg-slate-900\/80,
html.light .bg-slate-900\/60,
html.light .bg-slate-900\/50,
html.light .bg-slate-900\/40,
html.light .bg-slate-800\/80,
html.light .bg-slate-800\/60,
html.light .bg-slate-800\/40,
html.light .bg-slate-800\/20,
html.light .bg-slate-950\/80 {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

html.light .bg-gradient-to-r.from-emerald-950\/60 {
    background: linear-gradient(to right, #ecfdf5, #f0fdf4, #ffffff) !important;
    border-color: #a7f3d0 !important;
}

html.light table {
    border-color: #e2e8f0 !important;
}

html.light thead tr {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

html.light thead th {
    color: #475569 !important;
}

html.light tbody tr {
    border-color: #e2e8f0 !important;
}

html.light tbody tr:hover {
    background-color: #f8fafc !important;
}

html.light tbody td {
    color: #1e293b !important;
}

html.light tbody td .text-white {
    color: #0f172a !important;
}

html.light .text-amber-400 {
    color: #d97706 !important;
}

html.light .text-emerald-400 {
    color: #059669 !important;
}

html.light .text-cyan-400 {
    color: #0891b2 !important;
}

html.light .text-rose-400 {
    color: #e11d48 !important;
}

html.light .text-purple-400 {
    color: #7c3aed !important;
}

html.light footer {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #64748b !important;
}

html.light input, html.light textarea {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html.light .leaflet-popup-content-wrapper {
    background-color: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

html.light .leaflet-popup-tip {
    background-color: #ffffff !important;
}

html.light .leaflet-popup-content div {
    color: #0f172a !important;
}
