/* =================================================================
   TOAST-SPA.CSS - Toast Notification Styles
   =================================================================
   Modern toast notifications for GateChecks SPA
   ================================================================= */

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

/* Base Toast Styles */
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    max-width: 420px;
    min-width: 300px;
    pointer-events: all;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.toast.hide {
    opacity: 0;
    transform: translateX(100%);
}

/* Toast Icon */
.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon svg {
    width: 20px;
    height: 20px;
}

/* Toast Message */
.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #e2e8f0;
}

/* Toast Close Button */
.toast-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.2s ease;
    padding: 0;
}

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

.toast-close svg {
    width: 16px;
    height: 16px;
}

/* Toast Types */
.toast-success {
    background: linear-gradient(135deg, #1e293b 0%, #1a2332 100%);
    border-color: rgba(34, 197, 94, 0.3);
}

.toast-success .toast-icon {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 8px;
    padding: 2px;
}

.toast-error {
    background: linear-gradient(135deg, #1e293b 0%, #2a1f1f 100%);
    border-color: rgba(239, 68, 68, 0.3);
}

.toast-error .toast-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    padding: 2px;
}

.toast-warning {
    background: linear-gradient(135deg, #1e293b 0%, #2a2619 100%);
    border-color: rgba(245, 158, 11, 0.3);
}

.toast-warning .toast-icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    padding: 2px;
}

.toast-info {
    background: linear-gradient(135deg, #1e293b 0%, #1a2438 100%);
    border-color: rgba(0, 188, 212, 0.3);
}

.toast-info .toast-icon {
    color: #00bcd4;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 8px;
    padding: 2px;
}

/* Animation for multiple toasts */
.toast-container .toast:not(:first-child) {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .toast {
        transition: opacity 0.2s ease;
        transform: none !important;
    }
    
    .toast.show {
        transform: none !important;
    }
    
    .toast.hide {
        transform: none !important;
    }
    
    @keyframes slideDown {
        from, to {
            transform: none;
        }
    }
}