/* RESET STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
:root {
    --bg_main: #22A699;
    --text_light: #fff;
    --text_med: #53627c;
    --text_dark: #1e2432;
    --red: #F24C3D;
    --darkred: #F29727;
    --orange: #F2BE22;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: normal;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  button {
    cursor: pointer;
  }
   
  input {
    -webkit-appearance: none;
  }
   
  button,
  input {
    border: none;
    background: none;
    outline: none;
    color: inherit;
  }

  /* ========================================
     OPTYMALIZACJE WYDAJNOŚCI PRZEWIJANIA
     ======================================== */

  /* Smooth scrolling z native CSS */
  html {
    scroll-behavior: smooth;
  }

  /* Font smoothing dla body (bez transform - psuje position: fixed dla popup) */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Optymalizacja dla wszystkich elementów z backdrop-filter */
  [style*="backdrop-filter"],
  .top-banner form input,
  .top-banner form button,
  .weather-refresh-btn,
  .notifications-status {
    transform: translateZ(0);
    will-change: transform;
  }

  /* CSS Containment - WYŁĄCZONE bo powoduje ucinanie ::after (efekt stosu)
  .ajax-section .cities li {
    contain: layout style;
    content-visibility: auto;
  }
  */


  img {
    display: block;
    max-width: 100%;
    height: auto;
  }
  
  ul {
    list-style: none;
  }
  
  body {
    font: 1rem/1.3 "Roboto", sans-serif;
    background: var(--bg_main);
    color: var(--text_dark);
    padding: 70px;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  
  /* SECTION #1 - TOP BANNER
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  .top-banner {
    color: var(--text_light);
    padding: 0 0 0px 0;
    text-align: center;
  }

  .banner-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
  }

  .app-icon {
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.15);
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.2);
  }

  .heading {
    font-weight: bold;
    font-size: 4rem;
    letter-spacing: 0.02em;
    padding: 0;
  }

  .top-banner form {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
  }

  .top-banner form input {
    font-size: 1.2rem;
    flex: 1;
    max-width: 450px;
    padding: 18px 25px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
  }

  .top-banner form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
  }

  .top-banner form input:focus {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.5);
  }

  .top-banner form button {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 18px 35px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--red), var(--darkred));
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(242, 76, 61, 0.3);
    color: white;
    white-space: nowrap;
  }

  .top-banner form button:hover {
    background: linear-gradient(135deg, var(--darkred), var(--orange));
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(242, 76, 61, 0.4);
  }

  .top-banner form button:active {
    transform: translateY(-1px);
  }

  .button-icon {
    font-size: 1.3rem;
    font-weight: bold;
  }

  .top-banner form .msg {
    position: absolute;
    bottom: -40px;
    left: 0;
    max-width: 450px;
    min-height: 40px;
    width: 100%;
    text-align: left;
  }
  
  
  /* SECTION #2
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  .ajax-section {
    margin: 40px 0 20px;
  }
  
  .ajax-section .cities {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: 1fr 2fr; /* 1/3 i 2/3 proporcja */
    grid-template-rows: auto auto 1fr; /* Trzeci wiersz równej wysokości */
    max-width: 1200px;
    margin: 0 auto;
  }

  /* Pierwszy wiersz: Pogoda aktualna (1/3) + Prognoza godzinowa (2/3) */
  .ajax-section .main-weather-box {
    grid-column: 1;
    grid-row: 1;
    min-width: 280px;
  }

  .ajax-section .hourly-forecast-box {
    grid-column: 2;
    grid-row: 1;
    min-width: 500px;
  }

  /* Drugi wiersz: Prognoza 5-dniowa (cała szerokość) */
  .ajax-section .forecast-5day-box {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  /* Trzeci wiersz: Radar (50%) + UV (50%) - równe szerokości */
  .ajax-section .radar-box {
    grid-column: 1 / 2;
    grid-row: 3;
  }

  .ajax-section .uv-box {
    grid-column: 2 / 3;
    grid-row: 3;
  }
  
  .ajax-section .city {
    position: relative;
    padding: 40px 10%;
    border-radius: 20px;
    background: var(--text_light);
    color: var(--text_med);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    overflow: visible; /* Umożliwia widoczność cienia ::after poza boksem */
  }

  /* Small boxes (Radar i UV) - równe rozmiary */
  .ajax-section .small-box {
    min-height: 400px;
    position: relative; /* Ważne dla cienia ::after */
    overflow: visible; /* Umożliwia widoczność cienia ::after poza boksem */
  }

  /* UV box ma normalny padding */
  .ajax-section .small-box.uv-box {
    padding: 40px 10%;
  }
  
  /* Wspólny cień dla boxów - optymalizacja DRY */
.ajax-section .city::after,
.ajax-section .small-box::after {
    content: '';
    width: 90%;
    height: 50px;
    position: absolute;
    bottom: -12px;
    left: 5%;
    z-index: -1;
    opacity: 0.3;
    border-radius: 20px;
    background: var(--text_light);
}

  /* Upewniam się że small-box też ma cień */
  
  .ajax-section figcaption {
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  /* Style nagłówków dla boksów prognozy */
  .hourly-forecast-box .city-name,
  .forecast-5day-box .city-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text_dark);
    text-align: left;
  }

  .hourly-forecast-box .city-name span,
  .forecast-5day-box .city-name span {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text_dark);
  }
  
  .ajax-section .city-temp {
    font-size: 5rem;
    font-weight: bold;
    margin-top: 10px;
    color: var(--text_dark);
  }
  
  .ajax-section .city sup {
    font-size: 0.5em;
  }
  
  .ajax-section .city-name sup {
    padding: 0.2em 0.6em;
    border-radius: 30px;
    color: var(--text_light);
    background: var(--orange);
  }
  
  .ajax-section .city-icon {
    margin-top: 10px;
    width: 100px;
    height: 100px;
  }

  .air-quality {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
  }

  .air-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
  }

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

  .air-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text_dark);
  }

  /* OSTRZEŻENIA METEOROLOGICZNE
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  .weather-warnings {
    margin: 15px 0;
  }

  .warning-item {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .warning-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .warning-header:hover {
    background: rgba(0, 0, 0, 0.08);
  }

  .warning-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    animation: pulse 2s infinite;
  }

  .warning-summary {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text_dark);
  }

  .warning-toggle {
    font-size: 1.2rem;
    color: var(--text_med);
    transition: transform 0.3s ease;
  }

  .warning-item.expanded .warning-toggle {
    transform: rotate(180deg);
  }

  .warning-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 10px;
  }

  .warning-item.expanded .warning-details {
    max-height: 500px;
    padding: 0 10px 10px 10px;
  }

  .warning-details p {
    font-size: 0.9rem;
    color: var(--text_med);
    margin: 5px 0;
    line-height: 1.5;
  }

  .warning-details strong {
    color: var(--text_dark);
    font-weight: 600;
  }

  .warning-level-1 .warning-icon {
    background: #ffeb3b;
    color: #333;
  }

  .warning-level-2 .warning-icon {
    background: #ff9800;
    color: #fff;
  }

  .warning-level-3 .warning-icon {
    background: #f44336;
    color: #fff;
  }

  /* HOURLY FORECAST BOX
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  .hourly-forecast-box {
    padding: 40px 5%;
    min-height: 400px;
  }

  .hourly-forecast-container {
    position: relative;
    width: 100%;
    margin-top: 20px;
    overflow: visible; /* Zmienione z hidden - pozwala na widoczność cienia */
  }

  .hourly-chart-svg {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 140px; /* Zwiększam z 120px do 140px */
    z-index: 1;
    pointer-events: none;
  }

  .hourly-scroll {
    display: flex;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0; /* Usunięto padding-top i margin-bottom (dziwna ramka) */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .hourly-scroll::-webkit-scrollbar {
    height: 8px;
  }

  .hourly-scroll::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
  }

  .hourly-scroll::-webkit-scrollbar-thumb {
    background: var(--bg_main);
    border-radius: 4px;
  }

  .hourly-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--red);
  }

  .hourly-item {
    min-width: 100px; /* Zmniejszam z 120px aby więcej się mieściło */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px; /* Zmniejszam padding na bokach */
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
  }

  /* Godziny nocne - bardziej widoczne ciemniejsze tło */
  .hourly-item.night-time {
    background: rgba(30, 36, 50, 0.25); /* Zwiększono z 0.15 do 0.25 */
  }

  .hourly-item.night-time .hourly-time {
    color: #5a6b8c;
  }

  /* Godziny z deszczem - niebieskie tło */
  .hourly-item.rainy {
    background: rgba(70, 130, 180, 0.25); /* Steel blue z większą nieprzezroczystością */
  }

  /* Gdy pada i jest noc - kombinacja tła */
  .hourly-item.night-time.rainy {
    background: rgba(50, 90, 140, 0.3); /* Ciemniejszy niebieski dla nocy */
  }

  .hourly-item:last-child {
    border-right: none;
  }

  .hourly-time {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text_dark);
    margin-bottom: 2px;
  }

  .hourly-date {
    font-size: 0.75rem;
    color: var(--text_med);
    margin-bottom: 15px;
  }

  .hourly-chart {
    width: 100%;
    height: 140px; /* Zwiększam z 120px do 140px */
    position: relative;
    margin-bottom: 20px; /* Zwiększam z 15px do 20px */
    z-index: 10; /* Wyższy z-index dla całego wykresu */
  }

  .temp-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--bg_main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 15; /* Jeszcze wyższy z-index dla kółek */
    pointer-events: none; /* Kółko nie blokuje interakcji */
  }

  .temp-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text_light);
  }

  .hourly-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
  }

  .detail-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text_dark);
  }

  

  .detail-icon {
    font-size: 1rem;
  }

  .detail-value {
    font-weight: 500;
    min-width: 50px;
    text-align: left;
  }

