/* ================================
   NOTIFICACIONES TOAST
   ================================ */

:root {
    --toast-success: #27AE60;
    --toast-error: #E74C3C;
    --toast-warning: #F39C12;
    --toast-info: #3498DB;
    --toast-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

/* Toast Base */
.toast {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: white;
    border-radius: 10px;
    padding: 16px 20px;
    min-width: 320px;
    max-width: 420px;
    box-shadow: var(--toast-shadow);
    animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: all;
    border-left: 5px solid #3498DB;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Animación de entrada */
@keyframes slideIn {
    from {
        transform: translateX(420px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animación de salida */
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(420px);
        opacity: 0;
    }
}

.toast.toast-exit {
    animation: slideOut 0.3s cubic-bezier(0.36, 0, 0.66, -0.56);
}

/* Toast Success (Éxito) */
.toast.toast-success {
    border-left-color: var(--toast-success);
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.05) 0%, rgba(39, 174, 96, 0.02) 100%);
}

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

/* Toast Error (Error) */
.toast.toast-error {
    border-left-color: var(--toast-error);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05) 0%, rgba(231, 76, 60, 0.02) 100%);
}

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

/* Toast Warning (Advertencia) */
.toast.toast-warning {
    border-left-color: var(--toast-warning);
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.05) 0%, rgba(243, 156, 18, 0.02) 100%);
}

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

/* Toast Info (Información) */
.toast.toast-info {
    border-left-color: var(--toast-info);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(52, 152, 219, 0.02) 100%);
}

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

/* Icono del Toast */
.toast-icon {
    flex-shrink: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

/* Contenido del Toast */
.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-title {
    font-weight: 600;
    color: #2C3E50;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.toast-message {
    color: #7F8C8D;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Botón de cerrar */
.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #BDC3C7;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.toast-close:hover {
    color: #7F8C8D;
    transform: scale(1.2);
}

/* Progress Bar (opcional) */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    border-radius: 0 0 10px 0;
}

.toast.toast-success .toast-progress {
    background: var(--toast-success);
}

.toast.toast-error .toast-progress {
    background: var(--toast-error);
}

.toast.toast-warning .toast-progress {
    background: var(--toast-warning);
}

.toast.toast-info .toast-progress {
    background: var(--toast-info);
}

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

    .toast {
        min-width: auto;
        max-width: 100%;
        padding: 14px 16px;
        gap: 12px;
    }

    .toast-title {
        font-size: 13px;
    }

    .toast-message {
        font-size: 12px;
    }

    .toast-icon {
        font-size: 18px;
        width: 22px;
        height: 22px;
    }

    .toast-close {
        width: 22px;
        height: 22px;
        font-size: 16px;
    }
}
