/* --- Typography Helpers --- */
.text-muted { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-accent { color: var(--accent-teal); }
.text-primary { color: var(--text-primary); }

/* --- Badge --- */
.badge {
    background: var(--error-red);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 700;
    position: relative;
    top: -8px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}

/* --- Status Dots --- */
.status-dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 14px;
    box-shadow: 0 0 6px rgba(0,0,0,0.4);
    flex-shrink: 0;
}

.dot-red { background: #cf6679; }
.dot-green { background: #00c853; }
.dot-gray { background: #666; }

/* --- Flight Status --- */
.status-green { color: var(--card-green); border-color: var(--card-green); }
.status-orange { color: var(--warning-orange); border-color: var(--warning-orange); }
.status-red { color: var(--error-red); border-color: var(--error-red); }

/* --- Ops Card Backgrounds --- */
.bg-blue { background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.08)); border-color: rgba(59, 130, 246, 0.25); }
.bg-green { background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.08)); border-color: rgba(16, 185, 129, 0.25); }
.bg-slate { background: linear-gradient(135deg, rgba(100, 116, 139, 0.25), rgba(100, 116, 139, 0.08)); border-color: rgba(100, 116, 139, 0.25); }

.bg-blue:hover { background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(59, 130, 246, 0.15)); }
.bg-green:hover { background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(16, 185, 129, 0.15)); }
.bg-slate:hover { background: linear-gradient(135deg, rgba(100, 116, 139, 0.4), rgba(100, 116, 139, 0.15)); }

/* --- Spinner --- */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Accessibility --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--brand-purple);
    color: white;
    padding: 8px 16px;
    z-index: 2000;
    transition: top var(--transition-base) var(--ease-out);
    font-weight: 700;
    border-bottom-right-radius: var(--radius-md);
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--accent-teal);
    outline-offset: -2px;
}

/* --- Responsive Helpers --- */
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    width: auto;
}

.desktop-only { display: flex; }
.mobile-only { display: none; }

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
}
