body {
    margin: 0;
    overflow: hidden;
    background-color: #000;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#simulation-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

canvas {
    display: block;
}

.overlay-controls {
    position: absolute;
    z-index: 10;
    padding: 15px;
    background-color: rgba(10, 20, 30, 0.7);
    border: 1px solid rgba(0, 175, 255, 0.5);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

#top-left-controls {
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#top-right-controls {
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.control-group:last-child {
    margin-bottom: 0;
}

/* --- Estilos de Controles de Velocidad --- */
.speed-controls-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px; /* Espacio entre el display y los botones */
}

.speed-value-display {
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 6px #00aeff;
    padding: 5px 12px;
    background-color: rgba(10, 20, 30, 0.8);
    border: 1px solid rgba(0, 175, 255, 0.5);
    border-radius: 5px;
    min-width: 80px;
    text-align: center;
}

.speed-buttons {
    display: flex;
    gap: 6px;
}

.speed-btn {
    background-color: transparent;
    border: 1px solid rgba(0, 175, 255, 0.7);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
    min-width: 40px;
    text-align: center;
    line-height: 1.2;
}

.speed-btn:hover {
    background-color: rgba(0, 175, 255, 0.2);
    color: #fff;
    box-shadow: 0 0 8px rgba(0, 175, 255, 0.6);
}

/* Estilo especial para play y pausa */
#speed-pause, #speed-play {
    font-size: 1.1em;
}

#speed-play:hover {
    color: #4dff4d; /* Verde */
    border-color: #4dff4d;
    box-shadow: 0 0 10px #4dff4d;
}

#speed-pause:hover {
    color: #ff4d4d; /* Rojo */
    border-color: #ff4d4d;
    box-shadow: 0 0 10px #ff4d4d;
}

/* --- Estilos del Slider de Distancia --- */
.slider-labels {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8em;
}
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    height: 4px;
    background: rgba(0, 175, 255, 0.3);
    border-radius: 2px;
    outline: none;
    transition: background 0.2s;
}
input[type="range"]:hover {
    background: rgba(0, 175, 255, 0.5);
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #00aeff;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 175, 255, 0.8);
}
input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #00aeff;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
}

/* --- Estilos de los Botones de Foco --- */
.focus-btn {
    background-color: transparent;
    border: 1px solid rgba(0, 175, 255, 0.7);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.focus-btn:hover {
    background-color: rgba(0, 175, 255, 0.2);
    color: #fff;
}
.focus-btn.selected {
    background-color: #00aeff;
    border-color: #00aeff;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 10px #00aeff;
}

/* --- Estilos de los Insets --- */
.inset-container {
    position: absolute;
    width: 250px;
    height: 200px;
    border: 1px solid rgba(0, 175, 255, 0.5);
    z-index: 5;
    border-radius: 5px;
    overflow: hidden;
}

#earth-view-container {
    bottom: 15px;
    right: 15px;
}

#moon-view-container {
    bottom: 15px;
    left: 15px;
}

/* --- Estilos de los Botones de Eclipse --- */
.eclipse-controls {
    display: flex;
    gap: 8px;
}

.eclipse-btn {
    background-color: rgba(10, 20, 30, 0.7);
    border: 1px solid rgba(255, 180, 90, 0.7);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.eclipse-btn:hover {
    background-color: rgba(255, 180, 90, 0.2);
    color: #fff;
    box-shadow: 0 0 8px rgba(255, 180, 90, 0.6);
}

.eclipse-btn.active {
    background-color: #ffb45a;
    border-color: #ffb45a;
    color: #1a1a1a;
    font-weight: bold;
    box-shadow: 0 0 10px #ffb45a;
}
