/* 全局样式 */
body {
    background-color: #f5f8fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.navbar-brand i {
    margin-right: 8px;
}

/* 卡片样式 */
.card {
    border-radius: 0.5rem;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 按钮样式 */
.btn {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.btn i {
    margin-right: 5px;
}

/* 表格样式 */
.table {
    vertical-align: middle;
}

.table thead th {
    font-weight: 600;
    color: #495057;
}

/* 图表容器样式 */
.chart-container {
    padding: 15px;
    border-radius: 0.375rem;
    background-color: #fff;
}

/* 数据统计卡片 */
.stat-card {
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    background-color: #fff;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.stat-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #6c757d;
    margin-bottom: 0;
}

/* 自定义标签页样式 */
.nav-tabs .nav-link {
    color: #495057;
    border: none;
    border-bottom: 3px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    border-bottom: 3px solid #007bff;
    background-color: transparent;
}

.nav-tabs .nav-link:hover:not(.active) {
    border-color: rgba(0, 123, 255, 0.3);
}

/* 表单样式 */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
}

.form-control, .form-select {
    border-radius: 0.375rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid #ced4da;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 登录/注册页面样式 */
.login-card, .register-card {
    max-width: 30rem;
    margin: 2rem auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card i {
        font-size: 1.5rem;
    }
}

/* 打印样式优化 */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background-color: #fff;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
}
