/* 企业购BI分析系统 - 自定义样式 */

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 卡片悬浮效果 */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Tab样式 */
.tab-btn {
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #4f46e5;
}

.tab-btn.active {
    color: #4f46e5;
    border-color: #4f46e5;
}

/* 表格样式 */
table {
    border-collapse: collapse;
}

table th {
    background-color: #f9fafb;
    white-space: nowrap;
}

table td {
    white-space: nowrap;
}

table tbody tr:hover {
    background-color: #f9fafb;
}

/* 图表容器 */
.chart-container {
    width: 100%;
    min-height: 280px;
}

.chart-container-sm {
    width: 100%;
    min-height: 200px;
}

/* 进度条 */
.progress-bar {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 状态标签 */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 9999px;
}

.status-success {
    background-color: #dcfce7;
    color: #166534;
}

.status-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.status-error {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* 拖放区域 */
#dropZone.drag-over {
    border-color: #6366f1;
    background-color: #eef2ff;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .chart-container {
        min-height: 220px;
    }

    table {
        font-size: 14px;
    }

    table th,
    table td {
        padding: 8px 12px;
    }
}

/* 暗色模式支持（可选） */
@media (prefers-color-scheme: dark) {
    /* 可以在这里添加暗色模式样式 */
}
