:root {
    --bg-color: #0a141d;
    --card-bg: #16222c;
    --header-bg: #101c26;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --accent-blue: #3b82f6;
    --border-color: #23313e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: 20px;
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
}

/* Breadcrumbs & Top Bar */
.breadcrumbs {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
}

.breadcrumbs span {
    color: var(--text-main);
    font-weight: bold;
}

.save-place {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* Header */
.main-header {
    text-align: center;
    margin: 20px 0;
}

.main-header .subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 5px;
    background: var(--header-bg);
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.tab.active {
    background: var(--card-bg);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Alert Banner */
.alert-banner {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 20px;
    gap: 15px;
}

.alert-icon {
    background: #dcfce7;
    color: #166534;
    padding: 8px;
    border-radius: 50%;
    display: flex;
}

.alert-content {
    font-size: 0.85rem;
}

.alert-content a {
    color: var(--text-muted);
    text-decoration: underline;
}

/* Forecast Scroll */
.forecast-wrapper {
    margin: 0 -10px; /* Bryt container padding för fullbredd scroll */
    padding: 0 10px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.forecast-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.forecast-container {
    display: flex;
    gap: 8px;
    padding-bottom: 15px;
}

/* Weather Card */
.weather-card {
    min-width: 110px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.card-day { font-weight: bold; font-size: 0.9rem; }
.card-date { color: var(--text-muted); font-size: 0.75rem; margin-top: -5px; }

.card-temp { font-size: 1.8rem; font-weight: bold; margin: 5px 0; }
.card-min-temp { font-size: 0.8rem; color: var(--text-muted); margin-top: -10px; margin-bottom: 10px; }

.weather-icon { margin: 5px 0; color: #ffbc00; }
.rain-info { font-size: 0.8rem; font-weight: 500; }
.wind-info { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 3px; }

.sun-times {
    margin-top: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    width: 100%;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Stats Footer */
.stats-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
}

.stats-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.stats-grid {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-box {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.stat-box .val { font-weight: bold; font-size: 1.1rem; color: #1a1a1a; }
.stat-box .lbl { font-size: 0.65rem; color: #333; line-height: 1; margin-top: 2px; }

.pink { background: #fecaca; }
.blue { background: #bfdbfe; }
.yellow { background: #fef08a; }

.stat-arrow {
    padding-left: 5px;
    color: var(--text-muted);
}

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

.weather-card {
    animation: fadeIn 0.4s ease forwards;
}
