/* ═══════════════════════════════════════════════════════════════
    Runique AdminPanel — Feuille de style principale
    Thème : dark, sobre, professionnel
    Cohérent avec l'esthétique Runique (variables.css)
   ═══════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────
    Variables
   ─────────────────────────────────────────────── */

:root {
    --bg-main:        #0f1216;
    --bg-card:        #111827;
    --bg-sidebar:     #0d1117;
    --bg-input:       #1f2937;
    --bg-hover:       #1a2333;
    --bg-active:      #1e3a5f;
    --text-main:      #f9fafb;
    --text-muted:     #9ca3af;
    --text-sidebar:   #cbd5e1;
    --accent:         #3b82f6;
    --accent-hover:   #2563eb;
    --accent-light:   rgba(59, 130, 246, 0.12);
    --border:         #1f2937;
    --border-light:   #374151;
    --success:        #22c55e;
    --success-light:  rgba(34, 197, 94, 0.12);
    --danger:         #ef4444;
    --danger-light:   rgba(239, 68, 68, 0.12);
    --warning:        #f59e0b;
    --warning-light:  rgba(245, 158, 11, 0.12);
    --sidebar-width:  260px;
    --sidebar-collapsed: 64px;
    --topbar-height:  56px;
    --radius:         8px;
    --radius-lg:      12px;
    --shadow:         0 4px 24px rgba(0, 0, 0, 0.4);
    --transition:     0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ───────────────────────────────────────────────
    Reset
   ─────────────────────────────────────────────── */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }
ul { list-style: none; }

/* ═══════════════════════════════════════════════
    LAYOUT ADMIN
   ═══════════════════════════════════════════════ */

.admin-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ───────────────────────────────────────────────
    SIDEBAR
   ─────────────────────────────────────────────── */

.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: width var(--transition);
    overflow: hidden;
    z-index: 100;
}

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

/* Logo / titre */
.sidebar-header {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
    flex-shrink: 0;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    opacity: 1;
    transition: opacity var(--transition);
}

.admin-sidebar.collapsed .sidebar-title {
    opacity: 0;
    width: 0;
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }

/* Section label */
.nav-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0.75rem 1.1rem 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    opacity: 1;
    transition: opacity var(--transition);
}

.admin-sidebar.collapsed .nav-section-label {
    opacity: 0;
}

/* Nav items */
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    margin: 0.1rem 0.5rem;
    border-radius: var(--radius);
    color: var(--text-sidebar);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

.nav-item.active {
    background: var(--bg-active);
    color: var(--accent);
    font-weight: 500;
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
    margin-left: -0.5rem;
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.8;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    opacity: 1;
}

.nav-label {
    opacity: 1;
    transition: opacity var(--transition);
    font-size: 0.88rem;
}

.admin-sidebar.collapsed .nav-label {
    opacity: 0;
    width: 0;
}

/* Tooltip en mode collapsed */
.admin-sidebar.collapsed .nav-item {
    justify-content: center;
}

/* Séparateur */
.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 1rem;
}

/* Footer sidebar */
.sidebar-footer {
    border-top: 1px solid var(--border);
    padding: 0.75rem 0;
    flex-shrink: 0;
}

/* Toggle bouton */
.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    color: var(--text-muted);
    transition: all var(--transition);
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-main);
    border-color: var(--accent);
}

/* ───────────────────────────────────────────────
    MAIN AREA
   ─────────────────────────────────────────────── */

.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* Topbar */
.admin-topbar {
    height: var(--topbar-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    flex-shrink: 0;
}

.topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex: 1;
}

.topbar-breadcrumb a:hover { color: var(--accent); }

.topbar-breadcrumb span {
    color: var(--text-main);
    font-weight: 500;
}

.breadcrumb-sep { opacity: 0.4; }

/* User badge */
.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    background: var(--bg-input);
    color: var(--text-muted);
    font-size: 0.82rem;
    transition: background var(--transition);
}

