/* ========================================
   脱兔运动管理后台 - 按照参考后台风格
   ======================================== */

/* ========== CSS 变量 ========== */
:root {
    --sidebar-bg: #0f172a;
    --sidebar-width: 250px;
    --sidebar-collapsed: 65px;
    --header-height: 56px;
    --primary-color: #4f6ef7;
    --primary-hover: #3b5de7;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --purple-color: #8b5cf6;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --bg-light: #f1f5f9;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ========== 授权管理（N9） ========== */
.lic-chip {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: var(--bg-light, #f1f5f9);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 6px;
    color: var(--text-primary, #1e293b);
    word-break: break-all;
}

/* ========== 全局样式 ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-light);
    line-height: 1.5;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* ========== 状态点 ========== */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-dot.online { background: var(--success-color); box-shadow: 0 0 6px rgba(16,185,129,0.5); }
.status-dot.offline { background: var(--danger-color); }

/* ========== 侧边栏 ========== */
.main-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: #cbd5e1;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, width 0.3s ease;
    overflow: hidden;
}

/* Logo */
.sidebar-brand {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.brand-icon {
    font-size: 24px;
    color: var(--primary-color);
}

/* 用户信息 */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.user-avatar {
    font-size: 32px;
    color: #94a3b8;
}
.user-name { font-weight: 600; color: #e2e8f0; font-size: 14px; }
.user-status { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #94a3b8; }

/* 搜索框 */
.sidebar-search {
    padding: 12px 20px;
    position: relative;
}
.sidebar-search input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 8px 34px 8px 12px;
    color: #e2e8f0;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}
.sidebar-search input::placeholder { color: #64748b; }
.sidebar-search input:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary-color);
}
.sidebar-search i {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
}

/* 导航菜单 */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}
.nav-menu { list-style: none; }
.nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: #94a3b8;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.nav-item a:hover {
    color: #e2e8f0;
    background: rgba(255,255,255,0.05);
}
.nav-item a i {
    font-size: 17px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}
.nav-item.active a {
    color: #fff;
    background: linear-gradient(90deg, rgba(79,110,247,0.2) 0%, transparent 100%);
    border-left-color: var(--primary-color);
}

/* ========== 二级子菜单 ========== */
.nav-item-has-submenu > a .submenu-arrow {
    margin-left: auto;
    font-size: 11px;
    transition: transform 0.25s ease;
}
.nav-item-has-submenu.open > a .submenu-arrow {
    transform: rotate(180deg);
}
.nav-submenu {
    list-style: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.nav-item-has-submenu.open .nav-submenu {
    max-height: 300px;
}
.nav-submenu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px 9px 52px;
    color: #94a3b8;
    font-size: 13px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}
.nav-submenu li a:hover {
    color: #e2e8f0;
    background: rgba(255,255,255,0.04);
}
.nav-submenu li a i:first-child {
    font-size: 14px;
    width: 18px;
    text-align: center;
}
.nav-submenu li.active a {
    color: var(--primary-color);
    background: rgba(79,110,247,0.08);
    border-left-color: var(--primary-color);
}
/* 父级展开时高亮 */
.nav-item-has-submenu.open > a {
    color: #e2e8f0;
    background: rgba(255,255,255,0.05);
}

/* 底部 */
.sidebar-footer {
    display: flex;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 4px 0;
}
.footer-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    color: #64748b;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.footer-item:hover,
.footer-item.active {
    color: var(--primary-color);
    background: rgba(79,110,247,0.1);
}
.footer-item i { font-size: 15px; }

/* ========== 侧边栏遮罩（移动端） ========== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1035;
}
body.sidebar-open .sidebar-overlay { display: block; }

/* ========== 主内容区 ========== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* ========== 顶部导航栏 ========== */
.top-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.btn-icon:hover { background: var(--bg-light); color: var(--text-primary); }
.sidebar-toggle { font-size: 20px; }

.breadcrumb-nav {
    font-size: 14px;
    color: var(--text-secondary);
}
#breadcrumb { color: var(--text-primary); font-weight: 500; }

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 连接状态 */
.header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--bg-light);
}

/* 环境选择器 */
.env-select {
    width: auto !important;
    min-width: 110px;
    font-size: 13px;
}

/* 用户下拉 */
.header-user > a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}
.header-user > a:hover { color: var(--primary-color); }
.header-user i { font-size: 20px; }

/* ========== 页面内容 ========== */
.page-content {
    padding: 24px;
}

