:root {
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text: #ffffff;
    --accent: #ffffff;
}

/* Teman */
.theme1 { background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); } /* Deep Ocean */
.theme2 { background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fad0c4); --text: #4a4a4a; --glass: rgba(255,255,255,0.4); } /* Sunset */
.theme3 { background: linear-gradient(135deg, #134e5e, #71b280); } /* Forest */
.theme4 { background: linear-gradient(135deg, #000000, #434343); --accent: #00ffcc; } /* Cyber */
.theme5 { background: linear-gradient(135deg, #e0e0e0, #ffffff); --text: #333; --glass: rgba(0,0,0,0.05); --glass-border: rgba(0,0,0,0.1); } /* Minimal */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.container {
    width: 92%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Klockkort */
.clock-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.date-display {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.time-display {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 30px;
}

/* Binär Visualisering */
.binary-visualizer {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.bits-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    max-width: 250px;
}

.bit-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.bit-dot.active {
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent), 0 0 5px var(--accent);
}

/* Väderkort */
.weather-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 20px;
}

.current-weather {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 2rem;
    font-weight: 600;
}

#weather-icon { width: 45px; height: 45px; }
.unit { font-size: 1.2rem; opacity: 0.7; }

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.forecast-day {
    text-align: center;
    font-size: 0.75rem;
}

.forecast-day img { width: 24px; height: 24px; margin-bottom: 5px; }

/* Kontroller */
.controls {
    display: flex;
    justify-content: center;
}

select {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    padding: 8px 15px;
    border-radius: 20px;
    outline: none;
    cursor: pointer;
}

@media (max-width: 380px) {
    .time-display { font-size: 3rem; }
}
