/* ============================================================
   FlyTracks Tactical Dark Theme - Production CSS
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
    background: #0a0e17;
    color: #e0e6ed;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app, #blazor-error-ui {
    height: 100%;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(79, 195, 247, 0.25);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 195, 247, 0.45);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(79, 195, 247, 0.25) transparent;
}

/* ---- Animations ---- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(79, 195, 247, 0.3); }
    50% { box-shadow: 0 0 12px rgba(79, 195, 247, 0.6); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.ft-login-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #0d1321 0%, #0a0e17 60%, #060912 100%);
    z-index: 100;
}

.ft-login-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(79, 195, 247, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(0, 230, 118, 0.02) 0%, transparent 40%);
    pointer-events: none;
}

.ft-login-card {
    position: relative;
    width: 380px;
    padding: 40px 36px;
    background: rgba(19, 26, 42, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(79, 195, 247, 0.12);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInScale 0.5s ease-out;
    box-shadow:
        0 0 60px rgba(0, 0, 0, 0.5),
        0 0 1px rgba(79, 195, 247, 0.2);
}

.ft-login-logo {
    width: 180px;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 20px rgba(79, 195, 247, 0.15));
}

.ft-login-subtitle {
    font-size: 11px;
    letter-spacing: 3px;
    color: #4fc3f7;
    margin-bottom: 32px;
    font-weight: 500;
}

.ft-login-input {
    width: 100%;
    margin-bottom: 16px !important;
}

.ft-login-input .mud-input-outlined .mud-input-outlined-border {
    border-color: rgba(79, 195, 247, 0.2) !important;
}

.ft-login-input .mud-input-outlined:hover .mud-input-outlined-border {
    border-color: rgba(79, 195, 247, 0.4) !important;
}

.ft-login-input .mud-input-outlined.mud-input-focused .mud-input-outlined-border {
    border-color: #4fc3f7 !important;
}

.ft-login-input .mud-input-label {
    color: #8899aa !important;
}

.ft-login-input .mud-input {
    color: #e0e6ed !important;
}

.ft-login-input .mud-input-adornment {
    color: #4fc3f7 !important;
}

.ft-login-btn {
    margin-top: 8px !important;
    height: 44px !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.ft-login-btn:hover {
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.3) !important;
}

/* ============================================================
   APP LAYOUT
   ============================================================ */
.ft-app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: #0a0e17;
}

/* ---- Top Bar ---- */
.ft-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    min-height: 48px;
    padding: 0 16px;
    background: rgba(13, 19, 33, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(79, 195, 247, 0.1);
    z-index: 1000;
}

.ft-topbar-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ft-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ft-logo {
    height: 28px;
    filter: drop-shadow(0 0 8px rgba(79, 195, 247, 0.15));
}

/* ---- Navigation ---- */
.ft-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ft-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    color: #8899aa;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ft-nav-link:hover {
    color: #e0e6ed;
    background: rgba(79, 195, 247, 0.08);
}

.ft-nav-link.active {
    color: #4fc3f7;
    background: rgba(79, 195, 247, 0.12);
}

.ft-nav-link .mud-icon-root {
    font-size: 18px;
}

/* ---- Account Select ---- */
.ft-account-select {
    min-width: 200px !important;
    max-width: 260px !important;
}

.ft-account-select .mud-input-outlined .mud-input-outlined-border {
    border-color: rgba(79, 195, 247, 0.2) !important;
}

.ft-account-select .mud-input-outlined .mud-input {
    color: #e0e6ed !important;
    font-size: 13px !important;
    padding: 4px 8px !important;
}

/* ---- User Info ---- */
.ft-user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8899aa;
    font-size: 12px;
    font-weight: 500;
}

.ft-user-info .mud-icon-root {
    color: #4fc3f7;
}

/* ---- Main Content ---- */
.ft-main {
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* ============================================================
   REALTIME PAGE
   ============================================================ */
.ft-realtime {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ---- Sidebar ---- */
.ft-sidebar {
    position: absolute;
    top: 12px;
    left: 12px;
    bottom: 12px;
    width: 320px;
    background: rgba(19, 26, 42, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 195, 247, 0.12);
    border-radius: 10px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideInLeft 0.3s ease-out;
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.4),
        0 0 1px rgba(79, 195, 247, 0.15);
}

/* Collapsed sidebar: compact floating button */
.ft-sidebar-toggle {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 500;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(19, 26, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 0 1px rgba(79, 195, 247, 0.15);
    animation: fadeInScale 0.2s ease-out;
}

.ft-sidebar-toggle:hover {
    background: rgba(79, 195, 247, 0.15);
    border-color: rgba(79, 195, 247, 0.4);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 8px rgba(79, 195, 247, 0.2);
}

.ft-sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(79, 195, 247, 0.08);
    min-height: 44px;
}

.ft-sidebar-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #4fc3f7;
    flex: 1;
}

/* ---- Fleet Selector ---- */
.ft-fleet-selector {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(79, 195, 247, 0.06);
}

.ft-select-dark .mud-input-outlined .mud-input-outlined-border {
    border-color: rgba(79, 195, 247, 0.15) !important;
}

.ft-select-dark .mud-input-outlined:hover .mud-input-outlined-border {
    border-color: rgba(79, 195, 247, 0.3) !important;
}

.ft-select-dark .mud-input {
    color: #e0e6ed !important;
    font-size: 13px !important;
}

.ft-select-dark .mud-input-label {
    color: #8899aa !important;
    font-size: 12px !important;
}

/* ---- Unit List ---- */
.ft-unit-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px;
}

.ft-unit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    margin-bottom: 2px;
}

.ft-unit-item:hover {
    background: rgba(79, 195, 247, 0.06);
    border-color: rgba(79, 195, 247, 0.1);
}

.ft-unit-item.selected {
    background: rgba(79, 195, 247, 0.1);
    border-color: rgba(79, 195, 247, 0.25);
}

.ft-unit-item.warning {
    border-left: 3px solid #FF9100;
}

.ft-unit-item.active {
    border-left: 3px solid #00E676;
}

.ft-unit-item.stopped {
    border-left: 3px solid #FF1744;
}

/* ---- Unit Pin Button ---- */
.ft-unit-pin-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.ft-pin-btn {
    color: #3a4555 !important;
    width: 28px !important;
    height: 28px !important;
    transition: all 0.2s ease !important;
    transform: rotate(45deg);
}

.ft-pin-btn:hover {
    color: #4fc3f7 !important;
}

.ft-pin-active {
    color: #4fc3f7 !important;
    transform: rotate(0deg);
}

