/* ========================================
   按钮组件
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 400;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
    gap: 6px;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-sm {
    height: 28px;
    padding: 0 12px;
    font-size: 13px;
}

.btn-lg {
    height: 40px;
    padding: 0 24px;
    font-size: 16px;
}

/* 主按钮 */
.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-primary:active:not(:disabled) {
    background: var(--primary-active);
    border-color: var(--primary-active);
}

/* 默认按钮 */
.btn-default {
    background: var(--white);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-default:hover:not(:disabled) {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 虚线按钮 */
.btn-dashed {
    background: var(--white);
    color: var(--text-primary);
    border: 1px dashed var(--border-color);
}

.btn-dashed:hover:not(:disabled) {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 链接按钮 */
.btn-link {
    background: transparent;
    color: var(--primary-color);
    border: none;
    padding: 0;
    height: auto;
}

.btn-link:hover:not(:disabled) {
    color: var(--primary-hover);
}

/* 危险按钮 */
.btn-danger {
    background: var(--white);
    color: var(--error-color);
    border-color: var(--error-color);
}

.btn-danger:hover:not(:disabled) {
    background: var(--error-color);
    color: #fff;
}

.btn-danger.btn-primary {
    background: var(--error-color);
    color: #fff;
}

.btn-danger.btn-primary:hover:not(:disabled) {
    background: #ff7875;
}

/* 成功按钮 */
.btn-success {
    background: var(--success-color);
    color: #fff;
    border-color: var(--success-color);
}

/* 按钮图标 */
.btn .btn-icon {
    width: 14px;
    height: 14px;
}

/* 按钮组 */
.btn-group {
    display: inline-flex;
    gap: 8px;
}

/* ========================================
   表单组件
======================================== */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text-primary);
}

.form-label.required::before {
    content: '*';
    color: var(--error-color);
    margin-right: 4px;
}

.form-control {
    width: 100%;
    height: 32px;
    padding: 4px 12px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    outline: none;
}

.form-control:hover {
    border-color: var(--primary-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(19, 194, 194, 0.2);
}

.form-control:disabled {
    background: var(--background);
    color: var(--text-disabled);
    cursor: not-allowed;
}

.form-control::placeholder {
    color: var(--text-disabled);
}

/* 文本域 */
textarea.form-control {
    height: auto;
    min-height: 80px;
    resize: vertical;
    padding: 8px 12px;
}

/* 选择框 */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23595959' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

/* 数字输入框 */
.input-number {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.input-number input {
    width: 60px;
    height: 30px;
    border: none;
    text-align: center;
    outline: none;
    font-size: 14px;
}

.input-number button {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--background-light);
    cursor: pointer;
    font-size: 16px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.input-number button:hover {
    background: var(--background);
    color: var(--primary-color);
}

/* 单选框 */
.radio-group {
    display: flex;
    gap: 16px;
}

.radio-item {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}

.radio-item input {
    display: none;
}

.radio-item .radio-circle {
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s;
}

.radio-item input:checked+.radio-circle {
    border-color: var(--primary-color);
}

.radio-item input:checked+.radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* 复选框 */
.checkbox-item {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}

.checkbox-item input {
    display: none;
}

.checkbox-item .checkbox-box {
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-item input:checked+.checkbox-box {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-item input:checked+.checkbox-box::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* 搜索栏 */
.search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.search-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-item label {
    font-size: 14px;
    color: var(--text-secondary);
}

.search-item .form-control {
    width: 200px;
}

.search-actions {
    display: flex;
    gap: 8px;
}

/* ========================================
   表格组件
======================================== */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    background: #f5f7fa;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.data-table tbody tr {
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: #f0f5ff;
}

.data-table tbody tr.selected {
    background: var(--primary-light);
}

.data-table .text-center {
    text-align: center;
}

/* 表格操作 */
.table-actions {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.table-actions .btn-link {
    font-size: 14px;
    padding: 0;
}

/* 状态标签 */
.status-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 2px;
}

.status-tag.success {
    background: #f6ffed;
    color: var(--success-color);
    border: 1px solid #b7eb8f;
}

.status-tag.warning {
    background: #fffbe6;
    color: var(--warning-color);
    border: 1px solid #ffe58f;
}

.status-tag.error {
    background: #fff2f0;
    color: var(--error-color);
    border: 1px solid #ffccc7;
}

.status-tag.info {
    background: #e6f7ff;
    color: var(--info-color);
    border: 1px solid #91d5ff;
}

.status-tag.default {
    background: var(--background-light);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* 表格工具栏 */
.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.table-toolbar-left {
    display: flex;
    gap: 8px;
}

.table-toolbar-right {
    display: flex;
    gap: 8px;
}

/* 空数据 */
.table-empty {
    padding: 48px 0;
    text-align: center;
    color: var(--text-secondary);
}

.table-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

/* ========================================
   分页组件
======================================== */
.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
}

.pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
    margin-right: 16px;
}

.pagination-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.pagination-btn:disabled {
    cursor: not-allowed;
    color: var(--text-disabled);
    background: var(--background-light);
}

/* ========================================
   弹窗组件
======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 520px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal {
    transform: scale(1);
}

.modal-sm {
    width: 400px;
}

.modal-lg {
    width: 720px;
}

.modal-xl {
    width: 960px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.2s;
    background: none;
    border: none;
    font-size: 18px;
}

.modal-close:hover {
    background: var(--background);
    color: var(--text-primary);
}

.modal-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
}

/* 表单弹窗布局 */
.modal-form .form-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.modal-form .form-row:last-child {
    margin-bottom: 0;
}

.modal-form .form-label {
    width: 100px;
    text-align: right;
    padding-right: 12px;
    padding-top: 6px;
    flex-shrink: 0;
    color: var(--text-primary);
}

.modal-form .form-content {
    flex: 1;
}

.modal-form .form-content .form-control {
    width: 100%;
}

/* 图标展示区 */
.icon-display {
    width: 120px;
    height: 120px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
}

.icon-display img {
    max-width: 80%;
    max-height: 80%;
}

/* 确认弹窗 */
.confirm-modal .modal {
    width: 400px;
}

.confirm-content {
    display: flex;
    gap: 16px;
}

.confirm-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.confirm-icon.warning {
    color: var(--warning-color);
}

.confirm-icon.danger {
    color: var(--error-color);
}

.confirm-icon.success {
    color: var(--success-color);
}

.confirm-message {
    flex: 1;
}

.confirm-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.confirm-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========================================
   消息提示组件
======================================== */
.message-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    animation: slideInDown 0.3s ease;
}

.message-icon {
    font-size: 16px;
}

.message.success .message-icon {
    color: var(--success-color);
}

.message.warning .message-icon {
    color: var(--warning-color);
}

.message.error .message-icon {
    color: var(--error-color);
}

.message.info .message-icon {
    color: var(--info-color);
}

.message-text {
    font-size: 14px;
    color: var(--text-primary);
}

/* ========================================
   加载组件
======================================== */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ========================================
   卡片统计组件
======================================== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

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

.stat-change {
    font-size: 12px;
    margin-top: 4px;
}

.stat-change.up {
    color: var(--success-color);
}

.stat-change.down {
    color: var(--error-color);
}

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

.stat-icon.primary {
    background: var(--primary-light);
    color: var(--primary-color);
}

.stat-icon.success {
    background: #f6ffed;
    color: var(--success-color);
}

.stat-icon.warning {
    background: #fffbe6;
    color: var(--warning-color);
}

.stat-icon.info {
    background: #e6f7ff;
    color: var(--info-color);
}

/* ========================================
   标签页组件
======================================== */
.tabs {
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
}

.tab-list {
    display: flex;
    gap: 24px;
}

.tab-item {
    padding: 12px 4px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

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

.tab-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 500;
}

/* ========================================
   时间线组件
======================================== */
.timeline {
    padding: 0 0 0 24px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-light);
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border-color);
}

