/* ==========================================================================
   DIGITARA PORTAL - MODERN RESPONSIVE ADMIN DASHBOARD STYLESHEET
   Dipertajam dengan CSS Modern, Fluid Typography & Mobile Responsive (All Devices)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600;1,700&display=swap');

:root {
  --admin-font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --admin-font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --admin-sidebar-w: 256px;
  --admin-bg-body: #f1f5f9;
  --admin-bg-card: #ffffff;
  --admin-border: #e2e8f0;
  --admin-border-focus: #0091B9;
  --admin-primary: #0091B9;
  --admin-primary-dark: #004E98;
  --admin-primary-soft: rgba(0, 145, 185, 0.08);
  --admin-accent: #FF6500;
  --admin-text-main: #0f172a;
  --admin-text-muted: #64748b;
  --admin-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --admin-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --admin-shadow-lg: 0 10px 25px -5px rgba(10, 46, 54, 0.08), 0 8px 10px -6px rgba(10, 46, 54, 0.04);
  --admin-radius-sm: 6px;
  --admin-radius-md: 10px;
  --admin-radius-lg: 14px;
  --admin-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Container & Global Overflow Protection
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--admin-bg-body);
  font-family: var(--admin-font-main);
  color: var(--admin-text-main);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

img, svg {
  image-rendering: auto;
}

.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  position: relative;
}

/* Prevent any text/code bursting out of parent containers */
.dashboard-main,
.dashboard-content,
.settings-section-card,
.table-card,
.metric-card,
.form-group,
.form-control,
.doc-preview-card {
  min-width: 0;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Modern Admin Sidebar (Desktop & Mobile Drawer)
   -------------------------------------------------------------------------- */
.dashboard-sidebar {
  width: var(--admin-sidebar-w);
  background: #0D1B2A;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.dashboard-sidebar::-webkit-scrollbar {
  width: 4px;
}
.dashboard-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.sidebar-brand {
  padding: 0.9rem 0.9rem 0.7rem;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  background: rgba(0, 0, 0, 0.2);
}

.sidebar-brand-wrapper {
  display: block;
  text-decoration: none;
  width: 100%;
}

.sidebar-brand-wrapper:hover {
  text-decoration: none;
}

.sidebar-brand-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 0.4rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 56px;
}

.sidebar-brand-wrapper:hover .sidebar-brand-card {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 0 1.5px #38bdf8;
}

.sidebar-brand-img {
  max-height: 48px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  transform: translateZ(0);
  backface-visibility: hidden;
  filter: contrast(1.02);
}

.sidebar-brand-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding: 0 0.15rem;
}

.sidebar-brand-badge-admin {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  line-height: 1;
}

.sidebar-brand-badge-admin i {
  color: #60a5fa;
  font-size: 0.68rem;
}

.sidebar-brand-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.status-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  display: inline-block;
  box-shadow: 0 0 5px #34d399;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

/* Fallback when no image logo uploaded */
.sidebar-brand-fallback {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sidebar-brand .brand-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.brand-text-block {
  min-width: 0;
  flex: 1;
}

.brand-title {
  font-family: var(--font-heading, inherit);
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-sub {
  color: #60a5fa;
  font-size: 0.72rem;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 0.62rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-close-btn {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0.85rem;
  right: 0.75rem;
  z-index: 5;
  transition: var(--admin-transition);
}

.sidebar-close-btn:hover {
  background: rgba(239, 68, 68, 0.85);
  transform: rotate(90deg);
}

.sidebar-menu {
  list-style: none;
  padding: 0.55rem 0.65rem 1.5rem;
  margin: 0;
  flex-grow: 1;
}

.sidebar-category {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.36);
  padding: 0.85rem 0.65rem 0.25rem;
  font-weight: 800;
  user-select: none;
}

.sidebar-item {
  margin-bottom: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.46rem 0.65rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.79rem;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
  white-space: nowrap;
}

.sidebar-link-text {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Modern Notification Counter Badge (Sleek Red Dot / Pill with Number) */
.badge-red-counter {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  font-family: var(--font-main, 'Inter', -apple-system, sans-serif) !important;
  font-size: 0.67rem !important;
  font-weight: 800 !important;
  min-width: 19px !important;
  height: 19px !important;
  padding: 0 5px !important;
  border-radius: 999px !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
  margin-left: 0.35rem;
  flex-shrink: 0 !important;
  text-transform: none !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.45) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  animation: badgeGlowPulse 2.4s infinite ease-in-out !important;
  vertical-align: middle;
}

.sidebar-link .badge-red-counter {
  margin-left: auto !important;
}

@keyframes badgeGlowPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.65), 0 2px 5px rgba(220, 38, 38, 0.4);
  }
  60% {
    transform: scale(1.05);
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0), 0 2px 5px rgba(220, 38, 38, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), 0 2px 5px rgba(220, 38, 38, 0.4);
  }
}

