:root {
    --bg-color: #0f172a;
    /* Slate 900 */
    --card-bg: #1e293b;
    /* Slate 800 */
    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --accent-sunrise: #fbbf24;
    /* Amber 400 */
    --accent-sunset: #6d28d9;
    /* Purple 700 - though for sunset maybe orange/red? Let's go with a warm orange */
    --accent-sunset-2: #f97316;
    /* Orange 500 */
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.app-container {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 1) 0%, rgba(15, 23, 42, 1) 100%);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    text-align: center;
}

header {
    margin-bottom: 32px;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
    background: linear-gradient(to right, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.date {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
}

.name-day {
    color: var(--accent-sunrise);
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: 4px;
    font-style: italic;
}

.day-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.day-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.day-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: left;
    color: var(--text-primary);
}

.sun-cycle-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h3 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sun-times {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
}

.sun-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
}

.sun-item:hover {
    transform: translateY(-2px);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 4px;
}

.label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.time {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

#loading-indicator {
    margin-top: 20px;
    color: var(--text-secondary);
    font-style: italic;
}

.hidden {
    display: none;
}

#error-message {
    margin-top: 20px;
    color: #ef4444;
    /* Red 500 */
    background-color: rgba(239, 68, 68, 0.1);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

footer {
    margin-top: 40px;
    font-size: 0.75rem;
    color: #475569;
    /* Slate 600 */
}

footer a {
    color: #64748b;
    /* Slate 500 */
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--text-secondary);
}

/* Hourly Forecast Styles */
.hourly-forecast-section {
    margin-top: 32px;
}

.hourly-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 16px;
    /* Space for scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.hourly-container::-webkit-scrollbar {
    height: 6px;
}

.hourly-container::-webkit-scrollbar-track {
    background: transparent;
}

.hourly-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.hourly-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    min-width: 80px;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hourly-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hourly-icon {
    font-size: 1.8rem;
}

.hourly-temp {
    font-weight: 600;
    font-size: 1rem;
}

.loading-hourly {
    width: 100%;
    text-align: center;
    font-style: italic;
    color: var(--text-secondary);
    padding: 20px;
}

/* Location Selector Styles */
.location-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

#city-select {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px 16px;
    cursor: pointer;
    outline: none;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

#city-select:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

#city-select option {
    color: #1e293b;
    background-color: #f8fafc;
    font-size: 1rem;
}