.topbar-user:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

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

/* Contenu principal */
.admin-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.75rem;
}

.admin-content::-webkit-scrollbar { width: 6px; }
.admin-content::-webkit-scrollbar-track { background: transparent; }
.admin-content::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* ═══════════════════════════════════════════════
    COMPOSANTS
   ═══════════════════════════════════════════════ */

/* ───────────────────────────────────────────────
    Page header
   ─────────────────────────────────────────────── */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.page-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-main);
}

.page-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ───────────────────────────────────────────────
    Stat cards (dashboard)
   ─────────────────────────────────────────────── */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.stat-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.stat-meta.up   { color: var(--success); }
.stat-meta.down { color: var(--danger); }

/* ───────────────────────────────────────────────
    Card générique
   ─────────────────────────────────────────────── */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.card-body {
    padding: 1.25rem;
}

/* ───────────────────────────────────────────────
    Table
   ─────────────────────────────────────────────── */

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.admin-table thead {
    background: var(--bg-main);
}

.admin-table th {
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }


.admin-table tbody tr {
    transition: background var(--transition);
}

.admin-table tbody tr:hover {
    background: var(--bg-hover);
}

/* Cellule actions */
.table-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ID badge */
.id-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--bg-input);
    border-radius: 4px;
    font-size: 0.78rem;
    font-family: ui-monospace, monospace;
    color: var(--text-muted);
}

/* ───────────────────────────────────────────────
    Pagination
   ─────────────────────────────────────────────── */

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--border);
    gap: 1rem;
}

.pagination-info {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.page-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.82rem;
    transition: all var(--transition);
}

.page-btn:hover {
    background: var(--bg-hover);
    color: var(--text-main);
    border-color: var(--border-light);
}

.page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

.page-btn:disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* ───────────────────────────────────────────────
    Boutons
   ─────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1.4;
}

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

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

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-main);
    border-color: var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}

.btn-danger {
    background: var(--danger-light);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.25);
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: transparent;
    padding: 0.4rem 0.6rem;
}

.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

.btn-sm {
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
}

/* ───────────────────────────────────────────────
    Formulaires
   ─────────────────────────────────────────────── */

.form-grid {
    display: grid;
    gap: 1.25rem;
}

.form-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-label.required::after {
    content: " *";
    color: var(--danger);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.6rem 0.875rem;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    color: var(--text-main);
    font: inherit;
    font-size: 0.88rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--danger);
}

.form-input.error:focus,
.form-textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-error {
    font-size: 0.78rem;
    color: var(--danger);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.25rem;
}

/* Checkbox / Toggle */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Actions formulaire */
.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
}

/* ───────────────────────────────────────────────
    Alerts / Flash messages
   ─────────────────────────────────────────────── */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    font-size: 0.88rem;
    border: 1px solid transparent;
    margin-bottom: 1rem;
}

.alert-success {
    background: var(--success-light);
    border-color: rgba(34, 197, 94, 0.25);
    color: #86efac;
}