.sidebar-link i {
  font-size: 0.86rem;
  width: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sidebar-link:hover i {
  color: #93c5fd;
}

.sidebar-link.active {
  background: rgba(37, 99, 235, 0.22);
  color: #ffffff;
  font-weight: 700;
}

.sidebar-link.active i {
  color: #60a5fa;
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3.5px;
  height: 18px;
  background: #3b82f6;
  border-radius: 0 3px 3px 0;
}

.sidebar-footer {
  padding: 0.75rem 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.2);
}

/* Sidebar Backdrop on Mobile */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 30, 36, 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  touch-action: manipulation;
  pointer-events: none;
}

.sidebar-backdrop.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.dashboard-sidebar.open,
.dashboard-sidebar.active {
  transform: translateX(0) !important;
  visibility: visible !important;
  z-index: 10001 !important;
  display: flex !important;
}

/* --------------------------------------------------------------------------
   Modern Main Content Area & Sticky Topbar
   -------------------------------------------------------------------------- */
.dashboard-main {
  flex-grow: 1;
  margin-left: var(--admin-sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  width: calc(100% - var(--admin-sidebar-w));
}

.dashboard-topbar {
  min-height: 64px;
  background: #ffffff;
  border-bottom: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.7rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 90;
  gap: 0.75rem 1.25rem;
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: min(100%, 220px);
  flex: 1 1 280px;
}

.topbar-title h2 {
  font-family: var(--admin-font-heading);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #090d16;
  margin: 0;
  line-height: 1.25;
}

/* Mobile Toggle Hamburger Button (Accessible 44x44 Touch Target) */
.admin-mobile-toggle {
  display: none;
  background: #f1f5f9;
  border: 1.5px solid var(--admin-border);
  color: var(--admin-primary-dark);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--admin-radius-md);
  font-size: 1.25rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--admin-transition);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  z-index: 95;
  pointer-events: auto !important;
}

.admin-mobile-toggle * {
  pointer-events: none !important;
}

.admin-mobile-toggle:hover {
  background: var(--admin-primary-soft);
  color: var(--admin-primary);
  border-color: var(--admin-primary);
}

.admin-mobile-toggle:active {
  transform: scale(0.94);
  background: #e2e8f0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  flex: 0 1 auto;
  max-width: 100%;
}

.user-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.user-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--admin-primary) 0%, #0f3842 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(22, 105, 122, 0.2);
  flex-shrink: 0;
}

.dashboard-content {
  padding: 1.25rem 1.5rem 2.5rem;
  flex-grow: 1;
  min-width: 0;
}

@media (max-width: 1400px) {
  .dashboard-content {
    padding: 1rem 1.15rem 2rem;
  }
}

/* --------------------------------------------------------------------------
   Modern Metric Cards (Overview Dashboard)
   Tetap simetris dan dinamis pada zoom 75%, 100%, maupun > 100%
   -------------------------------------------------------------------------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1279px) {
  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
  }
}

@media (max-width: 900px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

.metric-card {
  background: var(--admin-bg-card);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.metric-card:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  border-color: #94a3b8;
}

.metric-info {
  min-width: 0;
  flex: 1 1 auto;
}

.metric-info h4 {
  font-size: clamp(0.70rem, 0.85vw, 0.76rem);
  color: var(--admin-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.3em;
}

.metric-info .metric-num {
  font-family: var(--admin-font-heading);
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--admin-primary-dark);
  line-height: 1.1;
  margin: 0;
}

.metric-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--admin-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.metric-icon-teal {
  background: rgba(22, 105, 122, 0.12);
  color: var(--admin-primary);
}

.metric-icon-orange {
  background: rgba(255, 166, 43, 0.18);
  color: #d97706;
}

.metric-icon-green {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
}

.metric-icon-red {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
}

/* --------------------------------------------------------------------------
   Modern Table Cards & Touch-friendly Tables
   -------------------------------------------------------------------------- */
