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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2d3436;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 500px;
    margin: 0 auto;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    margin-bottom: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
}

.tagline {
    color: #636e72;
    font-size: 1.1rem;
}

/* Time selector */
.time-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.time-btn {
    background: white;
    border: 2px solid #dee2e6;
    color: #2d3436;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.time-btn:hover {
    border-color: #4a90e2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.time-btn.active {
    background: #4a90e2;
    border-color: #4a90e2;
    color: white;
}

/* Weather indicator */
.weather-indicator {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 15;
}

.progress-ring-fill {
    fill: none;
    stroke-width: 15;
    stroke-linecap: round;
    transition: all 1s ease-out;
    stroke-dasharray: 534.07;
    stroke-dashoffset: 534.07;
}

/* Kolory dla różnych poziomów */
.progress-low { stroke: #51cf66; }
.progress-medium { stroke: #ffd43b; }
.progress-high { stroke: #ff6b6b; }
.progress-extreme { stroke: #c92a2a; }

.weather-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 200px;
}

.weather-icon {
    font-size: 3.5rem;
    margin-bottom: 10px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
}

.percentage {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 5px;
}

.weather-status {
    font-size: 1rem;
    color: #636e72;
    line-height: 1.3;
}

/* Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #e9ecef;
    border-top-color: #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Weather details */
.weather-details {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.weather-details.visible {
    display: block;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.detail-item {
    text-align: center;
}

.detail-label {
    color: #868e96;
    font-size: 0.85rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3436;
}

/* Cross-check */
.cross-check {
    margin-bottom: 30px;
    display: none;
}

.cross-check.visible {
    display: block;
}

.cross-check h3 {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 15px;
    color: #636e72;
    font-weight: 400;
}

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

.source-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.source-card.agree {
    border-color: #51cf66;
    background: #f3f9f4;
}

.source-card.disagree {
    border-color: #ff6b6b;
    background: #fff5f5;
}

.source-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #2d3436;
    font-size: 0.9rem;
}

.source-status {
    font-size: 0.85rem;
    color: #868e96;
}

.source-percentage {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 5px;
    color: #2d3436;
}

/* Location info */
.location-info {
    text-align: center;
    color: #636e72;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: none;
}

.location-info.visible {
    display: block;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
}

.joke {
    font-style: italic;
    color: #636e72;
    margin-bottom: 10px;
    min-height: 24px;
}

.credits {
    font-size: 0.85rem;
    color: #adb5bd;
}

/* Przycisk zgłaszania deszczu */
.report-rain {
    text-align: center;
    margin: 20px 0;
}

.report-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.report-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.report-btn:active {
    transform: translateY(0);
}

/* Przycisk odświeżenia lokalizacji */
.location-refresh {
    text-align: center;
    margin-top: 20px;
}

.refresh-btn {
    background: transparent;
    border: 2px solid #dee2e6;
    color: #636e72;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    border-color: #4a90e2;
    color: #4a90e2;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 480px) {
    .weather-indicator {
        width: 240px;
        height: 240px;
    }
    
    .weather-content {
        width: 160px;
    }
    
    .weather-icon {
        font-size: 3rem;
    }
    
    .percentage {
        font-size: 2rem;
    }
    
    .weather-status {
        font-size: 0.9rem;
    }
    
    .time-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}