/* ========================================================================
   ALERTY I POWIADOMIENIA - Styl Minimalistyczny (Wzór z projektu)
   ======================================================================== */

/* Baza dla obu typów: alerty osadzone (.uk-alert) i wyskakujące (.uk-notification-message) */
.uk-alert,
.uk-notification-message {
    background-color: #f8f9fa !important; /* Domyślne jasnoszare tło */
    border-radius: 6px !important;
    border: none !important;
    border-left: 4px solid #6b7280 !important; /* Lewa krawędź akcentująca */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important; /* Bardzo delikatny cień, prawie płaskie */
    padding: 16px 20px !important;
    color: #374151 !important; /* Ciemnoszary tekst domyślny */
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 15px; 
}

/* Usunięcie domyślnego marginesu górnego dla elementów wewnątrz alertu */
.uk-alert > :first-child,
.uk-notification-message > :first-child {
    margin-top: 0;
}

/* ================================================== */
/* KOLORY SYSTEMOWE                                   */
/* ================================================== */

/* NIEBIESKI (Primary) - Nowa aktualizacja / Info */
.uk-alert-primary,
.uk-notification-message-primary {
    background-color: #f0f9ff !important;
    border-left-color: #3b82f6 !important;
    color: #1e40af !important;
}

/* ZIELONY (Success) - Pomyślnie wykonano */
.uk-alert-success,
.uk-notification-message-success {
    background-color: #f0fdf4 !important;
    border-left-color: #22c55e !important;
    color: #166534 !important;
}

/* ŻÓŁTY/POMARAŃCZOWY (Warning) - Ostrzeżenia */
.uk-alert-warning,
.uk-notification-message-warning {
    background-color: #fffbeb !important;
    border-left-color: #f59e0b !important;
    color: #92400e !important;
}

/* CZERWONY (Danger) - Błędy krytyczne */
.uk-alert-danger,
.uk-notification-message-danger {
    background-color: #fef2f2 !important;
    border-left-color: #ef4444 !important;
    color: #991b1b !important;
}

/* ================================================== */
/* STYLIZACJA PRZYCISKU ZAMKNIĘCIA (Krzyżyk)          */
/* ================================================== */
.uk-alert-close, 
.uk-notification-close {
    color: #9ca3af !important; /* Delikatny szary krzyżyk */
    background: transparent !important;
    border-radius: 4px;
    padding: 4px;
    top: 14px !important; 
    right: 14px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background-color 0.2s ease !important;
    opacity: 1 !important; /* Nadpisanie domyślnego wyciszenia UIkit */
}

/* Hover na krzyżyku - lekkie przyciemnienie, bez okrągłego tła */
.uk-alert-close:hover, 
.uk-notification-close:hover {
    color: #374151 !important; /* Ciemniejszy szary */
    background-color: rgba(0, 0, 0, 0.05) !important;
    transform: none !important; /* Usunięto obrót z poprzedniej wersji */
}

/* ================================================== */
/* LINKI WEWNĄTRZ ALERTÓW                             */
/* ================================================== */
.uk-alert a, 
.uk-notification-message a {
    color: inherit !important; /* Dziedziczy kolor (np. czerwony w danger, niebieski w primary) */
    text-decoration: underline;
    font-weight: 600;
}

.uk-alert a:hover, 
.uk-notification-message a:hover {
    opacity: 0.8;
}