/* ==============================================
   SISTEMA DE TOASTS
   ============================================== */

/* Contenedor de toasts */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

/* Toast individual */
.toast {
    margin-bottom: 10px;
    padding: 12px 16px;
    border-radius: calc(var(--radius) - 2px);
    color: oklch(var(--primary-foreground));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    max-width: 350px;
    word-wrap: break-word;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
    position: relative;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Colores por tipo */
.toast.success {
    background: linear-gradient(135deg, oklch(var(--chart-2)), oklch(var(--chart-2) / 0.9));
}

.toast.error {
    background: linear-gradient(135deg, oklch(var(--destructive)), oklch(var(--destructive) / 0.9));
}

.toast.warning {
    background: linear-gradient(135deg, oklch(var(--chart-4)), oklch(var(--chart-4) / 0.9));
}

.toast.info {
    background: linear-gradient(135deg, oklch(var(--chart-1)), oklch(var(--chart-1) / 0.9));
}

/* Contenido del toast */
.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toast-message {
    flex: 1;
    margin-right: 10px;
}

.toast-close {
    font-size: 18px;
    font-weight: bold;
    opacity: 0.7;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
    color: inherit;
    line-height: 1;
}

.toast-close:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        max-width: none;
        margin-bottom: 8px;
    }
}

/* Animación de salida */
.toast.removing {
    opacity: 0;
    transform: translateX(100%);
}