/* Avisos inline — design system SIAM (substitui Bootstrap .alert) */
.siam-notice {
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.45;
    font-weight: 500;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.siam-notice--primary {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border-color: rgba(59, 130, 246, 0.25);
    color: #1e3a8a;
}

.siam-notice--success {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border-color: rgba(22, 163, 74, 0.22);
    color: #166534;
}

.siam-notice--danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
    border-color: rgba(220, 38, 38, 0.2);
    color: #991b1b;
}

.siam-notice--warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
    border-color: rgba(217, 119, 6, 0.25);
    color: #92400e;
}

.siam-notice--info {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border-color: rgba(59, 130, 246, 0.22);
    color: #1e40af;
}

.siam-notice--secondary {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: rgba(100, 116, 139, 0.22);
    color: #334155;
}

.siam-notice--muted {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    box-shadow: none;
}

.siam-notice--compact {
    padding: 0.45rem 0.65rem;
    font-size: 0.8125rem;
    border-radius: 10px;
    font-weight: 600;
}

/*
 * Notificações tipo Toastr: container próprio (não usar .toast do Bootstrap —
 * conflita com opacidade/largura e some quando o CSS do toast não bate).
 * Ícones: Bootstrap Icons no markup do componente.
 */
.siam-toast-host {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 11000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    max-width: min(400px, calc(100vw - 24px));
    pointer-events: none;
}

.siam-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: min(320px, calc(100vw - 24px));
    max-width: 100%;
    padding: 14px 16px;
    border-radius: 4px;
    font-family: inherit;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #fff;
    animation: siam-toast-in 0.28s ease-out;
}

@keyframes siam-toast-in {
    from {
        opacity: 0;
        transform: translateX(12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.siam-toast__glyph {
    flex-shrink: 0;
    font-size: 1.55rem;
    line-height: 1;
    margin-top: 1px;
    opacity: 0.95;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.15));
}

.siam-toast__msg {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.9375rem;
    line-height: 1.45;
    font-weight: 500;
    padding-top: 1px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.siam-toast__close {
    flex-shrink: 0;
    margin: -4px -6px -4px 0;
    padding: 6px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}

.siam-toast__close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.12);
    color: #fff;
}

.siam-toast__close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 2px;
}

.siam-toast__close .siam-icon {
    font-size: 1.1rem;
}

/* Paleta próxima ao Toastr clássico */
.siam-toast--success {
    background: linear-gradient(180deg, #5cb85c 0%, #51a351 100%);
    border-color: rgba(0, 0, 0, 0.1);
}

.siam-toast--error {
    background: linear-gradient(180deg, #c9302c 0%, #bd362f 100%);
    border-color: rgba(0, 0, 0, 0.12);
}

.siam-toast--warning {
    background: linear-gradient(180deg, #f0ad4e 0%, #ec971f 100%);
    border-color: rgba(0, 0, 0, 0.1);
    color: #fff;
}

.siam-toast--info {
    background: linear-gradient(180deg, #5bc0de 0%, #2f96b4 100%);
    border-color: rgba(0, 0, 0, 0.1);
}

@media (max-width: 480px) {
    .siam-toast-host {
        left: 12px;
        right: 12px;
        align-items: stretch;
    }

    .siam-toast {
        min-width: 0;
    }
}

/* Miniatura clicável: cursor e foco acessível */
.siam-lightbox {
    cursor: zoom-in;
    outline: none;
}

.siam-lightbox:focus-visible {
    outline: 2px solid rgba(115, 103, 240, 0.55);
    outline-offset: 2px;
}

/* Ajustes GLightbox (tema neutro, alinhado ao SIAM) */
.glightbox-clean .gslide-description,
.glightbox-clean .gdesc-inner {
    font-family: inherit;
}

.goverlay {
    background: rgba(15, 23, 42, 0.82);
}

.gbtn {
    border-radius: 10px;
}
