/* 检测数据驾驶舱样式 */

/* 统计卡片 */
.stats-card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.stats-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

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

/* 表格样式 */
.table {
    margin-bottom: 0;
}

.table thead th {
    border-top: none;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #6c757d;
    white-space: nowrap;
}

.table tbody tr {
    transition: all 0.2s ease;
}

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

/* 状态标签 */
.status-badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-positive {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.badge-negative {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.badge-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .table-responsive {
        border: 1px solid #e9ecef;
        border-radius: 0.5rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .chart-container {
        min-height: 250px;
    }
}

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

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

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

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

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

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

/* 加载动画 */
.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 0.25rem solid rgba(13, 110, 253, 0.2);
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    display: inline-block;
    vertical-align: middle;
}

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

/* 工具提示 */
.tooltip-inner {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* 时间选择器 */
.date-range-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* 分页样式 */
.pagination .page-link {
    min-width: 2.5rem;
    text-align: center;
    margin: 0 0.15rem;
    border-radius: 0.25rem;
}

/* 卡片标题 */
.card-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.25rem;
}

/* 响应式表格操作按钮 */
.table-actions {
    white-space: nowrap;
}

/* 空状态 */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
