canvas {
    display: block;
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    overflow: hidden;
    background-color: #000;
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

.controls {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 8px;
    color: white;
    z-index: 100;
    backdrop-filter: blur(4px);
    max-width: 250px;
    border: 1px solid rgba(255,255,255,0.2);
}

.control-group {
    margin-bottom: 10px;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 500;
}

input[type="range"] {
    width: 100%;
    cursor: pointer;
}

button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin: 2px;
    transition: background 0.2s;
}

button:hover {
    background: rgba(255, 255, 255, 0.3);
}

button.active {
    background: #4a90e2;
    border-color: #4a90e2;
}

.moon-phase-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
}

.moon-phase-panel h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

#phase-canvas {
    background: #000;
    border-radius: 50%;
    margin-bottom: 5px;
}

#phase-name {
    font-size: 12px;
    color: #ccc;
}

.time-panel {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
}

#date-display {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.time-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.advanced-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 12px;
    backdrop-filter: blur(4px);
    max-width: 200px;
    font-family: sans-serif;
}

.advanced-panel h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 13px;
    color: #ddd;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 4px;
}

/* Location Popup Styles */
.location-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid rgba(100, 150, 255, 0.5);
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    min-width: 250px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.location-popup h3 {
    margin-top: 0;
    color: #4a90e2;
}

.location-info {
    margin: 15px 0;
    font-family: monospace;
    font-size: 1.1em;
}

.popup-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.popup-actions button {
    padding: 8px 16px;
}

#btn-simulate-sun {
    background: #e2a04a;
    border-color: #e2a04a;
    color: black;
    font-weight: bold;
}

#btn-simulate-sun:hover {
    background: #ffb860;
}
