/* ========================================
   SwiftPlan — Dark Theme Styles
   Font: Sora | Modern & Clean
   ======================================== */

:root {
    --bg-primary: #0a0b0f;
    --bg-secondary: #12131a;
    --bg-tertiary: #1a1b25;
    --bg-card: #16171f;
    --bg-hover: #1e1f2a;
    --bg-input: #0e0f15;
    
    --border-primary: #1e2030;
    --border-secondary: #2a2b3d;
    --border-accent: #6366f1;
    
    --text-primary: #e8e9f0;
    --text-secondary: #8b8d9f;
    --text-muted: #5a5c6f;
    --text-accent: #a5b4fc;
    
    --accent-primary: #6366f1;
    --accent-secondary: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #6366f1, #06b6d4);
    --accent-glow: rgba(99, 102, 241, 0.15);
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.2);
    
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    --sidebar-width: 520px;
    --header-height: 60px;
}

/* ========= Reset ========= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Sora', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

input, button, select, textarea {
    font-family: 'Sora', sans-serif;
}

.hidden {
    display: none !important;
}

/* ========= Scrollbar ========= */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-secondary);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========= Loading Screen ========= */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.loading-logo {
    margin-bottom: 20px;
    animation: pulse-glow 2s ease-in-out infinite;
}

.loading-title {
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.loading-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 32px;
}

.loading-bar {
    width: 200px;
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    animation: loading-progress 2s ease forwards;
}

@keyframes loading-progress {
    0% { width: 0%; }
    30% { width: 40%; }
    60% { width: 70%; }
    90% { width: 90%; }
    100% { width: 100%; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4)); }
    50% { filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.8)); }
}

/* ========= App ========= */
.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========= Header ========= */
.header {
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    flex-shrink: 0;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========= Stats ========= */
.area-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-tertiary);
    padding: 6px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-divider {
    width: 1px;
    height: 28px;
    background: var(--border-primary);
}

/* ========= Buttons ========= */
.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-secondary);
}

.btn-icon svg, .btn-icon i {
    width: 18px;
    height: 18px;
}

/* ========= Main Content ========= */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* ========= Map ========= */
.map-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 1;
}

/* Leaflet dark theme overrides */
.leaflet-container {
    background: #0a0b0f !important;
    font-family: 'Sora', sans-serif !important;
}

.leaflet-control-zoom {
    border: 1px solid var(--border-primary) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    box-shadow: var(--shadow-md) !important;
}

.leaflet-control-zoom a {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-primary) !important;
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    font-size: 16px !important;
}

.leaflet-control-zoom a:hover {
    background: var(--bg-hover) !important;
}

.leaflet-control-attribution {
    background: rgba(10, 11, 15, 0.8) !important;
    color: var(--text-muted) !important;
    font-size: 10px !important;
    font-family: 'Sora', sans-serif !important;
}

.leaflet-control-attribution a {
    color: var(--text-secondary) !important;
}

/* Draw toolbar dark theme */
.leaflet-draw-toolbar a {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-primary) !important;
    color: var(--text-primary) !important;
}

.leaflet-draw-toolbar a:hover {
    background-color: var(--bg-hover) !important;
}

.leaflet-draw-actions {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-primary) !important;
    border-radius: var(--radius-sm) !important;
}

.leaflet-draw-actions li a {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    font-family: 'Sora', sans-serif !important;
    font-size: 12px !important;
}

.leaflet-draw-actions li a:hover {
    background: var(--bg-hover) !important;
}

/* Leaflet popup dark */
.leaflet-popup-content-wrapper {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--border-primary) !important;
    font-family: 'Sora', sans-serif !important;
}

.leaflet-popup-tip {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-primary) !important;
}

/* ========= Map Toolbar ========= */
.map-toolbar {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 6px;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.toolbar-btn svg, .toolbar-btn i {
    width: 16px;
    height: 16px;
}

.toolbar-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-secondary);
}

.toolbar-btn.primary {
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
}

.toolbar-btn.primary:hover:not(:disabled) {
    box-shadow: var(--shadow-glow);
    filter: brightness(1.1);
}

.toolbar-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.toolbar-btn.active {
    background: var(--accent-glow);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: var(--border-primary);
    margin: 0 4px;
}

/* ========= Polygon Info Panel ========= */
.polygon-info-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 18px;
    width: 340px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.panel-header-row h3 {
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-close-panel {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-close-panel:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.btn-close-panel svg {
    width: 14px;
    height: 14px;
}

.panel-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.info-item {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    border: 1px solid var(--border-primary);
}

.info-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-value {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========= Sidebar ========= */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-primary);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), width var(--transition-base);
    z-index: 50;
    flex-shrink: 0;
}

.sidebar.collapsed {
    transform: translateX(100%);
    width: 0;
    border: none;
    overflow: hidden;
}

