/* css/notifications.css - Ulepszony wygląd */

#notifications-area {
    position: fixed;
    top: 12px; /* Trochę niżej od góry dla lepszego wyglądu */
    left: 50%;
    transform: translateX(-50%);
    width: 90%; /* Dostosowanie szerokości */
    max-width: 360px; /* Maksymalna szerokość */
    background: rgba(34, 40, 49, 0.65); /* Tło glassmorphism */
    color: #e0e0e0; /* Główny kolor tekstu */
    padding: 10px 14px; /* Więcej wewnętrznego marginesu */
    border-radius: 10px; /* Bardziej zaokrąglone rogi */
    z-index: 10000;             /* Upewnij się, że jest na wierzchu */
    text-align: left; /* Wyrównanie do lewej dla lepszej czytelności listy */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); /* Cień dla glassmorphism */
    font-size: 0.88em; /* Nieco większa czcionka dla czytelności */
    display: none; /* Domyślnie ukryte, JavaScript pokaże gdy będą powiadomienia */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Ramka dla glassmorphism */
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    /* position: relative;  Jeśli #notifications-area nie jest 'fixed' lub 'absolute', to jest potrzebne dla pozycjonowania potomka */
}

#notifications-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#notifications-area li {
    padding: 6px 0; /* Zwiększony padding dla elementów listy */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtelny separator */
    line-height: 1.5; /* Lepsza czytelność tekstu wieloliniowego */
}

#notifications-area li:last-child {
    border-bottom: none; /* Usuń separator dla ostatniego elementu */
}
#notifications-area a {
    color: var(--accent-yellow, #fee300); /* Kolor linków zgodny z akcentem */
    text-decoration: none;
    font-weight: 500; /* Lekko pogrubione linki, aby się wyróżniały */
    transition: color 0.2s ease;
}

#notifications-area a:hover,
#notifications-area a:focus { /* Dodano :focus dla dostępności */
    color: var(--accent-yellow-hover, #fffb8f); /* Jaśniejszy żółty przy hover */
}

/* Styl dla przycisku zamykania powiadomień */
.notification-close-btn {
    position: absolute;
    top: 6px; /* Dopasuj pozycję góra/prawo */
    right: 10px;
    font-size: 1.2em; /* Większy 'x' */
    font-weight: bold;
    color: #b0b0b0; /* Jaśniejszy szary dla lepszej widoczności */
    cursor: pointer;
    line-height: 1;
    padding: 0 2px; /* Dodatkowy padding dla łatwiejszego kliknięcia */
    transition: color 0.2s ease-in-out;
}
.notification-close-btn:hover {
    color: #ffffff; /* Biały przy najechaniu */
}

/* Opcjonalnie: Dodanie animacji pojawiania się.
   Aby to zadziałało, musiałbyś w JavaScript (np. w funkcji displayAdminNotifications)
   dodawać klasę 'show' do elementu #notifications-area, gdy jest on pokazywany,
   i usuwać ją, gdy jest ukrywany.
*/
/*
#notifications-area.show {
    animation: fadeInTop 0.4s ease-out forwards;
}

@keyframes fadeInTop {
    from {
        opacity: 0;
        transform: translate(-50%, -15px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
*/

#notifications-area li.error { color: #d32f2f; font-weight: bold; }
#notifications-area li.success { color: #49f300; font-weight: bold; }
#notifications-area li.info { color: #fee300; }
#notifications-area li.warning { color: #ff9800; font-weight: bold; }
/* Kompaktowy banner cookies */
#cookie-consent-banner {
    display: none;
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(34, 40, 49, 0.7); /* Tło glassmorphism dla banera cookie */
    color: #e0e0e0; /* Główny kolor tekstu */
    padding: 10px 12px 8px 12px;
    border-radius: 10px; /* Zaokrąglenie */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25); /* Cień */
    z-index: 9999;
    max-width: 320px;
    width: 96vw;
    font-size: 0.93em;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.15); /* Ramka */
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
}
#cookie-consent-banner > div:first-child {
    margin-bottom: 7px;
}
#cookie-consent-banner a,
#cookie-consent-banner button {
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 0.97em;
    margin: 0 2px 2px 0;
    min-width: 0;
    min-height: 0;
    line-height: 1.2;
}
#cookie-consent-banner button {
    border: 1px solid #fee300;
    background: #232d3a;
    color: #fee300;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
#cookie-consent-banner button:hover {
    background: #fee300;
    color: #232d3a;
}
#cookie-consent-banner a {
    text-decoration: none;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
#cookie-consent-banner a[href*="cookies"] {
    background: #fee300;
    color: #232d3a;
}
#cookie-consent-banner a[href*="privacy"] {
    background: #49f300;
    color: #232d3a;
}
#cookie-consent-banner a:hover {
    opacity: 0.92;
}
