/**
 * 田径赛事报名系统 - 通用基础样式
 * 版本: V1.0
 * 日期: 2026-08-06
 * 
 * 说明: 全局重置、布局、通用组件样式
 * 适配: 后台PC端布局 (1920x1080及以上分辨率)
 */

/* ==================== CSS变量 ==================== */
:root {
    /* 主题色 */
    --primary-color: #1890ff;
    --primary-hover: #40a9ff;
    --primary-active: #096dd9;
    --primary-light: #e6f7ff;
    --primary-bg: #f0f5ff;

    /* 成功色 */
    --success-color: #52c41a;
    --success-hover: #73d13d;
    --success-light: #f6ffed;

    /* 警告色 */
    --warning-color: #faad14;
    --warning-hover: #ffc53d;
    --warning-light: #fffbe6;

    /* 错误色 */
    --error-color: #ff4d4f;
    --error-hover: #ff7875;
    --error-light: #fff2f0;

    /* 紫色 */
    --purple-color: #722ed1;
    --purple-light: #f9f0ff;

    /* 灰色 */
    --text-primary: rgba(0, 0, 0, 0.85);
    --text-secondary: rgba(0, 0, 0, 0.65);
    --text-tertiary: rgba(0, 0, 0, 0.45);
    --text-disabled: rgba(0, 0, 0, 0.25);

    /* 边框色 */
    --border-color: #d9d9d9;
    --border-color-split: #f0f0f0;

    /* 背景色 */
    --bg-color: #f0f2f5;
    --bg-color-light: #fafafa;
    --bg-container: #ffffff;

    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 6px 16px -8px rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.1);

    /* 圆角 */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-xl: 12px;

    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* 字体 */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 13px;
    --font-size-base: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-xxl: 24px;

    /* 布局 */
    --header-height: 48px;
    --sidebar-width: 200px;
    --sidebar-collapsed-width: 60px;
    --content-max-width: 1600px;
}

