/* ITSWEBER CMS – Admin Styles */

:root {
    --admin-primary: #0e7490;
    --admin-primary-dark: #0a5a6e;
    --admin-primary-light: #14919b;
    --admin-accent: #0d9488;
    --admin-accent-light: #2dd4bf;
    --admin-accent-bg: #f0fdfa;
    --admin-success: #059669;
    --admin-danger: #dc2626;
    --admin-warning: #d97706;
    --admin-sidebar-bg: #071320;
    --admin-sidebar-bg-gradient: linear-gradient(180deg, #0c1e35 0%, #071320 60%, #040d18 100%);
    --admin-sidebar-hover: rgba(13,148,136,0.10);
    --admin-sidebar-active-bg: linear-gradient(135deg, rgba(13,148,136,0.22) 0%, rgba(14,116,144,0.18) 100%);
    --admin-sidebar-active-text: #5eead4;
    --admin-sidebar-text: #6b8099;
    --admin-sidebar-text-hover: #b8d0e8;
    --admin-sidebar-active: #fff;
    --admin-sidebar-width: 260px;
    --admin-sidebar-border: rgba(13,148,136,0.08);
    --admin-topbar-height: 56px;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', Monaco, Consolas, monospace;
    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 12px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 28px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
    --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body { font-family: var(--font-sans); background: var(--gray-50); color: var(--gray-900); line-height: 1.5; }

/* Admin Layout */
.admin-body {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: var(--admin-sidebar-width);
    background: var(--admin-sidebar-bg);
    background-image: var(--admin-sidebar-bg-gradient);
    color: var(--admin-sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.25s ease;
    border-right: 1px solid var(--admin-sidebar-border);
    box-shadow: 4px 0 24px rgba(0,0,0,0.25), 1px 0 0 rgba(13,148,136,0.06);
}

.sidebar-header {
    padding: 1.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--admin-sidebar-border);
    background: rgba(13,148,136,0.04);
}

.sidebar-logo {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.025em;
}

.sidebar-logo span { color: var(--admin-accent-light); }

.sidebar-brand-logo {
    max-height: 36px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.92;
    transition: opacity 0.2s;
}
.sidebar-logo:hover .sidebar-brand-logo { opacity: 1; }

.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* Section label for system group */
.nav-section-label {
    padding: 1rem 1.25rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(94,234,212,0.3);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5625rem 1rem;
    margin: 2px 0.625rem;
    color: var(--admin-sidebar-text);
    text-decoration: none;
    font-size: 0.8375rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--admin-sidebar-hover);
    color: var(--admin-sidebar-text-hover);
    border-left-color: rgba(13,148,136,0.3);
}
.nav-item.active {
    background: var(--admin-sidebar-active-bg);
    color: var(--admin-sidebar-active-text);
    font-weight: 600;
    border-left-color: var(--admin-accent-light);
    box-shadow: 0 0 20px rgba(13,148,136,0.12), inset 0 0 0 1px rgba(13,148,136,0.08);
}

.nav-icon {
    font-size: 1rem;
    width: 1.375rem;
    text-align: center;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}
.nav-item:hover .nav-icon { opacity: 0.9; }
.nav-item.active .nav-icon { opacity: 1; filter: drop-shadow(0 0 4px rgba(45,212,191,0.4)); }

.nav-divider { height: 1px; background: var(--admin-sidebar-border); margin: 0.5rem 1rem; }

/* Sub-navigation items (e.g. Blog → Categories / Tags) */
.nav-sub-item { padding-left: 2.5rem; font-size: 0.8rem; opacity: 0.8; }
.nav-sub-item:hover { opacity: 1; }
.nav-sub-item.active { opacity: 1; font-weight: 500; }

/* Nav group concept: parent item with collapsible children */
.nav-group { display: flex; flex-direction: column; }
.nav-group-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5625rem 1rem;
    margin: 2px 0.625rem;
    color: var(--admin-sidebar-text);
    text-decoration: none;
    font-size: 0.8375rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    width: calc(100% - 1.25rem);
    text-align: left;
    font-family: inherit;
}
.nav-group-toggle:hover {
    background: var(--admin-sidebar-hover);
    color: var(--admin-sidebar-text-hover);
    border-left-color: rgba(13,148,136,0.3);
}
.nav-group-toggle.active {
    background: var(--admin-sidebar-active-bg);
    color: var(--admin-sidebar-active-text);
    font-weight: 600;
    border-left-color: var(--admin-accent-light);
    box-shadow: 0 0 20px rgba(13,148,136,0.12);
}
.nav-group-chevron {
    margin-left: auto; flex-shrink: 0; transition: transform 0.25s ease;
    font-size: 0.625rem; opacity: 0.4; display: inline-block;
}
.nav-group-chevron::after { content: '▾'; }
.nav-group.open .nav-group-chevron { transform: rotate(180deg); opacity: 0.6; }

.nav-group-children {
    display: none;
    flex-direction: column;
    padding: 2px 0;
}
.nav-group.open .nav-group-children { display: flex; }
.nav-group-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 1rem 0.375rem 2.5rem;
    margin: 0 0.5rem;
    color: var(--admin-sidebar-text);
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    transition: background 0.18s ease, color 0.18s ease;
    opacity: 0.85;
}
.nav-group-item:hover {
    background: var(--admin-sidebar-hover);
    color: var(--admin-sidebar-text-hover);
    opacity: 1;
}
.nav-group-item.active { opacity: 1; font-weight: 500; }

/* Warning badge for maintenance mode */
.nav-item--warn { color: var(--admin-warning); }
.nav-badge { font-size: 0.625rem; padding: 0.125rem 0.375rem; border-radius: 9999px; font-weight: 600; }
.nav-badge--warn { background: rgba(217,119,6,0.15); color: var(--admin-warning); }

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--admin-sidebar-border);
    font-size: 0.6875rem;
    color: rgba(94,234,212,0.35);
    background: rgba(0,0,0,0.15);
}
.sidebar-version { letter-spacing: 0.04em; font-weight: 500; }

/* Main Area */
.admin-main {
    flex: 1;
    margin-left: var(--admin-sidebar-width);
    min-width: 0;
}

