/* 知识图谱管理模块专用样式 */

/* ========== Toast 提示样式 ========== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
    min-width: 250px;
}

.toast-item.success {
    border-left: 4px solid #28a745;
}

.toast-item.danger {
    border-left: 4px solid #dc3545;
}

.toast-item.warning {
    border-left: 4px solid #ffc107;
}

.toast-item.info {
    border-left: 4px solid #17a2b8;
}

.toast-icon {
    font-size: 18px;
    margin-right: 10px;
}

.toast-item.success .toast-icon {
    color: #28a745;
}

.toast-item.danger .toast-icon {
    color: #dc3545;
}

.toast-item.warning .toast-icon {
    color: #ffc107;
}

.toast-item.info .toast-icon {
    color: #17a2b8;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.toast-close {
    cursor: pointer;
    color: #999;
    font-size: 16px;
    margin-left: 10px;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========== 加载状态样式 ========== */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