/* 页面标题栏 */
.page-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.page-title-bar h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}
.page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== 地点管理：操作区置顶 + 紧凑布局 + 修正与侧边栏重叠 ========== */
/* 模块整体已随 .main-content 的 margin-left 让出侧边栏宽度（桌面端 250px / 折叠 65px），
   此处仅统一模块内边距，避免内容贴边或与侧边栏重叠；不影响其它模块。 */

/* 筛选工具栏：紧贴标题栏的独立操作卡片；左右内边距对称，
   移除此前易导致歧义的 padding-left:32px 偏移（内容已由外层正确右移）。 */
.module-locations .toolbar-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
}
/* 筛选下拉使用最小宽度（min-width 而非固定宽度），保证不截断且一行内完整展示 */
.module-locations .toolbar-card .form-select-sm {
    min-width: 110px;
}
/* 区域筛选作为首个、最重要的筛选项，加粗 + 浅蓝背景，突出「区域筛选」语义 */
.module-locations .toolbar-card #location-filter-region {
    font-weight: 500;
    background-color: #eef4ff;
    border-color: #c7d7ff;
}
/* 标题栏与工具栏间距收敛，避免大空白导致操作区/数据区下沉 */
.module-locations .page-title-bar {
    margin-bottom: 12px;
}
/* 数据卡片：去除人为撑高的 min-height，让表格随内容自然高度展示；
   仅在数据较多时用 max-height 约束并滚动，消除大块空白、使操作区/数据区紧凑置顶。 */
.module-locations .locations-card {
    max-height: calc(100vh - 220px);
    overflow: auto;
}

/* ========== 卡片 ========== */
.card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
}
.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.card-body { padding: 20px; }

/* ========== 统计卡片 (参考截图样式) ========== */
.stat-card {
    border-radius: 10px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}
.stat-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.stat-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-amount {
    text-align: center;
    padding: 10px 0 14px;
}
.amount-label {
    font-size: 13px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}
.amount-value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.amount-count {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 4px;
}
.stat-card-green .amount-value { color: var(--success-color); }
.stat-card-purple .amount-value { color: var(--purple-color); }
.stat-card-red .amount-value { color: var(--danger-color); }

.stat-sub {
    display: flex;
    justify-content: space-around;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}
.sub-item {
    text-align: center;
}
.sub-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}
.sub-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}
.sub-count {
    font-size: 11px;
    color: var(--text-secondary);
}

/* 颜色辅助类 */
.bg-green-light { background: #d1fae5; }
.text-green { color: var(--success-color); }
.bg-purple-light { background: #ede9fe; }
.text-purple { color: var(--purple-color); }
.bg-red-light { background: #fee2e2; }
.text-red { color: var(--danger-color); }

/* ========== 待办事项 ========== */
.todo-row { padding: 4px 0; }
.todo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--bg-light);
    min-width: 120px;
}
.todo-label {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}
.todo-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
}
.highlight-blue { color: var(--info-color) !important; }
.highlight-orange { color: var(--warning-color) !important; }
.highlight-red { color: var(--danger-color) !important; }

/* ========== 图表操作按钮 ========== */
.chart-actions {
    display: flex;
    gap: 8px;
}
.chart-actions a {
    color: var(--text-secondary);
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
}
.chart-actions a:hover { color: var(--primary-color); background: var(--bg-light); }