.admin-topbar {
    height: var(--admin-topbar-height);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.375rem;
    border-radius: var(--radius-sm);
    color: var(--gray-600);
    transition: background 0.15s, color 0.15s;
}
.sidebar-toggle:hover { background: var(--gray-100); color: var(--gray-800); }

.topbar-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-800);
    letter-spacing: -0.01em;
}
.topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
}
.topbar-link {
    color: var(--admin-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}
.topbar-link:hover { color: var(--admin-accent-light); background: var(--admin-accent-bg); }
.topbar-user {
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}
.topbar-lang-select {
    font-size: 0.8125rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--gray-600);
    cursor: pointer;
    transition: border-color 0.15s;
}
.topbar-lang-select:hover { border-color: var(--gray-300); }

.admin-content { padding: 1.5rem; }

/* Alerts */
.alert {
    padding: 0.875rem 1.125rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    border-left: 4px solid;
    border-right: none;
    border-top: none;
    border-bottom: none;
    box-shadow: var(--shadow-xs);
}
.alert-success { background: #f0fdf4; color: var(--admin-success); border-left-color: var(--admin-success); }
.alert-warning { background: #fffbeb; color: var(--admin-warning); border-left-color: var(--admin-warning); }
.alert-error { background: #fef2f2; color: var(--admin-danger); border-left-color: var(--admin-danger); }

/* Content Header */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 1rem;
}
.content-header h2 {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.5rem;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary {
    background: linear-gradient(135deg, var(--admin-primary) 0%, #0a7c8f 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(14,116,144,0.3), 0 1px 2px rgba(14,116,144,0.15);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--admin-primary-dark) 0%, var(--admin-primary) 100%);
    box-shadow: 0 6px 20px rgba(14,116,144,0.4), 0 2px 6px rgba(14,116,144,0.2);
    transform: translateY(-2px);
}
.btn-secondary {
    background: #fff;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--admin-primary-light);
    color: var(--admin-primary);
    box-shadow: 0 3px 10px rgba(14,116,144,0.1);
    transform: translateY(-1px);
}
.btn-danger {
    background: linear-gradient(135deg, var(--admin-danger) 0%, #b91c1c 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(220,38,38,0.3);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    box-shadow: 0 6px 20px rgba(220,38,38,0.4);
    transform: translateY(-2px);
}
.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}
.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 6px 20px rgba(245,158,11,0.4);
    transform: translateY(-2px);
}
.btn-success {
    background: linear-gradient(135deg, var(--admin-success) 0%, #047857 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(5,150,105,0.3);
}
.btn-success:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    box-shadow: 0 6px 20px rgba(5,150,105,0.4);
    transform: translateY(-2px);
}
.btn-sm { padding: 0.3125rem 0.75rem; font-size: 0.8125rem; }
.btn-xs { padding: 0.25rem 0.625rem; font-size: 0.775rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-ghost { background: none; border: none; color: var(--admin-accent); padding: 0.25rem 0.5rem; border-radius: var(--radius-sm); }
.btn-ghost:hover { background: var(--admin-accent-bg); color: var(--admin-primary); text-decoration: none; }

/* Data Table */
.data-table-wrap {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.data-table th, .data-table td { padding: 0.8125rem 1rem; text-align: left; font-size: 0.875rem; }
.data-table th {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 700;
    color: var(--gray-600);
    border-bottom: 2px solid var(--gray-200);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.75rem 1rem;
}
.data-table td { border-bottom: 1px solid var(--gray-100); }
.data-table tbody tr { transition: all 0.15s ease; }
.data-table tbody tr:hover td { background: var(--admin-accent-bg); }
.data-table tbody tr:hover { box-shadow: inset 3px 0 0 var(--admin-accent); }
.data-table tr:last-child td { border-bottom: none; }
.data-table code { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--admin-primary); background: var(--admin-accent-bg); padding: 0.15rem 0.5rem; border-radius: var(--radius-sm); }
.actions { display: flex; gap: 0.375rem; }
.actions .btn { padding: 0.3125rem 0.625rem; font-size: 0.775rem; }
.inline-form { display: inline; }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 0.02em;
    line-height: 1.3;
    text-transform: uppercase;
    gap: 0.25rem;
}
.badge-primary { background: var(--admin-accent-bg); color: var(--admin-accent); border: 1px solid rgba(13,148,136,0.15); }
.badge-success { background: #ecfdf5; color: var(--admin-success); border: 1px solid rgba(5,150,105,0.15); }
.badge-draft { background: var(--gray-100); color: var(--gray-500); border: 1px solid var(--gray-200); }
.badge-danger { background: #fef2f2; color: var(--admin-danger); border: 1px solid rgba(220,38,38,0.15); }
.badge-warning { background: #fffbeb; color: var(--admin-warning); border: 1px solid rgba(217,119,6,0.15); }
.badge-secondary { background: var(--gray-100); color: var(--gray-600); border: 1px solid var(--gray-200); }
.badge-info { background: #eff6ff; color: #2563eb; border: 1px solid rgba(37,99,235,0.15); }

/* Forms */
.admin-form .form-group { margin-bottom: 1.125rem; }
.admin-form label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--gray-700);
    letter-spacing: 0.01em;
}
.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form input[type="number"],
.admin-form input[type="url"],
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: var(--font-sans);
    background: #fff;
    color: var(--gray-800);
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.admin-form input[type="text"]:hover,
.admin-form input[type="email"]:hover,
.admin-form input[type="password"]:hover,
.admin-form input[type="number"]:hover,
.admin-form input[type="url"]:hover,
.admin-form textarea:hover,
.admin-form select:hover {
    border-color: var(--admin-primary-light);
    box-shadow: 0 2px 6px rgba(14,116,144,0.08);
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus {
    outline: none;
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.12), 0 2px 8px rgba(13,148,136,0.08);
}
.admin-form input::placeholder, .admin-form textarea::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}
.admin-form textarea { resize: vertical; min-height: 100px; }
.admin-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
}
/* Checkbox and radio modernization */
.admin-form input[type="checkbox"],
.admin-form input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--admin-primary);
    cursor: pointer;
    margin: 0;
}
.admin-form fieldset {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.admin-form fieldset:hover {
    border-color: var(--gray-300);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.admin-form legend {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-800);
    padding: 0 0.625rem;
    letter-spacing: -0.01em;
}

.form-grid { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; }
.form-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), border-color var(--transition);
}
.form-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}
.form-card h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    color: var(--gray-800);
    border-left: 3px solid var(--admin-accent);
    padding-left: 0.75rem;
}

.checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; cursor: pointer; }
.checkbox-label input { width: auto; }

/* ── Dashboard ─────────────────────────────────────────────────────────── */

/* Welcome – neutral, text-based, no colored background */
.dash-welcome {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0 1.25rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}
.dash-welcome h2 {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.3;
}
.dash-welcome-date { font-size: 0.8125rem; color: var(--gray-500); margin-top: 0.15rem; }
.dash-welcome-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Primary Stat Cards (4 large) */
.dash-stats-primary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}
.dash-stat-card {
    display: flex;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}
.dash-stat-card:hover { border-color: var(--gray-300); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.dash-stat-accent { width: 4px; flex-shrink: 0; }
.dash-stat--pages  .dash-stat-accent { background: var(--admin-sidebar-bg); }
.dash-stat--blog   .dash-stat-accent { background: var(--admin-success); }
.dash-stat--gallery .dash-stat-accent { background: #8b5cf6; }
.dash-stat--events  .dash-stat-accent { background: var(--admin-warning); }
.dash-stat-body { padding: 1rem 1.125rem; flex: 1; min-width: 0; }
.dash-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.15;
    letter-spacing: -0.03em;
}
.dash-stat-label { font-size: 0.8125rem; color: var(--gray-500); margin-top: 0.125rem; font-weight: 500; }
.dash-stat-sub { display: flex; gap: 0.375rem; margin-top: 0.5rem; flex-wrap: wrap; }

/* Secondary Stats (3 compact) */
.dash-stats-secondary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.dash-stat-mini {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    text-decoration: none;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
}
.dash-stat-mini:hover { border-color: var(--gray-300); box-shadow: var(--shadow); }
.dash-stat-mini-num { font-size: 1.25rem; font-weight: 800; color: var(--gray-900); line-height: 1; letter-spacing: -0.02em; }
.dash-stat-mini-label { font-size: 0.8125rem; color: var(--gray-500); font-weight: 500; }

/* Content Grid (two columns on desktop) */
.dash-content-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1.5rem;
}
.dash-content-col { display: flex; flex-direction: column; gap: 1rem; }

/* Generic Panel */
.dash-panel {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    flex: 1;
    transition: box-shadow var(--transition);
}
.dash-panel:hover { box-shadow: var(--shadow-md); }
.dash-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--gray-100);
}
.dash-panel-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
    color: var(--gray-700);
    text-transform: none;
    letter-spacing: normal;
}
.dash-panel-link { font-size: 0.8125rem; color: var(--admin-accent); text-decoration: none; font-weight: 500; }
.dash-panel-link:hover { text-decoration: underline; }
.dash-panel-empty { font-size: 0.875rem; color: var(--gray-400); margin: 0; }

/* Generic Dash List (recent posts, recent pages) */
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
    gap: 0.75rem;
}
.dash-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.dash-list-title {
    font-size: 0.875rem;
    color: var(--gray-800);
    text-decoration: none;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.dash-list-title:hover { color: var(--admin-accent); }
.dash-list-meta { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.dash-list-date { font-size: 0.6875rem; color: var(--gray-400); font-variant-numeric: tabular-nums; }

/* Upcoming Events Widget */
.dash-events-list { list-style: none; margin: 0; padding: 0; }
.dash-event-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--gray-100);
}
.dash-event-item:last-child { border-bottom: none; padding-bottom: 0; }
.dash-event-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--admin-sidebar-bg);
    border-radius: var(--radius-sm);
    line-height: 1;
    color: #fff;
}
.dash-event-day { font-size: 1rem; font-weight: 700; color: #fff; }
.dash-event-month { font-size: 0.5625rem; font-weight: 600; color: var(--admin-sidebar-text); text-transform: uppercase; letter-spacing: 0.04em; }
.dash-event-info { flex: 1; min-width: 0; }
.dash-event-title {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-800);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.dash-event-title:hover { color: var(--admin-accent); }
.dash-event-time { font-size: 0.75rem; color: var(--gray-500); }

/* System Info Panel */
.dash-system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0; }
.dash-system-item { display: flex; flex-direction: column; gap: 0.15rem; }
.dash-system-item dt { font-size: 0.6875rem; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.dash-system-item dd { font-size: 0.875rem; color: var(--gray-800); margin: 0; }
.dash-system-link { color: var(--admin-accent); text-decoration: none; font-weight: 500; }
.dash-system-link:hover { text-decoration: underline; }

/* Settings Form */
.settings-section { margin-bottom: 2rem; }
.settings-section h3 { font-size: 1rem; font-weight: 800; margin-bottom: 1rem; padding-bottom: 0.625rem; border-bottom: 2px solid var(--admin-accent); color: var(--gray-900); letter-spacing: -0.01em; display: inline-block; }

/* Login */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #0f172a 0%, #071320 50%, #0c1e35 100%); }
.login-container { width: 100%; max-width: 420px; padding: 2rem; }
.login-header { text-align: center; margin-bottom: 2rem; }
.login-logo { font-size: 1.625rem; font-weight: 700; letter-spacing: -0.025em; color: #fff; }
.login-logo span { color: var(--admin-accent-light); }
.login-form { background: rgba(255,255,255,0.97); padding: 2.25rem; border-radius: var(--radius-lg); box-shadow: 0 25px 60px rgba(0,0,0,0.4), 0 8px 20px rgba(0,0,0,0.2), 0 0 0 1px rgba(13,148,136,0.1); backdrop-filter: blur(8px); }
.login-form .form-group { margin-bottom: 1rem; }
.login-form label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; color: var(--gray-700); }
.login-form input { width: 100%; padding: 0.625rem 0.75rem; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 0.9375rem; }
.login-form input:focus { outline: none; border-color: var(--admin-accent); box-shadow: 0 0 0 3px rgba(13,148,136,0.12); }

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.mt-1 { margin-top: 0.5rem; }
.mb-1 { margin-bottom: 0.5rem; }

/* ── Table Thumb Cells (blog list, etc.) ────────────────────────────────── */
.table-thumb-cell { width: 52px; padding: 6px 8px; }
.table-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.table-thumb-placeholder {
    width: 44px; height: 44px; background: var(--gray-100); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--gray-400);
}

