body { margin: 0; padding: 0; }
#map { width: calc(100%-180px); height: 100vh; margin-left: 180px; }
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

/* sidebar 样式 */
#sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 136px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 1000;
    font-family: Arial, sans-serif;
    font-size: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
/* 侧边栏图标样式 */
#sidebar-icon {
    width: 100%;
    margin-bottom: 10px;
}

/* 侧边栏标题样式 */
#sidebar-title {
    text-align: center;
    font-size: 16px;
    margin-bottom: 20px;
}

/* 目标 title 元素样式 */
title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    display: block;
    color:dodgerblue
}

/* 选择用户下拉框样式 */
#user-selector {
    width: 95%; /* 增加下拉框宽度 */
}

/* 彩色圆形序号 */
.option .circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
}

/* 日期选择器样式 */
.date-selector {
    width: 100%;
}
.date-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}
.date-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}
.date-btn:hover {
    background-color: #f0f0f0;
}
.date-btn.active {
    background-color: #4285f4;
    color: white;
    border-color: #4285f4;
}
/* 新增：时间进度条样式 */
.time-slider {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    z-index: 1000;
    font-family: Arial, sans-serif;
    font-size: 14px;
}
.slider-container {
    position: relative;
    height: 20px;
    margin-top: 5px;
}
.slider-track {
    position: absolute;
    height: 4px;
    width: 100%;
    background-color: #ddd;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 2px;
}
.slider-progress {
    position: absolute;
    height: 4px;
    background-color: #4285f4;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 2px;
    width: 0%;
}
.slider-thumb {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #4285f4;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
    left: 0%;
}
.time-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}
.slider-container span {
    display: inline-block;
    padding-top: 12px;
    text-align: center;
    font-size: 12px;
    color: #aaa;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 如果有需要，还可以调整它们的布局，例如添加边距 */
#controls {
    margin-bottom: 20px; /* 增加选择用户和选择日期之间的空隙 */
}
#date-selector {
    margin: 0;
}

/* 新增：侧边栏页脚样式 */
#sidebar-footer {
    margin-top: auto;
    padding: 0px 0px 16px 0px;
    text-align: center;
    font-size: 13px;
    color: #666;
}

#smart-question-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

#smart-question-area {
    display: none;
}

#question-buttons button {
    padding: 5px 12px;
    margin: 5px;
    background-color: #fff;
    color: 333;
    border: 1px solid #333;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#question-buttons button:hover {
    background-color: #faa;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#question-buttons button:last-child {
    padding: 6px 6px;
    background-color: #fff;
    color: #333;
}

.stay-duration-tooltip {
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    padding: 6px 14px;
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 1px;
    text-shadow: 0 1px 0 #fff;
}

#user-nav-btns button {
    background: #fff;
    color: #666;
    border: 1px solid #aaa;
    border-radius: 2px;
    min-width: 60px;
    height: 22px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0px;
}
#user-nav-btns button:hover:not(:disabled) {
    background: #4285f4;
    color: #fff;
    border-color: #4285f4;
}
#user-nav-btns button:disabled {
    background: #f0f0f0;
    color: #bbb;
    border-color: #ddd;
    cursor: not-allowed;
}

#furthest-chart-window {
    position: absolute;
    top: 80px;
    right: 24px;
    width: 320px;
    height: 220px;
    background: rgba(255,255,255,0.92);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    z-index: 2000;
    padding: 12px 12px 0 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}
