/**
 * Drone Command Center — Palantir Foundry Dark Theme v2
 * Clean, minimal, professional
 */

:root {
    --bg-0: #0d0d0d;
    --bg-1: #161616;
    --bg-2: #1e1e1e;
    --bg-3: #282828;
    --border: #333;
    --border-light: #444;
    --text-0: #e8e8e8;
    --text-1: #b0b0b0;
    --text-2: #666;
    --accent: #3b82f6;
    --accent-dim: rgba(59, 130, 246, 0.15);
    --accent-glow: rgba(59, 130, 246, 0.3);
    --green: #22c55e;
    --green-dim: rgba(34, 197, 94, 0.15);
    --yellow: #f59e0b;
    --yellow-dim: rgba(245, 158, 11, 0.15);
    --red: #ef4444;
    --red-dim: rgba(239, 68, 68, 0.15);
    --cyan: #06b6d4;
    --radius: 6px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font);
    background: var(--bg-0);
    color: var(--text-0);
    overflow: hidden;
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
}

#map { width: 100%; height: 100vh; }

/* ─── Header ─── */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
    height: 48px;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    padding: 0 20px; gap: 16px;
}
.header .logo {
    font-weight: 700; font-size: 15px;
    color: var(--text-0); letter-spacing: -0.3px;
}
.header .logo span { color: var(--accent); }

.header .status {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-2);
}
.header .status-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
}

.header .mode-toggle {
    display: flex;
    background: var(--bg-2);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-left: auto;
    overflow: hidden;
}
.header .mode-btn {
    padding: 7px 18px; cursor: pointer;
    font-size: 12px; font-weight: 500;
    border: none; background: transparent;
    color: var(--text-2);
    transition: all 0.15s;
}
.header .mode-btn:first-child { border-right: 1px solid var(--border); }
.header .mode-btn.active {
    background: var(--accent);
    color: white;
}
.header .mode-btn:hover:not(.active) {
    color: var(--text-0);
    background: var(--bg-3);
}

.header .header-btn {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text-2);
    font-size: 16px;
    transition: all 0.15s;
    border: 1px solid var(--border);
    background: var(--bg-2);
}
.header .header-btn:hover {
    color: var(--text-0);
    background: var(--bg-3);
    border-color: var(--border-light);
}

/* ─── Left Sidebar ─── */
.sidebar-left {
    position: fixed; top: 48px; left: 0; bottom: 0; z-index: 1000;
    width: 280px;
    background: var(--bg-1);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    overflow: hidden;
}

.sidebar-left .section {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}
.sidebar-left .section:last-child {
    border-bottom: none;
    flex: 1;
    overflow-y: auto;
}

.sidebar-left .section-title {
    font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--text-2); margin-bottom: 10px;
}

