:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    background-color: var(--light-bg);
    font-family: 'Microsoft YaHei', sans-serif;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border: none;
}

.card-header {
    background-color: #e9ecef;
    font-weight: 600;
    padding: 12px 15px;
}

.form-control {
    border-radius: 6px;
    padding: 8px 12px;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.brand-input label {
    font-weight: 500;
    margin-bottom: 5px;
}

.report-output {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    min-height: 300px;
    font-family: Consolas, monospace;
    white-space: pre-wrap;
    line-height: 1.6;
}

/* 报表表格样式 */
.report-table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    vertical-align: top;
    border-color: var(--border-color);
}

.report-table th,
.report-table td {
    padding: 0.5rem;
    vertical-align: top;
    border: 1px solid var(--border-color);
}

.report-table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid var(--border-color);
    background-color: #e9ecef;
}

.text-right {
    text-align: right;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 日报文本样式 */
.daily-report {
    white-space: normal;
    line-height: 1.6;
    font-family: Consolas, monospace;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
}

.section-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
}

/* 复选框样式 */
.form-check-input {
    margin-right: 5px;
}

.form-check-label {
    font-weight: normal;
}

/* 加载提示样式 */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 80%;
}

.progress {
    height: 20px;
    margin: 20px 0;
}

.loading-text {
    font-size: 18px;
    margin-bottom: 15px;
}

.btn-group {
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.btn-group .btn {
    margin-right: 5px;
    margin-bottom: 5px;
}

/* 品牌间分隔线样式 */
.table-divider {
    border-top: 2px solid #495057 !important;
    padding: 0 !important;
    height: 2px !important;
    background-color: #495057;
}

/* 区域分隔线样式 */
.section-divider {
    position: relative;
    margin: 30px 0;
    padding: 15px 0;
}

.section-hr {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #6c757d, transparent);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.section-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 8px 20px;
    color: #0d6efd;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid #0d6efd;
    border-radius: 30px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* 响应式按钮组 */
@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-right: 0;
        width: 100%;
    }
}

/* 高级选项样式 */
#monthlyTasks {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
}

#monthlyTasks .brand-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

#monthlyTasks .section-title {
    margin-top: 0;
}

/* 改进高级选项按钮样式，使其更加显眼 */
.btn.btn-outline-secondary[data-bs-toggle="collapse"] {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
    font-weight: bold;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.btn.btn-outline-secondary[data-bs-toggle="collapse"]:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn.btn-outline-secondary[data-bs-toggle="collapse"]:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn.btn-outline-secondary[data-bs-toggle="collapse"]:active,
.btn.btn-outline-secondary[data-bs-toggle="collapse"].active {
    background-color: #0a58ca;
    border-color: #0a58ca;
    transform: translateY(0);
}

/* 图表容器高度统一 */
.card-body {
    display: flex;
    flex-direction: column;
}

.card-body canvas {
    flex: 1;
    min-height: 200px;
}