/* Row highlight (e.g. current user) */
.row-highlight td { background: var(--admin-accent-bg); }

/* ── Topbar Language Select ─────────────────────────────────────────────── */
.topbar-language-form { display: inline-flex; align-items: center; margin: 0 0.5rem; }
.topbar-lang-select {
    padding: 0.25rem 0.5rem; font-size: 0.8125rem; cursor: pointer;
    border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
    background-color: #fff; color: var(--gray-700); font-family: var(--font-sans);
    transition: border-color var(--transition);
}
.topbar-lang-select:hover { border-color: var(--gray-400); }
.topbar-lang-select:focus { outline: none; border-color: var(--admin-accent); }

/* ── Nav Badges & Section Labels ────────────────────────────────────────── */
.nav-section-label {
    font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    color: rgba(255,255,255,0.3); padding: 0.75rem 1.25rem 0.25rem; user-select: none;
}
.nav-badge {
    font-size: 0.6rem; font-weight: 600; border-radius: 3px; padding: 1px 5px;
    margin-left: 4px; vertical-align: middle; line-height: 1.4;
}
.nav-badge--warn { background: var(--admin-warning); color: #000; }
.nav-item--warn { color: var(--admin-warning) !important; }

/* ── Phase 12c: Responsive Admin-UI ──────────────────────────────────────── */

/* Filter bar – shared layout for list-view filter forms */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1.25rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1.125rem;
    box-shadow: var(--shadow-xs);
}
.filter-bar input[type="text"],
.filter-bar input[type="search"],
.filter-bar select {
    padding: 0.4375rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: var(--font-sans);
    background: #fff;
    color: var(--gray-700);
}
.filter-bar input[type="text"],
.filter-bar input[type="search"] {
    flex: 1;
    min-width: 140px;
}

/* Horizontal-scroll wrapper for wide data tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile sidebar backdrop */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .sidebar-toggle { display: block; }

    /* Sidebar backdrop: shown when sidebar is open */
    .sidebar-backdrop.open { display: block; }

    /* Content header: allow wrapping on small screens */
    .content-header { flex-wrap: wrap; gap: 0.75rem; }
    .header-actions { flex-wrap: wrap; gap: 0.375rem; }

    /* Dashboard responsive: tablet */
    .dash-stats-primary { grid-template-columns: repeat(2, 1fr); }
    .dash-stats-secondary { grid-template-columns: repeat(3, 1fr); }
    .dash-content-grid { grid-template-columns: 1fr; }

    /* Media manager: stack folder sidebar above grid */
    .mm-layout { grid-template-columns: 1fr; }
    .mm-sidebar { position: static; }
}

/* Settings form: collapse sidebar below genuinely narrow viewports only.
   Kept separate from the 768px sidebar-toggle breakpoint so that Retina
   displays (CSS viewport ≈ 756px) still show the two-column form layout. */
@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    /* Reduce content padding on very small screens */
    .admin-content { padding: 1rem; }

    /* Topbar: hide username label, tighten gaps */
    .topbar-user { display: none; }
    .topbar-actions { gap: 0.5rem; font-size: 0.8125rem; }

    /* Dashboard responsive: phone */
    .dash-welcome { flex-direction: column; align-items: flex-start; }
    .dash-welcome-actions { width: 100%; }
    .dash-stats-primary { grid-template-columns: repeat(2, 1fr); }
    .dash-stats-secondary { grid-template-columns: 1fr; }
    .dash-system-grid { grid-template-columns: 1fr; }
}

/* ── Phase 3: Editor & Content UX ─────────────────────────────────────── */

/* Required field marker */
.required { color: var(--admin-danger); font-weight: 400; }

/* Form hints */
.form-hint { display: block; font-size: 0.8rem; color: var(--gray-500); margin-top: 0.25rem; line-height: 1.4; }
.editor-hint { margin-top: 0.375rem; }

/* Slug preview row */
.slug-preview-wrap { display: flex; align-items: center; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.slug-preview-wrap:focus-within { border-color: var(--admin-accent); box-shadow: 0 0 0 3px rgba(13,148,136,0.12); }
.slug-prefix { padding: 0.5rem 0.625rem; background: var(--gray-100); color: var(--gray-500); font-size: 0.8125rem; white-space: nowrap; border-right: 1px solid var(--gray-300); }
.slug-preview-wrap input { border: none !important; box-shadow: none !important; border-radius: 0 !important; flex: 1; }
.slug-preview-wrap input:focus { outline: none !important; box-shadow: none !important; }

/* SEO character counter */
.seo-counter { font-size: 0.775rem; color: var(--gray-400); margin-top: 0.25rem; text-align: right; }
.seo-counter .seo-warn { color: var(--admin-warning); font-weight: 600; }
.seo-counter .seo-over { color: var(--admin-danger); font-weight: 600; }

/* Jodit editor integration – ensure it fits the form layout */
.jodit-container { border-color: var(--gray-300) !important; border-radius: var(--radius-sm) !important; }
.jodit-container:not(.jodit_fullsize) { max-width: 100%; }
.jodit-toolbar__box { background: var(--gray-50) !important; border-bottom: 1px solid var(--gray-200) !important; }
.jodit-wysiwyg { font-family: var(--font-sans) !important; font-size: 0.9375rem !important; line-height: 1.6 !important; padding: 1rem !important; }
.jodit-source__mirror { font-family: var(--font-mono) !important; font-size: 0.8125rem !important; }

/* Tag input */
#tags { font-family: var(--font-sans); }

/* Header actions row */
.header-actions { display: flex; gap: 0.5rem; align-items: center; }

/* ── Phase 3b: Media Picker & Content Workflow ───────────────────────────── */

/* Editor footer row: hint + picker button side by side */
.editor-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.375rem;
}
.editor-footer-row .form-hint { margin-top: 0; }

