/* public/css/toast.css */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.hide {
    opacity: 0;
    transform: translateX(400px);
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

.toast-message {
    font-size: 13px;
    line-height: 1.5;
    color: var(--neutral-600);
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--neutral-400);
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.toast-close:hover {
    background: var(--neutral-100);
    color: var(--neutral-600);
}

/* Variantes de couleur */
.toast.success {
    border-left: 4px solid var(--color-success);
}

.toast.success .toast-icon {
    background: #d1fae5;
    color: var(--color-success);
}

.toast.error {
    border-left: 4px solid var(--color-danger);
}

.toast.error .toast-icon {
    background: #fee2e2;
    color: var(--color-danger);
}

.toast.warning {
    border-left: 4px solid var(--color-warning);
}

.toast.warning .toast-icon {
    background: #fef3c7;
    color: var(--color-warning);
}

.toast.info {
    border-left: 4px solid var(--color-primary);
}

.toast.info .toast-icon {
    background: #dbeafe;
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
}
