/* Toasts de Notificação Dark - TI Connection */

.toast-container-custom {
    position: fixed;
    z-index: 9999;
    padding: 1rem;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Posições */
.toast-top-right { top: 0; right: 0; }
.toast-top-left { top: 0; left: 0; }
.toast-bottom-right { bottom: 0; right: 0; }
.toast-bottom-left { bottom: 0; left: 0; }
.toast-top-center { top: 0; left: 50%; transform: translateX(-50%); }
.toast-bottom-center { bottom: 0; left: 50%; transform: translateX(-50%); }

.toast-custom {
    background-color: #1a1d23; /* Cinza bem escuro */
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 450px;
    pointer-events: auto;
    border-left: 5px solid #2a6e83; /* Cor primária default */
    animation: toastSlideIn 0.3s ease forwards;
    opacity: 0;
}

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

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: 700;
    margin-bottom: 0.125rem;
    display: block;
}

.toast-message {
    font-size: 0.875rem;
    color: #d1d5db;
}

.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #ffffff;
}

@keyframes toastSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast-custom.hide {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.9);
        opacity: 0;
    }
}