.timeline-item.active .timeline-dot {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.timeline-item.success .timeline-dot {
    border-color: var(--success-color);
    background: var(--success-color);
}

.timeline-content {
    padding-left: 8px;
}

.timeline-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.timeline-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ========================================
   下拉菜单组件
======================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 4px 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--background);
}

.dropdown-item.danger {
    color: var(--error-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 4px 0;
}

/* ========================================
   工具提示组件
======================================== */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 12px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   进度条组件
======================================== */
.progress {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-bar.success {
    background: var(--success-color);
}

.progress-bar.warning {
    background: var(--warning-color);
}

.progress-bar.error {
    background: var(--error-color);
}

/* ========================================
   待办事项卡片
======================================== */
.todo-card {
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.todo-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.todo-card:active {
    transform: translateY(0);
}

/* ========================================
   Dashboard Tabs
======================================== */
.dashboard-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--background-light);
    padding: 4px;
    border-radius: var(--radius-md);
}

.dashboard-tabs .tab-item {
    flex: 1;
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dashboard-tabs .tab-item:hover {
    color: var(--primary-color);
}

.dashboard-tabs .tab-item.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* ========================================
   Tab Content
======================================== */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========================================
   Dashboard Stat Cards
======================================== */
.dashboard-stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.dashboard-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.stat-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-circle.primary {
    background: linear-gradient(135deg, #e6fffb 0%, #b5f5ec 100%);
    color: var(--primary-color);
}

.stat-circle.info {
    background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
    color: var(--info-color);
}

.stat-circle.error {
    background: linear-gradient(135deg, #fff2f0 0%, #ffccc7 100%);
    color: var(--error-color);
}

.stat-circle.warning {
    background: linear-gradient(135deg, #fffbe6 0%, #fff1b8 100%);
    color: var(--warning-color);
}

.stat-circle.pink {
    background: linear-gradient(135deg, #fff0f6 0%, #ffd6e7 100%);
    color: #eb2f96;
}

.stat-circle.blue {
    background: linear-gradient(135deg, #f0f5ff 0%, #d6e4ff 100%);
    color: #2f54eb;
}

.stat-icon {
    width: 28px;
    height: 28px;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-title {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.stat-numbers {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.stat-current {
    color: var(--text-primary);
}

.stat-divider {
    color: var(--text-disabled);
    font-size: 16px;
}

.stat-total {
    color: var(--text-secondary);
    font-size: 16px;
}

.stat-subtitle {
    font-size: 11px;
    color: var(--text-disabled);
}

/* ========================================
   Dashboard Visualization Grid
======================================== */
.dashboard-viz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.viz-content {
    padding: 20px;
}

/* Donut Chart */
.donut-chart {
    display: flex;
    align-items: center;
    gap: 32px;
}

.donut-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.donut-hole {
    position: absolute;
    inset: 30px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.legend-label {
    flex: 1;
}

/* Gauge Chart */
.gauge-chart-group {
    display: flex;
    justify-content: space-around;
    gap: 16px;
}

.gauge-chart {
    text-align: center;
}

.gauge-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.gauge-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.gauge-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0deg,
            var(--primary-color) calc(var(--progress) * 3.6deg),
            var(--border-light) calc(var(--progress) * 3.6deg),
            var(--border-light) 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.gauge-inner {
    width: 70px;
    height: 70px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-percent {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Bar Chart */
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bar-item {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    align-items: center;
    gap: 12px;
}

.bar-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
}

.bar-track {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.bar-value {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
}