/* ============================================================
   PKBM Digital - Admin CMS & Redaksi Stylesheet
   Design System: Administrative Portal & Content Management
   ============================================================ */

/* ---------- CSS Variables & Themes ---------- */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-50: rgba(37, 99, 235, 0.08);
  --primary-100: rgba(37, 99, 235, 0.15);
  --primary-gradient: linear-gradient(135deg, #1e40af, #3b82f6);

  --accent-red: #ef4444;
  --accent-orange: #f97316;
  --accent-emerald: #10b981;
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-teal: #14b8a6;

  --white: #ffffff;
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;

  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #3b82f6;

  --font-primary: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 14px 28px rgba(0, 0, 0, 0.1), 0 8px 12px rgba(0, 0, 0, 0.06);

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}

[data-theme="dark"] {
  --bg-body: #090d16;
  --bg-surface: #0f172a;
  --bg-subtle: #1e293b;
  --bg-card: #131d31;
  --bg-elevated: #1e293b;

  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --border-color: #1e293b;
  --border-light: #2d3748;

  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 16px 32px rgba(0, 0, 0, 0.6);
}

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

body {
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-body);
  transition: background-color var(--duration-normal) ease, color var(--duration-normal) ease;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--duration-fast) ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Brand Identity */
.brand-identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 12px;
  width: fit-content;
  max-width: fit-content;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin: 0 auto;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.brand-logo-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  font-size: 1.8rem;
  line-height: 1;
}

.brand-cap-svg {
  width: 28px;
  height: 28px;
  fill: #818cf8;
}

.brand-logo-text {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
  white-space: nowrap;
}

/* ============================================================
   ADMIN AUTH GATE OVERLAY
   ============================================================ */
.auth-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 40%),
              radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.12), transparent 40%),
              var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.auth-gate-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-xl);
  animation: authCardPop 0.4s var(--ease-spring);
}

@keyframes authCardPop {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  margin-bottom: 12px;
}

.auth-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

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

.auth-tab-nav {
  display: flex;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  padding: 8px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--duration-fast) ease;
}

.auth-tab-btn.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.auth-demo-hint {
  background: var(--primary-50);
  border: 1px dashed var(--primary-100);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.user-profile-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  margin-top: auto;
}

.user-profile-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.btn-logout {
  color: #ef4444;
  font-size: 1.1rem;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) ease;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* ============================================================
   ADMIN DASHBOARD LAYOUT & SIDEBAR
   ============================================================ */
.admin-body {
  background-color: var(--bg-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.admin-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

.admin-main-wrapper {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
}

/* Sidebar Backdrop Overlay for Mobile */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Sidebar Navigation */
.admin-sidebar {
  background: #0f172a;
  color: #ffffff;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  z-index: 1050;
  border-right: 1px solid #1e293b;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #1e293b;
}

.admin-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 8px;
}

.admin-brand .brand-logo-img-wrap {
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  width: fit-content;
  max-width: fit-content;
}

.admin-brand .brand-logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.admin-brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.admin-brand-text .brand-name {
  font-size: 0.82rem;
  color: #f1f5f9;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
}

.btn-sidebar-close {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sidebar-close:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.admin-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.admin-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--duration-fast) ease;
}

.admin-menu-item i {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.admin-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(3px);
}