.table-card {
  background: var(--admin-bg-card);
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.table-card-header {
  padding: 1rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid #cbd5e1;
  flex-wrap: wrap;
  gap: 0.85rem;
  background: #ffffff;
}

.table-card-title {
  font-family: var(--admin-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--admin-primary-dark);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.custom-table,
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th,
.admin-table th {
  background: #f1f5f9;
  padding: 0.72rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1.5px solid #94a3b8;
  white-space: nowrap;
}

.custom-table td,
.admin-table td {
  padding: 0.72rem 0.85rem;
  font-size: 0.82rem;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
  word-break: normal;
  overflow-wrap: normal;
}

.custom-table tr:last-child td,
.admin-table tr:last-child td {
  border-bottom: none;
}

.custom-table tr:hover td,
.admin-table tr:hover td {
  background: #f8fafc;
}

.custom-table .badge,
.admin-table .badge {
  padding: 0.18rem 0.45rem !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.02em !important;
}

/* --------------------------------------------------------------------------
   Table Pagination Bar (Active & Dynamic)
   -------------------------------------------------------------------------- */
.table-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: #ffffff;
  border-top: 1px solid var(--admin-border);
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--admin-text-muted);
}

.table-pagination-bar .pagination-info {
  font-weight: 600;
  color: #475569;
}

.table-pagination-bar .pagination-info strong {
  color: var(--admin-primary-dark);
}

.pagination-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.page-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 0.4rem;
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-border);
  background: #ffffff;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--admin-transition);
}

.page-link-btn:hover:not(.disabled):not(.active) {
  background: var(--admin-primary-soft);
  border-color: var(--admin-primary);
  color: var(--admin-primary);
}

.page-link-btn.active {
  background: var(--admin-primary);
  border-color: var(--admin-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(22, 105, 122, 0.25);
}

.page-link-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  background: #f8fafc;
}

.page-link-dots {
  padding: 0 0.25rem;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.75rem;
}

/* Badge styling: Proteksi mutlak agar tidak pernah melipat karakter secara vertikal */
.badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  padding: 0.32rem 0.75rem !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  flex-shrink: 0 !important;
  line-height: 1.2 !important;
}

.badge i {
  font-size: 0.85em;
  flex-shrink: 0;
}

.reg-number-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.15rem 0.45rem;
  background: rgba(22, 105, 122, 0.08);
  color: var(--admin-primary);
  border-radius: var(--admin-radius-sm);
  border: 1px dashed rgba(22, 105, 122, 0.4);
  white-space: nowrap;
}

.custom-table .reg-number-tag,
.custom-table .badge,
.custom-table .btn,
.custom-table .text-nowrap {
  white-space: nowrap !important;
  word-break: keep-all !important;
}

/* --------------------------------------------------------------------------
   Quick Status Filter Navigation Pills (Filter Badges)
   -------------------------------------------------------------------------- */
.filter-pills-wrap {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
  align-items: center;
  max-width: 100%;
}

@media (max-width: 640px) {
  .filter-pills-wrap {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .filter-pills-wrap::-webkit-scrollbar {
    display: none;
  }
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.05rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  line-height: 1.25;
}

.filter-pill i {
  font-size: 0.9em;
}

/* Inactive states - Light, soft backgrounds with clear contrasting text */
.filter-pill-all {
  background: #ffffff;
  color: #475569;
  border-color: #cbd5e1;
}
.filter-pill-all:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

.filter-pill-pending {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}
.filter-pill-pending:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
  transform: translateY(-1px);
}

.filter-pill-verified {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.filter-pill-verified:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #065f46;
  transform: translateY(-1px);
}