.detail-row.rain-info {
  background: rgba(34, 166, 153, 0.3); /* Zwiększono z 0.1 do 0.3 dla lepszej widoczności */
  padding: 4px 8px;
  border-radius: 8px;
}

.detail-row.snow-info {
  background: rgba(135, 206, 235, 0.3); /* Jasnoniebieski dla śniegu */
  padding: 4px 8px;
  border-radius: 8px;
}

  .hourly-status {
    font-size: 0.8rem;
    color: var(--text_med);
    text-align: center;
    font-style: italic;
    line-height: 1.3;
    max-width: 100px;
  }

  
  /* UV INDEX BOX
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  .small-box.uv-box {
    overflow: visible; /* Widoczny cień */
    display: flex;
    flex-direction: column;
    min-height: 400px;
    position: relative;
  }

  .box-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0;
    color: var(--text_dark);
    text-align: left;
  }

  .uv-description {
    font-size: 0.9rem;
    color: var(--text_med);
    margin-bottom: 15px;
  }

  .uv-value {
    font-size: 5rem;
    font-weight: bold;
    color: var(--text_dark);
    text-align: left;
    margin: 15px 0;
    line-height: 1;
  }

  .uv-level {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: left;
    margin: 10px 0 20px 0;
    color: var(--text_dark);
  }

  .uv-bar {
    width: 100%;
    height: 30px;
    background: linear-gradient(to right, 
      #299501 0%, 
      #299501 20%, 
      #f7e400 20%, 
      #f7e400 40%, 
      #f85900 40%, 
      #f85900 60%, 
      #d8001d 60%, 
      #d8001d 80%, 
      #6b49c8 80%, 
      #6b49c8 100%);
    border-radius: 15px;
    overflow: visible;
    margin-top: auto;
    position: relative;
  }

  .uv-bar-fill {
    display: none;
  }

  .uv-marker {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--text_light);
    border-radius: 50%;
    top: -5px;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    color: #000;
  }

  /* AI ACTIVITIES BOX
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  .ai-activities-box {
    grid-column: 1 / -1; /* Pełna szerokość jak pollutants-box */
    padding: 40px 10%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
  }

  .ai-description {
    font-size: 0.9rem;
    color: var(--text_med);
    margin-bottom: 25px;
    text-align: left;
  }

  .ai-loading {
    font-size: 1.1rem;
    color: var(--text_med);
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
  }

  .ai-error {
    font-size: 1rem;
    color: #d8001d;
    text-align: center;
    padding: 20px;
    background: rgba(216, 0, 29, 0.1);
    border-radius: 10px;
    margin-top: 20px;
  }

  .ai-error-details {
    font-size: 0.85rem;
    color: var(--text_med);
    margin-top: 10px;
  }

  /* Header z przyciskiem "Zapytaj AI" */
  .ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 20px;
  }

  .ai-header .city-name {
    margin-bottom: 0;
    flex: 1;
  }

  /* Przycisk "Zapytaj AI" */
  .ai-ask-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--red), var(--darkred));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(242, 76, 61, 0.3);
    white-space: nowrap;
  }

  .ai-ask-button:hover {
    background: linear-gradient(135deg, var(--darkred), var(--orange));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 76, 61, 0.4);
  }

  .ai-ask-button:active {
    transform: translateY(-1px);
  }

  .ai-ask-button.ai-refresh {
    background: linear-gradient(135deg, var(--red), var(--darkred));
    box-shadow: 0 4px 15px rgba(242, 76, 61, 0.3);
  }

  .ai-ask-button.ai-refresh:hover {
    background: linear-gradient(135deg, var(--darkred), var(--orange));
    box-shadow: 0 6px 20px rgba(242, 76, 61, 0.4);
  }

  .ai-icon {
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
  }

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

  /* Kontener ładowania */
  .ai-loading-container {
    text-align: center;
    padding: 60px 20px;
  }

  .ai-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

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

  .ai-loading-text {
    font-size: 1.1rem;
    color: var(--text_dark);
    font-weight: 600;
    margin-bottom: 20px;
  }

  .ai-loading-details {
    margin-top: 30px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
  }

  .ai-loading-details p {
    font-size: 0.95rem;
    color: var(--text_med);
    margin: 8px 0;
    animation: fadeIn 0.5s ease-in-out;
  }

  .ai-loading-details p:nth-child(1) {
    animation-delay: 0.2s;
  }

  .ai-loading-details p:nth-child(2) {
    animation-delay: 0.4s;
  }

  .ai-loading-details p:nth-child(3) {
    animation-delay: 0.6s;
  }

  .ai-loading-details p:nth-child(4) {
    animation-delay: 0.8s;
  }

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

  /* Grid layout dla trzech sekcji obok siebie */
  .ai-sections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
  }

  .ai-section {
    display: flex;
    flex-direction: column;
  }

  .ai-section-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text_dark);
    margin-bottom: 15px;
    text-align: left;
    padding-bottom: 12px;
    border-bottom: 3px solid;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .ai-section-good .ai-section-title {
    color: #299501;
    border-bottom-color: rgba(41, 149, 1, 0.3);
  }

  .ai-section-neutral .ai-section-title {
    color: #ff8c00;
    border-bottom-color: rgba(255, 140, 0, 0.3);
  }

  .ai-section-avoid .ai-section-title {
    color: #d8001d;
    border-bottom-color: rgba(216, 0, 29, 0.3);
  }

  .activities-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .activity-item {
    padding: 18px 20px;
    border-radius: 12px;
    border-left: 4px solid;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: default;
  }

  .activity-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .activity-good {
    border-left-color: #50C878;
    background: linear-gradient(90deg, rgba(80, 200, 120, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  }

  .activity-good:hover {
    background: linear-gradient(90deg, rgba(80, 200, 120, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  }

  .activity-avoid {
    border-left-color: #ff6b6b;
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  }

  .activity-avoid:hover {
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  }

  .activity-neutral {
    border-left-color: #ff8c00;
    background: linear-gradient(90deg, rgba(255, 140, 0, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  }

  .activity-neutral:hover {
    background: linear-gradient(90deg, rgba(255, 140, 0, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  }

  .activity-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text_dark);
    margin-bottom: 6px;
    text-align: left;
  }

  .activity-reason {
    font-size: 0.9rem;
    color: var(--text_med);
    text-align: left;
    line-height: 1.5;
  }

  .no-activities {
    font-size: 0.95rem;
    color: var(--text_med);
    text-align: center;
    padding: 30px 20px;
    font-style: italic;
    opacity: 0.7;
  }

  /* Responsive - na mobile i tablet jedna kolumna */
  @media (max-width: 1024px) {
    .ai-sections-grid {
      grid-template-columns: 1fr;
      gap: 25px;
    }

    .ai-section-title {
      font-size: 1.3rem;
    }

    .activity-name {
      font-size: 1.1rem;
    }
  }

  /* Responsive - na mobile przycisk pod tytułem */
  @media (max-width: 768px) {
    .ai-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
    }

    .ai-ask-button {
      width: 100%;
      justify-content: center;
      padding: 14px 24px;
      font-size: 1.05rem;
    }

    .ai-header .city-name {
      width: 100%;
    }
  }

  /* RADAR BOX
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  .small-box.radar-box {
    padding: 0 !important; /* Tylko radar bez paddingu */
    overflow: visible; /* Zmienione z hidden - pozwala na widoczność cienia ::after */
    display: flex;
    flex-direction: column;
  }

  .radar-header {
    padding: 20px 30px;
    background: var(--text_light);
    border-radius: 20px 20px 0 0; /* Zaokrąglone GÓRNE rogi (dopasowane do boxa) */
  }

  .radar-container {
    width: 100%;
    height: 100%;
    min-height: 350px;
    flex: 1;
    margin: 0;
    padding: 0;
    border-radius: 0 0 20px 20px; /* Zaokrąglone dolne rogi */
    overflow: hidden; /* Ukryj ostre rogi iframe */
  }
  
  .radar-container iframe {
    border-radius: 0 0 20px 20px; /* Zaokrąglenie iframe */
  }

  .radar-map {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: none;
    display: block;
  }
  
  
  /* FOOTER
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  .page-footer {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text_light);
    margin-top: 50px;
    padding: 30px 0;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
  }

  .footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }

  .footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
  }

  .footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-size: 1rem;
    animation: rotate 10s linear infinite;
  }

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

  .footer-divider {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
  }

  .footer-version {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .footer-version:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .footer-link-icon {
    font-size: 1rem;
  }
  
  
  /* SECTION #3 - PROGNOZA 5-DNIOWA
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  .forecast-section {
    margin: 0;
    padding: 0;
  }


  .forecast {
    position: relative;
    padding: 40px 5%;
    border-radius: 20px;
    background: var(--text_light);
    color: var(--text_med);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    list-style: none;
  }


  .forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    border-right: 1px solid #e0e0e0;
  }

  .forecast-day:last-child {
    border-right: none;
  }

  .forecast-day strong {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text_dark);
  }

  .forecast-day img {
    width: 60px;
    height: 60px;
    margin: 5px 0;
  }

  .forecast-day span {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text_dark);
    margin: 5px 0;
  }

  .forecast-day em {
    font-size: 0.85rem;
    font-style: normal;
    color: var(--text_med);
    margin-top: 5px;
  }

.temp-day-night {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text_dark);
  margin: 5px 0;
}

.temp-day {
  color: #FF8C00;
  display: flex;
  align-items: center;
  gap: 2px;
}

.temp-night {
  color: #4169E1;
  display: flex;
  align-items: center;
  gap: 2px;
}

.temp-day-night span {
  white-space: nowrap;
}

/* Kontener dla ikon dzień/noc w prognozie 5-dniowej */
.forecast-icons {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 15px;
  margin: 10px 0;
}

/* Pojedyncza ikona z temperaturą */
.icon-with-temp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.icon-with-temp img {
  width: 50px;
  height: 50px;
  margin: 0;
}

.icon-with-temp .temp-day,
.icon-with-temp .temp-night {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0;
}


  /* MQ
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  @media screen and (max-width: 1000px) {
    body {
      padding: 30px;
    }
    
    .ajax-section .cities {
      grid-template-columns: 1fr;
      max-width: 100%; /* Pełna szerokość ekranu na mobile */
    }

    /* Na tablecie/mobile wszystko jedno pod drugim */
    .ajax-section .main-weather-box,
    .ajax-section .hourly-forecast-box,
    .ajax-section .forecast-5day-box,
    .ajax-section .radar-box,
    .ajax-section .uv-box {
      grid-column: 1 / -1;
      grid-row: auto;
      min-width: 0; /* Usuwa min-width na mobile */
    }

    /* Mniejsze itemy godzinowe na mobile */
    .hourly-item {
      min-width: 80px;
      padding: 8px 3px;
    }

    .hourly-time {
      font-size: 0.9rem;
    }

    .hourly-date {
      font-size: 0.7rem;
    }

    .temp-value {
      font-size: 1rem;
    }

    .detail-row {
      font-size: 0.8rem;
    }

    .hourly-status {
      font-size: 0.75rem;
      max-width: 80px;
    }

    .forecast {
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }
  }
  
  @media screen and (max-width: 700px) {
    body {
      padding: 20px;
    }

    .banner-header {
      gap: 10px;
      margin-bottom: 30px;
    }

    .app-icon {
      width: 50px;
      height: 50px;
      font-size: 2rem;
    }

    .heading,
    .ajax-section .city-temp {
      font-size: 2.5rem;
    }
    
    .ajax-section {
      margin-top: 10px;
    }
    
    .top-banner form {
      flex-direction: column;
      align-items: stretch;
      gap: 15px;
    }

    .top-banner form input {
      max-width: 100%;
      font-size: 1rem;
      padding: 15px 20px;
    }

    .top-banner form button {
      width: 100%;
      justify-content: center;
      font-size: 1rem;
      padding: 15px 30px;
    }
    
  
    .top-banner form .msg {
      position: static;
      max-width: none;
      min-height: 0;
      margin-top: 10px;
    }

    /* Jeszcze mniejsze itemy na małych telefonach */
    .hourly-item {
      min-width: 70px;
      padding: 6px 2px;
    }

    .temp-line {
      width: 40px;
      height: 40px;
    }

    .temp-value {
      font-size: 0.9rem;
    }

    .detail-icon {
      font-size: 0.9rem;
    }

    .detail-value {
      font-size: 0.75rem;
      min-width: 40px;
    }

    .forecast {
      grid-template-columns: repeat(2, 1fr);
    }

    /* Footer responsive */
    .page-footer {
      font-size: 0.85rem;
      padding: 20px 0;
    }

    .footer-icon {
      width: 24px;
      height: 24px;
      font-size: 0.9rem;
    }

    .footer-version {
      font-size: 0.8rem;
      padding: 5px 12px;
    }
  }
  
  @media screen and (max-width: 500px) {
    body {
      padding: 15px;
    }

    .banner-header {
      gap: 8px;
    }

    .heading {
      font-size: 2rem;
    }

    .app-icon {
      width: 45px;
      height: 45px;
      font-size: 1.8rem;
    }
    
    .ajax-section .cities {
    grid-gap: 15px; /* Tylko gap - grid-template-columns już dziedziczone */
  }

    /* Bardzo małe itemy na bardzo małych ekranach */
    .hourly-item {
      min-width: 65px;
    }

    .hourly-chart {
      height: 120px; /* Mniejszy wykres na mobile */
    }

    .hourly-chart-svg {
      height: 120px;
    }

    .forecast {
      grid-template-columns: 1fr;
      padding: 30px 5%;
    }

    .forecast-day {
      border-right: none;
      border-bottom: 1px solid #e0e0e0;
      padding: 15px;
    }

    .forecast-day:last-child {
      border-bottom: none;
    }

    /* UV Box - lepsze dopasowanie */
    .uv-value {
      font-size: 4rem;
    }

    .uv-level {
      font-size: 1.5rem;
    }

    .uv-header {
      padding: 15px 20px;
    }

    .uv-content {
      padding: 15px 20px;
    }

    /* Radar - lepsze dopasowanie */
    .radar-container {
      min-height: 300px;
    }

    .radar-header {
      padding: 15px 20px;
    }

    /* Radar bez paddingu na bokach na mobile */
    .small-box.radar-box {
      padding: 0;
    }

    .small-box.radar-box .city {
      padding: 0;
    }

    /* UV box bez paddingu głównego */
    .small-box.uv-box {
      padding: 0;
    }
  }
  
  
  /* API Key banner
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  .api {
    background: #fffbbc;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
  }
  
  .api a {
    text-decoration: underline;
  }
  
  .api a:hover {
    text-decoration: none;
  }/* ============================================================================
   BOX WSZYSTKIE ZANIECZYSZCZENIA - STYLES
   Dodaj ten kod na końcu style.css
   ============================================================================ */

/* Box główny */
.pollutants-box {
  grid-column: 1 / -1; /* Pełna szerokość */
}

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

.pollutants-header .city-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  user-select: none;
}

.expand-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--text_med);
}

