/* body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background-color: rgba(255, 255, 255, 0.0);
} */
body,
html,
#allmap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    font-family: "微软雅黑";
    z-index: 1;
}

,
.smoke {
    position: relative;
    z-index: 1;
}

.div1 {
    position: absolute;
    z-index: 2;
}

.div2 {
    position: absolute;
    z-index: 3;
}

.div3 {
    position: absolute;
    z-index: 4;
    height: 450px;
    width: 300px;
    overFlow-x: scroll;
    overFlow-y: scroll;
}

.div4 {
    position: absolute;
    z-index: 3;
}

#controls {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.6);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#drawer {
    position: absolute;
    left: 2px;
    top: 70px;
    width: 250px;
    height: 42px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: height 0.3s ease;
}

#drawer.expanded {
    height: 500px;
}

#drawerHeader {
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    background: #f0f0f0;
    border-bottom: 1px solid #ccc;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#drawerHeader i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

#drawerHeader.expanded i {
    transform: rotate(180deg);
}

#drawerContent {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 430px;
    overflow-y: auto;
}

.warning-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f8f8;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 5px;
}

.warning-item span {
    font-weight: bold;
}

.warning-item button {
    background: #565656;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.warning-item button:hover {
    background: hsl(246, 100%, 45%);
}

.copy {
    background: #007906 !important;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.copy:hover {
    background: hsl(0, 0%, 65%);
    transform: scale(1.02);
}

.copy:active {
    transform: scale(0.98);
}

#drawerFooter {
    text-align: center;
    padding: 10px;
    background: #f0f0f0;
    cursor: pointer;
    border-top: 1px solid #ccc;
}

#drawerFooter:hover {
    background: #e0e0e0;
}

textarea {
    resize: none;
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.help-btn,
.custom-btn {
    position: absolute;
    bottom: 40px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 2;
}

.help-btn {
    width: 42px;
    left: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    background-color: #e6e6e6;
}

.custom-btn {
    left: 95px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    background-color: #d6d6d6;
    padding: 0 20px;
}

.expandable-area {
    position: absolute;
    left: 12px;
    bottom: 40px;
    width: 250px;
    height: 0;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: height 0.3s ease, bottom 0.3s ease;
    z-index: 2;
}

.expandable-content {
    padding: 10px;
    font-size: 14px;
    color: #333;
}

.auto-list-btn {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 100;
}

.auto-list-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

.auto-list-btn span {
    color: #333;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    writing-mode: vertical-lr;
}

.auto-list-panel {
    position: fixed;
    right: -350px;
    /* 初始隐藏在右侧 */
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    max-height: 80vh;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 99;
    display: flex;
    flex-direction: column;
}

.auto-list-panel.show {
    right: 80px;
    /* 展开时的位置 */
}

.auto-list-header {
    padding: 12px 15px;
    background: #f0f0f0;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background: #ddd;
}

.auto-list-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    max-height: calc(80vh - 60px);
}

.auto-notam-item {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.auto-notam-item:hover {
    background: #e8e8e8;
    transform: translateX(-5px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.auto-notam-item.highlighted {
    background: #d0d0d0;
    border-color: #999;
}

.notam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.notam-code {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.notam-color-indicator {
    width: 0px;
    height: 0px;
    border-radius: 0px;
    border: 0px solid #999;
}

.notam-info {
    font-size: 14px;
    color: #2c2c2c;
    line-height: 1.5;
}

.notam-time {
    margin-bottom: 5px;
}

.notam-coords {
    word-break: break-all;
    font-family: monospace;
    font-size: 11px;
    background: #fff;
    padding: 4px 6px;
    border-radius: 3px;
    margin-top: 5px;
}

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

/* 加载提示的背景遮罩 */
.loading-modal {
    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);
    /* 半透明黑色背景 */
}

/* 加载提示的内容框 */
.loading-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* 垂直居中 */
    padding: 20px;
    border: 1px solid #888;
    width: 200px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 旋转的加载动画 */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px auto;
    /* 水平居中，并增加下边距 */
}

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

    100% {
        transform: rotate(360deg);
    }
}