/* Drone rows */
.sidebar-left .drone-row {
    display: flex; align-items: center;
    padding: 8px 10px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 2px;
    font-size: 12px;
    gap: 10px;
}
.sidebar-left .drone-row:hover { background: var(--bg-2); }
.sidebar-left .drone-row.selected {
    background: var(--accent-dim);
    border: 1px solid var(--accent);
}
.sidebar-left .drone-row .icon {
    width: 28px; height: 28px;
    background: var(--bg-3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}
.sidebar-left .drone-row.selected .icon {
    background: var(--accent);
    color: white;
}
.sidebar-left .drone-row .info { flex: 1; min-width: 0; }
.sidebar-left .drone-row .name {
    font-weight: 600; font-size: 12px;
    color: var(--text-0);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-left .drone-row .meta {
    font-size: 10px; color: var(--text-2); margin-top: 1px;
}
.sidebar-left .drone-row .bat-bar {
    width: 36px; height: 4px;
    background: var(--bg-3);
    border-radius: 2px; overflow: hidden;
    flex-shrink: 0;
}
.sidebar-left .drone-row .bat-fill { height: 100%; border-radius: 2px; transition: width 0.3s; }
.sidebar-left .drone-row .bat-fill.high { background: var(--green); }
.sidebar-left .drone-row .bat-fill.mid { background: var(--yellow); }
.sidebar-left .drone-row .bat-fill.low { background: var(--red); }

.sidebar-left .drone-row .locate {
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px; cursor: pointer;
    color: var(--text-2); font-size: 14px;
    flex-shrink: 0;
    transition: all 0.15s;
}
.sidebar-left .drone-row .locate:hover {
    background: var(--bg-3);
    color: var(--accent);
}

/* Stats */
.sidebar-left .stat-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.sidebar-left .stat-cell {
    background: var(--bg-2);
    border-radius: var(--radius);
    padding: 10px; text-align: center;
    border: 1px solid var(--border);
}
.sidebar-left .stat-cell .value {
    font-size: 18px; font-weight: 700;
    color: var(--text-0); letter-spacing: -0.5px;
}
.sidebar-left .stat-cell .label {
    font-size: 9px; color: var(--text-2);
    margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px;
}

/* Alerts */
.sidebar-left .alert-row {
    padding: 6px 8px;
    font-size: 11px;
    display: flex; align-items: center; gap: 6px;
    border-radius: 4px;
    margin-bottom: 2px;
}
.sidebar-left .alert-row.critical {
    background: var(--red-dim);
    color: var(--red);
}
.sidebar-left .alert-row.warning {
    background: var(--yellow-dim);
    color: var(--yellow);
}

/* ─── Right Panel (Simulation) ─── */
.panel-right {
    position: fixed; top: 48px; right: 0; bottom: 0; z-index: 1000;
    width: 320px;
    background: var(--bg-1);
    border-left: 1px solid var(--border);
    display: none; flex-direction: column;
}
.panel-right.active { display: flex; }

.panel-right .tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
}
.panel-right .tab {
    flex: 1; padding: 12px 8px;
    text-align: center; cursor: pointer;
    font-size: 11px; font-weight: 500;
    color: var(--text-2);
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
}
.panel-right .tab:hover { color: var(--text-0); }
.panel-right .tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: var(--bg-1);
}

.panel-right .tab-body {
    flex: 1; overflow-y: auto; padding: 16px;
}
.panel-right .tab-pane { display: none; }
.panel-right .tab-pane.active { display: block; }

.panel-right .field { margin-bottom: 12px; }
.panel-right .field label {
    display: block; font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--text-2); margin-bottom: 5px;
}
.panel-right .field input,
.panel-right .field select {
    width: 100%; padding: 9px 12px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-0); font-size: 12px;
    font-family: var(--font);
    transition: border-color 0.15s;
}
.panel-right .field input:focus,
.panel-right .field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
.panel-right .field-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}

.panel-right .btn {
    width: 100%; padding: 10px;
    border: none; border-radius: var(--radius);
    cursor: pointer; font-weight: 600; font-size: 12px;
    font-family: var(--font);
    transition: all 0.15s;
}
.panel-right .btn-primary {
    background: var(--accent); color: white;
}
.panel-right .btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 2px 8px var(--accent-glow);
}
.panel-right .btn-success { background: var(--green); color: white; }
.panel-right .btn-success:hover { background: #16a34a; }
.panel-right .btn-danger { background: var(--red); color: white; }
.panel-right .btn-danger:hover { background: #dc2626; }
.panel-right .btn-ghost {
    background: var(--bg-2); color: var(--text-1);
    border: 1px solid var(--border);
}
.panel-right .btn-ghost:hover {
    background: var(--bg-3); color: var(--text-0);
}
.panel-right .btn-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}

.panel-right .result {
    margin-top: 12px; padding: 10px;
    border-radius: var(--radius);
    font-size: 11px;
}
.panel-right .result.safe {
    background: var(--green-dim);
    border-left: 3px solid var(--green);
}
.panel-right .result.warning {
    background: var(--yellow-dim);
    border-left: 3px solid var(--yellow);
}
.panel-right .result.critical {
    background: var(--red-dim);
    border-left: 3px solid var(--red);
}
.panel-right .result .status { font-weight: 600; margin-bottom: 4px; }
.panel-right .result .detail { color: var(--text-2); margin-top: 2px; line-height: 1.5; }

.wp-list { max-height: 80px; overflow-y: auto; margin: 8px 0; }
.wp-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 8px;
    background: var(--bg-2);
    border-radius: 4px;
    margin-bottom: 2px;
    font-size: 11px;
    border: 1px solid var(--border);
}
.wp-item button {
    background: none; border: none;
    color: var(--red); cursor: pointer;
    font-size: 14px; padding: 0 4px;
    border-radius: 3px;
}
.wp-item button:hover { background: var(--red-dim); }