/* ========== 迷你统计卡片 ========== */
.mini-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}
.mini-stat-icon {
    font-size: 28px;
    opacity: 0.85;
}
.mini-stat-value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}
.mini-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ========== 表格 ========== */
.table { margin-bottom: 0; }
.table thead th {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom-width: 1px;
    padding: 12px 16px;
    white-space: nowrap;
}
.table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 14px;
}
.table-hover tbody tr:hover { background: #f8fafc; }

/* 表格中的状态徽章 */
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.badge-success { background: #d1fae5; color: #059669; }
.badge-warning { background: #fef3c7; color: #d97706; }
.badge-danger { background: #fee2e2; color: #dc2626; }
.badge-info { background: #dbeafe; color: #2563eb; }
.badge-secondary { background: #f1f5f9; color: #64748b; }

/* 教练工作台：课程详情弹窗（封面左置 + 信息右并 + 规格表） */
.cwm-detail-card { font-size: 14px; }
.cwm-detail-card h5 { line-height: 1.3; }
.cwm-detail-card .cwm-detail-cover img { display: block; }
.cwm-detail-card .table-sm th,
.cwm-detail-card .table-sm td { font-size: 13px; }

/* 操作按钮组 */
.action-btns {
    display: flex;
    gap: 4px;
}
.action-btns .btn {
    padding: 3px 8px;
    font-size: 13px;
}

/* ========== 弹窗增强 ========== */
.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
}
.modal-title { font-weight: 600; font-size: 16px; }
.modal-body { padding: 20px; }
.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 14px 20px;
}

/* 表单标签 */
.form-label { font-weight: 500; font-size: 14px; color: var(--text-primary); }
.form-control, .form-select {
    border-color: var(--border-color);
    border-radius: 8px;
    padding: 9px 13px;
    font-size: 14px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79,110,247,0.12);
}

/* ========== 按钮 ========== */
.btn {
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 16px;
    transition: all 0.2s;
}
.btn-sm {
    padding: 5px 12px;
    font-size: 13px;
    border-radius: 6px;
}
.btn-primary { background: var(--primary-color); border-color: var(--primary-color); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border-color);
}
.btn-outline-secondary:hover {
    background: var(--bg-light);
    color: var(--text-primary);
    border-color: #cbd5e1;
}

/* ========== 响应式 ========== */
@media (max-width: 991.98px) {
    .main-sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
    }
    body.sidebar-open .main-sidebar {
        transform: translateX(0);
    }
    .main-content { margin-left: 0 !important; }
    .page-content { padding: 16px; }
    
    /* 统计卡片响应式 */
    .stat-sub { flex-wrap: wrap; gap: 8px; }
    .sub-item { min-width: 45%; }
    
    /* 待办事项响应式 */
    .todo-item { min-width: 100px; padding: 10px 10px; }
}

@media (max-width: 767.98px) {
    .header-right > *:not(.header-user):not(.btn-icon) { display: none; }
    .page-title-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
    .stat-amount .amount-value { font-size: 22px; }
}

/* ========== 侧边栏折叠状态 ========== */
body.sidebar-collapsed .main-sidebar { width: var(--sidebar-collapsed); }
body.sidebar-collapsed .main-content { margin-left: var(--sidebar-collapsed); }

body.sidebar-collapsed .sidebar-brand span,
body.sidebar-collapsed .sidebar-user .user-info,
body.sidebar-collapsed .sidebar-search input::placeholder,
body.sidebar-collapsed .nav-item a span,
body.sidebar-collapsed .footer-item span { display: none; }
body.sidebar-collapsed .sidebar-brand { justify-content: center; padding: 18px 10px; }
body.sidebar-collapsed .sidebar-user { justify-content: center; padding: 14px 10px; }
body.sidebar-collapsed .sidebar-search { padding: 12px 10px; }
body.sidebar-collapsed .sidebar-search input { padding: 8px 10px; }
body.sidebar-collapsed .sidebar-search i { display: none; }
body.sidebar-collapsed .nav-item a { justify-content: center; padding: 11px 10px; }
body.sidebar-collapsed .nav-item-has-submenu > a .submenu-arrow,
body.sidebar-collapsed .nav-submenu { display: none; }
body.sidebar-collapsed .footer-item { flex-direction: column; padding: 10px 4px; font-size: 11px; }

@media (max-width: 991.98px) {
    body.sidebar-collapsed .main-sidebar { transform: translateX(-100%); }
    body.sidebar-collapsed .main-content { margin-left: 0; }
}

/* ========== 工具类 ========== */
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cursor-pointer { cursor: pointer; }
.fw-bold { font-weight: 600; }
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.ms-auto { margin-left: auto; }

/* ========== 分类标签（课程管理） ========== */
.badge-category {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    cursor: default;
    transition: all 0.2s;
}
.badge-category:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.badge-category .btn-link {
    color: inherit;
    opacity: 0.6;
    text-decoration: none;
    padding: 0 2px;
    line-height: 1;
}
.badge-category .btn-link:hover {
    opacity: 1;
}

/* ========== Quill 编辑器适配 ========== */
#addModal .ql-container {
    min-height: 200px !important;
    font-size: 14px;
    font-family: inherit;
}
#addModal .ql-editor {
    min-height: 200px !important;
    padding: 12px 15px;
}
#addModal .ql-toolbar {
    border-color: var(--border-color) !important;
    border-radius: 8px 8px 0 0 !important;
}

/* ========== 封面图上传 ========== */
#cover-preview {
    max-width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

/* ========== 图表展开模式 ========== */
.expanded-chart {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #fff;
    border-radius: 0 !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3) !important;
    padding: 20px !important;
}

/* ========================================
   整体视觉提质 v1（2026-07-08）
   在原有 AdminLTE 风格基础上增强层次、质感与微交互；
   主色沿用 --primary-color，不改动任何 HTML / JS 结构与功能。
   如需回退：删除本段即可，原 style.css 规则完全不受影响。
   ======================================== */

