/* BI看板专用样式 */

/* 自定义颜色 */
.bg-purple { 
    background-color: #6f42c1 !important; 
}
.text-purple { 
    color: #6f42c1 !important; 
}
.bg-orange { 
    background-color: #fd7e14 !important; 
}
.text-orange { 
    color: #fd7e14 !important; 
}

/* 卡片样式 */
.dashboard-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 统计卡片图标容器 */
.stat-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dashboard-card:hover .stat-icon-container {
    transform: scale(1.1);
}

/* 进度条样式 */
.progress {
    background-color: #e9ecef;
    border-radius: 0.375rem;
}

.progress-bar {
    border-radius: 0.375rem;
    transition: width 0.6s ease;
}

/* 图表容器 */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* 快速操作按钮 */
.quick-action-btn {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 120px;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    border-color: currentColor;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 徽章样式 */
.stat-badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

/* 表格样式 */
.dashboard-table {
    font-size: 0.875rem;
}

.dashboard-table th {
    border-top: none;
    font-weight: 600;
    color: #6c757d;
}

.dashboard-table td {
    vertical-align: middle;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .dashboard-card {
        margin-bottom: 1rem;
    }
    
    .quick-action-btn {
        min-height: 100px;
    }
    
    .stat-icon-container {
        width: 50px;
        height: 50px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-card {
    animation: fadeInUp 0.6s ease-out;
}

.dashboard-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-card:nth-child(3) { animation-delay: 0.3s; }
.dashboard-card:nth-child(4) { animation-delay: 0.4s; }

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 数据更新动画 */
.data-update {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 自定义滚动条 */
.dashboard-container::-webkit-scrollbar {
    width: 6px;
}

.dashboard-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dashboard-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.dashboard-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


