// Toast notifications with beautiful design

.gumi-toast {
    min-width: 300px;
    padding: 1rem 1.25rem;
    border-radius: var(--gumi-radius-lg);
    color: white;
    font-weight: var(--gumi-font-medium);
    font-size: var(--gumi-text-sm);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.15),
        0 20px 48px rgba(0, 0, 0, 0.15),
        0 1px 4px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    
    // Glowing background effect
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
        z-index: -1;
    }
    
    // Success toast
    &.success {
        background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
        box-shadow: 
            0 10px 25px rgba(34, 197, 94, 0.3),
            0 20px 48px rgba(34, 197, 94, 0.2),
            0 1px 4px rgba(34, 197, 94, 0.4);
        
        &::before {
            background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
        }
    }
    
    // Error toast  
    &.error {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        box-shadow: 
            0 10px 25px rgba(239, 68, 68, 0.3),
            0 20px 48px rgba(239, 68, 68, 0.2),
            0 1px 4px rgba(239, 68, 68, 0.4);
            
        &::before {
            background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
        }
    }
    
    // Warning toast
    &.warning {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        box-shadow: 
            0 10px 25px rgba(245, 158, 11, 0.3),
            0 20px 48px rgba(245, 158, 11, 0.2),
            0 1px 4px rgba(245, 158, 11, 0.4);
            
        &::before {
            background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
        }
    }
    
    // Info toast
    &.info {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        box-shadow: 
            0 10px 25px rgba(59, 130, 246, 0.3),
            0 20px 48px rgba(59, 130, 246, 0.2),
            0 1px 4px rgba(59, 130, 246, 0.4);
            
        &::before {
            background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
        }
    }
    
    // Icon styling
    .toast-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        opacity: 0.9;
    }
    
    // Animation for entrance
    &.entering {
        animation: toast-slide-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    // Animation for exit
    &.exiting {
        animation: toast-slide-out 0.2s ease-in-out forwards;
    }
}

@keyframes toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

// Container positioning
.gumi-toast-container {
    position: fixed;
    z-index: var(--gumi-z-tooltip);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    
    &.top-right {
        top: 1rem;
        right: 1rem;
    }
    
    &.top-left {
        top: 1rem;
        left: 1rem;
    }
    
    &.bottom-right {
        bottom: 1rem;
        right: 1rem;
    }
    
    &.bottom-left {
        bottom: 1rem;
        left: 1rem;
    }
}

// Dark theme adjustments
[data-theme="dark"] {
    .gumi-toast {
        border-color: rgba(255, 255, 255, 0.1);
        
        &::before {
            background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
        }
    }
}