/* --- Zmienne kolorów --- */
:root {
    --l1-color: #ffff00;
    --l2-color: #fea527;
    --l3-color: #ff0000;
    --accent-color: #005DA8;
    --bol-color: #313131;
}

/* --- Ogólne style dla ostrzeżeń IMGW (widok pełny) --- */

.imgw-warnings-container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 25px;
}

.imgw-warnings-title {
    color: var(--bol-color);
    font-size: 1.5em;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    text-align: center;
}

.imgw-warning-item {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.imgw-warning-item p {
    color: var(--accent-color);
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 10px;
}

.imgw-warning-description {
    color: var(--bol-color);
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 10px;
}

.imgw-warning-item p.imgw-warning-level { /* Zmodyfikowane: Bardziej specyficzny selektor */
    color: var(--accent-color);
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 0; /* Tutaj zastosuje się 0 */
    font-weight: bold;
}

/* Nowa reguła dla kontenera nagłówka, aby ikona i tekst były obok siebie */
.imgw-warning-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px; /* Odstęp pod nagłówkiem */
}

.imgw-warning-name {
    color: var(--accent-color);
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 10px;
}

.imgw-warning-item p {
    margin-bottom: 5px;
    line-height: 1.5;
}

.imgw-warning-item strong {
    color: var(--bol-color);
}

/* --- Style dla ikon SVG (widok pełny) --- */
.imgw-warning-icon {
    width: 100px;
    height: 100px;
    margin-right: 10px;
    vertical-align: middle;
    flex-shrink: 0;
}

.imgw-warning-icon.level-1 {
    background-color: var(--l1-color);
}
.imgw-warning-icon.level-2 {
    background-color: var(--l2-color);
}
.imgw-warning-icon.level-3 {
    background-color: var(--l3-color);
}

/* Style dla stopni zagrożenia w okręgu */
.level-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: bold;
    color: #fff;
    margin-left: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-size: 1.1em;
    line-height: 1;
    text-align: center;
}

/* Kolory dla poszczególnych stopni zagrożenia */
.level-number-1 {
    background-color: var(--l1-color);
    color: var(--bol-color);
}

.level-number-2 {
    background-color: var(--l2-color);
    color: var(--bol-color);
}

.level-number-3 {
    background-color: var(--l3-color);
}

/* --- Kolorowanie obramowania w zależności od stopnia zagrożenia --- */
.imgw-warning-item.level-1 { border-left: 35px solid var(--l1-color); }
.imgw-warning-item.level-2 { border-left: 35px solid var(--l2-color); }
.imgw-warning-item.level-3 { border-left: 35px solid var(--l3-color); }


/* Styles for info/error messages */
.imgw-warnings-no-data,
.imgw-warnings-error {
    background-color: #ffe0b2;
    border: 1px solid #ff9800;
    color: #e65100;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.imgw-warnings-error {
    background-color: #ffcdd2;
    border-color: #f44336;
    color: #c62828;
}

/* Styl dla przycisku Zapisz jako obraz */
#save-imgw-warnings-btn {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1),
                0 6px 20px rgba(0, 0, 0, 0.1);
}

#save-imgw-warnings-btn:hover {
    background-color: #d0d0d0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15),
                0 8px 25px rgba(0, 0, 0, 0.15);
}

#save-imgw-warnings-btn:active {
    background-color: #c0c0c0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(1px);
}

/* Styl dla ukrytych elementów TERYT */
.imgw-hidden {
    display: none;
}

/* Styl dla linków "pokaż więcej" / "ukryj" */
.imgw-show-more,
.imgw-hide-more {
    color: #0073aa;
    text-decoration: underline;
    cursor: pointer;
    white-space: nowrap;
}

.imgw-show-more:hover,
.imgw-hide-more:hover {
    color: #005177;
    text-decoration: none;
}

---

/* --- Style dla trybu Sidebar --- */
/* Zewnętrzny kontener został usunięty w PHP dla tego widoku */

.imgw-warning-item-sidebar { /* Nowa klasa dla pojedynczego elementu w sidebarze */
    background-color: #fff;
    border: 1px solid #eee;
    padding: 10px; /* Mniejsze paddingi */
    margin-bottom: 10px; /* Mniejszy odstęp między elementami */
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-left-width: 10px; /* Cieńsze obramowanie */
}

/* Ukrywanie zbędnych elementów w trybie sidebar */
.imgw-warning-item-sidebar .imgw-warnings-title, /* Ukryj tytuł sekcji (jeśli jakiś by się pojawił) */
.imgw-warning-item-sidebar .imgw-warning-region, /* Ukryj region */
.imgw-warning-item-sidebar .imgw-warning-description, /* Ukryj treść ostrzeżenia */
.imgw-warning-item-sidebar .imgw-warning-probability, /* Ukryj prawdopodobieństwo */
.imgw-warning-item-sidebar .imgw-warning-date, /* Ukryj daty */
.imgw-warning-item-sidebar .imgw-warning-published, /* Ukryj datę publikacji */
.imgw-warning-item-sidebar .imgw-warning-comment, /* Ukryj komentarz */
.imgw-warning-item-sidebar .imgw-warning-office { /* Ukryj biuro */
    display: none;
}

/* Dostosowanie nagłówka dla sidebaru (ikona, nazwa, stopień) */
.imgw-warning-item-sidebar .imgw-warning-header {
    display: flex;
    align-items: center;
    gap: 12px; /* Zwiększony odstęp między ikoną a tekstem */
    margin-bottom: 5px;
}

.imgw-warning-item-sidebar .imgw-warning-icon {
    width: 48px; /* Powiększona ikona */
    height: 48px;
    margin-right: 0; /* Usunięto, bo używamy gap */
}

.imgw-warning-item-sidebar .imgw-header-text {
    flex-grow: 1;
}

.imgw-warning-item-sidebar p.imgw-warning-name { /* Zmodyfikowane */
    font-size: 1.1em; /* Powiększona czcionka dla nazwy zjawiska */
    margin-bottom: 3px; /* Lekko zwiększony odstęp od stopnia */
    font-weight: bold;
    color: var(--bol-color);
}

.imgw-warning-item-sidebar p.imgw-warning-level { /* Zmodyfikowane */
    font-size: 1em; /* Powiększona czcionka dla stopnia */
    margin-bottom: 0;
    color: var(--bol-color);
}

.imgw-warning-item-sidebar .level-number {
    width: 24px; /* Nieco większy okrąg */
    height: 24px;
    font-size: 1em; /* Nieco większa cyfra w okręgu */
}

/* Styl linku "Więcej informacji" w sidebarze */
.imgw-warning-item-sidebar .imgw-warning-link {
    text-align: center;
    margin-top: 10px; /* Zwiększony margines górny, aby zrobić miejsce na separator */
    padding-top: 10px; /* Dodatkowy padding, aby linia nie stykała się z tekstem */
    border-top: 1px solid #eee; /* Delikatny separator */
}

.imgw-warning-item-sidebar .imgw-warning-link a {
    font-size: 0.85em; /* Nieco większa czcionka dla linku */
    color: var(--accent-color);
    text-decoration: underline;
}

.imgw-warning-item-sidebar .imgw-warning-link a:hover {
    text-decoration: none;
}

/* Komunikat o braku danych w sidebarze */
.imgw-warnings-no-data-sidebar { /* Nowa klasa dla braku danych w sidebarze */
    font-size: 0.9em;
    padding: 8px;
    background-color: #f9f9f9; /* Domyślny kolor tła widgetu */
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    text-align: center;
}

p.imgw-warning-region.accent-text {
    color: var(--accent-color);
}