.admin-menu-item.active {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.admin-menu-divider {
  margin: 10px 0;
  border-top: 1px solid #1e293b;
}

.menu-item-portal {
  background: rgba(37, 99, 235, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.menu-item-portal:hover {
  background: var(--primary);
  color: #ffffff;
}

/* User profile widget in sidebar */
.user-profile-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  margin-top: auto;
}

.user-profile-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.user-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.user-profile-meta {
  min-width: 0;
  overflow: hidden;
}

.user-profile-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-profile-role {
  font-size: 0.68rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-profile-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.btn-logout-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  font-size: 1rem;
  background: transparent;
  transition: all 0.2s ease;
}

.btn-logout-icon:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Mobile Header (Hidden on Desktop > 1024px) */
.admin-mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.mobile-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-mobile-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mobile-toggle:hover, .btn-mobile-toggle:active {
  background: var(--primary-50);
  color: var(--primary);
  border-color: var(--primary-100);
}

.mobile-brand-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
}

.mobile-brand-logo {
  height: 22px;
  width: auto;
  display: block;
}

.mobile-brand-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-main);
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-icon-mobile {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-icon-mobile:hover, .btn-icon-mobile:active {
  background: var(--primary-50);
  color: var(--primary);
}

.btn-danger-mobile {
  color: var(--accent-red);
}

.btn-danger-mobile:hover, .btn-danger-mobile:active {
  background: rgba(239, 68, 68, 0.12);
  color: var(--accent-red);
}

/* Mobile Bottom Navigation Bar (Hidden on Desktop) */
.admin-mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 6px 10px;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.mobile-nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-nav-tab i {
  font-size: 1.15rem;
  line-height: 1;
}

.mobile-nav-tab.active {
  color: var(--primary);
  font-weight: 700;
}

.mobile-nav-tab-featured {
  position: relative;
}

.mobile-nav-tab-featured .tab-featured-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.4);
  margin-bottom: 1px;
}

/* Admin Main Content Container */
.admin-main-content {
  padding: 28px 32px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Topbar Styles */
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.admin-topbar-info {
  flex: 1 1 300px;
  min-width: 0;
}

.admin-topbar-title {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.25;
}

.admin-topbar-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-action-danger {
  color: var(--accent-red) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

.btn-action-danger:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: var(--accent-red) !important;
}

/* Admin Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #ffffff;
  flex-shrink: 0;
}

.stat-info h4 {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin-bottom: 2px;
}

.stat-info .stat-val {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

/* Admin Card Container */
.admin-card, .admin-table-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 26px;
  overflow: hidden;
}

.admin-card-header, .admin-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 12px;
}
  border-bottom: 1px solid var(--border-color);
}

.admin-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  outline: none;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

/* Image Upload Dropzone */
.image-source-tabs {
  display: flex;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  gap: 4px;
}

.img-tab-btn {
  flex: 1;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  transition: all var(--duration-fast) ease;
}

.img-tab-btn.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.upload-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  background: var(--bg-subtle);
  cursor: pointer;
  transition: all var(--duration-normal) ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.upload-dropzone:hover, .upload-dropzone.drag-over {
  border-color: var(--primary);
  background: var(--primary-50);
  transform: scale(1.005);
}

.upload-dropzone-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2px;
  transition: transform var(--duration-fast) ease;
}

.upload-dropzone:hover .upload-dropzone-icon {
  transform: translateY(-3px) scale(1.08);
}

.upload-dropzone-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.upload-dropzone-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 340px;
  line-height: 1.45;
}

.file-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 8px;
}

.image-preview-card {
  position: relative;
  margin-top: 14px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #0f172a;
  max-height: 240px;
}

.image-preview-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.image-preview-overlay {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  font-size: 0.75rem;
}

/* ============================================================
   Cover Image Position Selector
   ============================================================ */
.cover-position-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 6px;
}

.cover-pos-option {
  position: relative;
  cursor: pointer;
  margin-bottom: 0;
  display: block;
}

.cover-pos-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cover-pos-card {
  border: 1.5px solid var(--border-color);
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  user-select: none;
}

.cover-pos-icon {
  font-size: 1.35rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.cover-pos-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.cover-pos-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.cover-pos-option:hover .cover-pos-card {
  border-color: var(--primary-100);
  background: var(--bg-surface);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cover-pos-option input[type="radio"]:checked + .cover-pos-card {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.cover-pos-option input[type="radio"]:checked + .cover-pos-card .cover-pos-icon {
  color: var(--primary);
  transform: scale(1.15);
}

.cover-pos-option input[type="radio"]:checked + .cover-pos-card .cover-pos-title {
  color: var(--primary);
}

@media (max-width: 600px) {
  .cover-position-selector {
    grid-template-columns: 1fr;
  }
}

/* Admin Data Table */
.admin-table-wrap {
  overflow-x: auto;
}

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

.admin-table th {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid var(--border-color);
}

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

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

/* Category Badges */
.badge-category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  background: var(--primary);
}

.badge-category.paketa { background: #0284c7; }
.badge-category.paketb { background: #16a34a; }
.badge-category.paketc { background: #ea580c; }
.badge-category.pemuda { background: #9333ea; }
.badge-category.wanita { background: #db2777; }
.badge-category.masyarakat { background: #0891b2; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
  transition: all var(--duration-fast) ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.4);
}

.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--duration-fast) ease;
}

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

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--duration-fast) ease;
}

.btn-icon:hover {
  background: var(--primary-50);
  color: var(--primary);
}

/* Password Input with Eye Toggle */
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap .form-control {
  padding-right: 42px;
}

.password-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) ease;
}

