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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 15px;
    overflow-x: hidden;
    transition: background 0.5s ease;
}

/* Theme 1: Midnight Ocean */
body.theme-1 {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460, #533483);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}
/* Theme 2: Sunset Glow */
body.theme-2 {
    background: linear-gradient(135deg, #ff416c, #ff4b2b, #f79503, #ffd200);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}
/* Theme 3: Forest Mist */
body.theme-3 {
    background: linear-gradient(135deg, #134e5e, #71b280, #2d6a4f, #40916c);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}
/* Theme 4: Lavender Dream */
body.theme-4 {
    background: linear-gradient(135deg, #667eea, #764ba2, #9b59b6, #8e44ad);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}
/* Theme 5: Ember Dark */
body.theme-5 {
    background: linear-gradient(135deg, #232526, #414345, #000000, #2c3e50);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
}

/* Theme Switcher Card */
.theme-switcher-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
}

.theme-label {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0.9;
}

.theme-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.theme-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.theme-btn.active {
    border-color: #00d2ff;
    background: rgba(0, 210, 255, 0.2);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.6);
}

/* Clock Card */
.clock-card {
    text-align: center;
}

.time-display {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 210, 255, 0.5);
}

.date-display {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 24px;
    font-weight: 500;
}

/* Binary Clock */
.binary-clock {
    margin-top: 20px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

.binary-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.binary-row:last-child {
    margin-bottom: 0;
}

.binary-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #00d2ff;
    margin-right: 16px;
    min-width: 40px;
}

.bits {
    display: flex;
    justify-content: center;
    gap: 6px;
}

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

.bit.active {
    background: #00d2ff;
    box-shadow: 0 0 12px #00d2ff, 0 0 24px rgba(0, 210, 255, 0.6);
    transform: scale(1.1);
}

/* Weather Card */
.current-weather {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.weather-icon {
    font-size: 4rem;
    margin-bottom: 8px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.weather-temp {
    font-size: 3rem;
    font-weight: 700;
}

.weather-desc {
    font-size: 1.2rem;
    margin-top: 4px;
    opacity: 0.9;
}

.weather-details {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Forecast Card */
.forecast-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 600;
}

.forecast-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.forecast-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: background 0.2s ease;
}

.forecast-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.forecast-day {
    font-weight: 600;
    min-width: 80px;
}

.forecast-icon {
    font-size: 1.5rem;
}

.forecast-temp {
    font-size: 0.95rem;
    opacity: 0.9;
}

.forecast-temp span {
    opacity: 0.6;
}
