:root {
    --primary-blue: #007bff;
    --secondary-yellow: #ffc107;
    --accent-orange: #fd7e14;
    --bg-light: #fdf6e3;
    --card-bg: #ffffff;
    --text-dark: #333;
    --text-muted: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.4;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Header */
header {
    margin-bottom: 20px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.main-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.warning-badge {
    background: var(--accent-orange);
    color: #000;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 0.7rem;
    border-radius: 5px;
    text-align: center;
}

.title-section h1 {
    font-size: 1.8rem;
    color: #000;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn.active { background: var(--primary-blue); color: #fff; }
.btn.yellow { background: var(--secondary-yellow); color: #000; }
.btn.orange { background: var(--accent-orange); color: #fff; }

/* Location & Current */
.location-current {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

.current-weather-summary {
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-weather-summary img {
    width: 60px;
}

.temp-desc .temp {
    font-size: 2.5rem;
    font-weight: bold;
}

.temp-desc .desc {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
}

/* Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 20px;
}

.card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.card .sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Alert Box */
.alert-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.alert-box i {
    color: var(--secondary-yellow);
    font-size: 1.5rem;
}

/* Hourly Forecast */
.hourly-scroll {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
}

.hourly-item {
    text-align: center;
    min-width: 50px;
}

.hourly-item .time { font-size: 0.7rem; }
.hourly-item img { width: 25px; margin: 5px 0; }
.hourly-item .temp { font-size: 0.8rem; font-weight: bold; }

/* Weekly Forecast */
.weekly-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.weekly-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 2fr 1fr;
    align-items: center;
    font-size: 0.85rem;
}

.weekly-item .temp-bar {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    position: relative;
    width: 100%;
}

.weekly-item .temp-bar .fill {
    position: absolute;
    height: 100%;
    background: purple;
    border-radius: 2px;
}

/* Gauges */
.wind-gauge, .pressure-gauge {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    position: relative;
}

.gauge-circle {
    width: 120px;
    height: 120px;
    border: 10px solid #301934;
    border-radius: 50%;
    position: relative;
    background: #301934;
}

.wind-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 40px;
    background: orange;
    transform-origin: bottom center;
    transform: translate(-50%, -100%) rotate(0deg);
}

.wind-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

.wind-value #wind-speed { font-size: 1.2rem; font-weight: bold; }
.wind-value .unit { font-size: 0.6rem; display: block; }

.compass-labels span {
    position: absolute;
    font-size: 0.7rem;
    color: #fff;
}

.compass-labels span:nth-child(1) { top: 5px; left: 50%; transform: translateX(-50%); }
.compass-labels span:nth-child(2) { right: 5px; top: 50%; transform: translateY(-50%); }
.compass-labels span:nth-child(3) { bottom: 5px; left: 50%; transform: translateX(-50%); }
.compass-labels span:nth-child(4) { left: 5px; top: 50%; transform: translateY(-50%); }

/* Pressure Gauge */
.gauge-half-circle {
    width: 140px;
    height: 70px;
    border: 10px solid #eee;
    border-bottom: none;
    border-top-left-radius: 70px;
    border-top-right-radius: 70px;
    position: relative;
    overflow: hidden;
}

.pressure-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 50px;
    background: purple;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-45deg);
}

.pressure-value {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

/* Atmosphere */
.atmos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
    margin-top: 20px;
}

.atmos-item label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.atmos-item .val {
    font-size: 2rem;
    font-weight: bold;
}

.val.purple { color: #6f42c1; }
.val.orange { color: #fd7e14; }
.val.yellow { color: #ffc107; }

/* Map */
.map-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.map-container img {
    width: 100%;
    display: block;
}

.location-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
}

.temp-marker {
    background: #000;
    color: #fff;
    padding: 2px 8px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
}

.location-marker .label {
    display: block;
    font-size: 0.6rem;
    color: #000;
    font-weight: bold;
}

/* Additional Info */
.additional-info {
    background: #eee;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

.additional-info h3 { font-size: 0.9rem; margin-bottom: 10px; }
.additional-info p { font-size: 0.8rem; color: var(--text-muted); }

/* Footer */
footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
}

.footer-left h4 { font-size: 0.9rem; margin: 5px 0 15px; }
.footer-images { display: flex; gap: 10px; }
.footer-images img { width: 120px; border-radius: 5px; }

.footer-middle ul { list-style: none; font-size: 0.8rem; margin: 10px 0; }
.pic-info { font-size: 0.8rem; font-weight: bold; }

.footer-right { text-align: right; }
.footer-right .logo { width: 60px; margin-bottom: 10px; }
.location-details { font-size: 0.75rem; }

@media (max-width: 768px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