.filter-pill-rejected {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.filter-pill-rejected:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
  transform: translateY(-1px);
}

/* ACTIVE states - SOLID VIBRANT THEMES WITH CRISP PURE WHITE TEXT */
.filter-pill-all.active {
  background: linear-gradient(135deg, #0091B9 0%, #004E98 100%) !important;
  color: #ffffff !important;
  border-color: #0091B9 !important;
  box-shadow: 0 4px 12px rgba(0, 145, 185, 0.35) !important;
}
.filter-pill-all.active i {
  color: #ffffff !important;
}

.filter-pill-pending.active {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
  color: #ffffff !important;
  border-color: #d97706 !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35) !important;
}
.filter-pill-pending.active i {
  color: #ffffff !important;
}

.filter-pill-verified.active {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35) !important;
}
.filter-pill-verified.active i {
  color: #ffffff !important;
}

.filter-pill-rejected.active {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35) !important;
}
.filter-pill-rejected.active i {
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Settings Section Cards & Responsive Form Layouts
   -------------------------------------------------------------------------- */
.settings-section-card {
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--admin-shadow-sm);
  margin-bottom: 1.75rem;
  transition: var(--admin-transition);
}

.settings-section-card:hover {
  box-shadow: var(--admin-shadow-md);
  border-color: #cbd5e1;
}

.settings-section-title {
  font-family: var(--admin-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--admin-primary-dark);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.settings-section-desc {
  font-size: 0.82rem;
  color: var(--admin-text-muted);
  line-height: 1.5;
  margin-bottom: 1.35rem;
}

/* Responsive Grid Utility Classes */
.admin-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.admin-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.admin-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.admin-grid-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.admin-grid-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 1.15rem;
}

.admin-span-all {
  grid-column: 1 / -1;
}

.logo-upload-card {
  border: 1.5px dashed var(--admin-border);
  border-radius: var(--admin-radius-md);
  padding: 1.1rem 0.95rem;
  text-align: center;
  background: #fbfdfe;
  transition: var(--admin-transition);
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.logo-upload-card:hover {
  border-color: var(--admin-primary);
  background: #ffffff;
}

.logo-preview-img {
  height: 60px;
  max-width: 100%;
  object-fit: contain;
  margin: 0.5rem auto 0.75rem;
  display: block;
}

/* Modern Form Elements */
.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--admin-text-main);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.95rem;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--admin-text-main);
  background-color: #ffffff;
  border: 1.5px solid var(--admin-border);
  border-radius: var(--admin-radius-md);
  transition: var(--admin-transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(22, 105, 122, 0.15);
}