/* ─── Drone Control Panel ─── */
.drone-control {
    position: fixed; top: 48px; right: 0; bottom: 0; z-index: 999;
    width: 320px;
    background: var(--bg-1);
    border-left: 1px solid var(--border);
    display: none; overflow-y: auto;
}
.drone-control.active { display: block; }

.drone-control .dc-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
    position: sticky; top: 0;
    background: var(--bg-1);
    z-index: 1;
}
.drone-control .dc-header .id {
    font-weight: 700; font-size: 14px; flex: 1;
    color: var(--text-0);
}
.drone-control .dc-header .close {
    cursor: pointer; color: var(--text-2);
    font-size: 18px; padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s;
}
.drone-control .dc-header .close:hover {
    color: var(--text-0);
    background: var(--bg-3);
}

.drone-control .dc-body { padding: 16px; }

.drone-control .dc-info {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    margin-bottom: 16px;
}
.drone-control .dc-info .info-cell {
    background: var(--bg-2);
    border-radius: var(--radius);
    padding: 10px 12px;
    border: 1px solid var(--border);
}
.drone-control .dc-info .info-cell .val {
    font-size: 16px; font-weight: 700;
    color: var(--text-0); letter-spacing: -0.3px;
}
.drone-control .dc-info .info-cell .lbl {
    font-size: 9px; color: var(--text-2);
    margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px;
}

/* Simulate button active state */
#btn-sim.active {
    background: var(--green) !important;
    color: white !important;
    border-color: var(--green) !important;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ─── Leaflet Overrides ─── */