/* Media picker trigger button */
.media-picker-btn { white-space: nowrap; flex-shrink: 0; }

/* ── Media Manager (Phase 4a.1) ──────────────────────────────────────────── */

/* Two-column layout: sidebar + main */
.mm-layout {
    display: grid;
    grid-template-columns: 192px 1fr;
    gap: 1.25rem;
    align-items: start;
}

/* Main column: prevent grid overflow */
.mm-main { min-width: 0; }

/* ── Folder Sidebar ───────────────────────────────────────────────────────── */
.mm-sidebar {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    position: sticky;
    top: calc(var(--admin-topbar-height) + 1.25rem);
}

.mm-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem 0.5rem 0.875rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--gray-400);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.mm-new-folder-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background: none;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    color: var(--gray-500);
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.mm-new-folder-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-700);
}

.mm-folder-list { padding: 0.25rem 0; }

.mm-folder-row { display: flex; align-items: center; }
.mm-folder-row .mm-folder-item { flex: 1; min-width: 0; }

.mm-folder-item {
    display: flex;
    align-items: center;
    gap: 0.4375rem;
    padding: 0.4375rem 0.875rem;
    text-decoration: none;
    font-size: 0.8125rem;
    color: var(--gray-600);
    transition: background 0.12s, color 0.12s;
}
.mm-folder-item:hover { background: var(--gray-50); color: var(--gray-800); }
.mm-folder-item.active {
    background: var(--admin-accent-bg);
    color: var(--admin-accent);
    font-weight: 600;
}

.mm-folder-icon { font-size: 0.8125rem; flex-shrink: 0; opacity: 0.7; }
.mm-folder-item.active .mm-folder-icon { opacity: 1; }
.mm-folder-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mm-folder-count {
    font-size: 0.6875rem;
    background: var(--gray-100);
    color: var(--gray-500);
    border-radius: 9999px;
    padding: 0.0625rem 0.4rem;
    min-width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}
.mm-folder-item.active .mm-folder-count {
    background: var(--admin-accent-bg);
    color: var(--admin-accent);
}

.mm-folder-delete {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-300);
    font-size: 0.875rem;
    padding: 0.4375rem 0.625rem;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.12s;
}
.mm-folder-delete:hover { color: var(--admin-danger); }

/* ── Filter / Toolbar Bar ─────────────────────────────────────────────────── */
.mm-filterbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.mm-search {
    flex: 1;
    min-width: 180px;
    padding: 0.4375rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: var(--font-sans);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.mm-search:focus {
    outline: none;
    border-color: var(--admin-primary-light);
    box-shadow: 0 0 0 3px rgba(51,65,85,0.08);
}

.mm-type-select {
    padding: 0.4375rem 0.625rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: var(--font-sans);
    background: #fff;
    color: var(--gray-700);
    cursor: pointer;
    transition: border-color 0.15s;
}
.mm-type-select:focus { outline: none; border-color: var(--admin-primary-light); }

.mm-total {
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin-left: auto;
    white-space: nowrap;
}

/* ── Media Grid ───────────────────────────────────────────────────────────── */
.mm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
    gap: 0.875rem;
}

.mm-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.1s;
}
.mm-card:hover {
    border-color: var(--admin-accent);
    box-shadow: 0 2px 8px rgba(99,102,241,0.1);
    transform: translateY(-1px);
}

.mm-card-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: var(--gray-50);
    overflow: hidden;
    text-decoration: none;
    border-bottom: 1px solid var(--gray-100);
}
.mm-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.15s;
}
.mm-card:hover .mm-card-preview img { opacity: 0.92; }
.mm-card-icon { font-size: 2.5rem; opacity: 0.35; }

.mm-card-info {
    padding: 0.5rem 0.75rem 0.375rem;
    flex: 1;
}
.mm-card-name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-800);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}
.mm-card-name:hover { color: var(--admin-accent); }

.mm-card-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--gray-400);
    flex-wrap: wrap;
}
.mm-card-folder {
    font-size: 0.725rem;
    color: var(--gray-400);
    margin-top: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mm-card-actions {
    display: flex;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}
.mm-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0;
    font-size: 0.8125rem;
    text-decoration: none;
    color: var(--gray-400);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.12s, background 0.12s;
    font-family: var(--font-sans);
    border-right: 1px solid var(--gray-200);
}
.mm-action-btn:last-child { border-right: none; }
.mm-action-btn:hover { color: var(--admin-accent); background: var(--admin-accent-bg); }
.mm-action-btn--danger:hover { color: var(--admin-danger); background: #fef2f2; }

/* ── Empty State ──────────────────────────────────────────────────────────── */
.mm-empty {
    text-align: center;
    padding: 3.5rem 2rem;
    color: var(--gray-500);
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}
.mm-empty-icon { font-size: 2.75rem; opacity: 0.25; margin-bottom: 0.875rem; }
.mm-empty p { margin-bottom: 1.25rem; font-size: 0.9375rem; color: var(--gray-500); }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.mm-pagination {
    display: flex;
    gap: 0.375rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.mm-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--gray-700);
    background: #fff;
    transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.mm-page-btn:hover { border-color: var(--admin-accent); color: var(--admin-accent); }
.mm-page-btn.active { background: var(--admin-primary); border-color: var(--admin-primary); color: #fff; }

/* ── Upload / Folder Modals ───────────────────────────────────────────────── */
.mm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.mm-modal {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    width: 100%;
    max-width: 680px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mm-modal--sm { max-width: 440px; }

.mm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
    background: var(--gray-50);
}
.mm-modal-header h3 { font-size: 0.9375rem; font-weight: 600; color: var(--gray-800); }

.mm-close {
    background: none;
    border: none;
    font-size: 1.375rem;
    line-height: 1;
    cursor: pointer;
    color: var(--gray-400);
    padding: 0.125rem;
    transition: color 0.12s;
}
.mm-close:hover { color: var(--gray-700); }

.mm-modal-body { padding: 1.25rem; overflow-y: auto; flex: 1; }
.mm-modal-footer { padding: 0.75rem 1.25rem; border-top: 1px solid var(--gray-200); flex-shrink: 0; }

/* ── Upload Zone ─────────────────────────────────────────────────────────── */
/* Visually hides the native file input while keeping it in the DOM for the
   form submission and browser-level required validation.                       */
.mm-file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
/* The <label> element that acts as the visual drop / click zone */
.mm-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.75rem 2rem 2.25rem;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    background: var(--gray-50);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
    min-height: 210px;
}
.mm-upload-zone:hover,
.mm-upload-zone:focus-within {
    border-color: var(--admin-primary-light);
    background: rgba(51,65,85,0.04);
    box-shadow: 0 0 0 4px rgba(51,65,85,0.06);
}
.mm-upload-zone.mm-zone-drag-over {
    border-color: var(--admin-primary-light);
    border-style: solid;
    background: rgba(51,65,85,0.04);
    box-shadow: 0 0 0 4px rgba(51,65,85,0.1);
}
/* Upload icon container */
.mm-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.125rem;
    flex-shrink: 0;
}
/* Primary call-to-action line */
.mm-upload-primary {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.3;
}
/* Secondary "or drop here" line */
.mm-upload-secondary {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.375rem;
}
/* Technical limits hint – visually subordinate, separated by hairline */
.mm-upload-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
    width: 100%;
}
/* Selection feedback shown below the zone after pick or drop */
.mm-upload-feedback {
    margin-top: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--admin-success);
    min-height: 1.375rem;
    text-align: center;
}

