/* Toast Notification Styles - Non-scoped for WASM compatibility */

.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    pointer-events: none;
}

.toast-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
    overflow: hidden;
    animation: slideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #e5e7eb;
    border-left-width: 4px;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.toast-item.success {
    border-left-color: #22c55e;
    background: linear-gradient(to right, rgba(34, 197, 94, 0.12) 0%, white 25%, white 100%);
}

.toast-item.info {
    border-left-color: #3280bf;
    background: linear-gradient(to right, rgba(50, 128, 191, 0.12) 0%, white 25%, white 100%);
}

.toast-item.warning {
    border-left-color: #f59e0b;
    background: linear-gradient(to right, rgba(245, 158, 11, 0.12) 0%, white 25%, white 100%);
}

.toast-item.error {
    border-left-color: #ef4444;
    background: linear-gradient(to right, rgba(239, 68, 68, 0.12) 0%, white 25%, white 100%);
}

.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.95);
}

.toast-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    color: #1f2937;
}

.toast-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.toast-item.success .toast-icon {
    color: #22c55e;
}

.toast-item.info .toast-icon {
    color: #3280bf;
}

.toast-item.warning .toast-icon {
    color: #f59e0b;
}

.toast-item.error .toast-icon {
    color: #ef4444;
}

.toast-close {
    background: rgba(0, 0, 0, 0.03);
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #374151;
    transform: scale(1.1);
}

.toast-body {
    padding: 12px 16px 14px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.98);
}

.toast-progress {
    height: 4px;
    background: rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    background: currentColor;
    transition: width linear;
    box-shadow: 0 0 10px currentColor, 0 0 5px rgba(255, 255, 255, 0.5);
}

.toast-item.success .toast-progress-bar {
    color: #22c55e;
}

.toast-item.info .toast-progress-bar {
    color: #3280bf;
}

.toast-item.warning .toast-progress-bar {
    color: #f59e0b;
}

.toast-item.error .toast-progress-bar {
    color: #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(450px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(450px) scale(0.95);
        opacity: 0;
    }
}

.toast-item.removing {
    animation: slideOut 0.25s ease-out forwards;
}

@media (max-width: 768px) {
    .toast-container {
        left: 10px;
        right: 10px;
        top: 70px;
        max-width: none;
    }

    .toast-item {
        margin-bottom: 8px;
    }

    @keyframes slideIn {
        from {
            transform: translateY(-120px) scale(0.95);
            opacity: 0;
        }
        to {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
    }

    @keyframes slideOut {
        from {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
        to {
            transform: translateY(-120px) scale(0.95);
            opacity: 0;
        }
    }
}
