body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

html,
body,
#map {
    height: 100%;
}

.row {
    display: flex;
    flex-direction: row;
}

.row-2 {
    display: flex;
    gap: 12px;          /* расстояние между инпутами */
    width: 100%;
}

.row-2 .input-group {
    flex: 1;            /* по 50% */
    display: flex;
    flex-direction: column;
}

.row-2 label {
    margin-bottom: 6px;
    font-size: 14px;
}

.row-2 input {
    width: 100%;
    box-sizing: border-box;
}


.gap-auto {
    justify-content: space-between;
}

.maplibregl-popup {
    max-width: 400px;
    font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
}


.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: white;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: #2196f3;
}

.input-group .input-with-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group .input-with-label input {
    flex: 1;
}

.input-group .input-with-label .value-display {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    color: #2196f3;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.input-group .input-with-label .value-display:focus {
    outline: none;
    border-color: #2196f3;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: #2959A6;
    color: white;
}

.btn-primary:hover {
    background: #3672d2;
}

.btn-primary:disabled,
.btn-primary[disabled] {
    background: #90caf9; /* более светлый оттенок синего */
    color: #e0e0e0; /* серый текст */
    cursor: not-allowed; /* показывает, что кнопка недоступна */
    opacity: 0.6; /* слегка прозрачная для визуальной подсказки */
    box-shadow: none; /* убираем тень, если есть */
}


.btn-secondary {
    background: #2959A6;
    color: white;
}

.btn-secondary:hover {
    background: #3672d2;
}

.btn-danger {
    background: #2959A6;
    color: white;
}

.btn-danger:hover {
    background: #3672d2;
}

.btn-success {
    background: #2959A6;
    color: white;
}

.btn-success:hover {
    background: #3672d2;
}

/* Стрелка-курсор */
.direction-arrow {
    position: absolute;
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: 999;
    display: none;
    transform-origin: center center;
}

.direction-arrow svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.section-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 15px 0;
}


/* Фон модального окна */
.popup {
    display: none;
    /* скрыто по умолчанию */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Контейнер содержимого */
.popup-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 80%;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Кнопка закрытия */
.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.popup-close:hover {
    color: red;
}

/* Картинка */
.popup img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}


/* Прогресс загрузки */
#progress-container {
  width: 100%;
  background: #eee;
  height: 10px;
  border-radius: 5px;
  margin-top: 10px;
  overflow: hidden;
}

#progress-bar {
  width: 0%;
  height: 100%;
  background: #2959A6;
  transition: width 0.2s;
}
/* ------------ */


.sector-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.2s;
}

.sector-item:last-child {
    border-bottom: none;
}

.sector-item:hover {
    background: #f0f0f0;
}

.sector-item.active {
    background: #e3f2fd;
    border-left: 3px solid #2196f3;
}

.sector-info {
    flex: 1;
    font-size: 12px;
}

.sector-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.sector-details {
    font-size: 11px;
    color: #666;
}

.sector-actions {
    display: flex;
    gap: 5px;
}