/* ── Media Picker Modal ───────────────────────────────────────────────────── */
.media-picker-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.media-picker-modal {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    width: 100%;
    max-width: 720px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.media-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
    flex-shrink: 0;
}
.media-picker-header h3 { font-size: 0.9375rem; font-weight: 600; color: var(--gray-800); }
.media-picker-close {
    background: none;
    border: none;
    font-size: 1.375rem;
    line-height: 1;
    cursor: pointer;
    color: var(--gray-400);
    padding: 0.125rem;
    transition: color 0.12s;
}
.media-picker-close:hover { color: var(--gray-700); }

/* Picker toolbar: search + folder filter */
.media-picker-toolbar {
    padding: 0.75rem 1.25rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    gap: 0.625rem;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.media-picker-toolbar-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    white-space: nowrap;
    font-weight: 500;
}
.media-picker-search {
    flex: 1;
    min-width: 140px;
    padding: 0.4375rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: var(--font-sans);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.media-picker-search:focus {
    outline: none;
    border-color: var(--admin-primary-light);
    box-shadow: 0 0 0 3px rgba(51,65,85,0.08);
}
.media-picker-folder {
    padding: 0.4375rem 0.625rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: var(--font-sans);
    background: #fff;
    color: var(--gray-700);
    cursor: pointer;
    transition: border-color 0.15s;
}
.media-picker-folder:focus { outline: none; border-color: var(--admin-primary-light); }

/* Scrollable grid area */
.media-picker-body {
    padding: 1rem 1.25rem;
    overflow-y: auto;
    flex: 1;
    min-height: 220px;
}
.media-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}
.media-picker-item {
    border: 2px solid transparent;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--gray-50);
    transition: border-color 0.12s, box-shadow 0.12s, transform 0.1s;
}
.media-picker-item:hover {
    border-color: var(--admin-accent);
    box-shadow: 0 2px 6px rgba(99,102,241,0.1);
    transform: translateY(-1px);
}
.media-picker-item:focus {
    outline: none;
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}
.media-picker-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}
.media-picker-item-name {
    font-size: 0.75rem;
    padding: 0.3125rem 0.5rem;
    color: var(--gray-600);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
    border-top: 1px solid var(--gray-100);
    background: #fff;
}
.media-picker-footer {
    padding: 0.625rem 1.25rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.8125rem;
    color: var(--gray-500);
    background: var(--gray-50);
    flex-shrink: 0;
}
.media-picker-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--gray-400);
    font-size: 0.9rem;
}

/* ─── Login extras (forgot-password flow) ─── */
.login-subtitle { text-align: center; font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--gray-800); }
.login-hint { text-align: center; font-size: 0.875rem; color: var(--gray-500); margin-bottom: 1.5rem; }
.login-forgot { text-align: center; margin-top: 1rem; font-size: 0.875rem; }
.login-forgot a { color: var(--admin-accent); text-decoration: none; }
.login-forgot a:hover { text-decoration: underline; }

/* ── Media Manager – Phase 15 additions ─────────────────────────────────── */

/* Rename-folder button in sidebar (next to delete) */
.mm-folder-rename {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.mm-folder-rename:hover { color: var(--admin-accent); }

/* Copy-URL button feedback: brief "Copied!" visual */
.mm-action-btn.mm-copied {
    color: var(--admin-success);
}

/* ── Drag & Drop (Phase 7c) ──────────────────────────────────────────────── */

/* The drop zone wraps mm-main; position:relative is needed for the overlay. */
#mmDropZone { position: relative; }

/* Visual state while files are dragged over the drop zone */
.mm-drag-over {
    outline: 2px dashed var(--admin-primary);
    outline-offset: -3px;
    border-radius: var(--radius);
}

/* Full-area overlay shown only during drag */
.mm-drop-hint {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(51,65,85,0.05);
    z-index: 20;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.625rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--admin-primary);
    border-radius: var(--radius);
    pointer-events: none;
    border: 2px dashed var(--admin-primary);
}
.mm-drag-over .mm-drop-hint { display: flex; }
.mm-drop-icon { font-size: 2.25rem; line-height: 1; }

/* ── ITSWEBER Branding (Phase 6a) ────────────────────────────────────────── */
/* Admin login – brand logo */
.login-brand-link { display: block; text-decoration: none; }
.login-brand-logo {
    max-height: 48px;
    width: auto;
    margin: 0 auto;
    display: block;
}

/* ── end ITSWEBER Branding ───────────────────────────────────────────────── */

/* ── Login UX Enhancements (v3.0.4) ─────────────────────────────────────── */
/* Password toggle */
.login-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.login-password-wrapper input {
    padding-right: 2.75rem;
}
.login-password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.125rem;
    line-height: 1;
    color: var(--gray-400);
    transition: color var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-password-toggle:hover { color: var(--gray-600); }
