/* 本文件仅包含 02-airspace 特有样式，公共样式见 ../../shared/styles/flight-style.css */

/* === 控制面板 === */
.control-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    min-width: 240px;
    max-height: 90vh;
    overflow-y: auto;

    /* 玻璃拟态 — 复用 flight-style.css 面板风格 */
    background: rgba(8, 14, 30, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 8px;
    box-shadow:
        0 8px 36px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(0, 212, 255, 0.06) inset;
    overflow: hidden;
}

/* === 机场分组头 === */
.airport-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.airport-name {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* === 勾选项 === */
.control-item {
    display: flex;
    align-items: center;
    margin: 4px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    cursor: pointer;
    user-select: none;
    width: 100%;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 2px solid #555;
    background: transparent;
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: relative;
}

.checkbox-label input:checked + .checkmark {
    background: currentColor;
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 1px;
    width: 4px;
    height: 7px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* === 切换开关 === */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toggle-switch input:checked + .toggle-slider {
    background: rgba(0, 212, 255, 0.4);
    border-color: rgba(0, 212, 255, 0.5);
}

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

/* === 总览按钮（底部居中） === */
.overview-fab {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

    /* 玻璃拟态 */
    background: rgba(8, 14, 30, 0.65);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(0, 212, 255, 0.28);
    color: #00d4ff;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 212, 255, 0.05) inset;
}

.overview-fab:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow:
        0 6px 28px rgba(0, 212, 255, 0.15),
        0 0 0 1px rgba(0, 212, 255, 0.1) inset;
    transform: translateX(-50%) translateY(-2px);
}

.overview-fab:active {
    transform: translateX(-50%) scale(0.96);
}

/* === 信息卡片 === */
.info-card {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    max-width: 320px;

    /* 玻璃拟态 */
    background: rgba(8, 14, 30, 0.65);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 8px;
    box-shadow:
        0 8px 36px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(0, 212, 255, 0.06) inset;
    overflow: hidden;
}

.info-card p {
    font-size: 11px;
    color: rgba(180, 200, 220, 0.8);
    line-height: 1.6;
    margin-bottom: 6px;
}

.legend-title {
    font-size: 11px;
    color: #00d4ff;
    font-weight: 600;
    margin: 10px 0 4px 0;
    letter-spacing: 0.3px;
}

.legend-desc {
    font-size: 10px;
    color: #888;
    margin-bottom: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 3px 0;
    font-size: 11px;
    color: rgba(200, 210, 220, 0.8);
}

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