.ft-pin-dimmed {
    color: #5a6577 !important;
    transform: rotate(0deg);
    opacity: 0.6;
}

/* ---- Unpin All Bar ---- */
.ft-unpin-all-bar {
    display: flex;
    justify-content: center;
    padding: 4px 8px;
    border-bottom: 1px solid rgba(79, 195, 247, 0.1);
}

.ft-unpin-all-btn {
    color: #4fc3f7 !important;
    font-size: 11px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* ---- Map Button Active State ---- */
.ft-map-btn-active {
    background: #4fc3f7 !important;
    border-color: #4fc3f7 !important;
    color: #0a0e17 !important;
}

/* ---- Unit Icon ---- */
.ft-unit-icon-wrapper {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 195, 247, 0.08);
    border-radius: 8px;
}

.ft-unit-svg {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(0.85);
}

.ft-unit-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #131a2a;
}

/* ---- Unit Info ---- */
.ft-unit-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.ft-unit-name {
    font-size: 13px;
    font-weight: 600;
    color: #e0e6ed;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ft-unit-registration {
    font-size: 11px;
    color: #8899aa;
    font-family: 'JetBrains Mono', monospace;
}

.ft-unit-last-event {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.ft-unit-event-name {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ft-unit-time {
    font-size: 10px;
    color: #667788;
    font-family: 'JetBrains Mono', monospace;
}

/* ---- Flight Status Badges (Sidebar) ---- */
.ft-flight-status {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 1px 5px;
    border-radius: 3px;
    white-space: nowrap;
}

.ft-flight-status.in-flight {
    background: rgba(0, 230, 118, 0.15);
    color: #00E676;
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.ft-flight-status.on-ground {
    background: rgba(120, 144, 156, 0.15);
    color: #90A4AE;
    border: 1px solid rgba(120, 144, 156, 0.3);
}

/* ---- Flight Status Badge (Detail Panel) ---- */
.ft-detail-flight-status {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.ft-detail-flight-status.in-flight {
    background: rgba(0, 230, 118, 0.15);
    color: #00E676;
    border: 1px solid rgba(0, 230, 118, 0.35);
}

.ft-detail-flight-status.on-ground {
    background: rgba(120, 144, 156, 0.15);
    color: #90A4AE;
    border: 1px solid rgba(120, 144, 156, 0.35);
}

/* ---- Unit Warnings ---- */
.ft-unit-warnings {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.ft-unit-warnings .mud-icon-root {
    animation: pulse-warning 2s infinite;
}

/* ============================================================
   MAP
   ============================================================ */
.ft-map {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #0a0e17;
}

/* Override leaflet controls - zoom positioned top-right below our custom buttons */
.leaflet-top.leaflet-right .leaflet-control-zoom {
    margin-top: 176px;
    margin-right: 12px;
}

.leaflet-control-zoom {
    border: 1px solid rgba(79, 195, 247, 0.2) !important;
    border-radius: 6px !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

.leaflet-control-zoom a {
    background: rgba(19, 26, 42, 0.9) !important;
    color: #e0e6ed !important;
    border-color: rgba(79, 195, 247, 0.1) !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    font-size: 16px !important;
}

.leaflet-control-zoom a:hover {
    background: rgba(79, 195, 247, 0.15) !important;
    color: #4fc3f7 !important;
}

.leaflet-control-attribution {
    background: rgba(19, 26, 42, 0.7) !important;
    color: #667788 !important;
    font-size: 10px !important;
    padding: 2px 6px !important;
}

.leaflet-control-attribution a {
    color: #4fc3f7 !important;
}

/* Map Marker Tooltip */
.ft-marker-tooltip {
    background: rgba(19, 26, 42, 0.95) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(79, 195, 247, 0.2) !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
    color: #e0e6ed !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
    white-space: nowrap !important;
}

.ft-marker-tooltip::before {
    border-top-color: rgba(79, 195, 247, 0.2) !important;
}

.leaflet-tooltip-top:before {
    border-top-color: rgba(79, 195, 247, 0.2) !important;
}

.leaflet-tooltip-bottom:before {
    border-bottom-color: rgba(79, 195, 247, 0.2) !important;
}

/* Map Marker */
.ft-marker {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ft-marker-icon {
    width: 32px;
    height: 32px;
    transition: transform 0.8s ease;
}

.ft-marker-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid;
    opacity: 0.6;
}

.ft-marker-warning-indicator {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF9100;
    border: 2px solid #131a2a;
    animation: pulse-warning 1.5s infinite;
}

.ft-marker-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 800;
    color: #f0f4f8;
    white-space: nowrap;
    background: rgba(10, 14, 23, 0.7);
    padding: 1px 5px;
    border-radius: 3px;
    pointer-events: none;
    letter-spacing: 0.4px;
}

.ft-marker-label-light {
    color: #0d1520;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.8);
}

.ft-marker-container {
    overflow: visible !important;
}

.ft-water-discharge-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.ft-water-discharge-icon {
    font-size: 18px;
    filter: drop-shadow(0 0 4px rgba(41, 182, 246, 0.6));
}

.ft-water-discharge-liters {
    font-size: 9px;
    font-weight: 700;
    color: #29B6F6;
    white-space: nowrap;
    text-shadow: 0 0 4px #0a0e17, 0 0 8px #0a0e17;
    margin-top: -2px;
}

/* Detail panel bottom row: buttons + warnings in one line */
.ft-detail-bottom-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0 0 0;
    border-top: 1px solid rgba(79, 195, 247, 0.1);
    margin-top: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
    min-height: 34px;
}

.ft-detail-btn.mud-button-root {
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: none;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ---- Cesium 3D Map ---- */
.ft-map-cesium {
    background: #0a0e17;
}

.ft-map-cesium .cesium-viewer {
    font-family: 'Inter', sans-serif;
}

.ft-map-cesium .cesium-viewer-bottom {
    display: none !important;
}

.ft-map-cesium .cesium-widget-credits {
    display: none !important;
}

.ft-map-cesium .cesium-viewer-toolbar {
    display: none !important;
}

/* 3D mode active button glow */
.ft-map-btn-3d-active {
    background: rgba(79, 195, 247, 0.2) !important;
    border-color: rgba(79, 195, 247, 0.5) !important;
    color: #4fc3f7 !important;
    box-shadow: 0 0 12px rgba(79, 195, 247, 0.25) !important;
}

/* ---- 3D Help Panel ---- */
.ft-3d-help {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 500;
    background: rgba(19, 26, 42, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 195, 247, 0.15);
    border-radius: 8px;
    padding: 10px 12px;
    min-width: 260px;
    animation: fadeInScale 0.2s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.ft-3d-help-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #4fc3f7;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(79, 195, 247, 0.1);
}

.ft-3d-help-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
}

.ft-3d-help-key {
    font-size: 11px;
    font-weight: 600;
    color: #e0e6ed;
    font-family: 'JetBrains Mono', monospace;
}

.ft-3d-help-desc {
    font-size: 11px;
    color: #8899aa;
    margin-left: 12px;
}

/* ---- Map Controls ---- */
.ft-map-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ft-map-btn {
    background: rgba(19, 26, 42, 0.9) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(79, 195, 247, 0.15) !important;
    border-radius: 6px !important;
    color: #e0e6ed !important;
    width: 36px !important;
    height: 36px !important;
    transition: all 0.2s ease !important;
}

.ft-map-btn:hover {
    background: rgba(79, 195, 247, 0.15) !important;
    border-color: rgba(79, 195, 247, 0.3) !important;
    color: #4fc3f7 !important;
}

/* ---- Layer Picker ---- */
.ft-layer-picker {
    position: absolute;
    top: 12px;
    right: 56px;
    z-index: 500;
    background: rgba(19, 26, 42, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 195, 247, 0.15);
    border-radius: 8px;
    padding: 8px;
    min-width: 200px;
    animation: fadeInScale 0.2s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.ft-layer-picker-title {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #4fc3f7;
    padding: 4px 8px;
    margin-bottom: 4px;
}

.ft-layer-option {
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #8899aa;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ft-layer-option:hover {
    background: rgba(79, 195, 247, 0.08);
    color: #e0e6ed;
}

.ft-layer-option.active {
    background: rgba(79, 195, 247, 0.15);
    color: #4fc3f7;
}

.ft-layer-checkbox {
    padding: 2px 8px !important;
}

.ft-layer-checkbox .mud-checkbox-label {
    font-size: 12px !important;
    color: #8899aa !important;
}

/* ============================================================
   DETAIL PANEL (bottom)
   ============================================================ */
.ft-detail-panel {
    position: absolute;
    bottom: 12px;
    left: 344px;
    right: 12px;
    z-index: 500;
    background: rgba(19, 26, 42, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 195, 247, 0.12);
    border-radius: 10px;
    padding: 14px 18px;
    animation: slideInUp 0.25s ease-out;
    box-shadow:
        0 -4px 30px rgba(0, 0, 0, 0.3),
        0 0 1px rgba(79, 195, 247, 0.15);
}

.ft-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ft-detail-icon {
    width: 36px;
    height: 36px;
    filter: brightness(0) invert(0.85);
    background: rgba(79, 195, 247, 0.08);
    border-radius: 8px;
    padding: 6px;
}

.ft-detail-name {
    font-size: 15px;
    font-weight: 600;
    color: #e0e6ed;
}

.ft-detail-registration {
    font-size: 12px;
    color: #8899aa;
    font-family: 'JetBrains Mono', monospace;
}

.ft-detail-status {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
}

.ft-detail-close {
    color: #667788 !important;
    flex-shrink: 0;
}

.ft-detail-close:hover {
    color: #e0e6ed !important;
}

/* ---- Metrics Grid ---- */
.ft-detail-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}

.ft-metric {
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid rgba(79, 195, 247, 0.06);
    border-radius: 6px;
    padding: 8px 12px;
}

.ft-metric-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #667788;
    margin-bottom: 2px;
}

.ft-metric-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 500;
    color: #e0e6ed;
}

.ft-metric-unit {
    font-size: 11px;
    color: #667788;
    font-weight: 400;
}

.ft-metric-payload .ft-metric-value {
    color: #29B6F6;
    font-size: 16px;
    font-weight: 700;
}

.ft-metric-payload .ft-metric-label {
    color: #29B6F6;
}

.ft-metric-payload {
    background: rgba(41, 182, 246, 0.08);
    border: 1px solid rgba(41, 182, 246, 0.2);
    border-radius: 6px;
}

.ft-metric-coords {
    font-size: 12px;
}

.ft-metric-time {
    font-size: 12px;
}

/* ---- Warning Badges (inline in bottom row) ---- */
.ft-warning-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: pulse-warning 2s infinite;
    flex-shrink: 0;
    white-space: nowrap;
}

.ft-warning-badge .mud-icon-root {
    font-size: 14px;
}

/* ============================================================
   MUDBLAZOR DARK OVERRIDES
   ============================================================ */

/* Popover / Menu / Select dropdown */
.mud-popover {
    background: rgba(19, 26, 42, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(79, 195, 247, 0.15) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

.mud-list-item {
    color: #e0e6ed !important;
    font-size: 13px !important;
}

.mud-list-item:hover {
    background: rgba(79, 195, 247, 0.08) !important;
}

.mud-list-item-selected,
.mud-list-item.mud-selected-item {
    background: rgba(79, 195, 247, 0.12) !important;
    color: #4fc3f7 !important;
}

/* Alert */
.mud-alert {
    border-radius: 6px !important;
}

/* Tooltip */
.mud-tooltip {
    background: rgba(19, 26, 42, 0.95) !important;
    color: #e0e6ed !important;
    font-size: 12px !important;
    border: 1px solid rgba(79, 195, 247, 0.15) !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

/* Snackbar */
.mud-snackbar {
    background: rgba(19, 26, 42, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(79, 195, 247, 0.12) !important;
}

/* Dialog */
.mud-dialog {
    background: rgba(19, 26, 42, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(79, 195, 247, 0.12) !important;
    border-radius: 12px !important;
}

/* Checkbox */
.mud-checkbox .mud-checkbox-label {
    font-size: 13px;
}

/* ---- Selection highlight override ---- */
::selection {
    background: rgba(79, 195, 247, 0.3);
    color: #ffffff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .ft-sidebar {
        width: 280px;
    }
    .ft-detail-panel {
        left: 304px;
    }
    .ft-detail-metrics {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 900px) {
    .ft-sidebar {
        width: 260px;
    }
    .ft-detail-panel {
        left: 12px;
    }
    .ft-nav-link span {
        display: none;
    }
    .ft-nav-link {
        padding: 6px 10px;
    }
}

@media (max-width: 600px) {
    .ft-sidebar {
        width: 100%;
        bottom: auto;
        height: 200px;
        top: 0;
        left: 0;
        border-radius: 0;
    }
    .ft-detail-panel {
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 10px 10px 0 0;
    }
}

/* ============================================================
   PARRILLA (GRID) - Mission Operations Dashboard
   ============================================================ */

.ft-parrilla {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #0a0e17;
}

/* ---- Toolbar ---- */
.ft-parrilla-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: rgba(13, 19, 33, 0.95);
    border-bottom: 1px solid rgba(79, 195, 247, 0.08);
    flex-shrink: 0;
    gap: 12px;
    min-height: 48px;
}

.ft-parrilla-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ft-parrilla-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #4fc3f7;
}

.ft-parrilla-toolbar-center {
    flex: 0 0 auto;
}

.ft-parrilla-fleet-select {
    min-width: 220px;
}

.ft-parrilla-toolbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.ft-parrilla-date-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #e0e6ed;
    padding: 0 8px;
    white-space: nowrap;
}

.ft-parrilla-calendar {
    padding: 0;
}

.ft-parrilla-calendar-popup {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    background: #1a2332;
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 4px;
}

.ft-parrilla-calendar-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
}

.ft-parrilla-datepicker {
    background: transparent !important;
}

.ft-parrilla-datepicker .mud-picker-calendar-header {
    color: #e0e6ed !important;
}

/* ---- View Mode Toggle ---- */
.ft-view-mode-toggle {
    display: flex;
    gap: 2px;
    background: rgba(19, 26, 42, 0.6);
    border: 1px solid rgba(79, 195, 247, 0.1);
    border-radius: 6px;
    padding: 2px;
    margin-left: 12px;
}

.ft-view-mode-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #667788;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ft-view-mode-btn:hover {
    color: #8899aa;
    background: rgba(79, 195, 247, 0.05);
}

.ft-view-mode-btn.active {
    color: #4fc3f7;
    background: rgba(79, 195, 247, 0.12);
}

.ft-view-mode-btn .mud-icon-root {
    font-size: 15px;
}

/* LIVE button */
.ft-live-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border: 1px solid #455a64;
    border-radius: 4px;
    background: transparent;
    color: #667788;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.ft-live-btn:hover {
    color: #90A4AE;
    border-color: #607d8b;
}