/* ============================================================================
   ŚREDNIA AQI (zawsze widoczna)
   ============================================================================ */
.aqi-summary {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px 0;
  align-items: center;
}

/* Kontener główny - flex row dla AQI i wizualizacji */
.aqi-main-container {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

.aqi-main-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.aqi-main-value {
  font-size: 5rem;
  font-weight: bold;
  color: var(--text_dark);
  line-height: 1;
}

.aqi-main-info {
  text-align: center;
}

.aqi-main-level {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text_dark);
  margin-bottom: 5px;
}

.aqi-main-pollutant {
  font-size: 1rem;
  color: var(--text_med);
}

/* ============================================================================
   WIZUALIZACJA CZĄSTEK
   ============================================================================ */
.particles-visualization {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 15px;
  min-width: 280px;
  max-width: 320px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.particles-header {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  text-align: center;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.particles-canvas-container {
  width: 100%;
  height: 220px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#airQualityCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.particles-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.legend-dot {
  border-radius: 50%;
  /* box-shadow: 0 0 8px currentColor; */ /* Usunięte - niepotrzebny cień/błysk */
  flex-shrink: 0;
}

.legend-dot.small {
  width: 8px;
  height: 8px;
}

.legend-dot.large {
  width: 14px;
  height: 14px;
}

.legend-text {
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsywność */
@media (max-width: 768px) {
  .aqi-main-container {
    flex-direction: column;
    gap: 20px;
  }

  .particles-visualization {
    width: 100%;
    max-width: 100%;
  }

  .particles-canvas-container {
    height: 180px;
  }
}

/* Pasek AQI */
.aqi-bar {
  width: 100%;
  max-width: 600px;
  height: 40px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.aqi-bar-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    #50C878 0%,
    #A8E6A1 20%,
    #FFD700 40%,
    #FF8C00 60%,
    #FF4500 80%,
    #8B0000 100%
  );
}

.aqi-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: white;
  border: 3px solid var(--text_dark);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: left 0.3s ease;
}

.aqi-info-link {
  font-size: 0.9rem;
  color: var(--text_med);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: help;
}

/* ============================================================================
   SZCZEGÓŁY ZANIECZYSZCZEŃ (rozwijane)
   ============================================================================ */
.pollutants-details {
  margin-top: 30px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pollutants-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px 0;
}

/* Pojedynczy item - horizontal layout */
.pollutant-item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.pollutant-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Canvas container - kwadratowy po lewej */
.pollutant-mini-canvas-container {
  width: 120px;
  height: 120px;
  min-width: 120px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.pollutant-mini-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Dane po prawej */
.pollutant-data {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  flex-grow: 1;
  min-width: 0;
}

.pollutant-value-large {
  font-size: 2.2rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  line-height: 1;
}

.pollutant-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.pollutant-level {
  font-size: 0.9rem;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pollutant-value-detail {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.pollutant-description {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  line-height: 1.3;
  margin-top: 2px;
}

/* ============================================================================
   RESPONSYWNOŚĆ - MOBILE
   ============================================================================ */

/* Tablet (2 kolumny) */
@media screen and (max-width: 900px) {
  .pollutants-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (1 kolumna) */
@media screen and (max-width: 600px) {
  .pollutants-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .pollutant-item {
    flex-direction: row;
    text-align: left;
    padding: 15px;
  }

  .pollutant-circle {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }

  .pollutant-number {
    font-size: 1.5rem;
  }

  .pollutant-info {
    text-align: left;
    flex: 1;
  }

  .pollutant-name {
    font-size: 1.1rem;
  }

  .pollutant-description {
    font-size: 0.8rem;
  }

  .aqi-main-value {
    font-size: 4rem;
  }

  .aqi-main-level {
    font-size: 1.5rem;
  }

  .aqi-bar {
    height: 30px;
  }
}

/* Bardzo małe ekrany */
@media screen and (max-width: 400px) {
  .aqi-main-value {
    font-size: 3rem;
  }

  .pollutant-circle {
    width: 60px;
    height: 60px;
  }

  .pollutant-number {
    font-size: 1.2rem;
  }
}
/* ============================================================================
   MODAL Z INFORMACJĄ O CAQI - DODAJ DO style.css
   ============================================================================ */

/* Link info - cursor pointer */
.aqi-info-link {
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.aqi-info-link:hover {
  color: var(--text_dark);
}

.aqi-info-link:hover .info-icon {
  transform: scale(1.2);
}

.info-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}

/* Modal overlay */
.aqi-info-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.aqi-info-modal.active {
  opacity: 1;
}

.aqi-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

/* Modal content */
.aqi-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translate(-50%, -45%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

/* Header */
.aqi-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 2px solid #f0f0f0;
}

.aqi-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text_dark);
}

.aqi-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text_med);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.aqi-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  animation: subtle-bounce 0.6s ease;
}

@keyframes subtle-bounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-4px); }
  50% { transform: translateY(-2px); }
  75% { transform: translateY(-3px); }
}