/* —— 增强变量 —— */
:root {
    --card-shadow-strong: 0 4px 16px rgba(15, 23, 42, 0.08);
    --card-shadow-hover: 0 10px 30px rgba(79, 110, 247, 0.18);
    --radius-lg: 14px;
    --ease: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* —— 卡片 / 统计卡 / 迷你卡：更强阴影 + 悬停微浮 —— */
.card,
.stat-card,
.mini-stat {
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow-strong);
    transition: box-shadow var(--ease), transform var(--ease);
}
.card:hover,
.stat-card:hover,
.mini-stat:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

/* —— 侧边栏激活态更醒目（渐变加重 + 左侧高亮条） —— */
.nav-item a { position: relative; }
.nav-item.active a {
    background: linear-gradient(90deg, rgba(79, 110, 247, 0.28) 0%, rgba(79, 110, 247, 0.06) 100%);
}
.nav-item.active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary-color);
    border-radius: 0 3px 3px 0;
}

/* —— 页面标题：左侧彩色装饰条 —— */
.page-title-bar { position: relative; padding-left: 14px; }
.page-title-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--purple-color));
}

/* —— 表格：悬停更柔和 —— */
.table tbody tr { transition: background var(--ease); }
.table-hover tbody tr:hover { background: #f1f5f9; }

/* —— 按钮：悬停微浮 + 柔和投影 —— */
.btn { transition: all var(--ease); }
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 110, 247, 0.18);
}
.btn:active { transform: translateY(0); box-shadow: none; }

/* —— 弹窗：更柔和圆角与阴影 —— */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
}
.modal-header {
    background: linear-gradient(180deg, rgba(79, 110, 247, 0.05), transparent);
}

/* —— 状态徽章：轻微投影更精致 —— */
.badge-status { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }

/* —— 统计卡数字：品牌渐变文字（保持高对比可读） —— */
.stat-card-green  .amount-value { background: linear-gradient(135deg, #10b981, #059669); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card-purple .amount-value { background: linear-gradient(135deg, #8b5cf6, #6d28d9); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card-red    .amount-value { background: linear-gradient(135deg, #ef4444, #dc2626); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }


/* Multiselect row hover (coach + course) */
.coach-ms-row:hover, .course-ms-row:hover { background: #f8f9fa !important; }

/* ==================== v6 教练工作台增强 ==================== */

/* 日程网格：第四态「已预约」黄色（B-3） */
.cwm-slot-booked-yellow {
  background: #ffe08a;
  color: #7a5b00;
  border-color: #ffd24d;
}
.cwm-slot-booked-yellow:hover { transform: translateY(-1px); }

/* 离线总闸关闭：网格整体置灰（仅视觉，预约详情仍可读） */
.cwm-grid-offline {
  opacity: 0.5;
  filter: grayscale(0.6);
}

/* 在线总闸开关配色（B-1） */
#cwm-online-switch-wrap .form-check-input:checked {
  background-color: #10b981;
  border-color: #10b981;
}

/* ==================== v6 评价管理 tab ==================== */

/* 统计卡片（今日/本周/平均分） */
.cwm-eval-stat {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 18px;
  text-align: center;
  box-shadow: var(--card-shadow);
}
.cwm-eval-stat .cwm-eval-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}
.cwm-eval-stat .cwm-eval-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* 评价分段控件 */
.cwm-eval-segment .btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* 评分星级（5 星 × 2 档，每星=2 分） */
.cwm-stars { display: inline-flex; gap: 2px; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.cwm-stars .cwm-star { color: #d9dee5; transition: color .1s ease; }
.cwm-stars .cwm-star.active { color: #f59e0b; }
.cwm-stars.cwm-stars-sm { font-size: 1rem; cursor: default; }

/* 学员头像（首字） */
.cwm-eval-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary-color); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 600; flex-shrink: 0;
}

/* 标签 / 勋章 chip（可点选） */
.cwm-chip {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  user-select: none;
  background: #fff;
  color: var(--text-primary);
  transition: all .12s ease;
}
.cwm-chip:hover { border-color: var(--primary-color); }
.cwm-chip.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.cwm-chip.cwm-chip-badge { display: inline-flex; align-items: center; gap: 4px; }
.cwm-badge-preview {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff7e6; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
}

/* ==================== 地点地图选点 / 预览（地点导航特性） ==================== */
.location-picker-map {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  z-index: 0; /* 防止与 Bootstrap 弹窗层级冲突 */
}
#preview-location-map {
  width: 100%;
  height: 360px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}
