/* Wetterstation CSS - Modernes Design */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
    
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Header */
.weather-header {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.weather-header .navbar {
    padding: 1rem 0;
}

.weather-header .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    text-decoration: none;
}

.weather-header .navbar-brand:hover {
    color: rgba(255,255,255,0.9) !important;
}

.weather-header .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.weather-header .nav-link:hover {
    color: white !important;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-time {
    font-size: 0.9rem;
    opacity: 0.8;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    display: inline-block;
    backdrop-filter: blur(10px);
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 400;
}

/* Main Content */
.weather-main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

/* Weather Cards */
.weather-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.weather-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.weather-card-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.weather-station-info h3 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    font-size: 1.3rem;
}

.weather-location {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.weather-time {
    font-size: 0.8rem;
    opacity: 0.8;
}

.weather-card-body {
    padding: 1.5rem;
}

.weather-main-info {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.weather-icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.temperature {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.weather-description {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.weather-detail-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.weather-detail-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.detail-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.1rem;
}

.detail-content {
    flex: 1;
}

.detail-label {
    display: block;
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.detail-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.weather-loading {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--secondary-color);
}

.loading-spinner {
    margin-bottom: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin: 0;
}

/* Archive Section */
.archive-section {
    margin-top: 3rem;
}

.archive-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.archive-card-header {
    background: var(--gradient-secondary);
    color: white;
    padding: 1.5rem;
}

.archive-card-header h3 {
    margin: 0;
    font-weight: 600;
}

.archive-card-body {
    padding: 2rem;
}

.weather-chart {
    height: 300px;
    margin-top: 1rem;
}

/* Footer */
.weather-footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.weather-footer p {
    margin: 0;
    opacity: 0.8;
}

.weather-footer a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.weather-footer a:hover {
    color: white;
}

/* Admin Styles */
.admin-sidebar {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.admin-sidebar .nav-link {
    color: var(--dark-color);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--gradient-primary);
    color: white;
}

.admin-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-card h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Form Elements */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.btn {
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.alert {
    border-radius: var(--border-radius);
    border: none;
}

/* Tables */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table thead th {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .weather-details {
        grid-template-columns: 1fr;
    }
    
    .temperature {
        font-size: 2.5rem;
    }
    
    .weather-card-header,
    .weather-card-body {
        padding: 1rem;
    }
    
    .archive-card-body {
        padding: 1rem;
    }
    
    .weather-chart {
        height: 250px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .weather-main {
        padding: 2rem 0;
    }
    
    .weather-header .navbar-brand {
        font-size: 1.2rem;
    }
    
    .temperature {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Loading Spinner */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Weather Icons */
.weather-icon {
    font-size: 2rem;
}

.weather-icon.sunny { color: #ffc107; }
.weather-icon.cloudy { color: #6c757d; }
.weather-icon.rainy { color: #17a2b8; }
.weather-icon.snowy { color: #6f42c1; }

/* Dark Theme */
.weather-theme-dark {
    background-color: #1a1a1a;
    color: #ffffff;
}

.weather-theme-dark .weather-card,
.weather-theme-dark .admin-card,
.weather-theme-dark .stat-card {
    background: #2d2d2d;
    color: #ffffff;
}

.weather-theme-dark .weather-detail-item {
    background: #3d3d3d;
}

.weather-theme-dark .form-control,
.weather-theme-dark .form-select {
    background: #3d3d3d;
    border-color: #555;
    color: #ffffff;
}

/* Print Styles */
@media print {
    .weather-header,
    .weather-footer,
    .btn {
        display: none !important;
    }
    
    .weather-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Datum und Uhrzeit Anzeige */
.datetime-bar {
    background: transparent;
    color: var(--text-color);
    padding: 0.75rem 0;
    position: relative;
    z-index: 10;
}

.datetime-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-weight: 500;
}

.date-display, .time-display {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--text-color-secondary);
}

.date-display i, .time-display i {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-right: 0.5rem;
    color: var(--text-color-secondary);
}

#current-time {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--text-color);
}

#current-date {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-color-secondary);
}

@media (max-width: 768px) {
    .datetime-content {
        flex-direction: column;
        gap: 0.5rem;
    }
} 

/* Professional refresh */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #059669;
    --info-color: #0891b2;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --light-color: #f8fafc;
    --dark-color: #172033;
    --surface-color: #ffffff;
    --border-color: #dbe3ee;
    --text-color: #172033;
    --text-color-secondary: #64748b;
    --gradient-primary: linear-gradient(135deg, #1d4ed8 0%, #0f766e 100%);
    --gradient-secondary: linear-gradient(135deg, #0f766e 0%, #d97706 100%);
    --gradient-success: linear-gradient(135deg, #059669 0%, #0891b2 100%);
    --gradient-hero: linear-gradient(135deg, #172033 0%, #1d4ed8 58%, #0f766e 100%);
    --shadow-light: 0 1px 2px rgba(15, 23, 42, 0.08);
    --shadow-medium: 0 10px 28px rgba(15, 23, 42, 0.12);
    --shadow-heavy: 0 20px 48px rgba(15, 23, 42, 0.18);
    --border-radius: 8px;
    --border-radius-lg: 8px;
}

body {
    background:
        linear-gradient(180deg, #f8fafc 0%, #eef4f8 44%, #f8fafc 100%);
    color: var(--text-color);
}

.weather-header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 12px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
}

.weather-header .navbar {
    padding: 0.85rem 0;
}

.weather-header .navbar-brand,
.weather-header .nav-link,
.weather-header .navbar-text {
    color: var(--text-color) !important;
}

.weather-header .navbar-brand {
    font-weight: 800;
}

.weather-header .nav-link:hover {
    color: var(--primary-color) !important;
}

.datetime-bar {
    background: #172033;
    color: #fff;
    border-bottom: 3px solid #0f766e;
}

.date-display,
.time-display,
#current-date,
#current-time {
    color: #fff;
}

.weather-main {
    padding: 2.5rem 0;
}

.station-dashboard {
    display: grid;
    gap: 1rem;
    padding: 2rem 0;
}

.dashboard-hero {
    align-items: end;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
}

.dashboard-kicker {
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-hero h1 {
    color: var(--text-color);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1;
    margin: 0.35rem 0;
}

.dashboard-location {
    color: var(--text-color-secondary);
    display: flex;
    gap: 0.4rem;
}

.freshness-badge {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    min-width: 150px;
    padding: 0.5rem 0.9rem;
    text-align: center;
}

.freshness-badge span {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freshness-badge strong {
    color: var(--text-color);
    display: block;
    font-size: 0.92rem;
}

.freshness-live {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.freshness-live span { color: #047857; }
.freshness-delayed { background: #fffbeb; border-color: #fde68a; }
.freshness-delayed span { color: #b45309; }
.freshness-stale,
.freshness-unknown {
    background: #fef2f2;
    border-color: #fecaca;
}
.freshness-stale span,
.freshness-unknown span { color: #b91c1c; }

.dashboard-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.6fr);
}

.current-panel {
    align-content: center;
    background: linear-gradient(160deg, #0f75b8 0%, #48a9dc 58%, #8ec7e4 100%);
    border: none;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    color: #ffffff;
    display: grid;
    justify-items: start;
    min-height: 330px;
    padding: 2rem 2rem 3.7rem;
    position: relative;
    text-align: left;
    overflow: hidden;
}

.current-panel > *:not(.weather-sky) {
    position: relative;
    z-index: 2;
}

.current-reading {
    position: relative;
    z-index: 2;
}

.weather-sky {
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.weather-sky::before {
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.72) 9%, rgba(255, 255, 255, 0.25) 22%, rgba(255, 255, 255, 0) 46%),
        radial-gradient(circle, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 62%);
    border-radius: 50%;
    content: '';
    height: 310px;
    position: absolute;
    right: -48px;
    top: -38px;
    width: 310px;
}

.weather-sky::after {
    background:
        linear-gradient(112deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.28) 48%, rgba(255, 255, 255, 0) 63%),
        linear-gradient(145deg, rgba(255, 255, 255, 0) 8%, rgba(255, 255, 255, 0.16) 46%, rgba(255, 255, 255, 0) 58%);
    content: '';
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

.scene-rain,
.scene-cloud {
    background: linear-gradient(160deg, #35627f 0%, #79a9c6 62%, #b8d4e5 100%);
}

.scene-snow {
    background: linear-gradient(160deg, #5c8fa8 0%, #bde5f6 100%);
}

.scene-hot {
    background: linear-gradient(160deg, #0b73b6 0%, #2d9bd1 50%, #f0b35f 135%);
}

.scene-rain .weather-sky::before,
.scene-cloud .weather-sky::before {
    opacity: 0.35;
}

.scene-snow .weather-sky::before {
    opacity: 0.5;
}

.scene-rain .weather-sky::after {
    background: repeating-linear-gradient(110deg, rgba(255, 255, 255, 0.28) 0 2px, transparent 2px 19px);
    opacity: 0.45;
}

.current-panel .current-freshness {
    align-items: baseline;
    bottom: 1rem;
    display: flex;
    gap: 0.35rem;
    left: 1rem !important;
    min-width: auto;
    position: absolute !important;
    right: auto !important;
    text-align: left;
    width: max-content;
    z-index: 3;
}

.current-freshness span,
.current-freshness strong {
    display: inline;
}

.current-freshness span {
    line-height: 1;
}

.current-icon {
    color: #ffd84d !important;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1;
    opacity: 0.95;
}

.current-value {
    font-size: clamp(3.5rem, 9vw, 6rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.95;
    text-shadow: none;
}

.current-description {
    margin-top: 0.8rem;
}

.current-meta {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    margin-top: 0.7rem;
}

.metric-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-tile {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    min-height: 150px;
    padding: 1.2rem;
}

.metric-tile i {
    color: var(--primary-color);
    font-size: 1.35rem;
}

.metric-tile span,
.summary-strip span {
    color: var(--text-color-secondary);
    display: block;
    font-size: 0.86rem;
    margin-top: 0.65rem;
}

.metric-tile strong {
    color: var(--text-color);
    display: block;
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-top: 0.15rem;
}

.metric-tile small {
    color: var(--text-color-secondary);
    display: block;
    margin-top: 0.3rem;
}

.summary-strip {
    background: #172033;
    border-radius: 8px;
    color: #ffffff;
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
}

.summary-strip div {
    background: rgba(255, 255, 255, 0.06);
    padding: 1rem;
}

.summary-strip span {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 0.25rem;
}

.summary-strip strong {
    color: #ffffff;
    font-size: 1.05rem;
}

.weather-card-lg,
.weather-card,
.archive-card,
.stat-card-modern,
.admin-card,
.admin-sidebar,
.login-container {
    background: var(--surface-color) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    box-shadow: var(--shadow-light) !important;
}

.weather-card-lg,
.weather-card {
    position: relative;
}

.weather-card-lg::before,
.weather-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #0f766e, #d97706);
    border-radius: 8px 8px 0 0;
}

.weather-card:hover,
.stat-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium) !important;
}

.weather-icon-xxl,
.weather-icon-xl {
    animation: none !important;
    margin-bottom: 0.75rem !important;
}

.weather-icon-xxl,
.weather-icon-xxl i {
    font-size: clamp(4rem, 8vw, 5.75rem) !important;
}

.weather-icon-xl,
.weather-icon-xl i {
    font-size: 3.75rem !important;
}

.weather-icon-sunny {
    color: #d97706 !important;
}

.weather-icon-cloudy {
    color: #64748b !important;
}

.weather-icon-rainy {
    color: #2563eb !important;
}

.weather-icon-snowy {
    color: #0891b2 !important;
}

.weather-icon-stormy {
    color: #4338ca !important;
}

.weather-description {
    font-size: 0.95rem !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.weather-description span {
    background: #eef6ff !important;
    border: 1px solid #c8def8 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    padding: 0.35rem 0.8rem !important;
}

.stat-card-modern {
    min-height: 170px !important;
    padding: 1.4rem 1rem !important;
}

.stat-card-modern .stat-icon {
    color: var(--primary-color) !important;
    font-size: 2rem !important;
}

.stat-main-value {
    color: var(--text-color) !important;
    font-size: clamp(1.8rem, 3vw, 2.35rem) !important;
    text-shadow: none !important;
}

.stat-label,
.stat-minmax,
.section-subtitle,
.text-muted {
    color: var(--text-color-secondary) !important;
}

.archive-card {
    padding: 1.25rem;
}

.archive-card h5 {
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.weather-detail-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.weather-detail-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.weather-detail-value {
    color: var(--text-color);
    font-size: 1.35rem;
    font-weight: 700;
}

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

.uv-low { color: #059669; }
.uv-moderate { color: #d97706; }
.uv-high { color: #ea580c; }
.uv-very-high { color: #dc2626; }
.uv-extreme { color: #7c3aed; }

.section-title {
    color: var(--text-color);
    font-size: clamp(1.6rem, 4vw, 2.15rem);
}

.form-control,
.form-select {
    border-color: var(--border-color);
    border-radius: 8px;
}

.btn {
    border-radius: 8px;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.weather-footer {
    background: #172033;
}

@media (max-width: 768px) {
    .weather-header {
        position: sticky;
        top: 0;
    }

    .weather-header .navbar {
        padding: 0.55rem 0;
    }

    .weather-header .navbar-brand {
        font-size: 1.35rem;
        line-height: 1.1;
    }

    .weather-header .navbar-brand i,
    .weather-header .nav-link i {
        font-size: 1rem;
    }

    .weather-header .nav-link {
        font-size: 1rem;
        padding: 0.25rem 0;
    }

    .datetime-bar {
        display: none;
    }

    .weather-main {
        padding: 0.75rem 0 1.5rem;
    }

    .station-dashboard {
        gap: 0.75rem;
        padding: 0;
    }

    .dashboard-hero {
        display: none;
    }

    .dashboard-kicker {
        display: none;
    }

    .dashboard-hero h1 {
        font-size: 1rem;
        margin: 0;
    }

    .dashboard-location {
        font-size: 0.78rem;
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .freshness-badge {
        min-width: 104px;
        padding: 0.35rem 0.6rem;
    }

    .freshness-badge span {
        font-size: 0.62rem;
    }

    .freshness-badge strong {
        font-size: 0.78rem;
    }

    .dashboard-grid {
        gap: 0.75rem;
        grid-template-columns: 1fr;
        order: 1;
    }

    .current-panel {
        align-content: start;
        min-height: 205px;
        padding: 1rem 1rem 3.25rem;
    }

    .current-reading {
        max-width: 100%;
    }

    .current-icon {
        font-size: 2.6rem;
    }

    .current-value {
        font-size: clamp(3.1rem, 15vw, 4.25rem);
    }

    .current-description {
        margin-top: 0.35rem;
    }

    .current-meta {
        display: none;
    }

    .current-panel .current-freshness {
        align-items: baseline;
        bottom: 0.85rem !important;
        left: 0.85rem !important;
        min-width: auto;
        gap: 0.35rem;
        padding: 0.28rem 0.6rem;
        position: absolute !important;
        right: auto !important;
    }

    .current-freshness span {
        display: inline;
        font-size: 0.54rem;
        letter-spacing: 0.04em;
        line-height: 1;
        margin-right: 0;
    }

    .current-freshness strong {
        display: inline;
        font-size: 0.62rem;
        line-height: 1;
        white-space: nowrap;
    }

    .metric-grid {
        gap: 0.75rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-tile {
        min-height: 118px;
        padding: 0.85rem;
    }

    .metric-tile i {
        font-size: 1.05rem;
    }

    .metric-tile span {
        font-size: 0.75rem;
        margin-top: 0.45rem;
    }

    .metric-tile strong {
        font-size: clamp(1.25rem, 6vw, 1.55rem);
    }

    .metric-tile small {
        font-size: 0.75rem;
    }

    .summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        order: 3;
    }

    .summary-strip div {
        padding: 0.75rem;
    }

    .summary-strip span {
        font-size: 0.75rem;
    }

    .summary-strip strong {
        font-size: 0.95rem;
    }

    .single-station-section,
    .multi-station-section {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    .weather-card-lg,
    .weather-card,
    .archive-card {
        padding: 1rem !important;
    }

    .archive-section {
        margin-top: 1.5rem;
    }

    .section-header {
        margin-bottom: 1.2rem;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    #archiveRange {
        font-size: 1rem;
        padding: 0.7rem 0.9rem;
    }
}