.ft-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667788;
    transition: background 0.3s ease;
}

.ft-live-btn.active {
    color: #00E676;
    border-color: #00E676;
    background: rgba(0, 230, 118, 0.08);
}

.ft-live-btn.active .ft-live-dot {
    background: #00E676;
    animation: pulse-live 1.5s infinite;
    box-shadow: 0 0 6px rgba(0, 230, 118, 0.6);
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(0, 230, 118, 0.6); }
    50% { opacity: 0.5; box-shadow: 0 0 2px rgba(0, 230, 118, 0.3); }
}

/* ---- Loading / Empty ---- */
.ft-parrilla-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.ft-parrilla-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 12px;
    color: #667788;
    font-size: 14px;
}

/* ---- Zoom Bar ---- */
.ft-parrilla-zoom-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 16px;
    background: rgba(13, 19, 33, 0.8);
    border-bottom: 1px solid rgba(79, 195, 247, 0.05);
    flex-shrink: 0;
}

.ft-zoom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 140px;
    height: 4px;
    background: rgba(79, 195, 247, 0.12);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.ft-zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #4fc3f7;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(13, 19, 33, 0.9);
}

.ft-zoom-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #4fc3f7;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(13, 19, 33, 0.9);
}

.ft-zoom-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #667788;
    min-width: 30px;
}