.form-helper {
  font-size: 0.72rem;
  color: var(--admin-text-muted);
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* Password Visibility Toggle Component */
.password-toggle-group {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.password-toggle-group .form-control {
  padding-right: 2.85rem !important;
}

.password-toggle-btn {
  position: absolute !important;
  right: 0.65rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  padding: 0.35rem 0.5rem !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.95rem !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  z-index: 5 !important;
  line-height: 1 !important;
  user-select: none !important;
}

.password-toggle-btn:hover {
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.08) !important;
}

.password-toggle-btn:focus-visible {
  outline: 2px solid #0284c7 !important;
  outline-offset: 1px !important;
}

/* Modern Sticky Action Bar */
.admin-sticky-bar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-radius: var(--admin-radius-lg);
  border: 1.5px solid var(--admin-border);
  padding: 1.15rem 1.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: sticky;
  bottom: 20px;
  z-index: 85;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DEVICE BREAKPOINTS (Laptop, iPad, iPhone, Oppo, Android)
   -------------------------------------------------------------------------- */

/* Tablets, Small Laptops & Mobile "Desktop Site" Mode (<= 1024px) */
@media (max-width: 1024px) {
  .dashboard-sidebar {
    transform: translateX(-100%) !important;
    width: min(300px, 85vw) !important;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.4) !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 10001 !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .dashboard-sidebar.open,
  .dashboard-sidebar.active {
    transform: translateX(0) !important;
    visibility: visible !important;
    display: flex !important;
  }

  .dashboard-main {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .admin-mobile-toggle {
    display: inline-flex !important;
  }

  .sidebar-close-btn {
    display: inline-flex !important;
  }

  .admin-grid-preview {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .admin-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* Standard Mobile Screens: iPhone 11-16, Oppo, Samsung, Xiaomi (<= 768px) */
@media (max-width: 768px) {
  .dashboard-topbar {
    padding: 0.65rem 1rem;
    min-height: auto;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
  }

  .topbar-title {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.65rem;
  }

  .topbar-title h2 {
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
  }

  .admin-mobile-toggle {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .topbar-actions {
    gap: 0.45rem;
    flex-wrap: wrap;
    align-items: center;
  }

  .topbar-actions .btn {
    padding: 0.42rem 0.75rem;
    font-size: 0.78rem;
    white-space: nowrap;
    border-radius: 8px;
  }

  .topbar-actions .user-badge-wrap div:last-child {
    display: none; /* Hide admin name text on mobile to avoid overcrowding */
  }

  /* Compact segmented tabs on mobile */
  .reg-sys-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  .reg-sys-tabs .btn {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 1rem !important;
    font-size: 0.84rem !important;
  }

  .dashboard-content {
    padding: 1.15rem 0.85rem 2.5rem;
  }

  .settings-section-card {
    padding: 1.35rem 1.1rem !important;
    border-radius: var(--admin-radius-md);
    margin-bottom: 1.25rem;
  }

  /* Prevent Unwanted Auto-Zoom on Mobile Browsers */
  .form-control,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px !important;
  }

  .admin-grid-2,
  .admin-grid-3,
  .admin-grid-4 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .admin-grid-logos {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .metric-card {
    padding: 1.15rem 1.25rem;
  }

  .table-card-header {
    padding: 1rem !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .table-card-header > * {
    width: 100%;
  }

  .table-card-header .btn {
    width: 100%;
    justify-content: center;
  }

  .admin-sticky-bar {
    bottom: 10px;
    padding: 0.95rem 1.1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .admin-sticky-bar > div,
  .admin-sticky-bar .btn {
    width: 100%;
  }

  .admin-sticky-bar .btn {
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* Compact Mobile Screens: iPhone SE, Oppo A-Series, Small Androids (<= 540px) */
@media (max-width: 540px) {
  .dashboard-topbar {
    padding: 0.55rem 0.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  .topbar-title {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
    border-top: 1px dashed rgba(226, 232, 240, 0.85);
    padding-top: 0.45rem;
    gap: 0.4rem;
  }

  .topbar-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
    font-size: 0.76rem;
    padding: 0.4rem 0.55rem;
  }

  .dashboard-content {
    padding: 0.85rem 0.5rem 2rem;
  }

  .settings-section-card {
    padding: 1rem 0.75rem !important;
    border-radius: 10px;
  }

  .settings-section-title {
    font-size: 1rem;
  }

  .metric-card {
    padding: 1rem;
  }

  .metric-info .metric-num {
    font-size: 1.55rem;
  }

  .metric-icon-box {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }

  .custom-table th,
  .custom-table td {
    padding: 0.75rem 0.85rem;
    font-size: 0.82rem;
  }

  .btn {
    padding: 0.6rem 0.85rem;
    font-size: 0.82rem;
  }

  .topbar-actions .btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .topbar-title h2 {
    font-size: 0.95rem;
  }
}

/* Tablet & Mobile Precision Ergonomics (iPad, iPhone, Vivo, Oppo, Galaxy) */
@media (max-width: 768px) {
  /* Prevent iOS Safari auto-zoom on input focus */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="date"],
  input[type="time"],
  select,
  textarea {
    font-size: 16px !important;
  }

  .modal-overlay {
    padding: 0.5rem !important;
  }
  .modal-window {
    max-width: min(96vw, 620px) !important;
    padding: 1.25rem 1rem !important;
    border-radius: 14px !important;
    max-height: 94vh !important;
  }
  .admin-grid-2 {
    grid-template-columns: 1fr !important;
  }
}

/* Universal Clean Print Optimization */
@page {
  size: auto;
  margin: 0mm;
}
@page :first {
  margin: 0mm;
}
@media print {
  @page {
    size: auto;
    margin: 0mm;
  }
  @page :first {
    margin: 0mm;
  }
}

/* --------------------------------------------------------------------------
   Generic Modal Overlay & Dialog Window (Admin Panel)
   -------------------------------------------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
}

.modal-window {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  padding: 1.75rem;
  color: #0f172a;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
  max-height: 90vh;
  overflow-y: auto;
  animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive Grid for User Dashboard */
.user-dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 992px) {
  .user-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 576px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
  }
  .metric-card {
    padding: 0.75rem 0.85rem !important;
    border-radius: 10px !important;
    gap: 0.4rem !important;
  }
  .metric-icon-box {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.95rem !important;
    border-radius: 7px !important;
  }
  .metric-info h4 {
    font-size: 0.67rem !important;
    margin-bottom: 0.2rem !important;
  }
  .metric-info .metric-num {
    font-size: 1.35rem !important;
  }
}

/* ==========================================================================
   Executive Collapsible Sidebar & Pop-up Menu System
   ========================================================================== */

/* Quick Launcher Button */
.sidebar-quick-action {
  padding: 0.5rem 0.65rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 0.5rem;
}
.btn-quick-popup {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(135deg, rgba(255, 166, 43, 0.14) 0%, rgba(22, 105, 122, 0.22) 100%);
  border: 1px solid rgba(255, 166, 43, 0.35);
  border-radius: 9px;
  color: #ffffff;
  font-family: var(--font-main, 'Inter', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.btn-quick-popup:hover {
  background: linear-gradient(135deg, rgba(255, 101, 0, 0.25) 0%, rgba(0, 145, 185, 0.35) 100%);
  border-color: #FF6500;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 101, 0, 0.25);
}
.kbd-shortcut {
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.35);
  color: #FFD500;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 213, 0, 0.3);
  letter-spacing: 0.05em;
}

/* Accordion Group Buttons */
.sidebar-group-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.52rem 0.65rem;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-main, 'Inter', sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  position: relative;
  user-select: none;
}
.sidebar-group-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}
.sidebar-group-btn.is-active-parent {
  color: #60a5fa;
  font-weight: 700;
}
.sidebar-group-btn.is-open {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}
.sidebar-group-btn .group-icon {
  width: 18px;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  transition: color 0.15s ease;
}
.sidebar-group-btn:hover .group-icon,
.sidebar-group-btn.is-active-parent .group-icon {
  color: #93c5fd;
}
.sidebar-group-btn .group-title {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-group-btn .group-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  flex-shrink: 0;
}
.sidebar-group-btn .group-chevron {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-group-btn.is-open .group-chevron {
  transform: rotate(90deg);
  color: #60a5fa;
}

/* Submenu Dropdown Containers */
.sidebar-sub-menu {
  list-style: none;
  padding: 0.2rem 0 0.35rem 1.65rem;
  margin: 0;
  position: relative;
  display: none;
}
.sidebar-sub-menu::before {
  content: '';
  position: absolute;
  left: 1.15rem;
  top: 0.25rem;
  bottom: 0.45rem;
  width: 1.5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
.sidebar-sub-menu.is-open {
  display: block;
  animation: subMenuSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes subMenuSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.sidebar-sub-item {
  margin-bottom: 2px;
}
.sidebar-sub-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.38rem 0.6rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.77rem;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
  white-space: nowrap;
}
.sidebar-sub-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  padding-left: 0.75rem;
}
.sidebar-sub-link.active {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.28);
  font-weight: 700;
}
.sidebar-sub-link.active::before {
  content: '';
  position: absolute;
  left: -0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 6px #60a5fa;
}

/* ==========================================================================
   Full Pop-up Modal (Command Palette / Quick Menu Popup)
   ========================================================================== */
.admin-popup-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 24, 30, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.admin-popup-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}
.admin-popup-modal {
  width: 100%;
  max-width: 860px;
  max-height: 85vh;
  background: #0d2229;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.admin-popup-modal-overlay.is-active .admin-popup-modal {
  transform: scale(1) translateY(0);
}

.popup-modal-header {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.2);
}
.popup-search-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.popup-search-wrap i {
  position: absolute;
  left: 1rem;
  color: #64748b;
  font-size: 0.95rem;
}
.popup-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}
.popup-search-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FF6500;
  box-shadow: 0 0 0 3px rgba(255, 101, 0, 0.2);
}
.popup-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.popup-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.popup-modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.popup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.popup-col-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFD500;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.popup-item-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  transition: all 0.18s ease;
}
.popup-item-link:hover {
  background: rgba(22, 105, 122, 0.35);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
  transform: translateX(3px);
}
.popup-item-link i {
  font-size: 0.95rem;
  width: 20px;
  text-align: center;
  color: #38bdf8;
  flex-shrink: 0;
}
.popup-item-link .popup-badge {
  margin-left: auto;
  font-size: 0.68rem;
}

