/* === Toast Notifications === */

#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 320px;
    padding: 14px 16px 18px;
    border-radius: 10px;
    background: #0f1c2e;
    border: 1px solid rgba(255,255,255,0.07);
    border-left: 3px solid transparent;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
    pointer-events: all;
    animation: toast-in 0.28s cubic-bezier(0.34,1.26,0.64,1) forwards;
}

.toast.toast-hiding {
    animation: toast-out 0.22s ease-in forwards;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(28px) scale(0.96); }
    to   { opacity: 1; transform: translateX(0)    scale(1);    }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateX(0)    scale(1);    max-height: 120px; margin-bottom: 0; }
    to   { opacity: 0; transform: translateX(28px) scale(0.96); max-height: 0;     margin-bottom: -10px; }
}

/* Tipos */
.toast.toast-error   { border-left-color: #ef4444; }
.toast.toast-warning { border-left-color: #f59e0b; }
.toast.toast-success { border-left-color: #10b981; }
.toast.toast-info    { border-left-color: #3b82f6; }

/* Ícone */
.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}
.toast-error   .toast-icon { color: #ef4444; }
.toast-warning .toast-icon { color: #f59e0b; }
.toast-success .toast-icon { color: #10b981; }
.toast-info    .toast-icon { color: #3b82f6; }

/* Conteúdo */
.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 3px;
}
.toast-error   .toast-title { color: #fca5a5; }
.toast-warning .toast-title { color: #fcd34d; }
.toast-success .toast-title { color: #6ee7b7; }
.toast-info    .toast-title { color: #93c5fd; }

.toast-message {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(241,245,249,0.8);
}

/* Fechar */
.toast-close {
    background: none;
    border: none;
    color: rgba(241,245,249,0.35);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.15s;
}
.toast-close:hover { color: rgba(241,245,249,0.8); }

/* Barra de progresso */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 10px 10px;
    animation: toast-progress linear forwards;
}
.toast-error   .toast-progress { background: #ef4444; }
.toast-warning .toast-progress { background: #f59e0b; }
.toast-success .toast-progress { background: #10b981; }
.toast-info    .toast-progress { background: #3b82f6; }

@keyframes toast-progress {
    from { width: 100%; }
    to   { width: 0%; }
}