@keyframes lightning {
  0% { opacity: 0; }
  10% { opacity: 1; }
  20% { opacity: 0; }
  30% { opacity: 1; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}

/* Body */
.aqi-modal-body {
  padding: 30px;
}

.aqi-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text_med);
  margin-bottom: 25px;
  text-align: center;
}

.aqi-description strong {
  color: var(--text_dark);
}

/* Tabela */
.aqi-table-container {
  overflow-x: auto;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.aqi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.aqi-table th,
.aqi-table td {
  padding: 12px 10px;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.aqi-table thead th {
  background: var(--text_dark);
  color: white;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 10;
}

.aqi-table thead th:first-child {
  text-align: left;
  min-width: 180px;
}

.aqi-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text_dark);
}

/* Kolory poziomów */
.level-good {
  background: #50C878 !important;
  color: white !important;
}

.level-fair {
  background: #A8E6A1 !important;
  color: #333 !important;
}

.level-moderate {
  background: #FFD700 !important;
  color: #333 !important;
}

.level-poor {
  background: #FF8C00 !important;
  color: white !important;
}

.level-very-poor {
  background: #FF4500 !important;
  color: white !important;
}

.level-extremely-poor {
  background: #8B0000 !important;
  color: white !important;
}

/* Legenda */
.aqi-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
}

