* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #000;
    background: linear-gradient(135deg, #0c1420 0%, #1a2332 50%, #0f1419 100%);
    color: #e2e8f0;
    min-height: 100vh;
    line-height: 1.6;
    width: 100vw;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 0 24px 0;
    border-bottom: 2px solid #1e293b;
    position: relative;
}

.location-buttons {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: flex-start;
    position: relative;
}

.status-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.centrala-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.status-dot.online {
    background-color: #32e90d;
    box-shadow: 0 0 8px rgba(91, 230, 96, 0.5);
}

.status-dot.offline {
    background-color: #ff0000;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

.status-text {
    font-size: 12px;
    color: #a0aec0;
    font-weight: 500;
    white-space: nowrap;
}

.centrala-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.centrala-name {
    font-size: 19px;
    font-weight: 500;
    color: inherit;
}

.centrala-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.centrala-home-icon {
    font-size: 16px;
    opacity: 0.7;
}

/* Centrala button positioning for desktop */
@media (min-width: 1200px) {
    .centrala-btn {
        position: absolute;
        right: 0;
        margin-left: auto;
    }
}

.location-btn {
    padding: 17px 20px;
    font-size: 16px;
    font-weight: 500;
    background: linear-gradient(145deg, #1e293b 0%, #334155 100%);
    color: #94a3b8;
    border: 2px solid #1e293b;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 140px;
}

.location-btn:hover {
    background: linear-gradient(145deg, #334155 0%, #475569 100%);
    color: #3b82f6;
    border-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.2);
}

.location-btn.active {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1e3a8a 100%);
    color: #f8fafc;
    border-color: #1e40af;
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.city-name {
    font-size: 19px;
    font-weight: 500;
}

.city-details {
    display: flex;
    gap: 12px;
    font-size: 15px;
    opacity: 0.7;
    font-weight: 400;
}

.city-temp {
    color: #ff6b35;
    text-shadow: 0 0 4px rgba(255, 107, 53, 0.3);
}

.city-elevation {
    color: #94a3b8;
}

.location-btn:hover .city-temp {
    color: #ffd700;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

.location-btn.active .city-temp {
    display: none;
}

.location-btn.active .city-elevation {
    color: #e2e8f0;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.primary-section {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 25px;
    align-items: start;
}

.temperature-main-block {
    background: linear-gradient(145deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    border-radius: 24px;
    padding: 30px;
    border: 2px solid #0f172a;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), inset 0 1px 2px rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 20px;
    height: 380px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.temperature-main-block:hover {
    border-color: #1e40af;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(30, 64, 175, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.thermometer-integrated {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
}

.temperature-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
}

.temp-left-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
    width: 220px;
}

.temp-display {
    display: flex;
    align-items: flex-start;
}

.temp-value {
    font-size: 65px;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1;
    text-align: left;
    text-shadow: 0 0 15px rgba(226, 232, 240, 0.4), 0 0 30px rgba(226, 232, 240, 0.2);
}

.temp-unit {
    font-size: 36px;
    font-weight: 400;
    color: #e2e8f0;
    margin-top: 0px;
    margin-left: 2px;
}

.weather-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.weather-icon {
    width: 32px;
    height: 32px;
}

.weather-desc {
    font-size: 16px;
    font-weight: 500;
    color: #a0aec0;
}

.feels-like-temp {
    font-size: 14px;
    color: #3b82f6;
    margin-top: 8px;
    text-align: center;
    text-shadow: 0 0 6px rgba(59, 130, 246, 0.3);
}

.temp-statistics {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
    border-top: 1px solid #4a5568;
    align-items: left;
}

.temp-stat-row {
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: baseline;
    width: 100%;
    max-width: 180px;
}

.temp-stat-row .stat-label {
    text-align: right;
}

.temp-stat-row .stat-value {
    text-align: left;
    margin-left: 15px;
    white-space: nowrap;
    display: flex;
    gap: 15px;
}

.temp-stat-row .stat-value .stat-max,
.temp-stat-row .stat-value .stat-min {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 57px;
}

.temp-stat-row .stat-value .stat-min {
    margin-left: 0;
}

.stat-time {
    font-size: 10px;
    color: #e0e0e0;
    margin-top: 0px;
    font-weight: 400;
}

.temp-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
}

.temp-stat .stat-label, .temp-stat-row .stat-label {
    font-size: 13px;
    color: #a0aec0;
    text-transform: uppercase;
    font-weight: 500;
}

.temp-stat .stat-value {
    font-size: 14px;
    font-weight: 600;
}

.temp-stat .stat-value .stat-max {
    color: #ff0000;
}

.temp-stat .stat-value .stat-min {
    color: #00BFFF;
    text-shadow: 0 0 6px rgba(59, 130, 246, 0.3);
}

.location-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
}

.location-display .location-name {
    font-size: 20px;
    font-weight: 600;
    color: #3b82f6;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.location-display .update-time {
    font-size: 13px;
    color: #a0aec0;
}

.temperature-graph {
    flex: 1 1 auto;
    min-width: 0;
    height: 320px;
    background: linear-gradient(145deg, #0c1420 0%, #1a202c 100%);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #0f172a;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: -10px;
}

.temp-graph-controls {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.temp-time-btn {
    background: linear-gradient(145deg, #334155 0%, #475569 100%);
    border: 1px solid #475569;
    color: #94a3b8;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.temp-time-btn:hover {
    background: linear-gradient(145deg, #334155 0%, #475569 100%);
    color: #3b82f6;
    border-color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

.temp-time-btn.active {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1e3a8a 100%);
    color: #f8fafc;
    border-color: #1e40af;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

#tempGraph {
    width: 100%;
    height: 290px;
    margin-top: 10px;
    position: relative;
    z-index: 2;
    display: block;
}

.side-widgets {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 220px;
}

.camera-preview {
    background: linear-gradient(145deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    border-radius: 16px;
    padding: 15px;
    border: 2px solid #0f172a;
    height: 180px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.camera-preview:hover {
    border-color: #1e40af;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 30px rgba(30, 64, 175, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.camera-header {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.camera-selector {
    display: flex;
    gap: 2px;
    justify-content: center;
    width: 100%;
}

.camera-selector.single-camera {
    display: none;
}

.camera-timestamp {
    font-size: 10px;
    color: #a0aec0;
    text-align: center;
    font-weight: 400;
    margin-top: 4px;
}

.cam-btn {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid #0c1420;
    color: #94a3b8;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.cam-btn:hover {
    color: #3b82f6;
    border-color: #1e40af;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.cam-btn.active {
    background: linear-gradient(145deg, #1e40af 0%, #3b82f6 100%);
    color: #f8fafc;
    border-color: #1e40af;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.camera-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: var(--camera-aspect-ratio, 16/9);
    background: linear-gradient(145deg, #0c1420 0%, #1a202c 100%);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

.camera-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.camera-slide.active {
    opacity: 1;
}

.camera-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cam-label {
    font-size: 10px;
    color: #a0aec0;
    text-transform: uppercase;
}

.camera-loader {
    display: inline-block;
    width: 40px;
    height: 40px;
    position: relative;
}

.camera-loader:after {
    content: "";
    display: block;
    width: 32px;
    height: 32px;
    margin: 4px;
    border-radius: 50%;
    border: 3px solid rgba(160, 174, 192, 0.2);
    border-color: #a0aec0 transparent #a0aec0 transparent;
    animation: camera-spin 0.8s linear infinite;
}

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

.sun-widget {
    background: linear-gradient(145deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    border-radius: 16px;
    padding: 15px;
    border: 2px solid #0f172a;
    height: 180px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.sun-widget:hover {
    border-color: #1e40af;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 30px rgba(30, 64, 175, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.sun-arc-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.daylight-duration {
    position: absolute;
    top: 5px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.daylight-text {
    font-size: 11px;
    font-weight: 600;
    color: #FFB700;
    text-shadow: 0 0 8px rgba(255, 183, 0, 0.3);
}


.sun-arc {
    width: 100%;
    height: auto;
}

.sun-times-compact {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
}

.sun-time-label {
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
    text-shadow: 0 0 6px rgba(59, 130, 246, 0.3);
}

.thermo-scale {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 295px;
    font-size: 11px;
    color: #a0aec0;
    font-weight: 500;
}

.thermo-tube {
    width: 24px;
    height: 295px;
    background: linear-gradient(180deg, #0c1420 0%, #1a202c 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 2px solid #0f172a;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.4);
}

.thermo-mercury {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #FF3D00, #FF6B35, #FFB700);
    border-radius: 0 0 10px 10px;
    transition: height 0.5s ease;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.metric-card {
    background: linear-gradient(145deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    border-radius: 16px;
    padding: 15px 15px 25px 15px;
    border: 2px solid #0f172a;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.05);
    height: 311px;
    display: flex;
    flex-direction: column;
}

.metric-card:hover {
    border-color: #1e40af;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 30px rgba(30, 64, 175, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.metric-card h3 {
    font-size: 14px;
    font-weight: 500;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.metric-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.metric-value .value {
    font-size: 48px;
    font-weight: 700;
    color: #3b82f6;
    text-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.metric-card:nth-child(2) .metric-value .value,
.metric-card:nth-child(2) .metric-value .unit {
    color: #4A90E2;
    text-shadow: 0 0 12px rgba(74, 144, 226, 0.4);
}

/* Špecifické pre vlhkosť - rovnaká veľkosť ako UV */
.value.humidity {
    font-size: 48px !important;
}

.pressure-stats .metric-value .value,
.pressure-stats .metric-value .unit {
    color: #FF6B35;
}

.metric-value .unit {
    font-size: 18px;
    color: #a0aec0;
}

.humidity.value + .unit {
    color: #4A90E2;
    text-shadow: 0 0 12px rgba(74, 144, 226, 0.4);
}

.metric-direction {
    font-size: 16px;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.wind-chart {
    width: 100%;
    height: 60px;
    margin-top: 10px;
}

.uv-gauge {
    text-align: center;
}

.uv-value {
    font-size: 48px;
    font-weight: 700;
    color: #3b82f6;
    text-shadow: 0 0 16px rgba(59, 130, 246, 0.5);
}

.uv-label {
    font-size: 14px;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.uv-bar {
    width: 200px;
    height: 8px;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0 auto 4px auto;
}

.uv-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFB700, #FF6B35, #FF3D00);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.sun-times {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sun-time {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sun-time svg {
    width: 24px;
    height: 24px;
}

.sun-time span {
    font-size: 16px;
    color: #e0e0e0;
}

.humidity-bar {
    width: 200px;
    height: 8px;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0 auto;
}

.humidity-fill {
    height: 100%;
    background: linear-gradient(90deg, #4A90E2, #6BA6E6);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.visibility-status,
.feels-like-desc,
.pressure-trend {
    font-size: 14px;
    color: #a0aec0;
    margin-top: 5px;
    text-align: center;
}

.wind-card .wind-compass {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.compass-circle {
    position: relative;
    width: 120px;
    height: 120px;
    border: 3px solid #0f172a;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #1e293b 0%, #0f172a 70%, #0c1420 100%);
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.8), 0 4px 8px rgba(0, 0, 0, 0.4);
}

.compass-n, .compass-e, .compass-s, .compass-w {
    position: absolute;
    font-size: 14px;
    font-weight: 600;
    color: #a0aec0;
}

.compass-n {
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.compass-s {
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.compass-e {
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.compass-w {
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.compass-arrow {
    width: 2px;
    height: 60px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 12px solid #FF6B35;
    position: absolute;
    top: 23%;
    left: 50%;
    transform-origin: bottom;
    transform: translate(-50%, -50%) rotate(225deg);
    transition: transform 0.5s ease;
    filter: drop-shadow(0 0 3px rgba(255, 107, 53, 0.4));
    z-index: 1;
}

.compass-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: radial-gradient(circle, #0f172a 0%, #0c1420 100%);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #0c1420;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
}

.wind-speed {
    font-size: 16px;
    font-weight: 700;
    color: #00FFFF;
    line-height: 1;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.wind-unit {
    font-size: 9px;
    color: #a0aec0;
    line-height: 1;
    margin-top: 2px;
}

.wind-direction {
    text-align: center;
    font-size: 14px;
    color: #a0aec0;
    margin-top: 10px;
}

.pressure-compass {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}

.barometer-circle {
    margin-top: 7px;
    position: relative;
    width: 120px;
    height: 120px;
    border: 3px solid #0f172a;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #1e293b 0%, #0f172a 70%, #0c1420 100%);
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.8), 0 4px 8px rgba(0, 0, 0, 0.4);
}

.pressure-needle {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 57px solid #FF6B35;
    position: absolute;
    top: 65%;
    left: 50%;
    transform-origin: top center;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: transform 0.5s ease;
    z-index: 10;
    margin-top: 15px;
    clip-path: polygon(0% 50%, 100% 50%, 100% 100%, 0% 100%);
}

.pressure-scale {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
}

.pressure-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.pressure-value {
    font-size: 16px;
    font-weight: 700;
    color: #00FFFF;
    line-height: 1;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.pressure-unit {
    font-size: 9px;
    color: #a0aec0;
    line-height: 1;
    margin-top: 2px;
}

.pressure-range {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    font-size: 11px;
}

.pressure-year-range {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    font-size: 11px;
    margin-top: 4px;
}

.pressure-stat-row {
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: baseline;
    width: 100%;
    max-width: 270px;
}

.pressure-stat-row .range-label {
    text-align: right;
}

.pressure-stat-row .stat-values {
    text-align: left;
    margin-left: 15px;
    white-space: nowrap;
    display: flex;
    gap: 10px;
}

.pressure-stat-row .stat-values .stat-max,
.pressure-stat-row .stat-values .stat-min {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 77px;
}

.pressure-stat-row .stat-values .stat-min {
    margin-left: 0;
}

.range-label {
    font-size: 13px;
    color: #a0aec0;
    font-weight: 500;
    text-transform: uppercase;
}

.stat-max {
    color: #ff0000;
    font-size: 14px;
    font-weight: 600;
}

.stat-min {
    color: #00BFFF;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 0 4px rgba(59, 130, 246, 0.3);
}

.precipitation-section {
    background: linear-gradient(145deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    border-radius: 24px;
    padding: 10px 20px 20px 20px;
    border: 2px solid #0f172a;
    margin-bottom: 40px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.precipitation-section:hover {
    border-color: #1e40af;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(30, 64, 175, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.precipitation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.precipitation-header h2 {
    font-size: 14px;
    font-weight: 500;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.precipitation-totals {
    display: flex;
    gap: 30px;
}

.total-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.total-label {
    font-size: 10px;
    color: #a0aec0;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.total-value {
    font-size: 14px;
    font-weight: 600;
    color: #4A90E2;
}

.precipitation-chart-container {
    width: 100%;
    height: 250px;
    background: linear-gradient(145deg, #0c1420 0%, #1a202c 100%);
    border-radius: 12px;
    padding: 30px 10px 10px 10px;
    border: 1px solid #0f172a;
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.8);
    position: relative;
}

.precip-graph-controls {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.precip-time-btn {
    background: linear-gradient(145deg, #334155 0%, #475569 100%);
    border: 1px solid #475569;
    color: #94a3b8;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.precip-time-btn:hover {
    background: linear-gradient(145deg, #334155 0%, #475569 100%);
    color: #3b82f6;
    border-color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

.precip-time-btn.active {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1e3a8a 100%);
    color: #f8fafc;
    border-color: #1e40af;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

#precipitationChart {
    width: 100%;
    height: 100%;
}

.humidity-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.humidity-statistics {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    margin-bottom: 10px;
}

.humidity-stat-row {
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: baseline;
    width: 100%;
    max-width: 180px;
}

.humidity-stat-row .stat-label {
    text-align: right;
    font-size: 13px;
    color: #a0aec0;
    text-transform: uppercase;
    font-weight: 500;
}

.humidity-stat-row .stat-value {
    text-align: left;
    margin-left: 15px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    gap: 15px;
}

.humidity-stat-row .stat-value .stat-max,
.humidity-stat-row .stat-value .stat-min {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 50px;
}

.humidity-stat-row .stat-value .stat-max {
    color: #ff0000;
}

.humidity-stat-row .stat-value .stat-min {
    color: #00BFFF;
    text-shadow: 0 0 6px rgba(59, 130, 246, 0.3);
    margin-left: 0;
}

.dew-point {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dew-label {
    font-size: 14px;
    color: #a0aec0;
    text-transform: uppercase;
    font-weight: 500;
    text-shadow: 0 0 6px rgba(160, 174, 192, 0.3);
}

.dew-value {
    font-size: 48px;
    color: #FFFAFA;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(255, 250, 250, 0.4);
}

.uv-split {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
}

.uv-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.uv-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.uv-info {
    text-align: center;
}

.uv-bar {
    width: 200px;
    height: 8px;
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}

.uv-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #FFB700, #FF6B35, #FF3D00);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.uv-extra {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.uv-metric {
    display: flex;
    align-items: center;
    gap: 8px;
}

.extra-value {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
    line-height: 1;
}

.extra-unit {
    font-size: 11px;
    color: #a0aec0;
    text-transform: uppercase;
}

.lux-container {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.lux-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 4px;
    gap: 1px;
}

.lux-stat-row {
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: baseline;
    width: 100%;
    max-width: 180px;
}

.lux-stat-row .stat-label {
    text-align: right;
    font-size: 13px;
    color: #a0aec0;
    text-transform: uppercase;
    font-weight: 500;
}

.lux-stat-row .stat-value {
    text-align: left;
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.lux-max {
    font-size: 14px;
    color: #ff0000;
    font-weight: 600;
    line-height: 1.5;
}

.lux-time {
    font-size: 10px;
    color: #e0e0e0;
    font-weight: 400;
    opacity: 1;
    line-height: 1;
}

.wind-extra {
    text-align: center;
    margin-top: 8px;
}

.wind-gust {
    font-size: 12px;
    color: #a0aec0;
}

.forecast-section {
    background: linear-gradient(145deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    border-radius: 24px;
    padding: 30px;
    border: 2px solid #0f172a;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.forecast-section:hover {
    border-color: #1e40af;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(30, 64, 175, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.forecast-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.forecast-day {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 50%, #0c1420 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px solid #0c1420;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.03);
}

.forecast-day:hover {
    border-color: #1e40af;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(30, 64, 175, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.03);
}

.day-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #a0aec0;
    margin-bottom: 12px;
}

.day-temps {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.temp-high {
    font-size: 20px;
    font-weight: 700;
    color: #ff0000;
}

.temp-low {
    font-size: 20px;
    font-weight: 400;
    color: #a0aec0;
}

.day-chart {
    width: 100%;
    height: 40px;
    margin-top: 10px;
}

/* Mobile side widgets - hidden by default */
.mobile-side-widget {
    display: none;
}

@media (max-width: 1400px) {
    .primary-section {
        grid-template-columns: 1fr;
        max-width: none;
        margin: 0;
        width: 100%;
    }
    
    .temperature-main-block {
        max-width: none;
        width: 100%;
    }
    
    .temperature-graph {
        flex: 1;
        overflow-x: auto;
    }
    
    #tempGraph {
        width: 100%;
        min-width: 100%;
    }
    
    /* Hide original side widgets */
    .side-widgets {
        display: none;
    }
    
    /* Show mobile side widgets as metric cards */
    .mobile-side-widget {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: linear-gradient(145deg, #1e293b 0%, #334155 50%, #1e293b 100%);
        border-radius: 16px;
        padding: 25px;
        border: 2px solid #0f172a;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.05);
    }
    
    .mobile-side-widget {
        height: 311px !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .mobile-side-widget.camera-preview {
        height: 311px !important;
    }

    .mobile-side-widget .camera-timestamp {
        font-size: 16px !important;
    }
    
    .mobile-side-widget.sun-widget {
        height: 311px !important;
    }
    
    /* Mobile camera widget s viac slidmi */
    .mobile-side-widget.camera-preview.multi-camera {
        height: 311px !important;
    }
    
    .mobile-side-widget .camera-slideshow.multi-camera {
        display: flex;
        flex-direction: column;
        gap: 8px;
        height: auto;
        background: none;
        box-shadow: none;
    }
    
    .mobile-side-widget .camera-slideshow.multi-camera .camera-slide {
        position: relative;
        opacity: 1;
        aspect-ratio: 16/9;
        background: linear-gradient(145deg, #0c1420 0%, #1a202c 100%);
        border-radius: 8px;
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
        margin-bottom: 0;
    }
    
    /* Úprava textov len pre mobile sun widget */
    .mobile-side-widget.sun-widget .countdown-timer {
        top: 125px !important;
    }
    
    .mobile-side-widget.sun-widget .sun-times-compact {
        margin-left: 0px !important;
        justify-content: center !important;
        gap: 120px;
        top: 165px;
    }
    
    .mobile-side-widget.sun-widget .daylight-duration {
        margin-top: 25px !important;
    }
    
    /* Mobile sun widget - špecifický layout pre mobile verziu */
    .mobile-side-widget.sun-widget .sun-arc-container {
        position: relative;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
    }
    
    .mobile-side-widget.sun-widget .sun-arc {
        width: 160px;
        height: 80px;
    }
    
    .mobile-side-widget:hover {
        border-color: #1e40af;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 30px rgba(30, 64, 175, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.05);
    }
}

@media (max-width: 1200px) {
    .location-btn {
        padding: 24px 20px;
    }
    
    .centrala-btn {
        padding: 24px 20px;
    }
}

@media (min-width: 1401px) {
    /* Hide mobile side widgets on desktop */
    .mobile-side-widget {
        display: none !important;
    }
    
    /* Reset desktop primary section width */
    .primary-section {
        grid-template-columns: 1fr 220px !important;
        max-width: none !important;
        margin: 0 !important;
        width: auto !important;
    }
    
    .temperature-main-block {
        max-width: none !important;
        width: auto !important;
    }
}

@media (max-width: 768px) {
    .temperature-graph {
        height: 300px;
    }
    
    #tempGraph {
        height: 300px !important;
    }
}

/* Last Measurement Badge positioned on header border */
.last-measurement-badge {
    position: absolute;
    left: 50%;
    top: calc(100% - 0px); /* position on the border line */
    transform: translateX(-50%) translateY(-50%);
    z-index: 100;
}

.badge-content {
    background: #0c1420;
    color: white;
    padding: 2px 12px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 2px solid #1e293b;
    white-space: nowrap;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #32e90d;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: #32e90d;
    border-radius: 50%;
    opacity: 0;
    animation: wave 2s infinite;
}

/* Offline state for pulse dot */
.pulse-dot.offline {
    background: #ff0000;
}

.pulse-dot.offline::before {
    background: #ff0000;
}

.badge-text {
    font-weight: 600;
    opacity: 0.9;
}

.badge-time {
    font-weight: 400;
    color: #e0f2fe;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes wave {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .badge-content {
        padding: 5px 10px;
        font-size: 12px;
        gap: 4px;
        border-radius: 16px;
    }
    
    .pulse-dot {
        width: 6px;
        height: 6px;
    }
}