/* ==================== 全局重置 ==================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background-color: var(--bg-color);
    line-height: 1.5;
    min-height: 100vh;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    height: 32px;
    padding: 0 var(--spacing-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    white-space: nowrap;
    user-select: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.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-success {
    background: var(--success-color);
    color: #fff;
    border-color: var(--success-color);
}

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

.btn-default {
    background: var(--bg-container);
    color: var(--text-primary);
    border-color: var(--border-color);
}

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

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

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

.btn-sm {
    height: 32px;
    padding: 0 var(--spacing-sm);
    font-size: var(--font-size-sm);
}

.btn-lg {
    height: 44px;
    padding: 0 var(--spacing-lg);
    font-size: var(--font-size-lg);
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* ==================== 布局类 ==================== */
.layout-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.layout-header {
    height: var(--header-height);
    background: var(--bg-container);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.layout-sider {
    width: var(--sidebar-width);
    background: #001529;
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 99;
    transition: width 0.3s;
}

/* 侧边栏加载状态 - 初始化完成前隐藏 */
.layout-sider.sidebar-loading {
    visibility: hidden;
}

.layout-sider.collapsed {
    width: var(--sidebar-collapsed-width);
}

.layout-content {
    margin-top: var(--header-height);
    margin-left: var(--sidebar-width);
    padding: var(--spacing-lg);
    min-height: calc(100vh - var(--header-height));
    transition: margin-left 0.3s;
}

.layout-sider.collapsed + .layout-content {
    margin-left: var(--sidebar-collapsed-width);
}

.layout-footer {
    background: var(--bg-container);
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: center;
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
    border-top: 1px solid var(--border-color-split);
}

/* ==================== 导航栏 ==================== */
.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: #fff;
    font-size: var(--font-size-lg);
    font-weight: 600;
    padding: 16px var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.nav-menu {
    list-style: none;
    padding: var(--spacing-md) 0;
}

.nav-menu-item {
    display: flex;
    align-items: center;
    padding: 10px var(--spacing-md);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: all 0.3s;
    font-size: var(--font-size-sm);
    border-left: 3px solid transparent;
}

.nav-menu-item > a {
    color: #fff !important;
    font-weight: 600;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-menu-item:hover > a {
    color: #fff !important;
}

.nav-menu-item.active > a {
    color: #fff !important;
    font-weight: 700;
}

.nav-menu-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-menu-item.active {
    color: #fff;
    background: var(--primary-color);
    border-left-color: #fff;
}

.nav-menu-icon {
    margin-right: var(--spacing-sm);
    font-size: 16px;
    width: 18px;
    text-align: center;
    pointer-events: none;
}

.nav-menu-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

/* ==================== 子菜单展开/收起动画 ==================== */
.nav-menu-item.parent {
    position: relative;
}

.nav-menu-item .nav-menu-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.4s ease-in-out;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.nav-menu-item.expanded .nav-menu-arrow {
    transform: rotate(90deg);
}

.nav-submenu {
    list-style: none;
    padding: 0;
    display: none;
    background: transparent;
}

.nav-submenu-item {
    display: flex;
    align-items: center;
    padding: 4px var(--spacing-md) 4px 40px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    font-size: var(--font-size-sm);
    line-height: 1.4;
    transition: color 0.2s, background 0.2s;
    border-left: 3px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-submenu-item > a {
    color: #fff !important;
    font-weight: 500;
    text-decoration: none !important;
    display: block;
    width: 100%;
}

.nav-submenu-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-submenu-item.active {
    color: #fff;
    background: rgba(24, 144, 255, 0.85);
    border-left-color: #fff;
    font-weight: 600;
}

.nav-submenu-item.active > a {
    font-weight: 700;
}

/* ==================== 导航分隔符（工作流分层） ==================== */
.nav-divider {
    display: flex;
    align-items: center;
    padding: 16px var(--spacing-lg) 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: default;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
}

.nav-divider:first-of-type {
    margin-top: 16px;
}

.nav-divider span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==================== 折叠状态适配 ==================== */
.layout-sider.collapsed .nav-menu-text {
    display: none;
}

.layout-sider.collapsed .nav-menu-arrow {
    display: none;
}

.layout-sider.collapsed .nav-menu-item {
    justify-content: center;
    padding: 0;
}

.layout-sider.collapsed .nav-menu-item .nav-menu-icon {
    margin: 0;
}

.layout-sider.collapsed .nav-submenu {
    display: none !important;
}

.layout-sider.collapsed .nav-submenu-item {
    display: none;
}

.layout-sider.collapsed .nav-divider {
    justify-content: center;
    padding: 16px 8px 8px;
}

.layout-sider.collapsed .nav-divider span {
    display: none;
}

.layout-sider.collapsed .nav-logo {
    justify-content: center;
    padding: 16px var(--spacing-sm);
}

.layout-sider.collapsed .nav-logo-text {
    display: none;
}
/* ==================== 头部工具栏 ==================== */
.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* 侧边栏折叠按钮 */
.sidebar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    font-size: 16px;
}

.sidebar-toggle-btn:hover {
    background: var(--bg-hover);
}

.sidebar-toggle-btn:active {
    background: var(--bg-active);
}

.sidebar-toggle-btn .icon-expand {
    transform: rotate(90deg);
    transition: transform 0.3s;
}

.header-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
}

.header-breadcrumb {
    color: var(--text-tertiary);
    font-size: var(--font-size-xs);
}

.header-breadcrumb a {
    color: var(--text-secondary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-user {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
    padding: 2px 8px;
    border-radius: var(--radius-md);
    transition: background 0.3s;
}

.header-user:hover {
    background: var(--bg-color);
}

.header-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
}

.header-user-info {
    text-align: right;
}

.header-user-name {
    font-size: var(--font-size-xs);
    color: var(--text-primary);
    font-weight: 500;
}

.header-user-role {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
}

.header-user-company,
.header-user-unit {
    font-size: 12px;
    color: var(--text-tertiary, #999);
    line-height: 1.5;
    margin-top: 2px;
}

/* 头部图标按钮 */
.header-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    transition: background 0.2s, color 0.2s;
}

.header-icon-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.header-icon-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 14px;
    height: 14px;
    padding: 0 4px;
    background: #ff4d4f;
    color: #fff;
    font-size: 10px;
    line-height: 14px;
    text-align: center;
    border-radius: 7px;
    font-weight: 500;
}

.header-notification {
    position: relative;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: background 0.3s;
}

.header-notification:hover {
    background: var(--bg-color);
}

.header-notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--error-color);
    color: #fff;
    border-radius: 9px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== 卡片 ==================== */