.aqi-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text_dark);
}

.aqi-legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Źródło */
.aqi-source {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text_med);
  font-style: italic;
  margin: 0;
}

/* ============================================================================
   RESPONSYWNOŚĆ - MOBILE
   ============================================================================ */

@media screen and (max-width: 768px) {
  .aqi-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .aqi-modal-header {
    padding: 20px 15px;
  }

  .aqi-modal-header h3 {
    font-size: 1.2rem;
  }

  .aqi-modal-body {
    padding: 20px 15px;
  }

  .aqi-table {
    font-size: 0.75rem;
  }

  .aqi-table th,
  .aqi-table td {
    padding: 8px 5px;
  }

  .aqi-table thead th:first-child {
    min-width: 120px;
  }

  .aqi-legend {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Pollutants grid - 2 kolumny na tablecie */
  .pollutants-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media screen and (max-width: 600px) {
  /* Pollutants grid - 1 kolumna na mobile */
  .pollutants-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Pollutant items - horizontal layout jak na desktop */
  .pollutant-item {
    flex-direction: row; /* Wizualizacja z lewej, dane z prawej */
    gap: 12px;
  }

  .pollutant-mini-canvas-container {
    width: 100px;
    height: 100px;
    min-width: 100px;
    flex-shrink: 0;
  }

  .pollutant-data {
    text-align: left;
    flex-grow: 1;
  }
}

@media screen and (max-width: 480px) {
  .aqi-table {
    font-size: 0.7rem;
  }

  .aqi-table th,
  .aqi-table td {
    padding: 6px 3px;
  }

  .aqi-modal-header h3 {
    font-size: 1rem;
  }
}
/* ============================================================================
   STOPKA IMGW - OSTRZEŻENIA
   Dodaj do style.css
   ============================================================================ */

/* Kontener stopki IMGW - GLASSMORPHISM EFFECT */
.imgw-warnings-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 30px;
  margin: 20px auto;
  max-width: 700px;
  font-size: 0.95rem;
  
  /* GLASSMORPHISM - efekt szklanej karty */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  
  /* Kolor tekstu */
  color: #fff;
}

/* Animowana kropka (jak GIF) */
.warning-pulse-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

/* Zielona kropka - brak ostrzeżeń */
.warning-pulse-dot.status-ok {
  background: #50C878;
  animation: pulseGreen 2s ease-in-out infinite;
}

/* Żółta kropka - są ostrzeżenia */
.warning-pulse-dot.status-warning {
  background: #FFD700;
  animation: pulseYellow 1.5s ease-in-out infinite;
}

/* Animacja pulsowania - zielona (spokojniejsza) */
@keyframes pulseGreen {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(80, 200, 120, 0.7);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(80, 200, 120, 0);
  }
}