.alert-danger {
    background: var(--danger-light);
    border-color: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.alert-warning {
    background: var(--warning-light);
    border-color: rgba(245, 158, 11, 0.25);
    color: #fde68a;
}

.alert-info {
    background: var(--accent-light);
    border-color: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

/* ───────────────────────────────────────────────
    Badges / Tags
   ─────────────────────────────────────────────── */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
}

.badge-blue    { background: var(--accent-light);   color: var(--accent); }
.badge-green   { background: var(--success-light);  color: var(--success); }
.badge-red     { background: var(--danger-light);   color: var(--danger); }
.badge-yellow  { background: var(--warning-light);  color: var(--warning); }
.badge-neutral { background: var(--bg-input);       color: var(--text-muted); }

/* ───────────────────────────────────────────────
    Search bar
   ─────────────────────────────────────────────── */

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar input {
    padding-left: 2.25rem;
    min-width: 220px;
}

.search-icon {
    position: absolute;
    left: 0.7rem;
    color: var(--text-muted);
    pointer-events: none;
    width: 16px;
    height: 16px;
}

/* ───────────────────────────────────────────────
    Admin list — barre de recherche
   ─────────────────────────────────────────────── */

.admin-search-form {
    margin-bottom: 1rem;
}

.admin-search-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-search-input {
    flex: 1;
    max-width: 360px;
}

.admin-search-btn {
    flex-shrink: 0;
}

/* ───────────────────────────────────────────────
    Admin table — tri par colonne
   ─────────────────────────────────────────────── */

.th-sort-link {
    display: flex;
    align-items: center;
    gap: 0.3em;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.th-sort-link:hover {
    color: var(--accent);
}

.sort-indicator {
    font-size: 0.7em;
    opacity: 0.8;
}

/* ───────────────────────────────────────────────
    Empty state
   ─────────────────────────────────────────────── */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    gap: 0.75rem;
    text-align: center;
}

.empty-state-icon {
    width: 48px;
    height: 48px;
    opacity: 0.3;
}

.empty-state-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
}

.empty-state-desc {
    font-size: 0.85rem;
    max-width: 300px;
}

/* ───────────────────────────────────────────────
    Confirm delete
   ─────────────────────────────────────────────── */

.delete-zone {
    background: var(--danger-light);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.delete-zone-text {
    font-size: 0.88rem;
    color: #fca5a5;
}

.delete-zone-title {
    font-weight: 600;
    color: var(--danger);
    margin-bottom: 0.25rem;
}

/* ═══════════════════════════════════════════════
    PAGE LOGIN
   ═══════════════════════════════════════════════ */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    padding: 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 1rem;
}

.login-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
}

.login-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════
    RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 900px) {
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%);
        transition: transform var(--transition), width var(--transition);
        z-index: 200;
    }

    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }

    .admin-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 199;
    }

    .admin-sidebar-overlay.active {
        display: block;
    }

    .form-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .admin-content { padding: 1rem; }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-topbar { padding: 0 1rem; }

    .topbar-breadcrumb { display: none; }

    .stats-grid { grid-template-columns: 1fr 1fr; }

    .pagination {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ═══════════════════════════════════════════════
    SIDEBAR TOGGLE — JavaScript hook
   ═══════════════════════════════════════════════ */

/* SVG icons inline (chevron toggle) */
.icon-chevron-left,
.icon-chevron-right,
.icon-menu {
    display: block;
    width: 16px;
    height: 16px;
}

/* ═══════════════════════════════════════════════
    LIST FILTER SIDEBAR
   ═══════════════════════════════════════════════ */

.admin-list-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.admin-filter-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1rem;
    position: sticky;
    top: 1rem;
}

.filter-group {
    margin-bottom: 1.25rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.filter-group-chevron {
    flex-shrink: 0;
    transition: transform var(--transition);
}

.filter-option {
    display: block;
    padding: 0.3rem 0.5rem;
    border-radius: calc(var(--radius) / 2);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.15s, color 0.15s;
}

.filter-option:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.filter-option.filter-active {
    background: var(--color-primary);
    color: #fff;
    font-weight: 500;
}

.filter-option.filter-clear {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
    .admin-list-layout {
        grid-template-columns: 1fr;
    }
    .admin-filter-sidebar {
        position: static;
    }
}

/* ── Bulk actions ───────────────────────────────────────────── */

.bulk-action-bar {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}

.bulk-action-bar.bulk-bar-visible {
    display: flex;
}

.bulk-action-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex: 1;
}

.bulk-action-btns {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ga-selects-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ga-select {
    font-size: 0.82rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    height: 30px;
}

.th-bulk,
.td-bulk {
    width: 2.5rem;
    text-align: center;
    padding: 0.75rem 0.5rem;
}

.bulk-check,
#bulk-check-all {
    cursor: pointer;
    accent-color: var(--color-primary);
}

