body {
    background-color: #16181d;
}


/* --- Top row --- */
.weather-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.weather-now {
    display: flex;
    align-items: center;
    gap: 16px;
}

.weather-icon {
    font-size: 56px;
    line-height: 1;
}

.weather-temp {
    font-size: 56px;
    font-weight: 300;
}

.unit {
    font-size: 20px;
    color: #ccc;
    vertical-align: top;
    margin-left: 4px;
}

.unit-sep {
    color: #555;
    margin: 0 4px;
}

.weather-details-list {
    font-size: 14px;
    color: #b5b8c0;
    line-height: 1.6;
    margin-left: 16px;
}

    .weather-details-list p {
        margin: 0;
    }

.weather-meta {
    text-align: right;
}

    .weather-meta h1 {
        font-size: 26px;
        font-weight: 600;
        margin: 0;
    }

    .weather-meta p {
        margin: 2px 0;
        color: #b5b8c0;
    }

/* --- Tabs --- */
.weather-tabs {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid #2c2f38;
    margin-bottom: 12px;
}

.tab {
    background: none;
    border: none;
    color: #b5b8c0;
    font-size: 16px;
    padding: 8px 0;
    cursor: pointer;
}

    .tab.active {
        color: #fff;
        border-bottom: 3px solid #f0b429;
    }

/* --- Chart --- */
.weather-chart {
    position: relative;
    margin-bottom: 20px;
}

.chart-svg {
    width: 100%;
    height: 140px;
    display: block;
}

.chart-area {
    fill: #55511f;
    opacity: 0.9;
}

.chart-line {
    fill: none;
    stroke: #f0d020;
    stroke-width: 2;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 14px;
    margin-top: -10px;
}

/* --- Day cards --- */
.weather-days {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    overflow-x: auto;
}

.day-card {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    border-radius: 10px;
    color: #d5d7dd;
}

    .day-card.active {
        background: #2c2f38;
    }

.day-time,
.day-name {
    margin: 0;
    font-size: 14px;
    color: #b5b8c0;
}

.day-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.day-icon {
    font-size: 28px;
    display: block;
    margin: 6px 0;
}

.day-temp {
    margin: 0;
    font-weight: 600;
}
.weather-card {
    color: #f2f2f2;
    border-radius: 16px;
    padding: 24px 32px;
    max-width: 1100px;
    margin: 40px auto;
    font-family: "Segoe UI", Arial, sans-serif;
    transition: background 0.6s ease;
}

.weather-card {
    color: #f2f2f2;
    border-radius: 16px;
    padding: 24px 32px;
    max-width: 1100px;
    margin: 40px auto;
    font-family: "Segoe UI", Arial, sans-serif;
    background-size: cover;
    background-position: center;
    transition: background-image 0.6s ease;
    position: relative;
}

    /* Valfritt: mörkt overlay så texten syns bra oavsett bild */
    .weather-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        border-radius: 16px;
        z-index: 0;
    }

.weather-top,
.weather-tabs,
.weather-days {
    position: relative;
    z-index: 1;
}