/* Animacja pulsowania - żółta (intensywniejsza) */
@keyframes pulseYellow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.8);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
  }
}

/* Tekst statusu */
.warning-status-text {
  font-weight: 500;
  line-height: 1.5;
}

/* Link w stopce - styl jak v.1.8.1 */
.warning-status-text a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.432);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-left: 6px;
}

.warning-status-text a:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.warning-status-text a:active {
  transform: translateY(0);
}

/* Responsywność - mobile */
@media screen and (max-width: 600px) {
  .imgw-warnings-status {
    flex-direction: column;
    gap: 10px;
    padding: 18px 24px;
    font-size: 0.9rem;
    text-align: center;
    margin: 15px;
  }
  
  .warning-pulse-dot {
    width: 14px;
    height: 14px;
  }
  
  .warning-status-text {
    font-size: 0.85rem;
  }

  .warning-status-text a {
    display: inline-flex;
    margin: 8px 0 0 0;
    padding: 8px 14px;
  }
}

/* ============================================================================
   SEKCJA POWIADOMIEŃ - GLASSMORPHISM (tak samo jak IMGW)
   ============================================================================ */

.notifications-status-container {
  margin: 20px auto 20px auto;
  max-width: 700px;
  padding: 0 15px;
  text-align: initial; /* Reset dziedziczenia z page-footer */
}

.notifications-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 30px;
  font-size: 0.95rem;

  /* GLASSMORPHISM - efekt szklanej karty */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;

  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

  /* Kolor tekstu */
  color: #fff;
}

.notification-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.notification-text {
  font-weight: 500;
  line-height: 1.5;
}

.notification-text strong {
  color: #FFD700;
  font-weight: 600;
}

/* Kontener na przyciski */
.notification-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-left: 6px;
}

/* Wspólne style dla przycisków */
.notification-update-btn,
.notification-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

/* Przycisk Aktualizuj */
.notification-update-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.notification-update-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* Przycisk Toggle (Anuluj/Włącz) */
.notification-toggle-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Styl dla "Anuluj" (czerwono-pomarańczowy) */
.notification-toggle-btn.cancel {
  background: rgba(255, 107, 107, 0.25);
  border-color: rgba(255, 107, 107, 0.4);
}

.notification-toggle-btn.cancel:hover {
  background: rgba(255, 107, 107, 0.35);
  border-color: rgba(255, 107, 107, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* Styl dla "Włącz powiadomienia" (zielony) */
.notification-toggle-btn.enable {
  background: rgba(80, 200, 120, 0.25);
  border-color: rgba(80, 200, 120, 0.4);
}

.notification-toggle-btn.enable:hover {
  background: rgba(80, 200, 120, 0.35);
  border-color: rgba(80, 200, 120, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(80, 200, 120, 0.3);
}

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

/* ============================================================================
   PRZYCISK iOS - WŁĄCZANIE POWIADOMIEŃ (tylko dla iOS standalone)
   ============================================================================ */

.ios-notifications-container {
  margin: 20px auto 20px auto;
  max-width: 700px;
  padding: 0 15px;
  text-align: initial; /* Reset dziedziczenia z page-footer */
}

/* ============================================================================
   PRZYCISK ODŚWIEŻANIA POGODY - GLASSMORPHISM
   ============================================================================ */

.weather-refresh-container {
  margin: 20px auto 20px auto;
  max-width: 700px;
  padding: 0 15px;
  text-align: initial; /* Reset dziedziczenia z page-footer */
}

.weather-refresh-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 20px 30px;
  font-size: 0.95rem;
  font-weight: 500;

  /* GLASSMORPHISM - efekt szklanej karty */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;

  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.weather-refresh-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px 0 rgba(31, 38, 135, 0.15);
}

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

.refresh-icon {
  font-size: 1.2rem;
  animation: refreshPulse 2s ease-in-out infinite;
}

@keyframes refreshPulse {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
}

.weather-refresh-btn:hover .refresh-icon {
  animation: refreshSpin 0.6s linear;
}

@keyframes refreshSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsywność - mobile */
@media screen and (max-width: 600px) {
  .notifications-status {
    flex-direction: column;
    gap: 10px;
    padding: 18px 24px;
    font-size: 0.9rem;
    text-align: center;
  }

  .notification-buttons {
    margin-left: 0;
    margin-top: 8px;
    justify-content: center;
    width: 100%;
  }

  .notification-update-btn,
  .notification-toggle-btn {
    flex: 1;
    justify-content: center;
    min-width: 100px;
  }

  .weather-refresh-btn {
    padding: 18px 24px;
    font-size: 0.9rem;
  }
}
/* ========================================
   WEATHER EFFECTS & DYNAMIC BACKGROUNDS
   ======================================== */

/* Canvas dla efektów pogodowych */
#weatherCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
  will-change: contents;
}

/* Wszystkie elementy treści ponad Canvas */
.top-banner,
.ajax-section {
  position: relative;
  z-index: 1;
}

/* ========================================
   DYNAMICZNE TŁA - PORA DNIA
   ======================================== */

/* Tło STATYCZNE przez pseudo-element (lepsza wydajność niż background-attachment: fixed) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(to bottom, #87CEEB 0%, #E0F6FF 100%);
  transition: opacity 1s ease;
  will-change: opacity;
}

body {
  min-height: 100vh;
}

/* Wschód słońca (6:00 - 9:00) - Wiosna */
body.sunrise::before {
  background: linear-gradient(to bottom,
    #c4d7dd 0%,      /* Jasny niebieskoszary */
    #97c7e2 50%,     /* Jasny niebieski */
    #e09d88 100%     /* Brzoskwiniowy */
  );
}

/* Dzień (9:00 - 18:00) - Lato */
body.day::before {
  background: linear-gradient(to bottom,
    #4A90E2 0%,      /* Intensywny niebieski */
    #5BA3E8 20%,     /* Niebieski */
    #6DB5EE 40%,     /* Jasny niebieski */
    #7FC7F4 60%,     /* Sky blue */
    #8BD2F7 80%,     /* Umiarkowanie jasny niebieski */
    #7FC7F4 100%     /* Sky blue - mniej białości */
  );
}

/* Zachód słońca (18:00 - 20:00) - Jesień */
body.sunset::before {
  background: linear-gradient(to bottom,
    #727089 0%,      /* Szarofioletowy */
    #f49f6a 50%,     /* Pomarańczowy */
    #bf655d 100%     /* Ceglasty */
  );
}

/* Noc (20:00 - 6:00) - Zima */
body.night::before {
  background: linear-gradient(to bottom,
    #011f35 0%,      /* Ciemny granatowy */
    #383a53 100%     /* Ciemny fioletowoszary */
  );
}

/* ========================================
   OVERLAYS POGODOWE
   ======================================== */

/* Pochmurno - ciemniejszy overlay */
body.cloudy::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  z-index: -2;
  pointer-events: none;
}