.card {
    background: var(--bg-container);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color-split);
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: var(--spacing-md) 0;
}

.card-footer {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color-split);
}

/* ==================== 页面头部 ==================== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.page-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
}

.page-subtitle {
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
}

.page-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* ==================== 筛选工具栏 ==================== */
.filter-bar {
    background: var(--bg-container);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    box-shadow: var(--shadow-card);
}

.filter-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.filter-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    white-space: nowrap;
}

.filter-actions {
    margin-left: auto;
    display: flex;
    gap: var(--spacing-sm);
}

/* ==================== 统计卡片 ==================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stat-card {
    background: var(--bg-container);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
}

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

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

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

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.stat-value {
    font-size: var(--font-size-xxl);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-trend {
    font-size: var(--font-size-xs);
    margin-top: var(--spacing-xs);
}

.stat-trend.up { color: var(--success-color); }
.stat-trend.down { color: var(--error-color); }

/* ==================== 状态标签 ==================== */
.status-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    line-height: 18px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.status-tag::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
    background: currentColor;
}

.status-draft {
    color: var(--text-tertiary);
    background: var(--bg-color);
    border-color: var(--border-color);
}

.status-pending {
    color: var(--warning-color);
    background: var(--warning-light);
    border-color: #ffe58f;
}

.status-confirmed,
.status-approved,
.status-active,
.status-enabled {
    color: var(--success-color);
    background: var(--success-light);
    border-color: #b7eb8f;
}

.status-rejected,
.status-error,
.status-unpaid,
.status-disabled {
    color: var(--error-color);
    background: var(--error-light);
    border-color: #ffccc7;
}

.status-locked,
.status-registering {
    color: var(--primary-color);
    background: var(--primary-light);
    border-color: #91d5ff;
}

.status-finished,
.status-waived,
.status-refunded {
    color: var(--purple-color);
    background: var(--purple-light);
    border-color: #d3adf7;
}

.status-register-closed {
    color: var(--warning-color);
    background: var(--warning-light);
    border-color: #ffe58f;
}

.status-cancelled,
.status-inactive,
.status-frozen,
.status-failed {
    color: var(--text-tertiary);
    background: var(--bg-color);
    border-color: var(--border-color);
}

.status-paid {
    color: var(--success-color);
    background: var(--success-light);
    border-color: #b7eb8f;
}

.status-unknown {
    color: var(--text-tertiary);
    background: var(--bg-color);
    border-color: var(--border-color);
}

/* 名额预警 */
.status-normal { color: var(--success-color); background: var(--success-light); }
.status-attention { color: var(--warning-color); background: var(--warning-light); }
.status-warning { color: #fa541c; background: #fff2e8; }
.status-full { color: var(--error-color); background: var(--error-light); }

/* ==================== 空状态 ==================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    color: var(--text-tertiary);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.empty-message {
    font-size: var(--font-size-sm);
}

/* ==================== 加载状态 ==================== */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

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

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

/* ==================== 工具类 ==================== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; }
.flex-auto { flex: auto; }
.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

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

.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-error { color: var(--error-color); }
.text-muted { color: var(--text-tertiary); }

.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-bold { font-weight: 600; }

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mr-xs { margin-right: var(--spacing-xs); }
.mr-sm { margin-right: var(--spacing-sm); }
.ml-xs { margin-left: var(--spacing-xs); }
.ml-sm { margin-left: var(--spacing-sm); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-w-0 { min-width: 0; }

.hidden { display: none !important; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1200px) {
    .layout-content {
        padding: var(--spacing-md);
    }
}

@media (max-width: 992px) {
    .layout-sider {
        width: var(--sidebar-collapsed-width);
    }
    .layout-content {
        margin-left: var(--sidebar-collapsed-width);
    }
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-actions {
        margin-left: 0;
        justify-content: flex-end;
    }
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
}
