/* Toast Notification System - Rainify */

:root {
    --toast-success: #22c55e;
    --toast-error: #ef4444;
    --toast-warning: #f59e0b;
    --toast-info: #3b82f6;
}

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

.toast {
    pointer-events: all;
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f8fafc;
    font-family: 'Outfit', sans-serif;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.toast-exit {
    opacity: 0;
    transform: translateX(400px) scale(0.9);
}

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

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 400;
}

.toast-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 1rem;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

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

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

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

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

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

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

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

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

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

/* ==========================================
   LIGHT MODE ADJUSTMENTS - TOAST
   Copiar AL FINAL de toast.css
   ========================================== */

/* Toast base en light mode */
body.light-mode .toast {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

/* Toast Success */
body.light-mode .toast-success {
    border-left: 4px solid var(--toast-success);
    background: rgba(236, 253, 245, 0.98); /* Verde muy claro */
}

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

/* Toast Error */
body.light-mode .toast-error {
    border-left: 4px solid var(--toast-error);
    background: rgba(254, 242, 242, 0.98); /* Rojo muy claro */
}

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

/* Toast Warning */
body.light-mode .toast-warning {
    border-left: 4px solid var(--toast-warning);
    background: rgba(255, 251, 235, 0.98); /* Amarillo muy claro */
}

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

/* Toast Info */
body.light-mode .toast-info {
    border-left: 4px solid var(--toast-info);
    background: rgba(239, 246, 255, 0.98); /* Azul muy claro */
}

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

/* Mensaje del toast */
body.light-mode .toast-message {
    color: var(--text-primary);
}

/* Botón cerrar */
body.light-mode .toast-close {
    color: var(--text-secondary);
}

body.light-mode .toast-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}