/* Deszcz - ciemniejszy overlay */
body.rain::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: -2;
  pointer-events: none;
}

/* Śnieg - lekki biały overlay */
body.snow::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  z-index: -2;
  pointer-events: none;
}

/* Burza - ciemny overlay */
body.thunder::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -2;
  pointer-events: none;
}

/* ========================================
   GLASSMORPHISM - BOKSY POGODOWE
   ======================================== */

/* Główny kontener */
.top-banner {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Boksy miast */
.ajax-section .city {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Box AI */
.ai-activities-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Box zanieczyszczeń */
.pollutants-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Footer z ostrzeżeniami IMGW */
.imgw-warning-footer {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Footer z powiadomieniami */
.notification-footer {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ========================================
   BIAŁE TEKSTY Z CIENIAMI
   ======================================== */

/* Główny nagłówek */
.top-banner .heading {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Nazwy miast */
.city-name {
  color: white !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Temperatura */
.city-temp {
  color: white !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Opisy pogody */
.city sup,
.city-temp sup {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Detale (wiatr, wilgotność, itp.) */
.city-info,
.details {
  color: white !important;
}

.city-info span,
.details div {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Ikony emoji - dodaj cień dla lepszej widoczności */
.city-icon {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Tytuły sekcji */
h2, h3 {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Paragraf teksty */
p {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Inputy - lekko przezroczyste z glassmorphism */
input[type="text"] {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.7);
  text-shadow: none;
}

/* Przyciski zachowują swoje gradienty, ale dodaj cień tekstu */
button {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* AI Section */
.ai-description,
.ai-activity-name,
.ai-activity-reason {
  color: white !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ai-section-title {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Pollutants */
.pollutant-item strong,
.pollutant-value {
  color: white !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Footer teksty */
.imgw-warning-footer a,
.notification-footer p,
.notification-footer button {
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Ikona aplikacji */
.app-icon {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
  /* Mniejszy blur na mobile dla lepszej wydajności */
  .top-banner,
  .ajax-section .city,
  .ai-activities-box,
  .pollutants-box {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* ========================================
   DODATKOWE POPRAWKI - WSZYSTKIE TEKSTY NA BIAŁO
   ======================================== */

/* Top banner - przezroczysty */
.top-banner {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

/* ========================================
   PROGNOZA GODZINOWA - BIAŁE TEKSTY
   ======================================== */

.hourly-forecast-section h3,
.hourly-forecast-title {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hourly-forecast-container {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hourly-item {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hourly-time,
.hourly-temp,
.hourly-desc,
.hourly-item span,
.hourly-item div {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ========================================
   PROGNOZA 5-DNIOWA - BIAŁE TEKSTY
   ======================================== */

.forecast h3,
.forecast-title {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.forecast {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.day,
.day span,
.day div {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.day-name,
.day-temp,
.day-desc {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ========================================
   INDEKS UV - BIAŁE TEKSTY
   ======================================== */

.uv-index,
.uv-index-box,
.uv-section {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.uv-index h3,
.uv-index h4,
.uv-index-title,
.uv-label {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.uv-value,
.uv-description,
.uv-index span,
.uv-index div,
.uv-index p {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ========================================
   JAKOŚĆ POWIETRZA - BIAŁE TEKSTY
   ======================================== */

.air-quality,
.aqi-section,
.quality-section {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.air-quality h3,
.air-quality h4,
.aqi-title,
.quality-title {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.aqi-value,
.quality-value,
.quality-label,
.air-quality span,
.air-quality div,
.air-quality p {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ========================================
   CAQI - GLASSMORPHISM + BIAŁE TEKSTY
   ======================================== */

.caqi-box,
.caqi-container,
.caqi-section {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.caqi-title,
.caqi-box h3,
.caqi-box h4 {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.caqi-value,
.caqi-description,
.caqi-label,
.caqi-box span,
.caqi-box div,
.caqi-box p {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ========================================
   ZANIECZYSZCZENIA - BIAŁE TEKSTY
   ======================================== */

.pollutants-box h3,
.pollutants-title {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.pollutant-name,
.pollutant-label,
.pollutants-box span,
.pollutants-box div {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ========================================
   PROPOZYCJE AKTYWNOŚCI AI - BIAŁE TEKSTY
   ======================================== */

.ai-activities-box h2,
.ai-activities-box h3,
.ai-header h2 {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.ai-section-good .ai-section-title {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  filter: drop-shadow(0 0 10px rgba(41, 149, 1, 0.6));
}

.ai-section-neutral .ai-section-title {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.6));
}

.ai-section-avoid .ai-section-title {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  filter: drop-shadow(0 0 10px rgba(216, 0, 29, 0.6));
}

/* ========================================
   OGÓLNE - WSZYSTKIE POZOSTAŁE TEKSTY
   ======================================== */

/* Wszystkie h1, h2, h3, h4 */
h1, h2, h3, h4, h5, h6 {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Wszystkie paragrafy i spany */
p, span, div, label, strong, em {
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Linki */
a {
  color: white !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Liczby/wartości - większy kontrast */
.value,
.number,
[class*="value"],
[class*="temp"],
[class*="index"] {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 600;
}

/* ========================================
   DODATKOWE POPRAWKI #2 - SZCZEGÓŁOWE ELEMENTY
   ======================================== */

/* ========================================
   OSTRZEŻENIA IMGW - WSZYSTKIE TEKSTY NA BIAŁO
   ======================================== */

.imgw-warnings-status,
.imgw-warning-footer {
  color: white !important;
}

.warning-text,
.warning-title,
.warning-level,
.warning-description,
.warning-date,
.warning-time,
.warning-probability,
.warning-source {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Szczegóły ostrzeżenia */
.warning-details,
.warning-details div,
.warning-details span,
.warning-details p,
.warning-details strong {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Nagłówki w ostrzeżeniach */
.warning-details h3,
.warning-details h4 {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ========================================
   PROGNOZA GODZINOWA - WYMUŚ BIAŁE TEKSTY
   ======================================== */

.hourly-forecast-section,
.hourly-forecast-container,
.hourly-forecast-wrapper {
  background: rgba(255, 255, 255, 0.15) !important;
}

.hourly-forecast-section *,
.hourly-forecast-container *,
.hourly-item * {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hourly-item {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   PIERWSZY BOKS POGODY - ZACHMURZENIE I WSZYSTKIE DANE
   ======================================== */

.city .city-info,
.city .details,
.city .weather-details {
  color: white !important;
}

.city .city-info *,
.city .details *,
.city .weather-details * {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Konkretne wartości w boksie */
.city span,
.city div:not(.city-icon),
.city p {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Wyjątek: UV marker ma mieć czarną czcionkę */
.uv-marker {
  color: #000 !important;
  text-shadow: none !important;
}

/* Zachmurzenie, wilgotność, ciśnienie itp */
[class*="cloud"],
[class*="humidity"],
[class*="pressure"],
[class*="visibility"],
[class*="wind"] {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ========================================
   PROGNOZA 5-DNIOWA - DNI TYGODNIA NA BIAŁO
   ======================================== */

.forecast,
.forecast-container,
.forecast-wrapper {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.forecast *,
.day *,
.day-item * {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Dni tygodnia */
.day-name,
.day-date,
.forecast-day-name {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  font-weight: 600;
}

/* ========================================
   PROPOZYCJE AKTYWNOŚCI AI - NAZWY AKTYWNOŚCI NA BIAŁO
   ======================================== */

.ai-activity,
.ai-activity-item,
.activity-item {
  color: white !important;
}

.ai-activity *,
.ai-activity-item *,
.activity-item * {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.ai-activity-name,
.activity-name,
.activity-title {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  font-weight: 500;
}

.ai-activity-reason,
.activity-reason,
.activity-description {
  color: white !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ========================================
   TOP BANNER - CAŁKOWICIE BEZ TŁA
   ======================================== */

.top-banner {
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Zachowaj białe teksty w top banner */
.top-banner *,
.top-banner h1,
.top-banner input,
.top-banner button {
  color: white !important;
}

.top-banner input::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ========================================
   GLOBALNE WYMUSZENIE BIAŁYCH TEKSTÓW
   ======================================== */

/* Każdy element z klasą zawierającą "title", "label", "name" */
[class*="title"],
[class*="label"],
[class*="name"],
[class*="heading"] {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Każdy element z klasą zawierającą "value", "data", "info" */
[class*="value"],
[class*="data"],
[class*="info"],
[class*="desc"] {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Wszystkie elementy w sekcjach prognozy */
section *,
.section *,
[class*="section"] * {
  color: white !important;
}

/* Wymuszenie dla wszystkich elementów potomnych głównych kontenerów */
.ajax-section *,
.forecast *,
.hourly-forecast-section *,
.pollutants-box *,
.ai-activities-box *,
.city * {
  color: white !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ========================================
   DODATKOWE POPRAWKI #3 - POPUP I RADAR
   ======================================== */

/* ========================================
   POPUP JAKOŚCI POWIETRZA - GLASSMORPHISM
   ======================================== */

/* Modal content - zmiana z białego na glassmorphism */
.aqi-modal-content {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Header modalu - glassmorphism */
.aqi-modal-header {
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Wszystkie teksty w modalu na biało */
.aqi-modal-content *,
.aqi-modal-header *,
.aqi-modal-body *,
.aqi-info-modal * {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.aqi-modal-header h3 {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Przycisk zamknięcia */
.aqi-modal-close {
  color: white !important;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.aqi-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Body modalu */
.aqi-modal-body {
  background: rgba(255, 255, 255, 0.05);
}

/* Tabele w modalu */
.aqi-modal-content table,
.aqi-modal-content tr,
.aqi-modal-content td,
.aqi-modal-content th {
  color: white !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ========================================
   RADAR POGODOWY - NAGŁÓWEK GLASSMORPHISM
   ======================================== */

.radar-header {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: none;
}

/* Wszystkie teksty w nagłówku radaru na biało */
.radar-header,
.radar-header *,
.radar-header h2,
.radar-header h3,
.radar-header span,
.radar-header div {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Radar box - glassmorphism */
.radar-box {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Kontener radaru */
.radar-container {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   FIX: Godziny nocne - nadpisanie dla lepszej widoczności
   Musi być po sekcji glassmorphism dla wyższej specyficzności
   ======================================== */

/* Godziny nocne - ciemniejsze tło (bardziej widoczne) */
.hourly-forecast-box .hourly-item.night-time {
  background: rgba(30, 36, 50, 0.35) !important;
}

.hourly-forecast-box .hourly-item.night-time .hourly-time {
  color: #5a6b8c;
  font-weight: 600;
}

/* ========================================
   FIX: UV Marker - czarna liczba dla widoczności
   Musi być po globalnych stylach białych tekstów
   ======================================== */

/* UV marker - czarna liczba z wysoką specyficznością */
.uv-box .uv-marker,
.uv-box .uv-marker *,
.small-box.uv-box .uv-marker,
.small-box.uv-box .uv-marker *,
.city.uv-box .uv-marker,
.city.uv-box .uv-marker * {
  color: #000 !important;
  text-shadow: none !important;
  font-weight: bold;
}