/* ---- Column Count Controls ---- */
.ft-zoom-bar-divider {
    width: 1px;
    height: 18px;
    background: rgba(79, 195, 247, 0.12);
    margin: 0 4px;
}

.ft-col-count-toggle {
    display: flex;
    gap: 2px;
    background: rgba(19, 26, 42, 0.6);
    border: 1px solid rgba(79, 195, 247, 0.1);
    border-radius: 4px;
    padding: 2px;
}

.ft-col-count-btn {
    width: 24px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 3px;
    background: transparent;
    color: #667788;
    font-size: 11px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: all 0.15s;
}

.ft-col-count-btn:hover:not(.disabled) {
    color: #8899aa;
    background: rgba(79, 195, 247, 0.05);
}

.ft-col-count-btn.active {
    color: #4fc3f7;
    background: rgba(79, 195, 247, 0.12);
}

.ft-col-count-btn.disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

/* ---- Card Grid ---- */
.ft-parrilla-grid {
    display: grid;
    grid-auto-rows: min-content;
    gap: 12px;
    padding: 12px 16px;
    overflow-y: auto;
    flex: 1;
    align-content: start;
}

.ft-grid-cols-1 { grid-template-columns: 1fr; }
.ft-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ft-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ft-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.ft-parrilla-grid::-webkit-scrollbar {
    width: 6px;
}
.ft-parrilla-grid::-webkit-scrollbar-track {
    background: transparent;
}
.ft-parrilla-grid::-webkit-scrollbar-thumb {
    background: rgba(79, 195, 247, 0.15);
    border-radius: 3px;
}