.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ========= Sidebar Sections ========= */
.sidebar-section {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: border-color var(--transition-fast);
}

.sidebar-section:hover {
    border-color: var(--border-secondary);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.section-header i, .section-header svg {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.section-header.collapsible {
    cursor: pointer;
    margin-bottom: 0;
    transition: margin var(--transition-base);
    user-select: none;
}

.section-header.collapsible.open {
    margin-bottom: 14px;
}

.toggle-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform var(--transition-base);
}

.section-header.collapsible.open .toggle-icon {
    transform: rotate(180deg);
}

/* ========= Form ========= */
.form-group {
    margin-bottom: 12px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-wrapper input {
    flex: 1;
    padding: 9px 12px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-suffix {
    padding: 0 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    border-left: 1px solid var(--border-primary);
    height: 100%;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.02);
}

.form-hint {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========= Toggle ========= */
.toggle-label {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-primary);
    border-radius: 11px;
    border: 1px solid var(--border-primary);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(18px);
    background: white;
}

/* ========= Shape Options ========= */
.shape-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.shape-option {
    cursor: pointer;
}

.shape-option input {
    display: none;
}

.shape-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.shape-card span {
    font-size: 0.7rem;
    font-weight: 500;
}

.shape-option:hover .shape-card {
    border-color: var(--border-secondary);
    background: var(--bg-hover);
}

.shape-option.active .shape-card,
.shape-option input:checked ~ .shape-card {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
    color: var(--accent-primary);
}

.shape-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========= Export ========= */
.export-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.export-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.export-btn svg, .export-btn i {
    width: 16px;
    height: 16px;
}

.export-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-secondary);
}

.export-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ========= Flight List ========= */
.flight-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 320px;
    overflow-y: auto;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 12px;
    color: var(--text-muted);
    text-align: center;
}

.empty-state i, .empty-state svg {
    width: 28px;
    height: 28px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.75rem;
    line-height: 1.5;
}

.flight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    animation: fadeInUp 0.3s ease;
}

.flight-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-secondary);
}

.flight-item.active {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
}

.flight-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.flight-item-info {
    flex: 1;
    min-width: 0;
}

.flight-item-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flight-item-area {
    font-size: 0.68rem;
    color: var(--text-secondary);
}

.flight-item-badge {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: var(--accent-glow);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

/* ========= Animations ========= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========= Notification Toast ========= */
.toast {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
    max-width: 340px;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--accent-primary); }

.toast-message {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
}

.toast.fade-out {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(30px); }
}

/* ========= Responsive ========= */
@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        right: 0;
        top: var(--header-height);
        bottom: 0;
        width: 100%;
        max-width: 520px;
        z-index: 200;
        box-shadow: var(--shadow-lg);
    }

    .sidebar.collapsed {
        transform: translateX(100%);
    }

    .area-stats {
        display: none;
    }

    .map-toolbar span {
        display: none;
    }

    .polygon-info-panel {
        width: calc(100% - 40px);
        left: 20px;
    }
}

/* ========= Layer Toggle ========= */
.layer-toggle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 4px;
    box-shadow: var(--shadow-md);
}

.layer-btn {
    padding: 6px 10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: 'Sora', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 4px;
}

.layer-btn svg, .layer-btn i {
    width: 14px;
    height: 14px;
}

.layer-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.layer-btn.active {
    background: var(--accent-glow);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* ========= Form Row (side-by-side inputs) ========= */
.form-row {
    display: flex;
    gap: 10px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.flex-1 {
    flex: 1;
    min-width: 0;
}

/* ========= Geometry Tools Grid ========= */
.geo-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 14px;
}

.geo-tool-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: 'Sora', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.geo-tool-btn svg, .geo-tool-btn i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.geo-tool-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-secondary);
}

.geo-tool-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.geo-tool-btn.active {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
    color: var(--accent-primary);
}

/* ========= Buffer Control ========= */
.buffer-control {
    margin-top: 2px;
}

.buffer-control > label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.buffer-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.buffer-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.buffer-btn svg, .buffer-btn i {
    width: 16px;
    height: 16px;
}

.buffer-btn.minus {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.25);
}

.buffer-btn.minus:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.18);
    border-color: var(--danger);
}

.buffer-btn.plus {
    background: rgba(16, 185, 129, 0.08);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.25);
}

.buffer-btn.plus:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.18);
    border-color: var(--success);
}

.buffer-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.buffer-value-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.buffer-input {
    flex: 1;
    padding: 8px 10px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: 'Sora', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    width: 60px;
}

.buffer-unit {
    padding: 0 10px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    border-left: 1px solid var(--border-primary);
    background: rgba(255,255,255,0.02);
}

.buffer-presets {
    display: flex;
    gap: 4px;
}

