body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f0f2f5;
    color: #1c1e21;
}
header {
    background-color: #003580;
    color: white;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.tabs {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tab {
    padding: 15px 40px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: background 0.3s;
    border-bottom: 4px solid transparent;
}
.tab:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.tab.active {
    border-bottom-color: #ffd700;
    background-color: rgba(255, 255, 255, 0.15);
}
.last-update {
    background-color: #002a60;
    color: #a5b1c2;
    font-size: 0.85rem;
    padding: 5px 0;
    text-align: center;
}
.dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}
.widget {
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 8px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 200px;
}
.widget.wide {
    grid-column: span 2;
}
.widget-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #4b4f56;
    width: 100%;
    text-align: left;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
}
.data-row {
    margin-bottom: 40px;
    width: 100%;
}
.label {
    font-size: 2.2rem;
    color: #8d949e;
    margin-right: 30px;
    display: inline-block;
    min-width: 160px;
}
.value-display {
    font-size: 6rem;
    font-weight: bold;
    color: #003580;
    vertical-align: baseline;
}
.unit {
    font-size: 2.4rem;
    color: #8d949e;
    margin-left: 10px;
    vertical-align: baseline;
}
.wind-arrow {
    display: inline-block;
    width: 4rem;
    height: 4rem;
    margin-left: 20px;
    vertical-align: middle;
    transition: transform 0.5s ease-in-out;
}
.badges-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 30px;
    flex-wrap: wrap;
    transition: filter 0.3s ease;
}
.badges-container.stale {
    filter: grayscale(1) opacity(0.6);
}
.stale-info {
    font-size: 1.2rem;
    font-weight: normal;
    margin-top: -5px;
}
.badge-values {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.badge {
    background: white;
    padding: 20px 30px;
    border-radius: 40px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.8rem;
    font-weight: 600;
    color: #4b4f56;
    border: 2px solid #e1e4e8;
}
.badge-name {
    color: #003580;
}
.badge-speed {
    color: #1c1e21;
}
.badge-arrow {
    width: 4rem;
    height: 4rem;
    transition: transform 0.5s ease-in-out;
}
#history-chart, #windrose-chart, #predictions-chart {
    width: 100%;
    flex-grow: 1;
    min-height: 300px;
}
@media (max-width: 800px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    .widget.wide {
        grid-column: span 1;
    }
    .tab {
        padding: 15px 20px;
        flex: 1;
        text-align: center;
    }
}