/* ---- Card ---- */
.ft-card {
    background: rgba(19, 26, 42, 0.8);
    border: 1px solid rgba(79, 195, 247, 0.08);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.ft-card:hover {
    border-color: rgba(79, 195, 247, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ft-card-active {
    border-color: rgba(0, 230, 118, 0.3);
    box-shadow: 0 0 16px rgba(0, 230, 118, 0.08);
}

.ft-card-active:hover {
    border-color: rgba(0, 230, 118, 0.5);
}

.ft-card-warning {
    border-color: rgba(255, 214, 0, 0.3);
    box-shadow: 0 0 16px rgba(255, 214, 0, 0.08);
}

/* ---- Card Header ---- */
.ft-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(10, 14, 23, 0.4);
}

.ft-card-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ft-card-unit-svg {
    width: 28px;
    height: 28px;
    opacity: 0.9;
}

.ft-card-unit-info {
    display: flex;
    flex-direction: column;
}

.ft-card-unit-name {
    font-size: 14px;
    font-weight: 600;
    color: #e0e6ed;
    letter-spacing: 0.5px;
}

.ft-card-unit-reg {
    font-size: 11px;
    color: #667788;
    font-family: 'JetBrains Mono', monospace;
}

.ft-card-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ft-card-fleet-name {
    font-size: 11px;
    color: #667788;
    letter-spacing: 0.5px;
}

/* ---- Card Warnings ---- */
.ft-card-warnings {
    display: flex;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 214, 0, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    flex-wrap: wrap;
}

.ft-card-warnings .ft-warning-badge {
    font-size: 9px;
    padding: 2px 8px;
}

/* ---- Card Chart ---- */
.ft-card-chart-container {
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(10, 14, 23, 0.3);
    scrollbar-width: thin;
    scrollbar-color: rgba(79, 195, 247, 0.2) transparent;
    width: 100%;
    min-width: 0;
}

.ft-card-chart-container::-webkit-scrollbar {
    height: 4px;
}

.ft-card-chart-container::-webkit-scrollbar-track {
    background: transparent;
}

.ft-card-chart-container::-webkit-scrollbar-thumb {
    background: rgba(79, 195, 247, 0.2);
    border-radius: 2px;
}

.ft-card-chart {
    height: 120px;
    padding: 4px 0;
    position: relative;
    min-width: 100%;
}

.ft-card-chart .ft-chart-scroll-wrapper {
    height: 100%;
}

.ft-card-chart canvas {
    display: block;
}

.ft-card-chart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #445566;
    font-size: 12px;
    font-style: italic;
}

/* ---- Chart Tooltip ---- */
.ft-chart-tooltip {
    display: none;
    position: absolute;
    z-index: 10;
    background: rgba(10, 14, 23, 0.92);
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
    pointer-events: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #e0e6ed;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.ft-tt-time {
    font-weight: 600;
    color: #4fc3f7;
    margin-bottom: 3px;
    font-size: 11px;
}

.ft-tt-row {
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.5;
}

.ft-tt-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ft-tt-evt {
    margin-top: 3px;
    padding-top: 3px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #8899aa;
    font-size: 9px;
    letter-spacing: 0.5px;
}

/* ---- Card Mission Table ---- */
.ft-card-missions {
    overflow: hidden;
    position: relative;
    /* 4 rows (~24px each) + header (~28px) = ~124px */
    max-height: 124px;
}

.ft-card-missions-expanded {
    overflow-y: auto;
}

.ft-mission-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.ft-mission-table thead th {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #667788;
    text-align: left;
    padding: 5px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #0d1221;
    position: sticky;
    top: 0;
    z-index: 1;
}

.ft-mission-table tbody td {
    padding: 4px 4px;
    color: #c0c8d4;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.ft-mission-table tbody tr:hover {
    background: rgba(79, 195, 247, 0.04);
}

.ft-mission-nav-btns {
    white-space: nowrap;
    padding: 1px 2px !important;
}

.ft-mission-nav-btns .mud-icon-button {
    padding: 1px !important;
}

.ft-mission-active {
    background: rgba(0, 230, 118, 0.04);
}

.ft-mission-active td {
    color: #e0e6ed !important;
}

.ft-mission-status {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 3px;
}

.ft-mission-status.active {
    background: rgba(0, 230, 118, 0.15);
    color: #00E676;
}

.ft-mission-status.ground {
    background: rgba(136, 153, 170, 0.15);
    color: #8899aa;
}

.ft-mission-status.completed {
    background: rgba(79, 195, 247, 0.1);
    color: #4fc3f7;
}

.ft-mission-empty {
    text-align: center;
    color: #445566;
    font-style: italic;
    font-family: inherit !important;
}

/* ---- Card Footer ---- */
.ft-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(10, 14, 23, 0.4);
    flex-wrap: wrap;
}

.ft-card-metric {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #8899aa;
    white-space: nowrap;
}

.ft-card-metric .mud-icon-root {
    font-size: 14px;
    color: #667788;
}

/* Expand button */
.ft-card-expand-btn {
    background: none;
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 3px;
    color: #4fc3f7;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    cursor: pointer;
    margin-left: auto;
    transition: background 0.2s;
}

.ft-card-expand-btn:hover {
    background: rgba(79, 195, 247, 0.1);
}

/* Flight time limit approaching — orange pulsing glow */
.ft-card-flight-limit {
    border-color: rgba(255, 145, 0, 0.5) !important;
    box-shadow: 0 0 20px rgba(255, 145, 0, 0.15), inset 0 0 20px rgba(255, 145, 0, 0.03) !important;
    animation: pulse-flight-limit 2s infinite;
}

@keyframes pulse-flight-limit {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 145, 0, 0.15), inset 0 0 20px rgba(255, 145, 0, 0.03); }
    50% { box-shadow: 0 0 30px rgba(255, 145, 0, 0.25), inset 0 0 30px rgba(255, 145, 0, 0.06); }
}

/* In chart-only mode: chart gets more height, no table */
.ft-card-chart-only .ft-card-chart-container .ft-card-chart {
    height: 180px;
}

/* In table-only mode: table gets more space */
.ft-card-table-only .ft-card-missions {
    max-height: 260px;
}

/* ---- Responsive Parrilla ---- */
@media (max-width: 900px) {
    .ft-parrilla-toolbar {
        flex-wrap: wrap;
        gap: 8px;
    }
    .ft-parrilla-title {
        font-size: 11px;
    }
    .ft-view-mode-btn span {
        display: none;
    }
}

@media (max-width: 500px) {
    .ft-parrilla-grid {
        padding: 8px;
        gap: 8px;
    }
    .ft-card-chart {
        height: 90px;
    }
}

/* ============================================================
   TRAYECTOS PAGE
   ============================================================ */

.ft-trayectos {
    display: flex;
    height: 100%;
    overflow: hidden;
}

/* ---- Panels area (units + missions side by side) ---- */
.ft-tray-panels {
    display: flex;
    flex-shrink: 0;
}

.ft-tray-panel {
    display: flex;
    flex-direction: column;
    background: rgba(10, 14, 23, 0.95);
    border-right: 1px solid rgba(79, 195, 247, 0.08);
    width: 280px;
    min-width: 280px;
    transition: width 0.3s, min-width 0.3s;
    overflow: hidden;
}

.ft-tray-panel.collapsed {
    width: 40px;
    min-width: 40px;
}

.ft-tray-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(13, 18, 33, 0.95);
    border-bottom: 1px solid rgba(79, 195, 247, 0.1);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
    min-height: 38px;
}

.ft-tray-panel-header:hover {
    background: rgba(79, 195, 247, 0.06);
}

.ft-tray-panel-title {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #e0e6ed;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
}

.ft-tray-panel.collapsed .ft-tray-panel-title {
    display: none;
}

