:root {
    --bg-gradient: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --accent: #64ffda; /* Cyan glow */
    --dot-off: rgba(255, 255, 255, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden; /* App-känsla */
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* Header */
.glass-header {
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    z-index: 10;
}

/* Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 80px; /* Platz för nav */
}

.tab { display: none; animation: fadeIn 0.3s ease; }
.tab.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Glass Panels */
.glass-panel, .glass-nav, .glass-header {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

.clock-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 24px;
    margin-bottom: 20px;
}

#digital-time { font-size: 3.5rem; font-weight: 600; letter-spacing: -1px; }
#date-display { color: var(--text-muted); margin-top: 5px; }

/* Binary Clock */
.binary-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    margin-top: 30px;
}

.bin-col {
    display: flex;
    flex-direction: column-reverse;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dot-off);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot.active {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent), 0 0 2px #fff;
    transform: scale(1.2);
}

.sec-col .dot.active {
    /* Sekunder kan ha en annan färg om man vill, t.ex. rosa */
    background: #ff6b9d; 
    box-shadow: 0 0 8px #ff6b9d;
}

.separator { font-size: 2rem; line-height: 1; margin-bottom: 15px; opacity: 0.5; }

/* Weather */
.weather-card {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.temp-big { font-size: 3rem; font-weight: bold; }
.weather-icon { font-size: 4rem; }

.forecast-grid { display: grid; gap: 10px; }
.day-card {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Name Day */
.name-day-card { text-align: center; padding: 30px; margin-bottom: 20px; }
#today-name-display { font-size: 1.8rem; color: var(--accent); margin-top: 15px; line-height: 1.4; }

.upcoming-names ul { list-style: none; padding: 0; }
.upcoming-names li {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
}

/* Navigation */
.glass-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    gap: 4px;
    cursor: pointer;
}

.nav-btn .icon { font-size: 1.5rem; margin-bottom: 2px; }
.nav-btn.active { color: var(--accent); transform: translateY(-3px); }

.btn-glass {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}
