/* ============================================================
   政企集团单位合作管控平台 - 简约科技感主题（浅色）
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #e8f0fe;
    --secondary: #7c3aed;
    --accent: #00b96b;
    --warning: #ffaa00;
    --danger: #ff4757;
    --success: #00b96b;
    --bg: #f5f7fb;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f4ff;
    --bg-muted: #f8fafc;
    --border: #e5e9f2;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --shadow: 0 2px 12px rgba(15, 40, 80, 0.06);
    --shadow-hover: 0 6px 20px rgba(0, 102, 255, 0.12);
    --glow: 0 0 20px rgba(0, 102, 255, 0.12);
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse at top left, rgba(0, 102, 255, 0.06), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(124, 58, 237, 0.05), transparent 50%);
    background-attachment: fixed;
}

/* 科技网格背景 */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   登录/注册页面
   ============================================================ */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 44px);
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px 40px;
    width: 440px;
    box-shadow: 0 25px 50px rgba(15, 40, 80, 0.12);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: var(--glow);
}

.auth-logo h1 {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-logo p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 4px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-control::placeholder { color: var(--text-muted); }

select.form-control option { background: #fff; color: var(--text-primary); }

textarea.form-control { resize: vertical; min-height: 80px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.btn-success { background: linear-gradient(135deg, var(--success), #20a862); color: #fff; }
.btn-danger { background: linear-gradient(135deg, var(--danger), #c0392b); color: #fff; }
.btn-warning { background: linear-gradient(135deg, var(--warning), #e67e22); color: #fff; }
.btn-default {
    background: var(--bg-muted);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-default:hover { background: var(--bg-card-hover); border-color: var(--primary); color: var(--primary); }

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-block { width: 100%; }

/* 编辑按钮：白底蓝字，清晰可辨 */
.btn-edit {
    background: #ffffff;
    color: #0066ff;
    border: 1px solid #0066ff;
}
.btn-edit:hover {
    background: #0066ff;
    color: #ffffff;
    border-color: #0066ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.25);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 13px;
}
.auth-footer a { color: var(--primary); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ============================================================
   主布局
   ============================================================ */
.layout { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* 侧边栏 */
.sidebar {
    width: 240px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 12px rgba(15, 40, 80, 0.04);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-header .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sidebar-header .logo-text {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}
.sidebar-header .logo-text small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.sidebar-nav .nav-section {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 12px 8px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
}

.sidebar-nav a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(124, 58, 237, 0.06));
    color: var(--primary);
    border: 1px solid rgba(0, 102, 255, 0.2);
    font-weight: 600;
}

.sidebar-nav a.active::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

.sidebar-nav a .nav-icon { font-size: 18px; width: 24px; text-align: center; }

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}

/* 主内容区 */
.main-content {
    margin-left: 240px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 顶部栏 */
.topbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar .page-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar .page-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.topbar .user-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.topbar .user-detail { line-height: 1.3; }
.topbar .user-detail .name { font-size: 14px; font-weight: 600; }
.topbar .user-detail .role { font-size: 11px; color: var(--text-muted); }

.topbar .logout-btn {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.3s;
}
.topbar .logout-btn:hover { color: var(--danger); border-color: var(--danger); }

/* 内容区 */
.content { padding: 28px 32px; flex: 1; }

.site-record {
    min-height: 44px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    line-height: 20px;
    position: relative;
    z-index: 1;
}

.site-record a {
    color: inherit;
    text-decoration: none;
}

.site-record a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.site-record-auth {
    background: var(--bg-card);
}

/* ============================================================
   统计卡片
   ============================================================ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.stat-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--card-color, var(--primary)) 0%, transparent 70%);
    opacity: 0.15;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    background: var(--primary-light);
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .stat-trend {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ============================================================
   面板/卡片
   ============================================================ */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.panel-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-header h3::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
}

.panel-body { padding: 24px; }

/* ============================================================
   表格
   ============================================================ */
.table-wrapper { overflow-x: auto; }

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

table.data-table th {
    background: var(--bg-muted);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

table.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

table.data-table tr:hover { background: var(--bg-card-hover); }

table.data-table a:not(.btn) { color: var(--primary); text-decoration: none; }
table.data-table a:not(.btn):hover { text-decoration: underline; }

/* ============================================================
   标签/徽章
   ============================================================ */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-primary { background: var(--primary-light); color: var(--primary); border: 1px solid rgba(0, 102, 255, 0.25); }
.badge-success { background: rgba(0, 185, 107, 0.1); color: var(--success); border: 1px solid rgba(0, 185, 107, 0.3); }
.badge-warning { background: rgba(255, 170, 0, 0.12); color: #d97706; border: 1px solid rgba(255, 170, 0, 0.3); }
.badge-danger { background: rgba(255, 71, 87, 0.1); color: var(--danger); border: 1px solid rgba(255, 71, 87, 0.3); }
.badge-info { background: rgba(124, 58, 237, 0.1); color: var(--secondary); border: 1px solid rgba(124, 58, 237, 0.3); }
.badge-default { background: var(--bg-muted); color: var(--text-secondary); border: 1px solid var(--border); }

/* ============================================================
   搜索表单
   ============================================================ */
.search-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.search-form .form-group { margin-bottom: 0; flex: 1; min-width: 160px; }
.search-form .form-actions { display: flex; gap: 10px; }

/* ============================================================
   消息提示
   ============================================================ */
.messages { margin-bottom: 20px; }

.alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    border: 1px solid;
}

.alert-success { background: rgba(0, 185, 107, 0.08); color: var(--success); border-color: rgba(0, 185, 107, 0.3); }
.alert-error { background: rgba(255, 71, 87, 0.08); color: var(--danger); border-color: rgba(255, 71, 87, 0.3); }
.alert-info { background: var(--primary-light); color: var(--primary); border-color: rgba(0, 102, 255, 0.25); }
.alert-warning { background: rgba(255, 170, 0, 0.1); color: #d97706; border-color: rgba(255, 170, 0, 0.3); }

/* ============================================================
   进度条/可视化
   ============================================================ */
.progress-bar {
    height: 8px;
    background: var(--bg-muted);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar .progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.5s;
}

/* 柱状图 */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 200px;
    padding: 20px 0;
}

.bar-chart .bar-item {
    flex: 1;
    text-align: center;
}

.bar-chart .bar {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 4px 4px 0 0;
    margin: 0 auto;
    min-height: 4px;
    position: relative;
    transition: all 0.3s;
}

.bar-chart .bar:hover { opacity: 0.8; }

.bar-chart .bar-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

.bar-chart .bar-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ============================================================
   炫酷导出按钮
   ============================================================ */
.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #0066ff 0%, #7c3aed 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.35), 0 0 0 1px rgba(255,255,255,0.15) inset;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.export-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.45), 0 0 0 1px rgba(255,255,255,0.25) inset;
    color: #fff;
}

.export-btn:hover::before {
    left: 100%;
}

.export-btn .export-icon { font-size: 18px; }
.export-btn .export-text { letter-spacing: 1px; }
.export-btn .export-arrow {
    font-size: 16px;
    animation: bounce-down 1.5s infinite;
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/* ============================================================
   分页控件
   ============================================================ */
.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 13px;
}

.pagination-info strong {
    color: var(--primary);
    font-weight: 600;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-controls a,
.pagination-controls span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    color: var(--text-secondary);
    background: var(--bg-muted);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.pagination-controls a:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-controls .current {
    background: linear-gradient(135deg, #0066ff, #7c3aed);
    color: #fff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 102, 255, 0.3);
}

.pagination-controls .disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-size-select {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
}

.page-size-select select {
    background: var(--bg-muted);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
}

.page-size-select select:focus {
    outline: none;
    border-color: var(--primary);
}

/* 导出下拉按钮组 */
.export-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.export-group .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 环形图 */
.donut-chart {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.donut-chart .donut-center {
    width: 90px;
    height: 90px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.donut-chart .donut-value { font-size: 24px; font-weight: 700; color: var(--primary); }
.donut-chart .donut-label { font-size: 11px; color: var(--text-muted); }

/* ============================================================
   详情页
   ============================================================ */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.detail-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.detail-item .label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.detail-item .value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================================
   空状态
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.5; }

/* ============================================================
   操作栏
   ============================================================ */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.action-bar .actions { display: flex; gap: 10px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
    .sidebar { width: 70px; }
    .sidebar-header .logo-text, .sidebar-nav a span, .sidebar-footer { display: none; }
    .sidebar-nav a { justify-content: center; padding: 12px; }
    .main-content { margin-left: 70px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .stat-grid { grid-template-columns: 1fr; }
    .content { padding: 16px; }
    .topbar { padding: 0 16px; }
    .auth-card { width: 90%; padding: 32px 24px; }
}


/* ============================================================
   主题切换按钮
   ============================================================ */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-muted);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1.4;
}
.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.theme-toggle-float {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 300;
    box-shadow: var(--shadow);
}

/* ============================================================
   深色主题（黑色科技风）
   ============================================================ */
[data-theme="dark"] {
    --primary: #3d8bff;
    --primary-dark: #2f6fd9;
    --primary-light: rgba(0, 102, 255, 0.16);
    --secondary: #9d6bff;
    --accent: #00d084;
    --warning: #ffb545;
    --danger: #ff5c6c;
    --success: #00d084;
    --bg: #0a101d;
    --bg-card: #101828;
    --bg-card-hover: #16203a;
    --bg-muted: #16203a;
    --border: #233253;
    --text-primary: #e6edf7;
    --text-secondary: #9fb0c8;
    --text-muted: #6b7f9c;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    --shadow-hover: 0 6px 22px rgba(0, 102, 255, 0.28);
    --glow: 0 0 24px rgba(0, 102, 255, 0.25);
}

[data-theme="dark"] body {
    background-image:
        radial-gradient(ellipse at top left, rgba(0, 102, 255, 0.10), transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(124, 58, 237, 0.08), transparent 55%);
}

[data-theme="dark"] body::before {
    background-image:
        linear-gradient(rgba(61, 139, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61, 139, 255, 0.05) 1px, transparent 1px);
}

[data-theme="dark"] .form-control:focus { background: #0d1526; }
[data-theme="dark"] select.form-control option { background: #101828; color: var(--text-primary); }
[data-theme="dark"] .btn-edit {
    background: rgba(0, 102, 255, 0.15);
    color: #66a3ff;
    border: 1px solid #3d8bff;
}
[data-theme="dark"] .btn-edit:hover { background: #3d8bff; color: #fff; border-color: #3d8bff; }
[data-theme="dark"] .sidebar-nav a.active { border-color: rgba(61, 139, 255, 0.35); }
[data-theme="dark"] .stat-card .stat-icon { background: rgba(0, 102, 255, 0.16); }
[data-theme="dark"] .donut-chart .donut-center { background: var(--bg-card); }
[data-theme="dark"] .badge-warning { color: #ffb545; }
[data-theme="dark"] .alert-warning { color: #ffb545; }
[data-theme="dark"] .auth-card { box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6); }
[data-theme="dark"] .theme-toggle { background: var(--bg-muted); }