.buffer-preset {
    flex: 1;
    padding: 5px 0;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: 'Sora', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.buffer-preset:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-secondary);
}

.buffer-preset.active {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-glow);
}

/* ========= Orientation Slider ========= */
.orientation-control {
    display: flex;
    align-items: center;
    gap: 14px;
}

.orient-slider-wrap {
    flex: 1;
}

.orient-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    outline: none;
    border: 1px solid var(--border-primary);
    cursor: pointer;
}

.orient-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: 2px solid var(--bg-secondary);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
    cursor: pointer;
    transition: box-shadow var(--transition-fast);
}

.orient-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.7);
}

.orient-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: 2px solid var(--bg-secondary);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
    cursor: pointer;
}

.orient-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

.orient-ticks span {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 400;
}

.orient-value-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 52px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 8px 6px;
}

.orient-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.orient-badge {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--accent-secondary);
    background: rgba(6, 182, 212, 0.12);
    padding: 1px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.orient-badge.hidden {
    display: none !important;
}

/* ========= Flight Lines Info ========= */
.flight-lines-info {
    margin-top: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 12px;
    animation: fadeInUp 0.3s ease;
}

.fli-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.fli-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fli-label {
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.fli-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.fli-parity {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
    margin-bottom: 8px;
}

.fli-parity-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.fli-parity-badge.even {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.fli-parity-badge.odd {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.fli-parity-text {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.fli-suggestion {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
}

.fli-suggestion i, .fli-suggestion svg {
    width: 14px;
    height: 14px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.fli-suggestion span {
    flex: 1;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.fli-apply-btn {
    padding: 4px 10px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: 'Sora', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.fli-apply-btn:hover {
    filter: brightness(1.15);
    box-shadow: var(--shadow-glow);
}

/* ========= Dissolve Bar ========= */
.dissolve-bar {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
    animation: fadeInUp 0.25s ease;
}

.dissolve-bar.hidden {
    display: none !important;
}

.dissolve-bar span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.dissolve-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: 'Sora', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.dissolve-btn i, .dissolve-btn svg {
    width: 14px;
    height: 14px;
}

.dissolve-btn:hover {
    filter: brightness(1.15);
    box-shadow: var(--shadow-glow);
}

.dissolve-cancel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dissolve-cancel-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border-color: var(--error);
}

.dissolve-cancel-btn i, .dissolve-cancel-btn svg {
    width: 14px;
    height: 14px;
}

/* ========= Block Orientation Control ========= */
.block-orient-control {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-primary);
}

.block-orient-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.block-orient-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.block-orient-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-secondary);
    border-radius: 2px;
    outline: none;
}

.block-orient-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
}

.block-orient-value {
    min-width: 32px;
    text-align: right;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.block-orient-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
    padding: 6px 12px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: 'Sora', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.block-orient-apply:hover {
    filter: brightness(1.15);
    box-shadow: var(--shadow-glow);
}

/* ========= Dissolve Bar Orientation ========= */
.dissolve-orient-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dissolve-orient-slider {
    width: 80px;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-secondary);
    border-radius: 2px;
    outline: none;
}

.dissolve-orient-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
}

.dissolve-orient-val {
    min-width: 28px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.dissolve-orient-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dissolve-orient-apply:hover {
    background: var(--accent-primary);
    color: white;
}

/* ========= Confirmation Modal ========= */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-modal.hidden {
    display: none;
}

.confirm-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.confirm-dialog {
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 28px 32px 24px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-heavy);
}

.confirm-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.confirm-icon i, .confirm-icon svg {
    width: 22px;
    height: 22px;
}

.confirm-dialog h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.confirm-dialog p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    gap: 10px;
}

.confirm-cancel {
    flex: 1;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: 'Sora', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.confirm-cancel:hover {
    background: var(--border-primary);
    color: var(--text-primary);
}

.confirm-ok {
    flex: 1;
    padding: 8px 16px;
    background: var(--error);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: 'Sora', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.confirm-ok:hover {
    filter: brightness(1.15);
}

/* ========= Flight Orient Tag ========= */
.flight-orient-tag {
    display: inline-block;
    padding: 1px 6px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 600;
    vertical-align: middle;
}

/* ========= Collapsible animation ========= */
.collapsible-content {
    overflow: hidden;
    transition: max-height var(--transition-base), opacity var(--transition-base);
}

.collapsible-content.visible {
    display: block !important;
}

/* ========= Block polygon SVG animations ========= */
.block-polygon {
    animation: blockFadeIn 0.4s ease forwards;
}

@keyframes blockFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========= Glow pulse on selected block ========= */
.leaflet-interactive:focus {
    outline: none;
}

/* ========= Toolbar button ripple ========= */
.toolbar-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    opacity: 0;
    background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, transparent 70%);
    transition: opacity 0.3s;
    pointer-events: none;
}

