testing/v0.9.1.1947080925/styles.css
/* ADSB Radarscope
   Author: dustsignal & wire99
   Version: 0.9.1.1947080925
   GitHub: https://github.com/dustsignal/adsb-scope

   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <https://www.gnu.org/licenses/>. */

/* Base styles */
html, body { 
    margin: 0; 
    overflow: hidden; 
    height: 100vh; 
}

.table-cell { 
    padding: 0.25rem 0.5rem; 
    white-space: nowrap; 
}

.dropdown-menu { 
    transition: opacity 0.2s ease, transform 0.2s ease; 
}

/* Resizer styles */
.resizer {
    width: 5px;
    cursor: col-resize;
    background-color: var(--color-resizer-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.resizer:hover { 
    background-color: #3b82f6; 
}

.resizer-indicator {
    width: 1px;
    height: 16px;
    background-color: var(--color-resizer-indicator);
    border-left: 1px solid var(--color-resizer-border);
    border-right: 1px solid var(--color-resizer-border);
}

/* Animation for emergency alerts */
@keyframes slideInFadeOut {
    0% { opacity: 0; transform: translateX(100%); }
    15% { opacity: 1; transform: translateX(0); }
    85% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(100%); }
}

.alert-animate { 
    animation: slideInFadeOut 6s forwards; 
}

/* UI Theme CSS Variables */
:root {
    /* Default dark theme */
    --color-bg-primary: #1f2937;
    --color-bg-panel: #111827;
    --color-text-primary: #f9fafb;
    --color-text-muted: #9ca3af;
    --color-border: #374151;
    --color-button-bg: #374151;
    --color-button-hover: #4b5563;
    --color-kbd-bg: #111827;
    --color-kbd-text: #d1d5db;
    --color-kbd-border: #374151;
    --color-resizer-bg: #374151;
    --color-resizer-indicator: #6b7280;
    --color-resizer-border: #4b5563;
    --color-table-header: #374151;
    --color-table-odd-row: #1f293780;
    --color-selected-row: #1e40af;
}

/* Light theme base */
[data-ui-theme="default-light"] {
    --color-bg-primary: #ffffff;
    --color-bg-panel: #f3f4f6;
    --color-text-primary: #1f2937;
    --color-text-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-button-bg: #e5e7eb;
    --color-button-hover: #d1d5db;
    --color-kbd-bg: #e5e7eb;
    --color-kbd-text: #1f2937;
    --color-kbd-border: #d1d5db;
    --color-resizer-bg: #e5e7eb;
    --color-resizer-indicator: #9ca3af;
    --color-resizer-border: #ffffff;
    --color-table-header: #e5e7eb;
    --color-table-odd-row: #f9fafb;
    --color-selected-row: #93c5fd;
}

/* Dark theme base */
[data-ui-theme="default-dark"] {
    --color-bg-primary: #1f2937;
    --color-bg-panel: #111827;
    --color-text-primary: #f9fafb;
    --color-text-muted: #9ca3af;
    --color-border: #374151;
    --color-button-bg: #374151;
    --color-button-hover: #4b5563;
    --color-kbd-bg: #111827;
    --color-kbd-text: #d1d5db;
    --color-kbd-border: #374151;
    --color-resizer-bg: #374151;
    --color-resizer-indicator: #6b7280;
    --color-resizer-border: #4b5563;
    --color-table-header: #374151;
    --color-table-odd-row: #1f293780;
    --color-selected-row: #1e40af;
}

/* Specific theme overrides */
[data-ui-theme="stone"] {
    --color-bg-primary: #fafaf9;
    --color-bg-panel: #f5f5f4;
    --color-text-primary: #292524;
    --color-text-muted: #78716c;
    --color-border: #e7e5e4;
    --color-button-bg: #e7e5e4;
    --color-button-hover: #d6d3d1;
    --color-selected-row: #bbf7d0;
}

[data-ui-theme="mint"] {
    --color-bg-primary: #f0fdf4;
    --color-bg-panel: #dcfce7;
    --color-text-primary: #166534;
    --color-text-muted: #15803d;
    --color-border: #bbf7d0;
    --color-button-bg: #bbf7d0;
    --color-button-hover: #86efac;
    --color-selected-row: #fda4af;
}

[data-ui-theme="sky"] {
    --color-bg-primary: #f0f9ff;
    --color-bg-panel: #e0f2fe;
    --color-text-primary: #075985;
    --color-text-muted: #0369a1;
    --color-border: #bae6fd;
    --color-button-bg: #bae6fd;
    --color-button-hover: #7dd3fc;
    --color-selected-row: #fcd34d;
}

[data-ui-theme="lavender"] {
    --color-bg-primary: #faf5ff;
    --color-bg-panel: #f3e8ff;
    --color-text-primary: #581c87;
    --color-text-muted: #7e22ce;
    --color-border: #e9d5ff;
    --color-button-bg: #e9d5ff;
    --color-button-hover: #d8b4fe;
    --color-selected-row: #a5b4fc;
}

[data-ui-theme="paper"] {
    --color-bg-primary: #fefcf7;
    --color-bg-panel: #fdf8ed;
    --color-text-primary: #484234;
    --color-text-muted: #7e735f;
    --color-border: #e9e2d4;
    --color-button-bg: #e9e2d4;
    --color-button-hover: #d8d0bf;
    --color-selected-row: #818cf8;
}

[data-ui-theme="azure"] {
    --color-bg-primary: #f5faff;
    --color-bg-panel: #eef5ff;
    --color-text-primary: #2c5282;
    --color-text-muted: #3182ce;
    --color-border: #bee3f8;
    --color-button-bg: #bee3f8;
    --color-button-hover: #90cdf4;
    --color-selected-row: #f6ad55;
}

[data-ui-theme="slate"] {
    --color-bg-primary: #1e293b;
    --color-bg-panel: #0f172a;
    --color-text-primary: #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-border: #334155;
    --color-button-bg: #334155;
    --color-button-hover: #475569;
    --color-selected-row: #38bdf8;
}

[data-ui-theme="abyss"] {
    --color-bg-primary: #0c0a09;
    --color-bg-panel: #000000;
    --color-text-primary: #fde68a;
    --color-text-muted: #a16207;
    --color-border: #292524;
    --color-button-bg: #292524;
    --color-button-hover: #44403c;
    --color-selected-row: #7c2d12;
}

[data-ui-theme="forest"] {
    --color-bg-primary: #13221b;
    --color-bg-panel: #0b120f;
    --color-text-primary: #d1fae5;
    --color-text-muted: #6ee7b7;
    --color-border: #065f46;
    --color-button-bg: #065f46;
    --color-button-hover: #047857;
    --color-selected-row: #34d399;
}

[data-ui-theme="crimson"] {
    --color-bg-primary: #2b0b0b;
    --color-bg-panel: #1b0707;
    --color-text-primary: #fee2e2;
    --color-text-muted: #fca5a5;
    --color-border: #991b1b;
    --color-button-bg: #991b1b;
    --color-button-hover: #b91c1c;
    --color-selected-row: #fbbf24;
}

[data-ui-theme="royal"] {
    --color-bg-primary: #1e1b4b;
    --color-bg-panel: #17143a;
    --color-text-primary: #e0e7ff;
    --color-text-muted: #a5b4fc;
    --color-border: #4338ca;
    --color-button-bg: #4338ca;
    --color-button-hover: #4f46e5;
    --color-selected-row: #f472b6;
}

[data-ui-theme="mocha"] {
    --color-bg-primary: #2d1b0f;
    --color-bg-panel: #1e120a;
    --color-text-primary: #fde4d5;
    --color-text-muted: #f9ab77;
    --color-border: #7c2d12;
    --color-button-bg: #7c2d12;
    --color-button-hover: #9a3412;
    --color-selected-row: #4ade80;
}

[data-ui-theme="rose-pine"] {
    --color-bg-primary: #191724;
    --color-bg-panel: #1f1d2e;
    --color-text-primary: #e0def4;
    --color-text-muted: #908caa;
    --color-border: #44415a;
    --color-button-bg: #26233a;
    --color-button-hover: #312f4c;
    --color-selected-row: #c4a7e7;
}

/* Table row hover and selection */
.aircraft-row {
    cursor: pointer;
    transition: background-color 0.1s;
}

.aircraft-row:nth-child(odd):not(.selected-row) {
    background-color: var(--color-table-odd-row);
}

.aircraft-row:hover:not(.selected-row) {
    background-color: var(--color-button-hover);
}

.selected-row {
    background-color: var(--color-selected-row) !important;
}

/* Button styles */
.btn {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background-color: var(--color-button-bg);
    transition: background-color 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    position: relative;
}

.btn:hover {
    background-color: var(--color-button-hover);
}

/* Enhanced tooltip styles - Fixed positioning and mobile support */
.tooltip {
    position: relative;
}

.tooltip .tooltip-text {
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    color: white;
    border-radius: 6px;
    padding: 8px 12px;
    position: fixed;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    min-width: 120px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Desktop tooltip behavior */
@media (hover: hover) and (pointer: fine) {
    .tooltip:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }
}

/* Mobile tooltip behavior */
@media (hover: none) and (pointer: coarse) {
    .tooltip-text.mobile-show {
        visibility: visible;
        opacity: 1;
    }
}

/* Icon styles */
.icon {
    width: 1rem;
    height: 1rem;
    display: inline-block;
}

/* Button icon styles */
.btn-icon {
    padding: 0.125rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background-color: var(--color-button-hover);
}

/* Status icon styles */
.status-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.status-ok {
    background-color: #10b981;
}

.status-error {
    background-color: #ef4444;
}

.status-connecting {
    background-color: #f59e0b;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Collapsible section styles */
.section-collapsed {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.section-expanded {
    max-height: 50vh;
    overflow-y: auto;
    transition: max-height 0.3s ease-in;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-icon.collapsed {
    transform: rotate(-90deg);
}

/* Smooth theme transitions */
* {
    transition: background-color 0.7s ease, color 0.7s ease, border-color 0.7s ease;
}

/* Error display styles */
.error-message {
    background-color: #dc2626;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    border-left: 4px solid #991b1b;
}

.warning-message {
    background-color: #d97706;
    color: white;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin: 0.5rem 0;
    border-left: 4px solid #92400e;
}

/* Loading spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced range ring labels */
.range-label {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(0, 0, 0, 0.8);
    font-weight: bold;
}

/* Mobile styles */
@media (max-width: 768px) {
    .desktop-only { 
        display: none !important; 
    }
    
    .mobile-only { 
        display: block !important; 
    }
    
    #right-panel, #right-resizer { 
        display: none !important; 
    }
    
    header { 
        padding: 0.5rem; 
    }
    
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--color-bg-panel);
        transition: right 0.3s ease;
        z-index: 100;
        overflow-y: auto;
    }
    
    .mobile-menu.active { 
        right: 0; 
    }
    
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 99;
        display: none;
    }
    
    .mobile-overlay.active { 
        display: block; 
    }
}

@media (min-width: 769px) {
   .mobile-only { 
       display: none !important; 
   }
   
   #mobile-menu { 
       display: none !important; 
   }
   
   #mobile-overlay { 
       display: none !important; 
   }
   
   .mobile-menu { 
       display: none !important; 
   }
   
   .mobile-overlay { 
       display: none !important; 
   }
} 