/* Toast Container */
.toast-container {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    pointer-events: none;
}

/* Posiciones */
.toast-container.top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.toast-container.bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.toast-container.top-left {
    top: 0;
    left: 0;
}

.toast-container.top-right {
    top: 0;
    right: 0;
}

.toast-container.bottom-left {
    bottom: 0;
    left: 0;
}

.toast-container.bottom-right {
    bottom: 0;
    right: 0;
}

/* Toast individual */
.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 400px;
    padding: 1rem;
    border-radius: 0.5rem;
    background: var(--text-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease-out;
}

/* Tipos de toast */
.toast.success {
    border-left: 4px solid var(--green);
}

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

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

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

/* Iconos */
.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.toast.success .toast-icon {
    color: var(--green);
}

.toast.error .toast-icon {
    color: var(--red);
}

.toast.warning .toast-icon {
    color: var(--primary-600);
}

.toast.info .toast-icon {
    color: var(--blue);
}

/* Contenido */
.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.toast-message {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Botón de cierre */
.toast-close {
    flex-shrink: 0;
    padding: 0.25rem;
    background: transparent;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--gray-600);
}

/* Animaciones */
@keyframes toastSlideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease-in forwards;
} 