/* ============================================
   SciDownload - 后台管理样式
   ============================================ */

:root {
    --primary:      #00d4ff;
    --secondary:    #7b2fff;
    --success:      #00ff88;
    --warning:      #ffcc00;
    --danger:       #ff3366;
    --bg-dark:      #050a14;
    --bg-sidebar:   #070d1a;
    --bg-main:      #0a1220;
    --bg-card:      rgba(10, 20, 40, 0.9);
    --border:       rgba(0, 212, 255, 0.15);
    --text-primary: #e0f4ff;
    --text-muted:   #4a6a80;
    --text-sec:     #8ab4cc;
    --radius:       8px;
    --transition:   all 0.3s ease;
    --sidebar-w:    240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif; }
a { text-decoration: none; transition: var(--transition); }

/* ---- 登录页 ---- */
.login-body {
    min-height: 100vh;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
#particles-bg-login {
    position: fixed;
    inset: 0;
    z-index: 0;
}
.scanlines {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,212,255,0.015) 2px, rgba(0,212,255,0.015) 4px);
}
.login-container { position: relative; z-index: 2; width: 100%; max-width: 400px; padding: 20px; }
.login-box {
    background: rgba(10, 20, 40, 0.95);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 0 60px rgba(0,212,255,0.1);
    backdrop-filter: blur(20px);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo .fa { font-size: 48px; color: var(--primary); display: block; margin-bottom: 12px; text-shadow: 0 0 20px rgba(0,212,255,0.5); }
.login-logo h1 { font-size: 24px; color: var(--text-primary); margin-bottom: 4px; }
.login-logo p { color: var(--text-muted); font-size: 14px; }
.login-form .form-group { margin-bottom: 20px; }
.login-form label { display: block; font-size: 13px; color: var(--text-sec); margin-bottom: 8px; }
.login-form .form-control {
    width: 100%; padding: 12px 16px;
    background: rgba(0,212,255,0.05);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}
.login-form .form-control:focus { border-color: var(--primary); box-shadow: 0 0 15px rgba(0,212,255,0.2); }
.login-form .form-control::placeholder { color: var(--text-muted); }
.login-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; font-size: 13px; }
.login-footer a { color: var(--text-muted); }
.login-footer a:hover { color: var(--primary); }
.login-tip { color: var(--text-muted); font-size: 11px; }

/* ---- 管理后台布局 ---- */
.admin-body { background: var(--bg-main); color: var(--text-primary); min-height: 100vh; }
.admin-wrapper { display: flex; min-height: 100vh; }

/* ---- 侧边栏 ---- */
.admin-sidebar {
    width: var(--sidebar-w);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
}
.sidebar-logo {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}
.sidebar-logo .fa { font-size: 22px; }
.sidebar-nav { padding: 12px 0; flex: 1; }
.nav-group { margin-bottom: 8px; }
.nav-group-title {
    padding: 8px 20px 4px;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-sec);
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}
.nav-item:hover { color: var(--primary); background: rgba(0,212,255,0.05); }
.nav-item.active {
    color: var(--primary);
    background: rgba(0,212,255,0.1);
    border-right: 2px solid var(--primary);
}
.nav-item .fa { width: 18px; text-align: center; }
.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}
.nav-logout { color: var(--danger) !important; }
.nav-logout:hover { background: rgba(255,51,102,0.1) !important; }