.ft-tray-panel-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.ft-tray-sidebar-header {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ft-tray-date-range {
    padding: 6px 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ft-tray-date-picker {
    font-size: 12px;
}

.ft-tray-missions-unit-label {
    font-size: 11px;
    font-weight: 600;
    color: #e0e6ed;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Units list ---- */
.ft-tray-units-list {
    flex: 1;
    overflow-y: auto;
}

.ft-tray-unit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.ft-tray-unit-item:hover {
    background: rgba(79, 195, 247, 0.04);
}

.ft-tray-unit-item.selected {
    background: rgba(79, 195, 247, 0.08);
    border-left: 3px solid #4fc3f7;
}

.ft-tray-unit-svg {
    width: 24px;
    height: 24px;
    filter: brightness(0.8);
}

.ft-tray-unit-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.ft-tray-unit-name {
    font-size: 12px;
    font-weight: 600;
    color: #e0e6ed;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ft-tray-unit-reg {
    font-size: 10px;
    color: #667788;
}

.ft-tray-unit-fleet {
    font-size: 9px;
    color: #556677;
    white-space: nowrap;
}

.ft-tray-empty-msg {
    padding: 20px;
    text-align: center;
    color: #445566;
    font-size: 12px;
    font-style: italic;
}

/* ---- Missions list ---- */
.ft-tray-missions-list {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.ft-tray-mission-date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: rgba(79, 195, 247, 0.06);
    border-bottom: 1px solid rgba(79, 195, 247, 0.1);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #4fc3f7;
    text-transform: capitalize;
    position: sticky;
    top: 0;
    z-index: 1;
}

.ft-tray-mission-date-count {
    background: rgba(79, 195, 247, 0.15);
    color: #4fc3f7;
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 8px;
    min-width: 18px;
    text-align: center;
}

.ft-tray-mission-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: background 0.15s;
}

.ft-tray-mission-item:hover {
    background: rgba(79, 195, 247, 0.04);
}

.ft-tray-mission-item.selected {
    background: rgba(79, 195, 247, 0.1);
    border-left: 3px solid #4fc3f7;
}

.ft-tray-mission-times {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

.ft-tray-mission-start { color: #00E676; }
.ft-tray-mission-arrow { color: #445566; font-size: 10px; }
.ft-tray-mission-end { color: #FF1744; }

.ft-tray-mission-meta {
    display: flex;
    gap: 10px;
    font-size: 10px;
    color: #667788;
    margin-top: 2px;
}

.ft-tray-mission-warnings {
    display: flex;
    gap: 4px;
    margin-top: 3px;
}

.ft-mini-warn {
    font-size: 8px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.ft-mini-warn.nodata { background: rgba(255, 145, 0, 0.15); color: #FF9100; }
.ft-mini-warn.flighttime { background: rgba(255, 109, 0, 0.15); color: #FF6D00; }
.ft-mini-warn.stationary { background: rgba(255, 214, 0, 0.15); color: #FFD600; }
.ft-mini-warn.ceiling { background: rgba(224, 64, 251, 0.15); color: #E040FB; }

/* ---- Main content ---- */
.ft-tray-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ft-tray-map-container {
    flex: 1;
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.ft-tray-map {
    width: 100%;
    height: 100%;
    background: #0a0e17;
}

.ft-tray-map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ---- Chart panel ---- */
.ft-tray-chart-panel {
    border-top: 1px solid rgba(79, 195, 247, 0.1);
    background: rgba(10, 14, 23, 0.95);
}

.ft-tray-chart {
    height: 160px;
    width: 100%;
    position: relative;
}

.ft-tray-chart canvas {
    display: block;
}

.ft-tray-chart-tooltip {
    display: none;
    position: absolute;
    z-index: 10;
    background: rgba(10, 14, 23, 0.94);
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
    pointer-events: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #e0e6ed;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* ---- Playback bar ---- */
.ft-tray-playback-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background: rgba(10, 14, 23, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ft-tray-playback-controls {
    display: flex;
    gap: 2px;
}

.ft-play-btn {
    width: 30px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(79, 195, 247, 0.12);
    border-radius: 4px;
    background: rgba(19, 26, 42, 0.6);
    color: #8899aa;
    cursor: pointer;
    transition: all 0.15s;
}

.ft-play-btn:hover:not(:disabled) {
    background: rgba(79, 195, 247, 0.08);
    color: #e0e6ed;
}

.ft-play-btn.primary {
    background: rgba(79, 195, 247, 0.12);
    color: #4fc3f7;
    border-color: rgba(79, 195, 247, 0.25);
}

.ft-play-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ft-tray-speed-controls {
    display: flex;
    gap: 2px;
    background: rgba(19, 26, 42, 0.6);
    border: 1px solid rgba(79, 195, 247, 0.1);
    border-radius: 4px;
    padding: 2px;
}

.ft-speed-btn {
    padding: 2px 8px;
    border: none;
    border-radius: 3px;
    background: transparent;
    color: #667788;
    font-size: 10px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: all 0.15s;
}

.ft-speed-btn:hover { color: #8899aa; background: rgba(79, 195, 247, 0.05); }
.ft-speed-btn.active { color: #4fc3f7; background: rgba(79, 195, 247, 0.12); }

.ft-tray-scrubber {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ft-scrubber-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(79, 195, 247, 0.12);
    border-radius: 2px;
    outline: none;
}

.ft-scrubber-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4fc3f7;
    cursor: pointer;
    border: 2px solid rgba(10, 14, 23, 0.8);
}

.ft-scrubber-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #4fc3f7;
    min-width: 55px;
}

.ft-tray-export-controls {
    display: flex;
    gap: 4px;
}

.ft-export-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    border: 1px solid rgba(79, 195, 247, 0.12);
    border-radius: 4px;
    background: rgba(19, 26, 42, 0.6);
    color: #667788;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.ft-export-btn:hover {
    background: rgba(79, 195, 247, 0.08);
    color: #e0e6ed;
}

/* ---- Detail panel ---- */
.ft-tray-detail-panel {
    border-top: 1px solid rgba(79, 195, 247, 0.1);
    background: rgba(10, 14, 23, 0.95);
    padding: 8px 16px;
}

.ft-tray-detail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ft-tray-detail-svg {
    width: 24px;
    height: 24px;
}

.ft-tray-detail-title {
    display: flex;
    flex-direction: column;
}

.ft-tray-detail-name {
    font-size: 13px;
    font-weight: 600;
    color: #e0e6ed;
}

.ft-tray-detail-reg {
    font-size: 10px;
    color: #667788;
}

.ft-tray-detail-fleet {
    font-size: 10px;
    color: #556677;
    margin-left: auto;
}

.ft-tray-detail-event {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.ft-tray-detail-event.start { background: rgba(0, 230, 118, 0.15); color: #00E676; }
.ft-tray-detail-event.stop { background: rgba(255, 23, 68, 0.15); color: #FF1744; }
.ft-tray-detail-event.discharge { background: rgba(41, 182, 246, 0.15); color: #29B6F6; }
.ft-tray-detail-event.inflight { background: rgba(0, 230, 118, 0.15); color: #00E676; }
.ft-tray-detail-event.onground { background: rgba(136, 153, 170, 0.15); color: #8899aa; }
.ft-tray-detail-event.warning { background: rgba(255, 214, 0, 0.15); color: #FFD600; }

.ft-tray-detail-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.ft-detail-metric {
    display: flex;
    flex-direction: column;
    min-width: 80px;
}

.ft-detail-metric.discharge {
    color: #29B6F6;
}

.ft-detail-metric-label {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #556677;
}

.ft-detail-metric-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #e0e6ed;
}

.ft-detail-metric-value small {
    font-size: 9px;
    color: #667788;
}

.ft-detail-metric.discharge .ft-detail-metric-value {
    color: #29B6F6;
}

/* ---- Playback marker ---- */
.ft-playback-marker {
    transition: transform 0.1s ease-out;
}

.ft-playback-icon {
    transition: transform 0.3s ease-out;
}

/* ---- Compass HUD (POV/Chase mode) ---- */
.ft-compass-hud {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.ft-compass-ring {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(79, 195, 247, 0.4);
    background: rgba(10, 14, 23, 0.75);
    backdrop-filter: blur(8px);
    pointer-events: auto;
    cursor: pointer;
    transition: border-color 0.2s;
}

.ft-compass-ring:hover {
    border-color: rgba(79, 195, 247, 0.8);
}

.ft-compass-rose {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    transition: transform 0.15s ease-out;
}

/* Cardinal tick marks on the rose */
.ft-compass-rose::before {
    content: '';
    position: absolute;
    top: 4px; left: 50%;
    width: 2px; height: 12px;
    margin-left: -1px;
    background: #FF1744;
    border-radius: 1px;
}

.ft-compass-rose::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%;
    width: 2px; height: 8px;
    margin-left: -1px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
}

/* Aircraft heading arrow (cyan) */
.ft-compass-aircraft-arrow {
    position: absolute;
    inset: 0;
    transition: transform 0.15s ease-out;
}

.ft-compass-aircraft-arrow::before {
    content: '';
    position: absolute;
    top: 10px; left: 50%;
    margin-left: -5px;
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 12px solid #4fc3f7;
}

/* Camera look direction indicator (center dot + line up) */
.ft-compass-ring::before {
    content: '';
    position: absolute;
    top: 6px; left: 50%;
    margin-left: -1px;
    width: 2px; height: 14px;
    background: #ffffff;
    border-radius: 1px;
    z-index: 2;
}

.ft-compass-ring::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
    background: #ffffff;
    border-radius: 50%;
    z-index: 2;
}

/* Cardinal labels */
.ft-compass-n, .ft-compass-e, .ft-compass-s, .ft-compass-w {
    position: absolute;
    font-size: 10px;
    font-weight: 700;
    color: #8899aa;
    pointer-events: none;
}

.ft-compass-n { top: -1px; left: 50%; transform: translateX(-50%); color: #FF1744; }
.ft-compass-s { bottom: -1px; left: 50%; transform: translateX(-50%); }
.ft-compass-e { right: 2px; top: 50%; transform: translateY(-50%); }
.ft-compass-w { left: 2px; top: 50%; transform: translateY(-50%); }

/* Info panel below compass */
.ft-compass-info {
    display: flex;
    gap: 12px;
    background: rgba(10, 14, 23, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 6px;
    padding: 4px 10px;
}

.ft-compass-cam-hdg, .ft-compass-ac-hdg {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
}

.ft-compass-label {
    color: #667788;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ft-compass-value {
    color: #e0e6ed;
    font-weight: 600;
}

.ft-compass-ac-value {
    color: #4fc3f7;
}

/* ---- Historical event markers ---- */
.ft-hist-event-marker {
    background: transparent !important;
    border: none !important;
}

.ft-hist-tooltip {
    background: rgba(10, 14, 23, 0.9) !important;
    border: 1px solid rgba(79, 195, 247, 0.2) !important;
    color: #e0e6ed !important;
    font-size: 10px !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
}

/* ---- Responsive Trayectos ---- */
@media (max-width: 1100px) {
    .ft-tray-panel {
        width: 240px;
        min-width: 240px;
    }
}

@media (max-width: 900px) {
    .ft-tray-panel {
        width: 220px;
        min-width: 220px;
    }
    .ft-tray-panel.collapsed {
        width: 36px;
        min-width: 36px;
    }
    .ft-tray-playback-bar {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .ft-tray-panels {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 500;
    }
    .ft-tray-panel {
        width: 260px;
        min-width: 260px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   INFORMES — Reports page
   ═══════════════════════════════════════════════════════════════ */

.ft-informes {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
}

/* Filter bar */
.ft-inf-filters {
    background: linear-gradient(135deg, #111827 0%, #0f1520 100%);
    border-bottom: 1px solid rgba(79,195,247,0.12);
    padding: 10px 16px;
    flex-shrink: 0;
}
.ft-inf-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.ft-inf-filter-select { max-width: 220px; }
.ft-inf-filter-date { max-width: 260px; }
.ft-inf-generate-btn {
    text-transform: none !important;
    letter-spacing: 1px !important;
    font-weight: 600 !important;
    padding: 6px 20px !important;
}

/* Tabs */
.ft-inf-tabs {
    display: flex;
    gap: 2px;
    background: #0a0e17;
    padding: 0 16px;
    border-bottom: 1px solid rgba(79,195,247,0.08);
    flex-shrink: 0;
}
.ft-inf-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: #667788;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}
.ft-inf-tab:hover:not(:disabled) { color: #e0e6ed; }
.ft-inf-tab.active {
    color: #4fc3f7;
    border-bottom-color: #4fc3f7;
    text-shadow: 0 0 12px rgba(79,195,247,0.4);
}
.ft-inf-tab:disabled { opacity: 0.35; cursor: default; }

/* Content area */
.ft-inf-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* KPI Cards */
.ft-inf-kpis {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.ft-inf-kpi {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #111827 0%, #0d1219 100%);
    border: 1px solid rgba(79,195,247,0.08);
    border-radius: 8px;
    transition: border-color 0.3s ease;
    animation: ft-inf-fadeIn 0.5s ease forwards;
}
.ft-inf-kpi:hover { border-color: rgba(79,195,247,0.2); }
.ft-inf-kpi-icon {
    color: #4fc3f7;
    opacity: 0.8;
}
.ft-inf-kpi-data {
    display: flex;
    flex-direction: column;
}
.ft-inf-kpi-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #e0e6ed;
    line-height: 1.2;
}
.ft-inf-kpi-label {
    font-size: 9px;
    font-weight: 600;
    color: #667788;
    letter-spacing: 1px;
    margin-top: 2px;
}

@keyframes ft-inf-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Charts */
.ft-inf-charts-row {
    display: flex;
    gap: 16px;
}
.ft-inf-chart-card {
    flex: 1;
    min-width: 0;
    background: linear-gradient(135deg, #111827 0%, #0d1219 100%);
    border: 1px solid rgba(79,195,247,0.08);
    border-radius: 8px;
    padding: 12px;
    animation: ft-inf-fadeIn 0.6s ease forwards;
}
.ft-inf-chart-wide { flex: unset; width: 100%; }
.ft-inf-chart-title {
    font-size: 10px;
    font-weight: 600;
    color: #667788;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}
.ft-inf-chart-canvas {
    width: 100%;
    height: 220px;
}
.ft-inf-chart-canvas-wide {
    width: 100%;
    height: 180px;
}

/* Section with header + export buttons */
.ft-inf-section {
    background: linear-gradient(135deg, #111827 0%, #0d1219 100%);
    border: 1px solid rgba(79,195,247,0.08);
    border-radius: 8px;
    padding: 12px;
    animation: ft-inf-fadeIn 0.7s ease forwards;
}
.ft-inf-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.ft-inf-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #8899aa;
    letter-spacing: 1px;
}
.ft-inf-export-btns {
    display: flex;
    gap: 6px;
}
.ft-inf-export-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(79,195,247,0.08);
    border: 1px solid rgba(79,195,247,0.15);
    border-radius: 4px;
    color: #4fc3f7;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ft-inf-export-btn:hover {
    background: rgba(79,195,247,0.15);
    box-shadow: 0 0 8px rgba(79,195,247,0.2);
}

/* Tables */
.ft-inf-table-wrap { overflow-x: auto; }
.ft-inf-table-scroll { max-height: 400px; overflow-y: auto; }
.ft-inf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}
.ft-inf-table thead th {
    position: sticky;
    top: 0;
    background: #111827;
    color: #667788;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(79,195,247,0.12);
    white-space: nowrap;
    z-index: 1;
}
.ft-inf-table tbody tr {
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.ft-inf-table tbody tr:hover { background: rgba(79,195,247,0.05); }
.ft-inf-table tbody tr.selected { background: rgba(79,195,247,0.1); }
.ft-inf-table td {
    padding: 7px 10px;
    color: #c0c8d4;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    white-space: nowrap;
}

/* Rank column */
.ft-inf-rank {
    font-weight: 700;
    text-align: center;
    width: 30px;
}
.ft-inf-rank.top1 { color: #FFD700; text-shadow: 0 0 8px rgba(255,215,0,0.5); }
.ft-inf-rank.top2 { color: #C0C0C0; text-shadow: 0 0 6px rgba(192,192,192,0.4); }
.ft-inf-rank.top3 { color: #CD7F32; text-shadow: 0 0 6px rgba(205,127,50,0.4); }

/* Unit cell in table */
.ft-inf-unit-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ft-inf-unit-svg { width: 18px; height: 18px; filter: brightness(0.7); }

/* Metric highlight */
.ft-inf-metric-highlight { color: #4fc3f7; font-weight: 600; }

/* Warning badge */
.ft-inf-warning-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    padding: 2px 6px;
    background: rgba(255,23,68,0.15);
    border: 1px solid rgba(255,23,68,0.3);
    border-radius: 10px;
    color: #FF1744;
    font-size: 10px;
    font-weight: 700;
}
.ft-inf-ok-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    background: rgba(0,230,118,0.1);
    border: 1px solid rgba(0,230,118,0.2);
    border-radius: 10px;
    color: #00E676;
    font-size: 9px;
    font-weight: 600;
}

/* Table totals row */
.ft-inf-table-totals td {
    font-weight: 700;
    color: #e0e6ed;
    border-top: 1px solid rgba(79,195,247,0.15);
    padding-top: 10px;
}

/* Unit header (tabs 1 & 2) */
.ft-inf-unit-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #111827 0%, #0d1219 100%);
    border: 1px solid rgba(79,195,247,0.08);
    border-radius: 8px;
}
.ft-inf-unit-header-svg { width: 36px; height: 36px; filter: drop-shadow(0 0 6px rgba(79,195,247,0.4)); }
.ft-inf-unit-header-info { display: flex; flex-direction: column; }
.ft-inf-unit-header-name {
    font-size: 14px;
    font-weight: 700;
    color: #e0e6ed;
}
.ft-inf-unit-header-reg {
    font-size: 11px;
    color: #667788;
    font-family: 'JetBrains Mono', monospace;
}

/* Event badge in detail table */
.ft-inf-evt-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,0.05);
    color: #8899aa;
}
.ft-inf-evt-badge.start { background: rgba(0,230,118,0.12); color: #00E676; }
.ft-inf-evt-badge.stop { background: rgba(255,23,68,0.12); color: #FF1744; }
.ft-inf-evt-badge.discharge { background: rgba(41,182,246,0.12); color: #29B6F6; }
.ft-inf-evt-badge.inflight { background: rgba(0,230,118,0.08); color: #69F0AE; }
.ft-inf-evt-badge.onground { background: rgba(255,152,0,0.1); color: #FF9800; }
.ft-inf-evt-badge.warning { background: rgba(255,152,0,0.12); color: #FF9100; }

/* Event row highlights */
.ft-inf-evt-start td { border-left: 2px solid #00E676; }
.ft-inf-evt-stop td { border-left: 2px solid #FF1744; }
.ft-inf-evt-discharge td { border-left: 2px solid #29B6F6; }
.ft-inf-evt-warning td { border-left: 2px solid #FF9100; }

.ft-inf-coord { font-size: 10px; color: #8899aa; }
.ft-inf-discharge-cell { color: #29B6F6 !important; font-weight: 600; }

/* Pagination */
.ft-inf-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 0;
}
.ft-inf-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(79,195,247,0.06);
    border: 1px solid rgba(79,195,247,0.12);
    border-radius: 4px;
    color: #4fc3f7;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ft-inf-page-btn:hover:not(:disabled) { background: rgba(79,195,247,0.12); }
.ft-inf-page-btn:disabled { opacity: 0.3; cursor: default; }
.ft-inf-page-info {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #8899aa;
    padding: 0 8px;
}

/* Empty state */
.ft-inf-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #334455;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
    .ft-inf-charts-row { flex-direction: column; }
    .ft-inf-kpis { gap: 8px; }
    .ft-inf-kpi { min-width: 120px; padding: 10px 12px; }
    .ft-inf-kpi-value { font-size: 14px; }
}