.leaflet-container { background: #0d0d0d !important; }
.leaflet-popup-content-wrapper {
    background: var(--bg-1);
    color: var(--text-0);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.leaflet-popup-tip { background: var(--bg-1); }
.leaflet-popup-close-button { color: var(--text-2) !important; }

/* Custom drone marker */
.drone-marker {
    width: 14px; height: 14px;
    background: var(--accent);
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
}
.drone-marker.selected {
    background: var(--green);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

/* ─── Loading Spinner ─── */
.spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Tooltip ─── */
.tooltip {
    position: relative;
}
.tooltip::after {
    content: attr(data-tip);
    position: absolute; bottom: 100%; left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: var(--bg-3);
    color: var(--text-0);
    font-size: 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity 0.15s;
}
.tooltip:hover::after { opacity: 1; }

/* ─── Battery Alert Pulse ─── */
@keyframes pulse-red {
    0%, 100% { filter: drop-shadow(0 0 4px #ef4444); }
    50% { filter: drop-shadow(0 0 12px #ef4444); }
}

/* ─── Speed Legend ─── */
.speed-legend {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    z-index: 1000;
    display: flex; gap: 12px;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 16px;
    font-size: 10px;
    color: var(--text-2);
}
.speed-legend .item {
    display: flex; align-items: center; gap: 5px;
}
.speed-legend .dot {
    width: 10px; height: 10px;
    border-radius: 2px;
}

/* ═══════════════════════════════════════════
   MOBILE / TOUCH OPTIMIZATIONS
   ═══════════════════════════════════════════ */

/* Small phones */
@media (max-width: 480px) {
    body { font-size: 14px; overflow: auto; }
    
    .header {
        height: 56px;
        padding: 0 12px;
        gap: 8px;
    }
    .header .logo { font-size: 14px; }
    .header .nav { display: none; } /* Hide nav, use hamburger */
    
    /* Mobile hamburger menu */
    .mobile-menu-btn {
        display: flex !important;
        width: 40px; height: 40px;
        align-items: center; justify-content: center;
        background: var(--bg-2);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        color: var(--text-0);
        font-size: 20px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-nav {
        display: none;
        position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
        z-index: 2000;
        background: var(--bg-1);
        border-top: 1px solid var(--border);
        padding: 16px;
        overflow-y: auto;
    }
    .mobile-nav.open { display: block; }
    .mobile-nav a, .mobile-nav button {
        display: block;
        width: 100%;
        padding: 14px 16px;
        margin-bottom: 8px;
        background: var(--bg-2);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        color: var(--text-0);
        font-size: 15px;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Mobile: hide sidebar-left, show as bottom sheet */
    .sidebar-left {
        display: none !important;
    }
    
    /* Bottom sheet for drone list */
    .drone-list-panel {
        position: fixed !important;
        bottom: 0 !important; left: 0 !important; right: 0 !important;
        top: auto !important;
        max-height: 50vh;
        border-radius: 16px 16px 0 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid var(--border);
        padding-bottom: env(safe-area-inset-bottom);
        overflow-y: auto;
        z-index: 1000;
    }
    .drone-list-panel .panel-header {
        padding: 12px 16px;
        position: sticky; top: 0;
        background: var(--bg-1);
        border-bottom: 1px solid var(--border);
    }
    .drone-list-panel .panel-header::before {
        content: '';
        display: block;
        width: 40px; height: 4px;
        background: var(--border);
        border-radius: 2px;
        margin: 0 auto 8px;
    }
    
    /* Stats panel — bottom sheet */
    .stats-panel {
        position: fixed !important;
        bottom: 0 !important; left: 0 !important; right: 0 !important;
        top: auto !important;
        max-height: 40vh;
        border-radius: 16px 16px 0 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid var(--border);
        padding-bottom: env(safe-area-inset-bottom);
        overflow-y: auto;
        z-index: 1000;
    }
    
    /* Touch-friendly buttons */
    button, .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* Touch-friendly form inputs */
    input, select, textarea {
        min-height: 44px;
        font-size: 16px; /* Prevents iOS zoom */
        padding: 10px 14px;
    }
    
    /* Modals — full screen on mobile */
    .modal {
        position: fixed !important;
        top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
        border-radius: 0 !important;
        max-width: 100% !important;
        max-height: 100% !important;
    }
    .modal-content {
        height: 100%;
        overflow-y: auto;
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    /* Speed legend — smaller */
    .speed-legend {
        bottom: 60px;
        padding: 6px 10px;
        font-size: 9px;
        gap: 8px;
    }
    
    /* Hide desktop-only elements */
    .desktop-only { display: none !important; }

    /* Mobile: Simulation panel = compact bottom sheet */
    .panel-right {
        position: fixed !important;
        top: auto !important; bottom: 0 !important;
        left: 0 !important; right: 0 !important;
        width: 100% !important;
        height: 45vh;
        border-radius: 12px 12px 0 0;
        border-left: none;
        border-top: 1px solid var(--border);
        transition: height 0.2s ease;
    }
    .panel-right.active { display: flex; }
    .panel-right.expanded { height: 85vh; }

    /* Mobile: drag handle */
    .sim-drag-handle {
        display: flex;
        justify-content: center;
        padding: 4px 0 2px;
        cursor: grab;
        flex-shrink: 0;
    }
    .sim-drag-bar {
        width: 32px;
        height: 3px;
        background: var(--border);
        border-radius: 2px;
    }

    /* Mobile: compact tabs */
    .panel-right .tabs {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
    }
    .panel-right .tabs::-webkit-scrollbar { display: none; }
    .panel-right .tab {
        flex: 0 0 auto;
        min-width: 56px;
        padding: 6px 4px;
        font-size: 9px;
        white-space: nowrap;
    }

    /* Mobile: compact form fields inside sim panel */
    .panel-right .tab-body {
        padding: 6px 8px;
        overflow-y: auto;
        flex: 1;
    }
    .panel-right .field {
        margin-bottom: 4px;
    }
    .panel-right .field label {
        font-size: 9px;
        margin-bottom: 1px;
    }
    .panel-right .field input,
    .panel-right .field select {
        min-height: 30px;
        padding: 4px 6px;
        font-size: 12px;
    }
    .panel-right .field-row {
        display: flex;
        gap: 6px;
        margin-bottom: 4px;
    }
    .panel-right .field-row .field {
        flex: 1;
        margin-bottom: 0;
    }
    .panel-right .btn {
        min-height: 30px;
        padding: 4px 10px;
        font-size: 11px;
    }
    .panel-right .btn-row {
        gap: 4px;
        margin-top: 4px;
    }
    .panel-right .wp-list {
        max-height: 60px;
        overflow-y: auto;
    }
    .panel-right .wp-item {
        padding: 2px 6px;
        font-size: 10px;
    }
    /* Hide hint text on mobile to save space */
    .panel-right .tab-pane p[style*="font-size:10px"] {
        display: none;
    }

    /* Mobile: scrollable tab bar */

    /* Leaflet controls — bigger touch targets */
    .leaflet-bar a {
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
        font-size: 18px !important;
    }
}

/* Tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .header { padding: 0 16px; }
    .drone-list-panel { width: 280px; }
    button, .btn { min-height: 40px; }
}

/* Safe area for iPhone X+ */
@supports (padding: env(safe-area-inset-bottom)) {
    .drone-list-panel,
    .stats-panel {
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
}

/* Prevent pull-to-refresh on mobile */
body.mobile {
    overscroll-behavior-y: contain;
}

/* Touch feedback */
@media (hover: none) {
    button:active, .btn:active {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

/* ─── Mobile FAB ─── */
.mobile-fab-container {
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 481px) {
    .mobile-fab-container {
        display: none;
    }
}

/* ─── Panel toggle button ─── */
.panel-toggle-btn {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 1001;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1a237e;
    color: white;
    border: none;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 481px) {
    .panel-toggle-btn {
        display: none;
    }
}

/* ─── Bottom sheet minimized state ─── */
.drone-list-panel.minimized,
.stats-panel.minimized {
    transform: translateY(calc(100% - 60px)) !important;
    transition: transform 0.3s ease;
}

.hidden { display: none !important; }

/* ─── FCM Push Notifications ─── */
.fcm-toast {
    background: var(--bg-2, #1e1e1e);
    border: 1px solid var(--accent, #00bcd4);
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: 0 4px 20px rgba(0, 188, 212, 0.3);
    animation: fcm-slide-in 0.3s ease;
    font-family: inherit;
    color: #e0e0e0;
    min-width: 280px;
}

.fcm-toast-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.fcm-toast-icon {
    font-size: 18px;
}

.fcm-toast-title {
    flex: 1;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
}

.fcm-toast-close {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.fcm-toast-close:hover {
    color: #fff;
}

.fcm-toast-body {
    font-size: 12px;
    color: #b0b0b0;
    line-height: 1.4;
}

.fcm-toast-drone {
    font-size: 11px;
    color: var(--accent, #00bcd4);
    margin-top: 4px;
    font-weight: 500;
}

.fcm-toast-fadeout {
    animation: fcm-slide-out 0.5s ease forwards;
}

@keyframes fcm-slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fcm-slide-out {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}
