/* 系统配置管理页面样式 */
.system-config-container {
    padding: 20px;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.page-header .subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Tab导航 */
.tab-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn i {
    margin-right: 8px;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Tab内容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.stat-info h3 {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
}

.stat-value.text-danger {
    color: var(--danger-color);
}

/* 操作按钮栏 */
.actions-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.actions-bar .btn {
    flex: 0 0 auto;
}

/* 详情区域 */
.details-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 20px;
}

.details-section h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.details-section h3 i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* 趋势图 */
.trend-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trend-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trend-item .date {
    width: 60px;
    font-size: 13px;
    color: var(--text-secondary);
}

.trend-item .progress-bar {
    flex: 1;
    height: 30px;
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
}

.trend-item .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--primary-color));
    transition: width 0.3s ease;
}

.trend-item .value {
    width: 50px;
    text-align: right;
    font-weight: bold;
    color: var(--text-primary);
}

/* 数据表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.data-table thead {
    background: var(--bg-secondary);
}

.data-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.data-table tbody tr:hover {
    background: var(--bg-hover);
}

.data-table code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
    color: var(--primary-color);
}

.data-table .text-center {
    text-align: center;
    color: var(--text-secondary);
}

/* 徽章 */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: var(--success-light);
    color: var(--success-color);
}

.badge-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

/* 告警列表 */
.alerts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.alert-item {
    background: var(--card-bg);
    border-left: 4px solid var(--border-color);
    padding: 15px;
    border-radius: var(--border-radius);
}

.alert-item.active {
    border-left-color: var(--success-color);
}

.alert-item.inactive {
    border-left-color: var(--text-tertiary);
    opacity: 0.6;
}

.alert-item h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.alert-item p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 5px 0;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* 信息提示 */
.info-message {
    background: var(--info-light);
    border-left: 4px solid var(--info-color);
    padding: 12px 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    color: var(--info-color);
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .tab-navigation {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .actions-bar {
        flex-direction: column;
    }

    .actions-bar .btn {
        width: 100%;
    }

    .alerts-list {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 8px;
    }
}
