/* toast.css - Toast notification styles */
/* Toast notifications with different types: success, error, warning, info */

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: 90%;
    max-width: 400px;
}

.toast {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.95) 0%, rgba(25, 25, 25, 0.98) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 18px;
    padding: 18px 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 
                0 5px 15px rgba(204, 0, 0, 0.2),
                inset 0 2px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: auto;
    animation: toastSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(204, 0, 0, 0.1), transparent 70%);
    pointer-events: none;
}

.toast::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(204, 0, 0, 0.6), transparent);
    animation: toastShimmer 2s ease-in-out infinite;
}

@keyframes toastShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.toast.toast-exit {
    animation: toastSlideOut 0.3s ease-in forwards;
}

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

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

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.toast-icon.success {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.toast-icon.error {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.toast-icon.warning {
    background: rgba(255, 204, 0, 0.2);
    color: #ffcc00;
}

.toast-icon.info {
    background: rgba(100, 149, 237, 0.2);
    color: #6495ed;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 12px;
    color: #b0b0b0;
    line-height: 1.4;
    white-space: pre-line;
}

.toast-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    margin: -4px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 16px;
    line-height: 1;
}

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