:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --accent-color: #38bdf8;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --tx-active: #ef4444;
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    padding: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.5rem;
    padding: 1.5rem 2rem;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    position: relative;
    z-index: 50;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.3);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-section img {
    height: 65px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.3));
    transition: transform 0.3s ease;
}

.logo-section img:hover {
    transform: scale(1.05);
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.status-badge {
    background: rgba(15, 23, 42, 0.6);
    padding: 0.6rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}


.status-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 12px #10b981;
    animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 4px #10b981; transform: scale(1); }
    50% { box-shadow: 0 0 16px 4px rgba(16, 185, 129, 0.4); transform: scale(1.3); }
    100% { box-shadow: 0 0 4px #10b981; transform: scale(1); }
}

.callsign-container {
    position: relative;
    display: inline-block;
}

.callsign-tooltip {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateY(-10px) translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1rem;
    border-radius: 10px;
    z-index: 1000;
    width: max-content;
    max-width: 250px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: center;
}

.callsign-container:hover .callsign-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(-50%);
}

.callsign-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent var(--glass-border) transparent;
}
.grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
    }
    header {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem;
        gap: 1.25rem;
        border-radius: 12px;
    }
    .logo-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .logo-section img {
        height: 40px;
    }
    .status-badge {
        justify-content: space-between;
    }
    .card {
        padding: 1rem;
    }
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem; /* Pulls the scrollbar slightly to the edge of the card */
        padding: 0 1rem;
    }
    th, td {
        white-space: nowrap;
        padding-right: 1rem;
    }
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--accent-color);
    display: flex;
    justify-content: space-between;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 1rem;
}

td {
    padding: 0.75rem 0;
    border-top: 1px solid var(--glass-border);
    font-size: 0.875rem;
}

.tx-active-row {
    color: var(--tx-active);
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.callsign {
    font-family: 'Roboto Mono', monospace;
    color: var(--accent-color);
}

.badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    background: rgba(56, 189, 248, 0.2);
}
/* Reflector Switcher */
.switcher-dropdown {
    position: relative;
    display: inline-block;
}
.switcher-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    z-index: 1000;
    margin-top: 0;
    padding: 0.5rem 0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}
.switcher-dropdown:hover .switcher-content {
    display: block;
}
.switcher-content a {
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    font-size: 0.875rem;
    transition: all 0.2s;
}
.switcher-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-primary);
}
.switcher-content a.active {
    color: var(--accent-primary);
    font-weight: 600;
}