.sector-btn {
    padding: 4px 8px;
    font-size: 11px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.sector-btn.load {
    background: #2196f3;
    color: white;
}

.sector-btn.load:hover {
    background: #1976d2;
}

.sector-btn.delete {
    background: #f44336;
    color: white;
}

.sector-btn.delete:hover {
    background: #d32f2f;
}

.empty-list {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

/* Модальное окно сохранения */
.save-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.save-modal-content {
    background-color: #162238;
    margin: 15% auto;
    padding: 25px;
    border-radius: 8px;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.save-modal h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: white;
}

.save-modal input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.save-modal input:focus {
    outline: none;
    border-color: #2196f3;
}

.save-modal-buttons {
    display: flex;
    gap: 10px;
}

.save-modal-buttons button {
    flex: 1;
}

/* Ввод координат */
.coord-input-wrapper {
    display: flex;
    gap: 8px;
}

.coord-input-wrapper input {
    flex: 1;
}

/* Кнопки экспорта */
.export-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-export {
    flex: 1;
    padding: 10px;
    background: #9c27b0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-export:hover {
    background: #7b1fa2;
}

.btn-import {
    width: 100%;
    padding: 10px;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-import:hover {
    background: #f57c00;
}


.point-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s;
}

.point-item:last-child {
    border-bottom: none;
}

.point-item:hover {
    background: #f0f0f0;
}

.point-item.active {
    background: #e8f5e9;
    border-left: 3px solid #2959A6;
}

.point-info {
    flex: 1;
    font-size: 12px;
}

.point-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.point-details {
    font-size: 11px;
    color: #666;
}

.point-actions {
    display: flex;
    gap: 5px;
}

.point-btn {
    padding: 4px 8px;
    font-size: 14px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
}

.point-btn.edit {
    color: #2196f3;
}

.point-btn.edit:hover {
    background: #e3f2fd;
}

.point-btn.delete {
    color: #f44336;
    font-size: 18px;
    font-weight: bold;
}

.point-btn.delete:hover {
    background: #ffebee;
}


        /* Модальное окно */
        #settings-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 1001;
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background-color: #162238;
            padding: 30px;
            border-radius: 8px;
            width: 90%;
            max-width: 600px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        }

        h3 {
            margin-top: 0;
            margin-bottom: 20px;
            color: white;
            border-bottom: 2px solid #4a6fa5;
            padding-bottom: 10px;
        }
        /* Кнопки действий */
        .button-group {
            display: flex;
            gap: 10px;
            margin-top: 20px;
            flex-wrap: wrap;
        }

        .btn-settings {
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            transition: background-color 0.3s;
        }

        .btn-gallery {
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            transition: background-color 0.3s;
        }
.gallery-modal {
    display: none; 
    position: fixed; 
    inset: 0; 
    background-color: rgba(0, 0, 0, 0.6); 
    z-index: 2000; /* Должно быть поверх карты */
    backdrop-filter: blur(2px);
}

.gallery-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 90%;
    background-color: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

.gallery-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-header h3 { margin: 0; color: #333; }
.gallery-close { font-size: 24px; cursor: pointer; color: #666; transition: 0.2s; }
.gallery-close:hover { color: #f44336; }

.gallery-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Левая панель (Папки) */
.gallery-sidebar {
    width: 300px;
    min-width: 250px;
    background-color: #fafafa;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    padding: 15px;
}

.folder-wrapper { margin-bottom: 10px; }
.folder-header {
    cursor: pointer;
    font-weight: bold;
    padding: 8px 10px;
    background: #eef2f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.folder-header:hover { background: #e0e6ed; }
.folder-header::before {
    content: '📁'; margin-right: 8px; font-size: 14px;
}
.folder-header.expanded::before { content: '📂'; }

.sectors-list {
    margin-top: 5px;
    padding-left: 20px;
    display: none; /* Скрыто по умолчанию */
}
.folder-wrapper.expanded .sectors-list { display: block; }

.db-sector-item {
    display: flex;
    align-items: center;
    padding: 5px;
    margin-bottom: 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.db-sector-item:hover { background: #eaeff5; }
.db-sector-item.highlighted { background: #d0e3f7; font-weight: bold; }
.db-sector-item input[type="checkbox"] { margin-right: 8px; cursor: pointer; }

/* Правая панель (Графики) */
.gallery-main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f0f2f5;
}

.graphs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-content: flex-start;
}

.empty-gallery-msg {
    width: 100%; text-align: center; color: #888; font-size: 16px; margin-top: 50px;
}

.graph-card {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 10px;
    width: calc(33.333% - 15px); /* По 3 в ряд */
    min-width: 250px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.graph-card img {
    width: 100%; height: auto; border-radius: 4px; display: block;
}
.graph-card p {
    margin: 10px 0 0 0; font-size: 14px; color: #555; text-align: center;
}

/* Подсветка связанных графиков */
.graph-card.highlighted-graph {
    border-color: #2196F3;
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.4);
    transform: scale(1.02);
}
/* === ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ УЛУЧШЕНИЙ === */


.folder-name {
    flex: 1;
}

.db-sector-item {
    display: flex;
    align-items: center;
    padding: 5px;
    margin-bottom: 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    gap: 8px;
}

.db-sector-item input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.db-sector-item .sector-label {
    flex: 1;
    user-select: none;
}

/* Улучшенные стили для графиков */
.graph-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.graph-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.graph-card::after {
    content: '🔍';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.graph-card:hover::after {
    opacity: 1;
}

/* Анимация для полноэкранного просмотра */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#fullscreen-image-viewer {
    animation: fadeIn 0.3s ease;
}

#fullscreen-image-viewer img {
    animation: fadeIn 0.5s ease;
}

/* Улучшенная подсветка выбранных элементов */
.db-sector-item.highlighted {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.graph-card.highlighted-graph {
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    transform: scale(1.03);
}

/* Стили для кнопок экспорта (оставляем только JSON) */
.export-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.export-buttons .btn-export {
    flex: 1;
}

/* Улучшенные состояния кнопок */
button:active {
    transform: scale(0.98);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Индикатор загрузки */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #2196f3;
    animation: spin 1s linear infinite;
}

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

/* Улучшенные тултипы */
[title] {
    position: relative;
}

/* Адаптивность для галереи */
@media (max-width: 1200px) {
    .graph-card {
        width: calc(50% - 15px); /* По 2 в ряд на средних экранах */
    }
}

@media (max-width: 768px) {
    .graph-card {
        width: 100%; /* По 1 в ряд на маленьких экранах */
    }
    
    .gallery-sidebar {
        width: 200px;
        min-width: 200px;
    }
}


/* ════════════════════════════════════════════════════════
   NEW COMPACT UI  —  Top bar, Bottom bar, Dropdowns
   ════════════════════════════════════════════════════════ *

/* ── Map fills everything ── */
html, body, #map { height: 100%; margin: 0; padding: 0; }

/* ══════════════════════════
   TOP BAR
══════════════════════════ */
.top-bar {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar-left {
    display: flex;
    gap: 10px;
}

/* ── Dropdown component ── */
.ui-dropdown {
    position: relative;
}

.ui-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: rgba(30, 60, 110, 0.88);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
    min-width: 110px;
    justify-content: space-between;
}

.ui-dropdown-btn:hover {
    background: rgba(40, 80, 150, 0.95);
}

.ui-dropdown-btn.open {
    background: rgba(40, 90, 170, 0.97);
    border-color: rgba(255,255,255,0.35);
}

.dropdown-chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
}
.ui-dropdown-btn.open .dropdown-chevron {
    transform: rotate(180deg);
}

.ui-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    max-height: 320px;
    overflow-y: auto;
    background: rgba(18, 30, 55, 0.97);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 6px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    z-index: 600;
}

.ui-dropdown-menu.open {
    display: block;
    animation: ddFadeIn 0.15s ease;
}

@keyframes ddFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ui-dropdown-loading {
    padding: 12px 16px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

.ui-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    color: rgba(255,255,255,0.88);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.ui-dropdown-item:hover {
    background: rgba(255,255,255,0.1);
}

.ui-dropdown-item.active {
    background: rgba(33, 150, 243, 0.3);
    color: #fff;
    font-weight: 600;
}

.ui-dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 4px 0;
}

/* ══════════════════════════
   BOTTOM BAR
══════════════════════════ */
.bottom-bar {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(18, 30, 55, 0.88);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255,255,255,0.14);
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.bb-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bb-group + .bb-group {
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,0.15);
}

/* Icon buttons */
.bb-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.bb-icon-btn:hover {
    background: rgba(255,255,255,0.22);
}

.bb-icon-btn:active {
    transform: scale(0.93);
}

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

/* Text action buttons */
.bb-text-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.bb-text-btn:hover {
    background: rgba(255,255,255,0.22);
}

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

/* Field inputs in bottom bar */
.bb-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: default;
}

.bb-field-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.bb-field input {
    background: transparent;
    border: none;
    border-bottom: 1.5px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 13px;
    width: 90px;
    padding: 2px 0 3px;
    outline: none;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}

.bb-field input::-webkit-outer-spin-button,
.bb-field input::-webkit-inner-spin-button { -webkit-appearance: none; }

.bb-field input:focus {
    border-bottom-color: rgba(100, 180, 255, 0.8);
}

.bb-field input::placeholder { color: rgba(255,255,255,0.3); }

/* ── Cone width floating popup ── */
.cone-popup {
    display: none;
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 600;
    background: rgba(18, 30, 55, 0.95);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.cone-popup.visible { display: flex; }

.cone-popup-label {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    white-space: nowrap;
}

.cone-popup input {
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    width: 70px;
    padding: 5px 8px;
    outline: none;
    -moz-appearance: textfield;
}
.cone-popup input::-webkit-outer-spin-button,
.cone-popup input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cone-popup input:focus { border-color: rgba(100,180,255,0.8); }

/* ══════════════════════════
   BOTTOM-RIGHT BUTTONS
══════════════════════════ */
.bottom-right-btns {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

/* Override old fixed-position settings / gallery buttons */
#settings-button,
#gallery-button {
    position: static !important;
    bottom: auto !important;
    right: auto !important;
    margin: 0 !important;
    padding: 10px 18px !important;
    background: rgba(30, 60, 110, 0.88) !important;
    backdrop-filter: blur(8px);
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,0.18) !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

/* ══════════════════════════
   PAGE SWITCHER Выбор страницы
══════════════════════════ */

.page-switcher {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    gap: 6px;
    background: rgba(18, 30, 55, 0.88);
    backdrop-filter: blur(8px);
    padding: 7px 12px;
    border-radius: 12px;
    border: 1.5px solid rgba(255,255,255,0.14);
}

.page-switcher a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 7px;
    transition: background 0.2s, color 0.2s;
}

.page-switcher a:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.page-switcher a.active {
    background: rgba(255,255,255,0.25);
    color: #fff;
    pointer-events: none;
}