.login-password-toggle:focus-visible {
    outline: 2px solid var(--admin-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Remember-Me checkbox */
.login-remember-group { margin-top: 0.25rem; margin-bottom: 0.75rem; }
.login-remember-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    cursor: pointer;
    user-select: none;
}
.login-remember-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--admin-accent);
    cursor: pointer;
}

/* Back to website link */
.login-back-to-site {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.875rem;
}
.login-back-to-site a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color var(--transition);
}
.login-back-to-site a:hover { color: var(--admin-accent); }
/* ── end Login UX Enhancements ───────────────────────────────────────────── */

/* ── Phase 14: Accessibility Foundations ─────────────────────────────────── */

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--admin-primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0 0 4px 4px;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.15s;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Visible focus ring for keyboard navigation */
a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 2px solid var(--admin-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Suppress outline for mouse/touch users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[tabindex="0"]:focus:not(:focus-visible) {
    outline: none;
}

/* Admin form inputs: keep box-shadow focus but also show outline for keyboard */
.admin-form input:focus-visible,
.admin-form textarea:focus-visible,
.admin-form select:focus-visible {
    outline: 2px solid var(--admin-primary);
    outline-offset: 0;
}

/* ── end Accessibility Foundations ───────────────────────────────────────── */

/* ── Branding upload widget (Settings → Branding sidebar) ─────────────────── */
.branding-field { margin-bottom: 1.25rem; }
.branding-preview-wrap {
    position: relative; display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.branding-preview-img {
    max-height: 54px; max-width: 180px; border-radius: 6px;
    border: 1px solid var(--gray-200); background: var(--gray-50);
    object-fit: contain; padding: 2px;
}
.branding-no-preview {
    width: 180px; height: 54px; border-radius: 6px;
    border: 1px dashed var(--gray-200); background: var(--gray-50);
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-400); font-size: 0.8rem;
}
.branding-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.branding-actions .btn-xs { font-size: 0.8rem; padding: 0.3rem 0.7rem; border-radius: 5px; cursor: pointer; }
.branding-remove-btn {
    background: none; border: 1px solid #fca5a5; color: #dc2626;
    border-radius: 5px; font-size: 0.8rem; padding: 0.3rem 0.7rem; cursor: pointer;
}
.branding-remove-btn:hover { background: #fef2f2; }
.branding-path-display { font-size: 0.75rem; color: var(--gray-500); word-break: break-all; margin-top: 0.15rem; }

/* Branding picker modal */
.branding-picker-modal {
    background: #fff; border-radius: 10px; width: min(700px, 95vw);
    max-height: 80vh; display: flex; flex-direction: column; overflow: hidden;
}
.branding-picker-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--gray-200);
    font-weight: 600; font-size: 1rem;
}
.branding-picker-header button { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: var(--gray-500); }
#brandingPickerBody { overflow-y: auto; flex: 1; padding: 1rem; }
#brandingPickerOverlay {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.5); align-items: center; justify-content: center;
}
/* ── end Branding upload widget ───────────────────────────────────────────── */

/* ── Long-Running Action (LRA) – einheitliches Progress-/Status-Feedback ──── */
/* Einsatz: Backup-Erstellung, Restore-Ausführung, Update-Installation,         */
/* Galerie-Upload, Media-Manager-Upload.                                         */
/* Ehrliches Schritt-Feedback statt Fake-Fortschrittsbalken.                     */

/* Status-Block: wird per JS eingeblendet sobald die Aktion startet */
.lra-status {
    display: none;
    margin-top: 1rem;
    padding: 0.875rem 1.1rem;
    background: #eff6ff;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1e3a8a;
    line-height: 1.5;
}
.lra-status.lra-active {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

/* Drehender Kreis-Spinner (reines CSS, keine Bild-Abhängigkeit) */
.lra-spinner {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2.5px solid #bfdbfe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: lra-spin 0.8s linear infinite;
    margin-top: 2px;
}
@keyframes lra-spin {
    to { transform: rotate(360deg); }
}

/* Textteil des Status-Blocks */
.lra-status-body  { flex: 1; }
.lra-status-heading {
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: #1e40af;
}

/* Schritt-Liste */
.lra-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lra-steps li {
    padding: 0.125rem 0;
    color: #64748b;
    font-size: 0.8125rem;
}
.lra-steps li.lra-step-current {
    color: #1d4ed8;
    font-weight: 600;
}
.lra-steps li.lra-step-current::before { content: '→ '; }

/* Inline-Spinner im Submit-Button selbst */
.lra-btn-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255,255,255,0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lra-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 0.375rem;
}
/* Auf dunklem Hintergrund (btn-warning / sekundäre Buttons) */
.btn-secondary .lra-btn-spinner,
.btn-warning .lra-btn-spinner {
    border-color: rgba(0,0,0,0.2);
    border-top-color: currentColor;
}
/* ── end Long-Running Action ─────────────────────────────────────────────── */