.popup-modal-footer {
  padding: 0.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #64748b;
}

/* ==========================================================================
   Executive Professional Form System (Standard Enterprise)
   ========================================================================== */
.form-section-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 2.25rem 0 1.25rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1.5px solid #e2e8f0;
}
.form-section-header:first-of-type {
  margin-top: 0.25rem;
}
.section-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--admin-primary, #16697A);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(22, 105, 122, 0.25);
}
.section-step-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--admin-text-main, #0f172a);
  margin: 0;
  line-height: 1.25;
}
.section-step-desc {
  font-size: 0.78rem;
  color: var(--admin-text-muted, #64748b);
  margin: 0.15rem 0 0 0;
}

/* Radio Card Segmented Selection */
.radio-card-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.radio-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}
.radio-card.active,
.radio-card:has(input:checked) {
  background: #f0fdfa;
  border-color: var(--admin-primary, #16697A);
  box-shadow: 0 0 0 1px var(--admin-primary, #16697A), 0 4px 12px rgba(22, 105, 122, 0.08);
}
.radio-card input[type="radio"] {
  margin-top: 0.18rem;
  accent-color: var(--admin-primary, #16697A);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.radio-card-content {
  display: flex;
  flex-direction: column;
}
.radio-card-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--admin-text-main, #0f172a);
  line-height: 1.3;
}
.radio-card-desc {
  font-size: 0.73rem;
  color: var(--admin-text-muted, #64748b);
  margin-top: 0.15rem;
  line-height: 1.35;
}

/* Date & Time Input Row Alignment */
.datetime-split-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}
.datetime-split-row input[type="date"] {
  flex: 1 1 auto;
  min-width: 0;
}
.datetime-split-row input[type="time"] {
  flex: 0 0 102px;
  width: 102px;
  padding: 0.65rem 0.45rem;
  text-align: center;
}

/* Executive Format Selector Cards */
.format-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
  width: 100%;
}
.format-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  position: relative;
}
.format-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.format-card.active {
  background: #f0fdfa;
  border-color: var(--admin-primary, #16697A);
  box-shadow: 0 0 0 1px var(--admin-primary, #16697A), 0 4px 14px rgba(22, 105, 122, 0.1);
}
.format-card-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  margin-top: 0.15rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.format-card.active .format-card-radio {
  border-color: var(--admin-primary, #16697A);
  background: var(--admin-primary, #16697A);
}
.format-card.active .format-card-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}
.format-card-body {
  display: flex;
  flex-direction: column;
}
.format-card-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--admin-text-main, #0f172a);
  line-height: 1.25;
}
.format-card.active .format-card-title {
  color: var(--admin-primary, #16697A);
}
.format-card-desc {
  font-size: 0.74rem;
  color: var(--admin-text-muted, #64748b);
  margin-top: 0.25rem;
  line-height: 1.35;
}

/* ==========================================================================
   User Onboarding & First-Time Guide Stylesheet
   DIGITARA Portal Peserta
   ========================================================================== */
.user-onboarding-card {
  background: #ffffff;
  border: 1px solid var(--c-border, #dcecf5);
  border-top: 4px solid var(--c-accent, #FF6500);
  border-radius: var(--radius-lg, 16px);
  padding: 2.25rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px -5px rgba(0, 78, 152, 0.08), 0 8px 10px -6px rgba(0, 78, 152, 0.04);
  position: relative;
  overflow: hidden;
}

.user-onboarding-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 166, 43, 0.1) 0%, rgba(22, 105, 122, 0.03) 70%, transparent 100%);
  pointer-events: none;
  border-radius: 50%;
}

.onboarding-header {
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
}

.onboarding-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--c-primary, #16697A);
  background: rgba(22, 105, 122, 0.08);
  border: 1px solid rgba(22, 105, 122, 0.18);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.65rem;
}

.onboarding-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--c-dark, #0f2b33);
  margin: 0.25rem 0 0.5rem;
  line-height: 1.3;
}

.onboarding-desc {
  font-size: 0.95rem;
  color: var(--c-text-muted, #5e7a85);
  line-height: 1.6;
  margin: 0;
  max-width: 820px;
}

.onboarding-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .onboarding-steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.onboarding-step-item {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md, 12px);
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

.onboarding-step-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 105, 122, 0.08);
  border-color: #cbd5e1;
}

