* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

#loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #4ecdc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loading p {
    color: #fff;
    margin-top: 20px;
    font-size: 16px;
}

#canvas-container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

#ui-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.panel {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    min-width: 250px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.panel:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateX(-5px);
}

.panel h3 {
    color: #4ecdc4;
    margin-bottom: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.weather-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.weather-buttons button {
    flex: 1 1 calc(50% - 4px);
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.weather-buttons button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.weather-buttons button.active {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.time-slider {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.time-slider input {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
}

.time-slider input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #4ecdc4;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slider input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.6);
}

#timeDisplay {
    text-align: center;
    color: #fff;
    font-size: 14px;
}

#autoTime {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

#autoTime:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#autoTime.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.sound-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#toggleSound {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

#toggleSound:hover {
    background: rgba(255, 255, 255, 0.2);
}

#toggleSound.active {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.volume-control input {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
}

.volume-control input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #4ecdc4;
    border-radius: 50%;
    cursor: pointer;
}

#meditationMode {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

#meditationMode:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(241, 39, 17, 0.4);
}

#meditationMode.active {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.breathing-guide {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

.breathing-guide.hidden {
    display: none;
}

.circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(0.8); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

.breathing-guide p {
    color: #fff;
    margin-top: 10px;
    font-size: 14px;
}

#instructions {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    border-radius: 15px;
    text-align: center;
    z-index: 100;
    transition: opacity 0.3s ease;
}

#instructions.hidden {
    opacity: 0;
    pointer-events: none;
}

#instructions p {
    color: #fff;
    margin-bottom: 15px;
    font-size: 14px;
}

#startBtn {
    padding: 12px 40px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#startBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.5);
}

.weather-panel, .time-panel, .sound-panel, .meditation-panel {
    @extend .panel;
}
