/* Toast通知样式文件 */

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none; /* 防止toast阻挡其他元素的交互 */
}

.toast {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-color);
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 350px;
    word-wrap: break-word;
    pointer-events: auto; /* 恢复toast本身的交互 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.toast.success {
    border-left: 4px solid #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.toast.error {
    border-left: 4px solid #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.toast.info {
    border-left: 4px solid #2196F3;
    background: rgba(33, 150, 243, 0.1);
}

.toast.warning {
    border-left: 4px solid #ff9800;
    background: rgba(255, 152, 0, 0.1);
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .toast-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        max-width: none;
        font-size: 13px;
        padding: 10px 14px;
    }
} 