/* ── Section Items Sortable (Move buttons for features, topic_cards, highlight_grid) */
.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    height: auto;
    line-height: 1;
    min-width: auto;
}
.btn-xs:hover {
    opacity: 0.8;
}
.item-move-buttons {
    flex-direction: column;
    gap: 0.2rem;
}
.item-move-buttons .btn-xs {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.item-move-buttons .btn-xs:hover {
    background-color: #dee2e6;
    color: #212529;
}
.item-move-buttons .btn-xs:active {
    background-color: #adb5bd;
    color: #fff;
}
/* ── end Section Items Sortable ─────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════════════════
   ITSWEBER CMS – Modern Admin Polish (v3.0.6)
   Global visual upgrades for a premium admin experience.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Selection Color ──────────────────────────────────────────────────────── */
::selection { background: rgba(13,148,136,0.18); color: var(--gray-900); }

/* ── Smooth Scrolling ─────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── Custom Scrollbar (admin content) ─────────────────────────────────────── */
.admin-main::-webkit-scrollbar { width: 6px; }
.admin-main::-webkit-scrollbar-track { background: transparent; }
.admin-main::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
.admin-main::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ── Links in admin content ───────────────────────────────────────────────── */
.admin-content a:not(.btn):not(.nav-item):not(.topbar-link) {
    color: var(--admin-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}
.admin-content a:not(.btn):not(.nav-item):not(.topbar-link):hover {
    color: var(--admin-primary-dark);
    text-decoration: underline;
}

/* ── Topbar Links polish ──────────────────────────────────────────────────── */
.topbar-link {
    color: var(--admin-primary) !important;
    font-weight: 600;
    transition: all 0.2s ease !important;
    border-radius: var(--radius-sm);
}
.topbar-link:hover {
    color: var(--admin-primary-dark) !important;
    background: var(--admin-accent-bg) !important;
    box-shadow: 0 1px 4px rgba(13,148,136,0.1);
}

/* ── Form Hint polish ─────────────────────────────────────────────────────── */
.form-hint {
    font-size: 0.775rem;
    color: var(--gray-400);
    margin-top: 0.375rem;
    line-height: 1.4;
}

/* ── Admin Content padding ────────────────────────────────────────────────── */
.admin-content {
    padding: 1.75rem 2rem;
}

/* ── Backup / Tab system – modern overrides ───────────────────────────────── */
.backup-tabs {
    display: flex !important;
    gap: 0.25rem !important;
    border-bottom: 2px solid var(--gray-200) !important;
    margin-bottom: 1.75rem !important;
    padding: 0 !important;
}
.backup-tab {
    padding: 0.75rem 1.25rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border-bottom: 3px solid transparent !important;
    margin-bottom: -2px !important;
    color: var(--gray-500) !important;
    font-size: 0.875rem !important;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
}
.backup-tab:hover {
    color: var(--admin-primary) !important;
    background: var(--admin-accent-bg) !important;
}
.backup-tab.active {
    color: var(--admin-primary) !important;
    border-bottom-color: var(--admin-primary) !important;
    background: rgba(14,116,144,0.04) !important;
}

/* ── Backup info boxes ────────────────────────────────────────────────────── */
.backup-info-box {
    background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%) !important;
    border: 1.5px solid rgba(13,148,136,0.15) !important;
    border-radius: var(--radius-lg) !important;
    padding: 1.25rem 1.5rem !important;
    margin-bottom: 1.5rem !important;
}
.backup-info-box h4 {
    font-weight: 800 !important;
    color: var(--gray-900) !important;
    font-size: 1.0625rem !important;
    margin: 0 0 0.5rem !important;
}
.backup-info-box p {
    color: var(--gray-600) !important;
    font-size: 0.875rem !important;
    line-height: 1.65 !important;
}

/* ── Backup version badge ─────────────────────────────────────────────────── */
.backup-version-badge {
    display: inline-block !important;
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-accent) 100%) !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 0.2rem 0.75rem !important;
    font-size: 0.775rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 2px 6px rgba(14,116,144,0.25) !important;
}

/* ── Global fieldsets (non-form context too) ───────────────────────────────── */
fieldset {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
fieldset:hover {
    border-color: rgba(13,148,136,0.2);
    box-shadow: 0 2px 12px rgba(13,148,136,0.06);
}
legend {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-800);
    padding: 0 0.625rem;
    letter-spacing: -0.01em;
}

/* ── Global inputs (outside .admin-form too, e.g. backup page) ────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
textarea,
select {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    color: var(--gray-800);
    background: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="url"]:hover,
textarea:hover,
select:hover {
    border-color: var(--admin-primary-light);
    box-shadow: 0 2px 6px rgba(14,116,144,0.08);
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.12), 0 2px 8px rgba(13,148,136,0.08);
}
input::placeholder, textarea::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
    cursor: pointer;
}
input[type="checkbox"],
input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--admin-primary);
    cursor: pointer;
}

/* ── Global button fallback (outside .btn class too) ──────────────────────── */
button:not(.btn):not(.glb-close):not(.glb-nav):not(.glb-share-btn):not(.nav-toggle):not(.sidebar-toggle):not(.nav-group-toggle):not(.backup-tab) {
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s ease;
}

/* ── Checkbox label polish ────────────────────────────────────────────────── */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.375rem 0;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease;
}
.checkbox-label:hover {
    color: var(--admin-primary);
}

/* ── Small text / hints ───────────────────────────────────────────────────── */
small, .form-hint, .text-muted {
    color: var(--gray-400);
}

/* ── Data table action buttons ────────────────────────────────────────────── */
.data-table .btn-sm,
.data-table .btn-xs {
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border-radius: var(--radius-sm);
}
.data-table .btn-sm:hover,
.data-table .btn-xs:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* ── Move buttons modern ──────────────────────────────────────────────────── */
.item-move-buttons .btn-xs {
    background-color: var(--gray-100) !important;
    color: var(--gray-600) !important;
    border: 1px solid var(--gray-200) !important;
    border-radius: var(--radius-sm) !important;
}
.item-move-buttons .btn-xs:hover {
    background-color: var(--admin-accent-bg) !important;
    color: var(--admin-primary) !important;
    border-color: rgba(13,148,136,0.2) !important;
}

/* ── Dashboard stat accent polish ─────────────────────────────────────────── */
.dash-stat-accent { width: 5px; border-radius: 0 3px 3px 0; }

/* ── Content header modernized ────────────────────────────────────────────── */
.content-header {
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 1.125rem;
    margin-bottom: 1.75rem;
}

/* ── Toast / flash messages ───────────────────────────────────────────────── */
.alert {
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    font-weight: 500;
    box-shadow: var(--shadow);
}

/* ── Empty state ──────────────────────────────────────────────────────────── */
.text-muted {
    color: var(--gray-400);
    font-style: italic;
}

/* ── Long-running action button polish ────────────────────────────────────── */
.lra-btn {
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
}

/* ── Admin body background subtle pattern ─────────────────────────────────── */
.admin-main {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
}

/* ── Print-safe: hide sidebar/topbar ──────────────────────────────────────── */
@media print {
    .admin-sidebar, .admin-topbar, .sidebar-backdrop { display: none !important; }
    .admin-main { margin-left: 0 !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   end Modern Admin Polish (v3.0.6)
   ═══════════════════════════════════════════════════════════════════════════ */
