/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    color: #333;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 500px;
    animation: toastSlideIn 0.3s ease-out;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.toast.success::before {
    background: linear-gradient(to bottom, #4CAF50, #45a049);
}

.toast.error::before {
    background: linear-gradient(to bottom, #f44336, #d32f2f);
}

.toast.warning::before {
    background: linear-gradient(to bottom, #ff9800, #f57c00);
}

.toast.info::before {
    background: linear-gradient(to bottom, #2196F3, #1976D2);
}

.toast-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #4CAF50;
}

.toast.error .toast-icon {
    color: #f44336;
}

.toast.warning .toast-icon {
    color: #ff9800;
}

.toast.info .toast-icon {
    color: #2196F3;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 3px;
    color: #2c3e50;
}

.toast-message {
    font-size: 0.85rem;
    color: #5a6c7d;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #666;
    background: rgba(0, 0, 0, 0.05);
}

/* Toast Animations */
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease-in forwards;
}

/* Responsive Toast */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        align-items: stretch;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .toast {
        background: rgba(45, 45, 45, 0.95);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .toast-title {
        color: #fff;
    }
    
    .toast-message {
        color: #ccc;
    }
    
    .toast-close {
        color: #ccc;
    }
    
    .toast-close:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
    }
}