.onboarding-step-item.is-active {
  background: #ffffff;
  border-color: var(--c-primary, #16697A);
  box-shadow: 0 4px 14px rgba(22, 105, 122, 0.12);
}

.step-num-pill {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #fef3c7;
  color: #92400e;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  letter-spacing: 0.3px;
}

.step-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-dark, #0f2b33);
  margin: 0 0 0.45rem;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--c-text-muted, #5e7a85);
  line-height: 1.5;
  margin: 0 0 1rem;
  flex-grow: 1;
}

.step-status {
  padding-top: 0.65rem;
  border-top: 1px dashed #e2e8f0;
}

/* Onboarding Event Quick-Pick Grid */
.onboarding-events-section {
  background: linear-gradient(180deg, #f0f7f9 0%, #f8fafc 100%);
  border: 1.5px solid #d4e8ed;
  border-radius: var(--radius-md, 12px);
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.onboarding-events-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.onboarding-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.15rem;
}

.onboarding-event-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.onboarding-event-card:hover {
  border-color: var(--c-primary-light, #489FB5);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(22, 105, 122, 0.1);
}

.ev-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.ev-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--c-dark, #0f2b33);
  margin: 0 0 0.65rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ev-card-meta {
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.ev-card-meta i {
  width: 16px;
  text-align: center;
  margin-right: 4px;
}

/* ==========================================================================
   FULL HD (1920x1080) & ULTRA-CRISP RETINA / HIGH-DPI OPTIMIZATIONS
   ========================================================================== */
@media (min-width: 1440px) {
  .dashboard-content {
    padding: 1.35rem 1.85rem 3rem;
    max-width: 1680px;
    margin: 0 auto;
    width: 100%;
  }

  /* Metric cards grid scaling on Full HD */
  .metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
  }

  /* Tables: Crisp border rendering & comfortable padding */
  .table-card {
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  }

  .table-responsive table th {
    padding: 0.85rem 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
  }

  .table-responsive table td {
    padding: 0.85rem 1rem;
    font-size: 0.84rem;
  }

  /* Modals on Full HD: Sharp, centered, no awkward stretching */
  .modal-window, .modal-dialog {
    border-radius: 14px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  }
}

@media (min-width: 1920px) {
  .dashboard-content {
    padding: 1.75rem 2.75rem 4rem;
    max-width: 1820px;
  }

  /* Ultra-sharp contrast on Full HD monitors */
  .table-card, .settings-section-card, .metric-card {
    border: 1px solid rgba(226, 232, 240, 0.95);
  }

  .dashboard-topbar {
    padding: 0.85rem 2.75rem;
  }
}

/* Smooth crisp media scaling without pixelated nearest-neighbor artifacts */
img, svg, canvas {
  image-rendering: auto;
}

/* Sharp Badges & Tags */
.badge {
  font-feature-settings: 'tnum' 1, 'zero' 1;
  letter-spacing: 0.02em;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
}

/* Sharp Monospace Numbers */
.font-mono, td[data-col="nim"], .badge-number, .score-display {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-feature-settings: 'tnum' 1, 'zero' 1;
}



