/* =====================================================
   NETMOSK ADS-B LIVE
   ===================================================== */

.adsb-page {
    min-height: calc(100vh - 80px);
    padding: 45px 20px 60px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55)),
        url("../images/backgrounds/sdr.png") center center / cover fixed;

    padding-top: 200px;
}

.adsb-content {
    width: min(1500px, 100%);
    margin: 0 auto;
}


/* =====================================================
   HEADER
   ===================================================== */

.adsb-header {
    margin-bottom: 28px;
}

.adsb-kicker {
    margin-bottom: 8px;
    font-size: 2.46rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: #00d9ff;
    text-transform: uppercase;
}

.adsb-header h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-shadow: 0 0 18px rgba(0, 217, 255, 0.25);
}

.adsb-description {
    margin: 14px 0 22px;
    max-width: 800px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
}


/* =====================================================
   RECEIVER STATUS
   ===================================================== */

.adsb-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(8px);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.status-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #777;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}

.status-dot.online {
    background: #22e38a;
    box-shadow:
        0 0 6px #22e38a,
        0 0 16px rgba(34, 227, 138, 0.75);
}

.status-dot.offline {
    background: #ff3b3b;
    box-shadow:
        0 0 6px #ff3b3b,
        0 0 16px rgba(255, 59, 59, 0.75);
}

#receiver-status {
    color: #ffffff;
}

#receiver-status.online {
    color: #22e38a;
}

#receiver-status.offline {
    color: #ff3b3b;
}


/* =====================================================
   STATS
   ===================================================== */

.adsb-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 14px;
    margin: 28px 0;
}

.stat-box {
    padding: 17px 20px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 10px;
    background: rgba(8, 12, 18, 0.72);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(10px);
}

.stat-label {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 2.16rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.stat-value {
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 800;
}


/* =====================================================
   LIVE AIRCRAFT PANEL
   ===================================================== */

.adsb-live-panel {
    width: 100%;
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid rgba(0, 217, 255, 0.18);
    border-radius: 12px;
    background: rgba(5, 9, 14, 0.86);
    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(12px);
}


/* =====================================================
   PANEL HEADER
   ===================================================== */

.adsb-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 217, 255, 0.025);
}

.adsb-panel-kicker {
    display: block;
    margin-bottom: 4px;
    color: #00d9ff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.adsb-panel-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.adsb-range-label {
    color: rgba(255, 255, 255, 0.48);
    font-size: 2.16rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    white-space: nowrap;
}

.adsb-range-label strong {
    color: #00d9ff;
    font-size: 2.46rem;
}


/* =====================================================
   SYSTEM STATUS
   ===================================================== */

.adsb-system-status {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.system-status-item {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 17px 22px;
    background: rgba(8, 12, 18, 0.72);
}

.system-status-dot {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border-radius: 50%;
    background: #777777;
    box-shadow: 0 0 7px rgba(255, 255, 255, 0.18);
}

.system-status-dot.green {
    background: #22e38a;
    box-shadow:
        0 0 7px #22e38a,
        0 0 14px rgba(34, 227, 138, 0.65);
}

.system-status-dot.yellow {
    background: #ffd84d;
    box-shadow:
        0 0 7px #ffd84d,
        0 0 14px rgba(255, 216, 77, 0.55);
}

.system-status-dot.red {
    background: #ff3b3b;
    box-shadow:
        0 0 7px #ff3b3b,
        0 0 14px rgba(255, 59, 59, 0.60);
}

.system-status-name {
    display: block;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.system-status-value {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}


/* =====================================================
   CURRENT AIRCRAFT
   ===================================================== */

.adsb-current-aircraft {
    padding: 22px 24px 25px;
}

.current-aircraft-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.current-aircraft-title > span:first-child {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.current-range {
    color: #22e38a;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}


/* =====================================================
   AIRCRAFT IDENTITY
   ===================================================== */

.current-aircraft-content {
    min-width: 0;
}

.aircraft-identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 20px;
}

.aircraft-main {
    min-width: 0;
}

.aircraft-callsign {
    font-size: 2rem;
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1;
}

.aircraft-airline {
    font-size: 1.4rem;
    margin-top: 8px;
    color: #00d9ff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.aircraft-icao {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.45);
    font-family: monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}


/* =====================================================
   ROUTE
   ===================================================== */

.aircraft-route {
    width: 100%;
    margin-bottom: 20px;
    padding: 13px 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.22);
}

.route-window {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.route-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: route-scroll 7s linear infinite;
    will-change: transform;
}

.route-group {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-right: 700px;
    flex-shrink: 0;
}

.route-point {
    font-size: 4.5rem;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.route-arrow {
    font-size: 4rem;
    color: #00d9ff;
    font-weight: 900;
    white-space: nowrap;
}

@keyframes route-scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}
}
}


/* =====================================================
   AIRCRAFT DATA GRID
   ===================================================== */

.aircraft-data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.aircraft-data-box {
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.025);
}

.aircraft-data-label {
    font-size: 1rem;
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.aircraft-data-value {
    font-size: 1.8rem;
    display: block;
    overflow: hidden;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aircraft-data-value.highlight {
    color: #00d9ff;
}


/* =====================================================
   NO AIRCRAFT / LOADING
   ===================================================== */

.current-loading,
.no-aircraft {
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: center;
}

.no-aircraft {
    color: rgba(255, 255, 255, 0.55);
}


/* =====================================================
   TABLE
   ===================================================== */

.adsb-table-container {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(5, 9, 14, 0.82);
    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
}

.adsb-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    table-layout: auto;
}

.adsb-table th {
    padding: 16px 14px;
    border-bottom: 1px solid rgba(0, 217, 255, 0.22);
    background: rgba(0, 217, 255, 0.045);
    color: #00d9ff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-align: left;
    white-space: nowrap;
}

.adsb-table td {
    padding: 15px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
}

.adsb-table tbody tr {
    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.adsb-table tbody tr:hover {
    background: rgba(0, 217, 255, 0.055);
}

.adsb-table tbody tr:last-child td {
    border-bottom: none;
}


/* =====================================================
   IMPORTANT DATA
   ===================================================== */

.adsb-table td.callsign {
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.adsb-table td.icao {
    color: #00d9ff;
    font-family: monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.adsb-table td:nth-child(3),
.adsb-table td:nth-child(4),
.adsb-table td:nth-child(5) {
    font-weight: 700;
}


/* =====================================================
   LOADING / EMPTY
   ===================================================== */

.adsb-table .loading {
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
}


/* =====================================================
   FOOTER STATUS
   ===================================================== */

.adsb-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
}

#connection-status {
    color: #22e38a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.adsb-footer a {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.adsb-footer a:hover {
    color: #00d9ff;
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 900px) {

    .adsb-system-status {
        grid-template-columns: 1fr;
    }

    .aircraft-data-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 800px) {

    .adsb-page {
        padding: 30px 12px 45px;
    }

    .adsb-stats {
        grid-template-columns: 1fr;
    }

    .adsb-header h1 {
        font-size: 2.4rem;
    }

    .adsb-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .aircraft-identity {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .adsb-table td {
        padding: 13px 11px;
        font-size: 0.95rem;
    }

    .adsb-table td.callsign {
        font-size: 1rem;
    }

    .adsb-footer {
        flex-direction: column;
        align-items: flex-start;
    }

}


@media (max-width: 500px) {

    .adsb-current-aircraft {
        padding: 18px 15px 20px;
    }

    .adsb-panel-header {
        padding: 17px 18px;
    }

    .aircraft-data-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

}