.password-toggle-btn:hover {
  color: var(--primary);
}

/* Admin Modals */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease forwards;
}

.admin-modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: authCardPop 0.3s var(--ease-spring);
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-subtle);
}

.admin-modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-modal-body {
  padding: 24px;
}

.admin-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-subtle);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  min-width: 280px;
  max-width: 420px;
  animation: slideInToast 0.3s var(--ease-spring) forwards;
  transition: all 0.3s ease;
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-success i { color: var(--accent-emerald); font-size: 1.2rem; }
.toast-info i { color: var(--primary); font-size: 1.2rem; }
.toast-danger i { color: var(--accent-red); font-size: 1.2rem; }

/* ============================================================
   RESPONSIVE BREAKPOINTS (Mobile & Tablet UI Synchronization)
   ============================================================ */
@media (max-width: 1024px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-mobile-header {
    display: flex;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    z-index: 1050;
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.45);
  }

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

  .btn-sidebar-close {
    display: flex;
  }

  .admin-main-content {
    padding: 20px 18px;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 20px;
  }

  .admin-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .admin-topbar-actions button,
  .admin-topbar-actions a {
    flex: 1 1 auto;
    font-size: 0.82rem;
    padding: 8px 12px;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .admin-mobile-bottom-nav {
    display: grid;
  }

  .admin-main-content {
    padding: 14px 12px 85px 12px;
  }

  .admin-topbar-title {
    font-size: 1.22rem;
  }

  .admin-topbar-subtitle {
    font-size: 0.78rem;
  }

  .admin-topbar-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
  }

  .admin-topbar-actions .btn-outline-primary,
  .admin-topbar-actions .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }

  .admin-stat-card {
    padding: 12px 10px;
    gap: 10px;
    border-radius: var(--radius-md);
  }

  .stat-icon-wrap {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
    border-radius: var(--radius-sm);
  }

  .stat-info h4 {
    font-size: 0.68rem;
    margin-bottom: 0;
  }

  .stat-info .stat-val {
    font-size: 1.25rem;
  }

  .admin-card, .admin-table-section {
    padding: 16px 12px;
    border-radius: var(--radius-lg);
    margin-bottom: 18px;
  }

  .admin-card-header, .admin-table-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .admin-card-header > div,
  .admin-table-header > div {
    width: 100%;
  }

  #adminTableSearchInput,
  #adminTableCategoryFilter,
  .search-input-box {
    width: 100% !important;
    max-width: 100% !important;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cover-position-selector {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .upload-dropzone {
    padding: 22px 14px;
  }

  .admin-table th, .admin-table td {
    padding: 9px 10px;
    font-size: 0.8rem;
  }

  .admin-modal-card {
    width: 95%;
    max-width: 95%;
    border-radius: var(--radius-lg);
  }

  .admin-modal-body {
    padding: 16px;
  }

  .admin-modal-header, .admin-modal-footer {
    padding: 12px 16px;
  }
}

@media (max-width: 420px) {
  .admin-topbar-actions {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .admin-topbar-actions .btn-outline-primary,
  .admin-topbar-actions .btn-primary {
    padding: 7px 6px;
    font-size: 0.72rem;
    gap: 4px;
  }

  .admin-topbar-actions i {
    font-size: 0.82rem;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .stat-info .stat-val {
    font-size: 1.15rem;
  }

  .mobile-brand-pill {
    padding: 3px 8px;
  }

  .btn-icon-mobile {
    width: 32px;
    height: 32px;
    font-size: 0.88rem;
  }
}

/* ============================================================
   AUTH GATE / LOGIN CARD (CENTERED LAYOUT)
   ============================================================ */
.auth-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(6, 78, 59, 0.82));
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-gate-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 32px 28px;
  animation: authCardPop 0.35s var(--ease-spring);
}

@keyframes authCardPop {
  0% { opacity: 0; transform: scale(0.92) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px auto;
  width: 100%;
}

.auth-logo-img {
  height: 100px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.auth-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
  text-align: center;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

/* ============================================================
   YouTube Video Feature Styles (Admin Form & Preview)
   ============================================================ */
.youtube-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.youtube-input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 1.15rem;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.youtube-url-input {
  padding-left: 40px !important;
  padding-right: 42px !important;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  font-size: 0.88rem;
  transition: all var(--duration-fast) ease;
}

.youtube-url-input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.btn-clear-yt-input {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.15s ease;
}

.btn-clear-yt-input:hover {
  color: var(--accent-red);
}

.admin-video-preview-card {
  background: #ffffff;
  border: 1.5px solid #fecaca;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: fadeInDown 0.25s ease;
}

.admin-video-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #fef2f2;
  border-bottom: 1px solid #fee2e2;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-yt-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.btn-preview-link {
  font-size: 0.76rem;
  font-weight: 600;
  color: #ef4444;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid #fca5a5;
  transition: all 0.15s ease;
}

.btn-preview-link:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.btn-preview-remove {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.btn-preview-remove:hover {
  color: var(--accent-red);
}

.admin-video-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: 580px;
  background: #0f172a;
}

.admin-video-embed-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Spin & Pulse Animations for Syncing */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.badge-sync-portal i.bi-broadcast {
  display: inline-block;
  color: var(--primary);
  animation: pulseDot 2s ease-in-out infinite;
}

/* ============================================================
   Multi Photos Management & Position Selectors in Admin
   ============================================================ */
.multi-photos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.multi-photos-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.multi-photos-tools {
  display: flex;
  gap: 8px;
}

.multi-photos-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-item-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.photo-item-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.photo-item-thumb-wrap {
  position: relative;
  width: 95px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
}

.photo-item-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-primary-badge {
  position: absolute;
  bottom: 3px;
  left: 3px;
  right: 3px;
  background: rgba(21, 128, 61, 0.95);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 4px;
  border-radius: 4px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.photo-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.photo-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.photo-item-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.photo-item-size {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.photo-position-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pos-picker-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pos-pill-group {
  display: inline-flex;
  gap: 4px;
  background: var(--bg-subtle);
  padding: 3px 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.pos-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.pos-pill-btn:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}

.pos-pill-btn.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28);
}

.photo-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-make-primary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-make-primary:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-delete-photo {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-delete-photo:hover {
  background: var(--accent-red);
  color: #ffffff;
}

@media (max-width: 640px) {
  .photo-item-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .photo-item-thumb-wrap {
    width: 100%;
    height: 140px;
  }
  .pos-pill-group {
    flex-wrap: wrap;
    width: 100%;
  }
  .pos-pill-btn {
    flex: 1;
    justify-content: center;
  }
  .photo-item-actions {
    width: 100%;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
  }
}

/* ============================================================
   Pagination Slide / Halaman Tabel Admin
   ============================================================ */
.admin-table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
  flex-wrap: wrap;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.admin-page-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-page-info strong {
  color: var(--text-main);
  font-weight: 700;
}

.admin-page-badge {
  background: var(--primary-50);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-100);
  display: inline-flex;
  align-items: center;
}

.admin-page-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) ease;
  cursor: pointer;
  user-select: none;
}

.admin-page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
  transform: translateY(-1px);
}

.admin-page-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35);
}

.admin-page-btn.nav-btn {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.admin-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--bg-subtle);
  border-color: var(--border-light);
}

.admin-page-dots {
  padding: 0 4px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  user-select: none;
}

@media (max-width: 640px) {
  .admin-table-pagination {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
  }
  .admin-page-info {
    justify-content: center;
    text-align: center;
  }
  .admin-page-nav {
    justify-content: center;
    width: 100%;
  }
}




