/* ==========================================================================
   SISTEMA DE NOTIFICAÇÕES TOAST E MODAL DE CONFIRMAÇÃO MINIMALISTA
   IDENTIDADE VISUAL PREFEITURA DE FAZENDA RIO GRANDE / AVALI-EE
   ========================================================================== */

/* Container de Toasts */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 380px;
    width: calc(100vw - 48px);
}

.toast-item {
    pointer-events: auto;
    background: #ffffff;
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 10px 25px -5px rgba(11, 57, 106, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.25s ease;
    border-left: 4px solid var(--primary, #0b396a);
    position: relative;
    overflow: hidden;
}

.toast-item.toast-sucesso {
    border-left-color: #1f7a3f;
}
.toast-item.toast-erro {
    border-left-color: #d32f2f;
}
.toast-item.toast-aviso {
    border-left-color: #f57c00;
}
.toast-item.toast-info {
    border-left-color: #0b396a;
}

.toast-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-content {
    flex: 1;
    font-size: 13.5px;
    color: #1e293b;
    line-height: 1.45;
    font-weight: 500;
}

.toast-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 2px;
    margin-left: 4px;
    transition: color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toast-close:hover {
    color: #1e293b;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastFadeOut {
    to {
        opacity: 0;
        transform: translateY(-12px) scale(0.95);
    }
}

/* Modal de Confirmação Minimalista */
.custom-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(8, 43, 82, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
    box-sizing: border-box;
    animation: confirmFadeIn 0.2s ease-out;
}

.custom-confirm-card {
    background-color: #ffffff;
    border-radius: 14px;
    width: 100%;
    max-width: 400px;
    padding: 26px 24px 22px 24px;
    box-shadow: 0 20px 45px -10px rgba(11, 57, 106, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: confirmScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.custom-confirm-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background-color: #fee2e2;
    color: #d32f2f;
}

.custom-confirm-icon-box.info {
    background-color: #eaf1f8;
    color: #0b396a;
}

.custom-confirm-title {
    font-size: 17px;
    font-weight: 700;
    color: #0b396a;
    margin: 0 0 8px 0;
}

.custom-confirm-msg {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 22px 0;
    line-height: 1.5;
}

.custom-confirm-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.btn-confirm-cancel {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #475569;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-confirm-cancel:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

.btn-confirm-ok {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background-color: #d32f2f;
    color: #ffffff;
    transition: all 0.2s;
}
.btn-confirm-ok:hover {
    background-color: #b71c1c;
}
.btn-confirm-ok.primary {
    background-color: #0b396a;
}
.btn-confirm-ok.primary:hover {
    background-color: #082b52;
}

@keyframes confirmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes confirmScaleIn {
    from { opacity: 0; transform: scale(0.94) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