.toolbar-btn {
    position: relative;
    overflow: hidden;
}

.toolbar-btn:active::after {
    opacity: 1;
}

/* ========= Sidebar section slide-in ========= */
.sidebar-section {
    animation: sectionSlideIn 0.35s ease both;
}

.sidebar-section:nth-child(1) { animation-delay: 0.05s; }
.sidebar-section:nth-child(2) { animation-delay: 0.1s; }
.sidebar-section:nth-child(3) { animation-delay: 0.12s; }
.sidebar-section:nth-child(4) { animation-delay: 0.15s; }
.sidebar-section:nth-child(5) { animation-delay: 0.18s; }
.sidebar-section:nth-child(6) { animation-delay: 0.21s; }
.sidebar-section:nth-child(7) { animation-delay: 0.24s; }
.sidebar-section:nth-child(8) { animation-delay: 0.27s; }

@keyframes sectionSlideIn {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========= Flight list stagger ========= */
.flight-item:nth-child(n) {
    animation-delay: calc(var(--i, 0) * 40ms);
}

/* ========= Stat value counter effect ========= */
.stat-value {
    transition: color 0.2s ease;
}

.stat-value.updated {
    color: var(--accent-secondary);
}

/* ========= Export button hover glow ========= */
.export-btn:hover:not(:disabled) {
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

/* ========= Info panel data highlight ========= */
.info-value.positive { color: var(--success); }
.info-value.negative { color: var(--warning); }

/* ========= Smooth map polygon transitions ========= */
.leaflet-overlay-pane svg path {
    transition: fill-opacity 0.2s ease, stroke-width 0.2s ease;
}

/* ========= Form Select ========= */
.form-select {
    width: 100%;
    padding: 9px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Sora', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7a8a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.form-select:hover {
    border-color: var(--border-secondary);
}

.form-select:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ========= Form Hint ========= */
.form-hint {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.3;
}

/* ========= Equipment Info ========= */
.equipment-info {
    margin-top: 10px;
}

.equip-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: var(--accent-glow);
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 10px;
}

.equip-badge svg, .equip-badge i {
    width: 13px;
    height: 13px;
}

.equip-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.equip-spec {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 8px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
}

.equip-spec-label {
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.equip-spec-value {
    font-size: 0.78rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* ========= Mission Type Options ========= */
.mission-options {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 5px;
}

.mission-option {
    cursor: pointer;
}

.mission-option input[type="radio"] {
    display: none;
}

.mission-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-align: center;
}

.mission-card svg, .mission-card i {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.mission-card span {
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.1;
    transition: color var(--transition-fast);
}

.mission-option:hover .mission-card {
    background: var(--bg-hover);
    border-color: var(--border-secondary);
}

.mission-option:hover .mission-card svg,
.mission-option:hover .mission-card i {
    color: var(--text-primary);
}

.mission-option.active .mission-card {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
}

.mission-option.active .mission-card svg,
.mission-option.active .mission-card i {
    color: var(--accent-primary);
}

.mission-option.active .mission-card span {
    color: var(--accent-primary);
    font-weight: 600;
}

/* ========= Calculated Parameters Grid ========= */
.calc-params-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.calc-param-group {
    display: contents;
}

.calc-param {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 7px 9px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
}

.calc-label {
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.calc-value {
    font-size: 0.82rem;
    color: var(--accent-secondary);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ========= Parity Options ========= */
.parity-options {
    display: flex;
    gap: 5px;
}

.parity-option {
    flex: 1;
    cursor: pointer;
}

.parity-option input[type="radio"] {
    display: none;
}

.parity-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 7px 6px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.parity-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}

.parity-badge.even {
    color: var(--success);
    background: rgba(16, 185, 129, 0.12);
}

.parity-badge.odd {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.12);
}

.parity-badge.auto {
    color: var(--accent-primary);
    background: var(--accent-glow);
}

.parity-desc {
    font-size: 0.58rem;
    color: var(--text-muted);
    font-weight: 500;
}

.parity-option:hover .parity-card {
    background: var(--bg-hover);
    border-color: var(--border-secondary);
}

.parity-option.active .parity-card {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.06);
}

/* ========= Section animation for new sections ========= */
.sidebar-section:nth-child(9) { animation-delay: 0.30s; }
.sidebar-section:nth-child(10) { animation-delay: 0.33s; }
.sidebar-section:nth-child(11) { animation-delay: 0.36s; }
.sidebar-section:nth-child(12) { animation-delay: 0.39s; }

/* ========= User Menu (Header) ========= */
.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px 4px 4px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-fast);
}

.user-menu:hover {
    border-color: var(--border-secondary);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.user-avatar .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-name {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu .btn-icon {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
}

.user-menu .btn-icon:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.user-menu .btn-icon svg, .user-menu .btn-icon i {
    width: 15px;
    height: 15px;
}