/* ---- 主区域 ---- */
.admin-main {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---- 顶部栏 ---- */
.admin-topbar {
    height: 56px;
    background: rgba(7, 13, 26, 0.95);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}
.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-sec);
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.sidebar-toggle:hover { color: var(--primary); background: rgba(0,212,255,0.1); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.topbar-link { color: var(--text-muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.topbar-link:hover { color: var(--primary); }
.admin-user { display: flex; align-items: center; gap: 8px; color: var(--text-sec); font-size: 14px; }
.admin-user .fa { color: var(--primary); font-size: 18px; }

/* ---- 内容区 ---- */
.admin-content { padding: 24px; flex: 1; }
.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.content-header h2 { font-size: 20px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.content-header h2 .fa { color: var(--primary); }
.breadcrumb-admin { font-size: 13px; color: var(--text-muted); }

/* ---- 统计卡片 ---- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.stat-icon { font-size: 28px; width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.stat-blue   .stat-icon { background: rgba(0,212,255,0.1); color: var(--primary); }
.stat-green  .stat-icon { background: rgba(0,255,136,0.1); color: var(--success); }
.stat-purple .stat-icon { background: rgba(123,47,255,0.1); color: #a78bfa; }
.stat-orange .stat-icon { background: rgba(255,107,53,0.1); color: #ff6b35; }
.stat-num { font-size: 26px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.stat-blue   { border-left: 3px solid var(--primary); }
.stat-green  { border-left: 3px solid var(--success); }
.stat-purple { border-left: 3px solid #7b2fff; }
.stat-orange { border-left: 3px solid #ff6b35; }

/* ---- 仪表盘网格 ---- */
.dashboard-grid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; }
.dashboard-side { display: flex; flex-direction: column; gap: 20px; }
.dashboard-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(0,212,255,0.03);
}
.panel-header h3 { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.panel-header h3 .fa { color: var(--primary); }
.panel-more { font-size: 12px; color: var(--text-muted); }
.panel-more:hover { color: var(--primary); }

/* ---- 排行榜 ---- */
.rank-list { padding: 12px 0; }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 10px 20px; }
.rank-num { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: rgba(0,212,255,0.1); color: var(--text-muted); }
.rank-1 { background: linear-gradient(135deg, #ffd700, #ffa500); color: #000; }
.rank-2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: #000; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #a0522d); color: #fff; }
.rank-title { flex: 1; font-size: 13px; color: var(--text-sec); }
.rank-count { font-size: 13px; color: var(--primary); font-weight: 600; }

/* ---- 评论迷你列表 ---- */
.comment-mini-list { padding: 8px 0; }
.comment-mini { padding: 12px 20px; border-bottom: 1px solid rgba(0,212,255,0.05); }
.cm-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.cm-header strong { font-size: 13px; color: var(--text-primary); }
.cm-sw { font-size: 12px; color: var(--text-muted); }
.cm-content { font-size: 13px; color: var(--text-sec); line-height: 1.5; }
.cm-time { font-size: 11px; color: var(--text-muted); margin-left: auto; }

/* ---- 表格 ---- */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    background: rgba(0,212,255,0.03);
    white-space: nowrap;
}
.admin-table td { padding: 12px 16px; border-bottom: 1px solid rgba(0,212,255,0.05); color: var(--text-sec); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(0,212,255,0.03); }
.table-responsive { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; overflow-x: auto; }
.text-muted { color: var(--text-muted); }

/* ---- 徽章 ---- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.badge-success { background: rgba(0,255,136,0.1); color: var(--success); border: 1px solid rgba(0,255,136,0.2); }
.badge-warning { background: rgba(255,204,0,0.1); color: var(--warning); border: 1px solid rgba(255,204,0,0.2); }
.badge-default { background: rgba(255,255,255,0.05); color: var(--text-muted); }

/* ---- 操作按钮 ---- */
.action-btns { display: flex; gap: 6px; }
.btn-action {
    width: 30px; height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: var(--transition);
    cursor: pointer;
}
.btn-view   { background: rgba(0,212,255,0.1); color: var(--primary); }
.btn-edit   { background: rgba(255,204,0,0.1); color: var(--warning); }
.btn-delete { background: rgba(255,51,102,0.1); color: var(--danger); }
.btn-approve{ background: rgba(0,255,136,0.1); color: var(--success); }
.btn-hide   { background: rgba(255,204,0,0.1); color: var(--warning); }
.btn-action:hover { transform: scale(1.1); filter: brightness(1.3); }
.btn-sm-action { color: var(--primary); font-size: 14px; padding: 2px 6px; }

/* ---- 筛选栏 ---- */
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.form-control-sm { padding: 6px 12px; font-size: 13px; }
.total-info { font-size: 13px; color: var(--text-muted); }
.status-tabs { display: flex; gap: 4px; }
.tab-btn {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-sec);
    font-size: 13px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.tab-btn:hover, .tab-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(0,212,255,0.08); }
.tab-badge { background: var(--danger); color: #fff; font-size: 11px; padding: 1px 5px; border-radius: 8px; }

/* ---- 按钮 ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), #0099cc); color: var(--bg-dark); font-weight: 600; }
.btn-primary:hover { background: linear-gradient(135deg, #33ddff, var(--primary)); color: var(--bg-dark); }
.btn-glow { box-shadow: 0 0 15px rgba(0,212,255,0.3); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-sec); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ---- 提示框 ---- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.alert-success { background: rgba(0,255,136,0.1); border: 1px solid rgba(0,255,136,0.3); color: var(--success); }
.alert-error { background: rgba(255,51,102,0.1); border: 1px solid rgba(255,51,102,0.3); color: var(--danger); }
.alert ul { margin: 0; padding-left: 16px; }

/* ---- 编辑表单布局 ---- */
.edit-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.edit-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}
.edit-panel .panel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-sec); margin-bottom: 6px; }
.form-group label.required::after { content: ' *'; color: var(--danger); }
.form-control {
    width: 100%;
    padding: 9px 12px;
    background: rgba(0,212,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    resize: vertical;
}
.form-control:focus { border-color: var(--primary); background: rgba(0,212,255,0.08); }
.form-control::placeholder { color: var(--text-muted); }

/* ---- select 下拉框深色科幻风格 ---- */
select.form-control,
.form-control select,
select {
    background-color: #071525 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300d4ff' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 10px 7px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: #e0f4ff !important;
    border: 1px solid rgba(0,212,255,0.3) !important;
    cursor: pointer;
    padding-right: 36px !important;
}
select.form-control:focus,
select:focus {
    border-color: var(--primary) !important;
    background-color: #0a1e35 !important;
    box-shadow: 0 0 10px rgba(0,212,255,0.2);
}
select.form-control option,
select option {
    background-color: #071525;
    color: #e0f4ff;
    padding: 8px 12px;
}
select.form-control option:hover,
select option:hover,
select.form-control option:checked,
select option:checked {
    background-color: rgba(0,212,255,0.2);
    color: #00d4ff;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: block; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.input-group { display: flex; align-items: center; }
.input-prefix { padding: 9px 12px; background: rgba(0,212,255,0.05); border: 1px solid var(--border); border-right: none; border-radius: var(--radius) 0 0 var(--radius); font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.input-group .form-control { border-radius: 0 var(--radius) var(--radius) 0; }
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text-sec); }
.checkbox-label input { width: 16px; height: 16px; cursor: pointer; }

/* ---- 编辑器工具栏 ---- */
.editor-toolbar { display: flex; gap: 4px; margin-bottom: 6px; flex-wrap: wrap; }
.editor-toolbar button {
    width: 32px; height: 32px;
    background: rgba(0,212,255,0.05);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-sec);
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.editor-toolbar button:hover { background: rgba(0,212,255,0.15); color: var(--primary); }
.code-editor { font-family: 'Consolas', monospace; font-size: 13px; line-height: 1.6; }
.desc-preview {
    background: rgba(0,212,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    min-height: 200px;
    color: var(--text-sec);
    line-height: 1.8;
}

/* ---- 文件上传 ---- */
.file-input { display: none; }
.btn-upload { border-style: dashed; margin-top: 8px; }
.current-thumb img { max-width: 100%; border-radius: var(--radius); margin-bottom: 8px; }
.thumb-placeholder {
    width: 100%; height: 120px;
    background: rgba(0,212,255,0.03);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}
.thumb-placeholder .fa { font-size: 32px; }

/* ---- 图标选择 ---- */
.icon-input-group { display: flex; align-items: center; gap: 8px; }
.icon-input-group .form-control { flex: 1; }
.icon-preview { font-size: 20px; color: var(--primary); width: 36px; text-align: center; }
.icon-suggestions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.icon-sug {
    width: 36px; height: 36px;
    background: rgba(0,212,255,0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition);
}
.icon-sug:hover { background: rgba(0,212,255,0.15); color: var(--primary); border-color: var(--primary); }

/* ---- 分类管理布局 ---- */
.cat-layout { display: grid; grid-template-columns: 1fr 360px; gap: 20px; }
.cat-list-panel, .cat-form-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.cat-list-panel .panel-title, .cat-form-panel .panel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- 评论管理 ---- */
.comments-admin-list { display: flex; flex-direction: column; gap: 0; }
.comment-admin-item {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    transition: var(--transition);
}
.comment-admin-item.pending { border-left: 3px solid var(--warning); }
.comment-admin-item:hover { border-color: rgba(0,212,255,0.3); }
.ca-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.ca-body { flex: 1; min-width: 0; }
.ca-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; font-size: 13px; }
.ca-author { font-weight: 600; color: var(--text-primary); }
.ca-sw { color: var(--text-muted); }
.ca-sw a { color: var(--primary); }
.ca-time { color: var(--text-muted); font-size: 12px; }
.ca-ip { color: var(--text-muted); font-size: 11px; }
.ca-content { font-size: 14px; color: var(--text-sec); line-height: 1.5; }
.ca-actions { display: flex; gap: 6px; align-items: flex-start; }
.star-on  { color: var(--warning); }
.star-off { color: var(--text-muted); }

/* ---- 设置页 ---- */
.settings-form .edit-panel { max-width: 700px; }

/* ---- 分页 ---- */
.pagination-nav { display: flex; justify-content: center; margin: 24px 0; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.page-btn {
    display: flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-sec);
    font-size: 13px;
    transition: var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: var(--bg-dark); font-weight: 600; }
.page-ellipsis { display: flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; color: var(--text-muted); }

/* ---- 空状态 ---- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .fa { font-size: 48px; display: block; margin-bottom: 12px; opacity: 0.2; }

/* ---- 滚动条 ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .edit-layout { grid-template-columns: 1fr; }
    .cat-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
