/* ==========================================================================
   TEMA RESMI PEMERINTAHAN: BIRU MUDA ARGENTINA (ALBICELESTE GOV THEME)
   Aplikasi B'Delau - DPMPTSP Provinsi Riau
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  /* Argentina Light Blue Palette */
  --arg-sky-50: #f0f7fe;
  --arg-sky-100: #e0effc;
  --arg-sky-200: #b9defa;
  --arg-sky-300: #7dc2f6;
  --arg-sky-400: #5ca9ea;  /* Albiceleste Sky Blue */
  --arg-sky-500: #2b8bd6;
  --arg-sky-600: #1a6cb3;
  --arg-sky-gradient: linear-gradient(135deg, #6cb2ee 0%, #2b84cb 100%);
  --arg-sky-gradient-subtle: linear-gradient(135deg, #eaf4fd 0%, #d8ecfb 100%);
  
  /* Government Deep Navy Authority Palette */
  --gov-navy-900: #0a1b2d;
  --gov-navy-850: #0d233a;
  --gov-navy-800: #122d48;
  --gov-navy-700: #1a3c61;
  --gov-navy-gradient: linear-gradient(145deg, #091a2c 0%, #102943 50%, #183e65 100%);
  
  /* Accent Sun of May (Sol de Mayo) Golden / Official Badges */
  --gov-gold-400: #fbbf24;
  --gov-gold-500: #f59e0b;
  --gov-gold-600: #d97706;
  --gov-gold-soft: rgba(245, 158, 11, 0.12);
  
  /* Neutrals & Surfaces */
  --gov-white: #ffffff;
  --gov-surface: #ffffff;
  --gov-bg-page: #f2f7fc;
  --gov-border: #d4e5f5;
  --gov-border-light: #e5f0fa;
  --gov-text-dark: #132435;
  --gov-text-muted: #5c6f84;
  --gov-text-light: #8fa2b6;
  
  /* Elevation Shadows */
  --gov-shadow-sm: 0 2px 6px rgba(10, 27, 45, 0.04);
  --gov-shadow-md: 0 8px 24px rgba(10, 27, 45, 0.08);
  --gov-shadow-lg: 0 16px 40px -8px rgba(10, 27, 45, 0.12);
  --gov-shadow-card: 0 20px 48px -12px rgba(16, 52, 88, 0.14), 0 0 1px 1px rgba(92, 169, 234, 0.2);
}

/* Base Font Override */
body, html {
  font-family: 'Plus Jakarta Sans', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  color: var(--gov-text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   AUTH PORTAL STYLING (LOGIN & REGISTER)
   ========================================================================== */

.gov-auth-body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: var(--gov-bg-page);
  background-image: 
    radial-gradient(at 0% 0%, rgba(92, 169, 234, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(26, 108, 179, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(240, 247, 254, 0.8) 0px, transparent 100%);
  display: flex;
  flex-direction: column;
}

.gov-auth-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Left Hero Brand Panel */
.gov-auth-hero {
  flex: 1.15;
  background: var(--gov-navy-gradient);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  color: var(--gov-white);
  box-shadow: 10px 0 35px rgba(10, 27, 45, 0.25);
  z-index: 2;
}

/* Decorative Geometric Sky Blue Patterns */
.gov-auth-hero::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -150px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 169, 234, 0.35) 0%, rgba(43, 132, 203, 0.05) 70%, transparent 100%);
  pointer-events: none;
}

.gov-auth-hero::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 194, 246, 0.22) 0%, rgba(10, 27, 45, 0) 70%);
  pointer-events: none;
}

.gov-hero-patterns {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.7;
  pointer-events: none;
}

/* Hero Top Branding */
.gov-hero-header {
  position: relative;
  z-index: 3;
}

.gov-brand-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.gov-logo-badge {
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.gov-logo-badge img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.gov-logo-divider {
  width: 1.5px;
  height: 38px;
  background: rgba(255, 255, 255, 0.25);
}

.gov-hero-govtitle {
  display: flex;
  flex-direction: column;
}

.gov-hero-govtitle .gov-instansi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--arg-sky-300);
  background: rgba(92, 169, 234, 0.12);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(125, 194, 246, 0.25);
  width: fit-content;
  margin-bottom: 8px;
}

.gov-hero-govtitle h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gov-white);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.gov-hero-govtitle p {
  font-size: 13px;
  color: var(--arg-sky-200);
  margin: 4px 0 0 0;
  font-weight: 500;
}

/* Hero Content Area */
.gov-hero-body {
  position: relative;
  z-index: 3;
  margin: 40px 0;
}

.gov-hero-tagline {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--gov-white);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.gov-hero-tagline span.highlight {
  background: linear-gradient(135deg, #a5d5f8 0%, #5ca9ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.gov-hero-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: #c4daf0;
  margin-bottom: 32px;
  max-width: 500px;
}

/* Feature Badges Grid */
.gov-hero-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
}

.gov-feature-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.gov-feature-card:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(92, 169, 234, 0.35);
}

.gov-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(92, 169, 234, 0.25) 0%, rgba(43, 132, 203, 0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--arg-sky-300);
}

.gov-feature-text h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gov-white);
  margin: 0 0 2px 0;
}

.gov-feature-text p {
  font-size: 12px;
  color: #a8c8e8;
  margin: 0;
  line-height: 1.4;
}

/* Hero Footer */
.gov-hero-footer {
  position: relative;
  z-index: 3;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #92b8dc;
}

.gov-hero-footer .security-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Right Auth Form Section */
.gov-auth-form-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 32px;
  position: relative;
  overflow-y: auto;
}

.gov-card-wrapper {
  width: 100%;
  max-width: 460px;
  margin: auto;
}

/* Modern Auth Card */
.gov-auth-card {
  background: var(--gov-surface);
  border-radius: 20px;
  padding: 38px 36px;
  box-shadow: var(--gov-shadow-card);
  border: 1px solid var(--gov-border);
  position: relative;
}

.gov-auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 36px;
  right: 36px;
  height: 4px;
  background: var(--arg-sky-gradient);
  border-radius: 4px 4px 0 0;
}

/* Card Header */
.gov-card-head {
  text-align: left;
  margin-bottom: 26px;
}

.gov-portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--arg-sky-100);
  color: var(--arg-sky-600);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.gov-card-head h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--gov-navy-900);
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.gov-card-head p {
  font-size: 13.5px;
  color: var(--gov-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Modern Input Groups */
.gov-field-group {
  margin-bottom: 20px;
  text-align: left;
}

.gov-field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gov-navy-800);
  margin-bottom: 7px;
}

.gov-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.gov-input-icon {
  position: absolute;
  left: 14px;
  color: var(--arg-sky-400);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: color 0.2s ease;
}

.gov-form-control {
  width: 100%;
  height: 48px;
  background-color: #fafcfe;
  border: 1.5px solid var(--gov-border);
  border-radius: 10px;
  padding: 10px 14px 10px 44px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  color: var(--gov-text-dark);
  transition: all 0.25s ease;
  outline: none;
  box-shadow: none;
}

.gov-form-control::placeholder {
  color: #9ab0c4;
  font-size: 13.5px;
}

.gov-form-control:focus {
  background-color: var(--gov-white);
  border-color: var(--arg-sky-400);
  box-shadow: 0 0 0 4px rgba(92, 169, 234, 0.18);
}

.gov-input-wrapper:focus-within .gov-input-icon {
  color: var(--arg-sky-600);
}

/* Password Toggle Icon */
.gov-pass-toggle {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  padding: 6px;
  color: #7b94aa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.gov-pass-toggle:hover {
  color: var(--arg-sky-600);
  background: var(--arg-sky-100);
}

/* Primary Submit Button */
.gov-btn-submit {
  width: 100%;
  height: 48px;
  background: var(--arg-sky-gradient);
  border: none;
  border-radius: 10px;
  color: var(--gov-white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px -4px rgba(43, 132, 203, 0.45);
  margin-top: 10px;
}

.gov-btn-submit:hover {
  background: linear-gradient(135deg, #57a4e6 0%, #2072b2 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(43, 132, 203, 0.55);
  color: var(--gov-white);
}

.gov-btn-submit:active {
  transform: translateY(0);
}

/* Divider & Alternatif */
.gov-auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0 18px 0;
  color: var(--gov-text-muted);
  font-size: 12px;
  font-weight: 600;
}

.gov-auth-divider::before,
.gov-auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--gov-border-light);
}

.gov-auth-divider span {
  padding: 0 12px;
  color: #8da4bc;
}

/* Callout Register Link */
.gov-register-box {
  background: var(--arg-sky-50);
  border: 1px dashed var(--arg-sky-300);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--gov-navy-800);
  margin-bottom: 18px;
}

.gov-register-box a {
  color: var(--arg-sky-600);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.gov-register-box a:hover {
  color: var(--arg-sky-500);
  text-decoration: underline;
}

/* Manual Book Buttons */
.gov-manuals-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gov-manual-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: #f7fafd;
  border: 1px solid var(--gov-border);
  border-radius: 8px;
  color: var(--gov-navy-700);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.gov-manual-btn:hover {
  background: var(--arg-sky-100);
  border-color: var(--arg-sky-300);
  color: var(--arg-sky-600);
  text-decoration: none;
  transform: translateY(-1px);
}

.gov-manual-btn .btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gov-manual-btn .btn-icon {
  color: var(--arg-sky-400);
}

.gov-manual-btn .btn-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(92, 169, 234, 0.15);
  color: var(--arg-sky-600);
  padding: 2px 7px;
  border-radius: 4px;
}

/* Card Footer info */
.gov-card-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 11.5px;
  color: #8da4bc;
  line-height: 1.5;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS
   ========================================================================== */

/* Tablet & Down (<= 991px) */
@media (max-width: 991px) {
  .gov-auth-container {
    flex-direction: column;
    min-height: 100vh;
  }
  
  .gov-auth-hero {
    flex: none;
    padding: 32px 24px 28px 24px;
    box-shadow: 0 4px 20px rgba(10, 27, 45, 0.15);
  }
  
  .gov-hero-body {
    margin: 16px 0;
  }
  
  .gov-hero-tagline {
    font-size: 22px;
    margin-bottom: 8px;
  }
  
  .gov-hero-desc {
    font-size: 13.5px;
    margin-bottom: 16px;
  }
  
  .gov-hero-features {
    display: none; /* Hide heavy features on tablet/mobile for sleekness */
  }
  
  .gov-hero-footer {
    display: none;
  }
  
  .gov-auth-form-side {
    padding: 24px 16px 40px 16px;
    background: transparent;
  }
  
  .gov-auth-card {
    padding: 28px 22px;
    box-shadow: 0 8px 30px rgba(10, 27, 45, 0.08);
  }
}

/* Smartphone (<= 575px) */
@media (max-width: 575px) {
  .gov-auth-hero {
    padding: 24px 18px;
  }
  
  .gov-brand-logos {
    gap: 12px;
    margin-bottom: 14px;
  }
  
  .gov-logo-badge {
    padding: 6px 10px;
  }
  
  .gov-logo-badge img {
    height: 38px;
  }
  
  .gov-hero-govtitle h2 {
    font-size: 16px;
  }
  
  .gov-hero-govtitle p {
    font-size: 12px;
  }
  
  .gov-hero-tagline {
    font-size: 19px;
  }
  
  .gov-auth-card {
    padding: 24px 18px;
    border-radius: 16px;
  }
  
  .gov-card-head h2 {
    font-size: 20px;
  }
  
  .gov-form-control {
    height: 44px;
    font-size: 13.5px;
  }
  
  .gov-btn-submit {
    height: 44px;
    font-size: 13px;
  }
  
  .gov-manual-btn {
    padding: 8px 10px;
    font-size: 11.5px;
  }
}

/* ==========================================================================
   GLOBAL DASHBOARD THEME OVERRIDES (ALBICELESTE GOV PALETTE)
   ========================================================================== */

/* Top Navbar Header (Fixed Height 64px) */
.header-container {
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  background: var(--gov-navy-gradient) !important;
  border-bottom: 2px solid var(--arg-sky-400) !important;
  box-shadow: 0 4px 20px rgba(10, 27, 45, 0.2) !important;
  z-index: 1030 !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
}

.header-container .header.navbar {
  height: 64px !important;
  min-height: 64px !important;
  padding: 0 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  background: transparent !important;
}

/* Brand Identity: Logos & Official Agency Titles */
.gov-brand-wrapper {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

.gov-brand-link {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
  height: 100% !important;
}

.gov-riau-badge {
  background: #ffffff !important;
  padding: 4px 7px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
  margin-right: 10px !important;
  flex-shrink: 0 !important;
}

.gov-riau-badge img {
  height: 30px !important;
  width: auto !important;
  display: block !important;
}

.gov-bdelau-logo {
  height: 30px !important;
  width: auto !important;
  margin-right: 14px !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.gov-brand-sep {
  width: 1.5px !important;
  height: 26px !important;
  background: rgba(255, 255, 255, 0.22) !important;
  margin-right: 14px !important;
  flex-shrink: 0 !important;
}

.gov-agency-titles {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  text-align: left !important;
}

.gov-title-main {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 13.5px !important;
  letter-spacing: 0.6px !important;
  line-height: 1.25 !important;
  margin-bottom: 2px !important;
}

.gov-title-sub {
  color: #7dc2f6 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  line-height: 1.2 !important;
}

/* Right Navbar Area */
.gov-nav-right {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

/* Date Badge */
.gov-date-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(125, 194, 246, 0.28) !important;
  padding: 7px 16px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #e0effc !important;
  letter-spacing: 0.3px !important;
  transition: all 0.2s ease !important;
}

.gov-date-badge svg {
  stroke: #7dc2f6 !important;
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0 !important;
}

/* User Profile Pill */
.gov-user-pill {
  display: flex !important;
  align-items: center !important;
  height: 44px !important;
  padding: 4px 14px 4px 6px !important;
  border-radius: 30px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
}

.gov-user-pill:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(92, 169, 234, 0.5) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  text-decoration: none !important;
}

.gov-user-pill img,
.gov-user-avatar {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  border-radius: 50% !important;
  border: 2px solid #5ca9ea !important;
  object-fit: cover !important;
  margin-right: 12px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

.gov-dropdown-user-header img,
.gov-dd-avatar {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

/* Responsive Hide Rules for Top Navbar on Mobile (<= 768px) */
@media (max-width: 768px) {
  .gov-brand-sep,
  .gov-agency-titles {
    display: none !important;
  }
  .gov-date-badge {
    display: none !important;
  }
  .gov-user-meta {
    display: none !important;
  }
  .gov-user-chevron {
    display: none !important;
  }
  .gov-user-pill {
    padding: 0 !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    justify-content: center !important;
    border-radius: 10px !important;
  }
  .gov-user-avatar {
    margin: 0 !important;
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    border-radius: 8px !important;
  }
}

.gov-user-meta {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  text-align: left !important;
  margin-right: 14px !important;
}

.gov-user-name {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}

.gov-user-role {
  color: #7dc2f6 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  margin-top: 2px !important;
  white-space: nowrap !important;
}

.gov-user-chevron {
  width: 14px !important;
  height: 14px !important;
  stroke: #7dc2f6 !important;
  transition: transform 0.2s ease !important;
  flex-shrink: 0 !important;
}

/* User Dropdown Menu */
.gov-user-dropdown {
  min-width: 250px !important;
  border-radius: 14px !important;
  border: 1px solid #d4e5f5 !important;
  box-shadow: 0 16px 36px rgba(10, 27, 45, 0.16) !important;
  padding: 10px !important;
  margin-top: 10px !important;
  background: #ffffff !important;
}

.gov-dropdown-user-header {
  background: linear-gradient(135deg, #f0f7fe 0%, #e0effc 100%) !important;
  padding: 12px !important;
  border-radius: 10px !important;
  margin-bottom: 8px !important;
}

.gov-dd-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: 2px solid #5ca9ea !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
}

.gov-dd-name {
  margin: 0 !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #0a1b2d !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
}

.gov-dd-email {
  margin: 0 !important;
  font-size: 11px !important;
  color: #5c6f84 !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
}

.gov-dd-badge {
  background: #2b8bd6 !important;
  color: #fff !important;
  font-size: 9.5px !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  margin-top: 3px !important;
  display: inline-block !important;
}

.gov-dd-link {
  padding: 9px 12px !important;
  border-radius: 8px !important;
  color: #1a3c61 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.gov-dd-link:hover {
  background: #f0f7fe !important;
  color: #1a6cb3 !important;
}

.gov-dd-icon {
  margin-right: 12px !important;
  width: 16px !important;
  height: 16px !important;
  stroke: #2b8bd6 !important;
  flex-shrink: 0 !important;
}

.gov-dd-logout {
  color: #ef4444 !important;
  font-weight: 700 !important;
}

.gov-dd-logout .gov-dd-icon {
  stroke: #ef4444 !important;
}

.gov-dd-logout:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

/* Sub-header Bar (Fixed Height 52px, Positioned at top: 64px) */
.sub-header-container {
  position: fixed !important;
  top: 64px !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  width: 100% !important;
  z-index: 1025 !important;
  background: #ffffff !important;
  border-bottom: 1px solid #dce8f5 !important;
  box-shadow: 0 2px 10px rgba(10, 27, 45, 0.05) !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
}

.sub-header-container .header.navbar {
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Sub-header Left: Hamburger & Breadcrumb with Generous Gap */
.gov-sub-left {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

/* Sidebar Toggle Hamburger */
.sub-header-container .sidebarCollapse {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px !important;
  background: #f0f7fe !important;
  color: #1a6cb3 !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  border: 1.5px solid #d4e5f5 !important;
  box-shadow: 0 1px 3px rgba(10, 27, 45, 0.05) !important;
}

.sub-header-container .sidebarCollapse:hover {
  background: #e0effc !important;
  color: #0d4b82 !important;
  border-color: #b9defa !important;
  transform: scale(1.05) !important;
}

.sub-header-container .sidebarCollapse svg {
  width: 20px !important;
  height: 20px !important;
  stroke: #1a6cb3 !important;
  vertical-align: middle !important;
}

/* Breadcrumb Styling (Vertically Centered & Generously Spaced) */
.sub-header-container .page-header {
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sub-header-container .breadcrumb-one {
  display: flex !important;
  align-items: center !important;
}

.sub-header-container .breadcrumb-one .breadcrumb {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.sub-header-container .breadcrumb-one .breadcrumb-item {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

.sub-header-container .breadcrumb-one .breadcrumb-item a {
  color: #5c6f84 !important;
  text-decoration: none !important;
  vertical-align: middle !important;
  transition: color 0.2s ease !important;
}

.sub-header-container .breadcrumb-one .breadcrumb-item a:hover {
  color: #2b8bd6 !important;
}

.sub-header-container .breadcrumb-one .breadcrumb-item.active,
.sub-header-container .breadcrumb-one .breadcrumb-item.active span {
  color: #1a6cb3 !important;
  font-weight: 800 !important;
  vertical-align: middle !important;
}

.sub-header-container .breadcrumb-one .breadcrumb-item + .breadcrumb-item::before {
  content: "/" !important;
  color: #9ab0c4 !important;
  vertical-align: middle !important;
  padding: 0 12px !important;
  font-weight: 600 !important;
}

/* Live Server Status Badge (Gov Grade) */
.gov-sub-status {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  padding: 6px 16px !important;
  border-radius: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  margin-left: auto !important;
  box-shadow: 0 1px 3px rgba(21, 128, 61, 0.08) !important;
}

.gov-pulse-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background-color: #10b981 !important;
  display: inline-block !important;
  margin-right: 10px !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25) !important;
  animation: govPulse 2s infinite !important;
  flex-shrink: 0 !important;
}

@keyframes govPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.gov-status-text {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #15803d !important;
  margin-right: 12px !important;
  white-space: nowrap !important;
}

.gov-status-tag {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  background: rgba(16, 185, 129, 0.15) !important;
  color: #047857 !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
}

/* Main Content & Sidebar Precise Offsets (64px + 52px = 116px) */
#content {
  margin-top: 116px !important;
  min-height: calc(100vh - 116px) !important;
  transition: all 0.3s ease !important;
}

.sidebar-wrapper {
  top: 116px !important;
  height: calc(100vh - 116px) !important;
  background: #ffffff !important;
  border-right: 1px solid var(--gov-border-light) !important;
  box-shadow: 2px 0 16px rgba(10, 27, 45, 0.04) !important;
  transition: all 0.3s ease !important;
}

/* ==========================================================================
   SUB-HEADER & CONTENT MOBILE RESPONSIVE RULES (<= 768px & <= 576px)
   ========================================================================== */
@media (max-width: 768px) {
  .sub-header-container {
    top: 60px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    overflow: hidden !important;
  }

  .sub-header-container .header.navbar {
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 14px !important;
    flex-wrap: nowrap !important;
  }

  .gov-sub-left {
    gap: 10px !important;
    width: 100% !important;
  }

  /* CRITICAL: Hide server status badge on mobile so it NEVER wraps onto hero card */
  .gov-sub-status {
    display: none !important;
  }

  .sub-header-container .sidebarCollapse {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 8px !important;
  }

  /* Show only active page in breadcrumb on mobile */
  .sub-header-container .breadcrumb-one .breadcrumb-item:not(.active),
  .sub-header-container .breadcrumb-one .breadcrumb-item + .breadcrumb-item::before {
    display: none !important;
  }

  .sub-header-container .breadcrumb-one .breadcrumb-item.active span,
  .sub-header-container .breadcrumb-one .breadcrumb-item.active {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0a1b2d !important;
    line-height: normal !important;
    vertical-align: middle !important;
  }

  #content {
    margin-top: 108px !important;
  }
}

@media (max-width: 576px) {
  .header-container {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
  }

  .header-container .header.navbar {
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 12px !important;
  }

  .sub-header-container {
    top: 56px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
  }

  .sub-header-container .header.navbar {
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 12px !important;
  }

  #content {
    margin-top: 102px !important;
  }

  .layout-px-spacing {
    padding: 0 12px !important;
  }

  .gov-antrian-hero {
    padding: 20px 18px !important;
    border-radius: 16px !important;
    margin-bottom: 20px !important;
  }

  .gov-antrian-hero-title {
    font-size: 20px !important;
  }

  .gov-antrian-hero-desc {
    font-size: 13px !important;
  }

  .gov-antrian-hero-meta {
    align-items: flex-start !important;
    width: 100% !important;
    margin-top: 12px !important;
  }

  .gov-hero-pill-info {
    text-align: left !important;
    width: 100% !important;
  }

  .gov-form-section {
    border-radius: 14px !important;
    margin-bottom: 20px !important;
  }

  .gov-section-header {
    padding: 14px 16px !important;
  }

  .gov-section-body {
    padding: 18px 16px !important;
  }

  .gov-camera-card {
    border-radius: 14px !important;
  }

  .gov-form-actions-card {
    padding: 16px 18px !important;
  }

  .gov-actions-buttons {
    width: 100% !important;
    flex-direction: column-reverse !important;
    gap: 10px !important;
  }

  .gov-btn-cancel,
  .gov-btn-submit-antrian {
    width: 100% !important;
    justify-content: center !important;
  }
}

@media (max-width: 991px) {
  .sidebar-wrapper {
    top: 0 !important;
    height: 100vh !important;
    z-index: 9999 !important;
  }
  #content {
    margin-left: 0 !important;
    width: 100% !important;
    margin-top: 116px !important;
  }
}

/* Sidebar Navigation Items: Generous spacing between icons and text */
#sidebar ul.menu-categories li.menu > .dropdown-toggle {
  display: flex !important;
  align-items: center !important;
  color: var(--gov-navy-800);
  font-weight: 600;
  border-radius: 10px;
  margin: 3px 12px;
  padding: 11px 16px;
  transition: all 0.2s ease;
}

#sidebar ul.menu-categories li.menu > .dropdown-toggle svg {
  color: var(--arg-sky-500);
  width: 19px !important;
  height: 19px !important;
  min-width: 19px !important;
  margin-right: 14px !important;
  transition: all 0.2s ease;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}

#sidebar ul.menu-categories li.menu > .dropdown-toggle span {
  font-size: 13.5px !important;
  line-height: 1.2 !important;
  vertical-align: middle !important;
}

#sidebar ul.menu-categories li.menu > .dropdown-toggle:hover {
  background: var(--arg-sky-50);
  color: var(--arg-sky-600);
}

#sidebar ul.menu-categories li.menu.active > .dropdown-toggle,
#sidebar ul.menu-categories li.menu > .dropdown-toggle[aria-expanded="true"] {
  background: var(--arg-sky-gradient-subtle) !important;
  color: var(--arg-sky-600) !important;
  border-left: 4px solid var(--arg-sky-400) !important;
  box-shadow: 0 2px 8px rgba(92, 169, 234, 0.15) !important;
}

#sidebar ul.menu-categories li.menu.active > .dropdown-toggle svg,
#sidebar ul.menu-categories li.menu > .dropdown-toggle[aria-expanded="true"] svg {
  color: var(--arg-sky-500) !important;
}

#sidebar ul.menu-categories li.menu ul.submenu > li.active a {
  color: var(--arg-sky-600) !important;
  font-weight: 700 !important;
}

#sidebar ul.menu-categories li.menu ul.submenu > li.active a:before {
  background-color: var(--arg-sky-400) !important;
}

/* Universal Icon-to-Text Spacing: Ensure no icon is crammed next to text anywhere */
.btn svg:not(:only-child) {
  margin-right: 8px !important;
  vertical-align: middle !important;
}

.widget-header h4 svg,
.statbox h4 svg,
.modal-title svg {
  margin-right: 10px !important;
  vertical-align: middle !important;
}

.breadcrumb-item svg {
  margin-right: 6px !important;
  vertical-align: middle !important;
}

.dropdown-item svg:not(:only-child) {
  margin-right: 12px !important;
  vertical-align: middle !important;
}

/* User Profile Dropdown in Navbar */
.header-container .dropdown-menu.gov-user-dropdown {
  border: 1px solid #d4e5f5 !important;
  background: #ffffff !important;
}

.header-container .dropdown-menu.gov-user-dropdown .dropdown-item a:hover {
  background: #f0f7fe !important;
  color: #1a6cb3 !important;
}

/* KPI Stat Cards Hover Effect */
.gov-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(10, 27, 45, 0.08) !important;
  border-color: #b9defa !important;
}

/* ==========================================================================
   MODERN GOVERNMENT FOOTER
   ========================================================================== */
.gov-footer-wrapper {
  background: #ffffff !important;
  border-top: 1px solid #dce8f5 !important;
  box-shadow: 0 -4px 20px rgba(10, 27, 45, 0.04) !important;
  padding: 16px 24px !important;
  margin-top: 36px !important;
  position: relative !important;
  border-radius: 12px 12px 0 0 !important;
}

.gov-footer-wrapper::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--arg-sky-gradient);
  border-radius: 3px;
}

.gov-footer-logo-badge {
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(10, 27, 45, 0.08);
  display: flex;
  align-items: center;
  border: 1px solid #e5f0fa;
}

.gov-footer-title {
  font-weight: 700;
  font-size: 13px;
  color: #0a1b2d;
  line-height: 1.3;
}

.gov-footer-subtitle {
  font-size: 11.5px;
  color: #5c6f84;
}

.gov-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #1a6cb3;
  background: #f0f7fe;
  border: 1px solid #b9defa;
  padding: 5px 12px;
  border-radius: 20px;
}

.gov-footer-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2b8bd6;
}

.gov-footer-badge.gov-badge-version {
  background: #f8fafc;
  color: #5c6f84;
  border-color: #e2e8f0;
}

/* ==========================================================================
   UNIVERSAL CRUD SYSTEM STYLING (MODERN GOV 2.0)
   ========================================================================== */

/* Card Containers */
.widget-content.widget-content-area,
.statbox.widget.box.box-shadow,
.section.general-info {
  background: #ffffff !important;
  border: 1px solid #dce8f5 !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(10, 27, 45, 0.04), 0 1px 3px rgba(10, 27, 45, 0.02) !important;
  padding: 24px 28px !important;
  position: relative !important;
  overflow: hidden !important;
  margin-bottom: 24px !important;
}

.widget-content.widget-content-area::before,
.statbox.widget.box.box-shadow::before,
.section.general-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--arg-sky-gradient);
}

/* CRUD Card Header */
.widget-header {
  padding: 0 0 16px 0 !important;
  border-bottom: 1px solid #edf4fb !important;
  margin-bottom: 18px !important;
}

.widget-header .row > div {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.widget-header h4 {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #0a1b2d !important;
  letter-spacing: -0.3px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* "+ Tambah Data" Primary Button */
.widget-header .btn-primary {
  background: linear-gradient(135deg, #5ca9ea 0%, #2b8bd6 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 9px 18px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 4px 14px rgba(43, 139, 214, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  float: none !important;
  margin: 0 !important;
  color: #ffffff !important;
}

.widget-header .btn-primary:hover {
  background: linear-gradient(135deg, #4fa0e3 0%, #2076b9 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(43, 139, 214, 0.45) !important;
  color: #ffffff !important;
}

.widget-header .btn-primary svg {
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
}

/* DataTables Controls (Length & Search) */
.dataTables_wrapper .dataTables_length {
  margin-bottom: 14px !important;
}

.dataTables_wrapper .dataTables_length label {
  font-weight: 600 !important;
  color: #5c6f84 !important;
  font-size: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.dataTables_wrapper .dataTables_length select {
  height: 38px !important;
  border-radius: 9px !important;
  border: 1.5px solid #d4e5f5 !important;
  padding: 4px 12px !important;
  font-weight: 700 !important;
  color: #0a1b2d !important;
  outline: none !important;
  background-color: #fafcfe !important;
  margin: 0 4px !important;
}

.dataTables_wrapper .dataTables_filter {
  margin-bottom: 14px !important;
}

.dataTables_wrapper .dataTables_filter input {
  height: 38px !important;
  border-radius: 9px !important;
  border: 1.5px solid #d4e5f5 !important;
  padding: 6px 14px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  outline: none !important;
  background-color: #fafcfe !important;
  transition: all 0.2s ease !important;
  min-width: 220px !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: #5ca9ea !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(92, 169, 234, 0.2) !important;
}

/* Table Design (Clean Border, Modern Sky-Blue Header) */
.table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
}

.table > thead > tr > th {
  background-color: #f0f7fe !important;
  color: #1a3c61 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  padding: 13px 16px !important;
  border-bottom: 2px solid #b9defa !important;
  border-top: none !important;
  vertical-align: middle !important;
}

.table > tbody > tr > td {
  padding: 13px 16px !important;
  vertical-align: middle !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
  border-bottom: 1px solid #edf4fb !important;
  border-top: none !important;
  transition: background-color 0.15s ease !important;
}

.table > tbody > tr:hover > td {
  background-color: #f6fafe !important;
}

.table td img {
  max-width: 48px !important;
  max-height: 48px !important;
  border-radius: 10px !important;
  object-fit: cover !important;
  border: 2px solid #e0effc !important;
  box-shadow: 0 2px 6px rgba(10, 27, 45, 0.08) !important;
}

/* Table Row Action Buttons (Distinct, Modern Pill Icons) */
.table td .btn {
  width: 35px !important;
  height: 35px !important;
  min-width: 35px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9px !important;
  margin: 2px 3px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid transparent !important;
}

.table td .btn svg {
  width: 16px !important;
  height: 16px !important;
  stroke-width: 2.2 !important;
}

/* Edit Button: Amber / Gold Modern Soft Pill */
.table td .btn.btn-warning {
  background-color: #fffbeb !important;
  border-color: #fde68a !important;
  color: #d97706 !important;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.08) !important;
}
.table td .btn.btn-warning svg {
  stroke: #d97706 !important;
}
.table td .btn.btn-warning:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  border-color: #d97706 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3) !important;
}
.table td .btn.btn-warning:hover svg {
  stroke: #ffffff !important;
}

/* Delete Button: Crimson / Rose Modern Soft Pill */
.table td .btn.btn-danger {
  background-color: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #ef4444 !important;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.08) !important;
}
.table td .btn.btn-danger svg {
  stroke: #ef4444 !important;
}
.table td .btn.btn-danger:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}
.table td .btn.btn-danger:hover svg {
  stroke: #ffffff !important;
}

/* Detail / View Button: Sky Blue Modern Soft Pill */
.table td .btn.btn-info,
.table td .btn.btn-primary {
  background-color: #f0f7fe !important;
  border-color: #b9defa !important;
  color: #2b8bd6 !important;
  box-shadow: 0 1px 3px rgba(43, 139, 214, 0.08) !important;
}
.table td .btn.btn-info svg,
.table td .btn.btn-primary svg {
  stroke: #2b8bd6 !important;
}
.table td .btn.btn-info:hover,
.table td .btn.btn-primary:hover {
  background: linear-gradient(135deg, #5ca9ea 0%, #2b8bd6 100%) !important;
  border-color: #2b8bd6 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(43, 139, 214, 0.3) !important;
}
.table td .btn.btn-info:hover svg,
.table td .btn.btn-primary:hover svg {
  stroke: #ffffff !important;
}

/* Success Button: Emerald Green Modern Soft Pill */
.table td .btn.btn-success {
  background-color: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
  color: #16a34a !important;
  box-shadow: 0 1px 3px rgba(22, 163, 74, 0.08) !important;
}
.table td .btn.btn-success svg {
  stroke: #16a34a !important;
}
.table td .btn.btn-success:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
  border-color: #15803d !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3) !important;
}
.table td .btn.btn-success:hover svg {
  stroke: #ffffff !important;
}

/* Modern Pill Badges (Status, Level) */
.badge {
  font-weight: 700 !important;
  font-size: 11.5px !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  letter-spacing: 0.3px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  line-height: 1.4 !important;
}

.badge-success {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
}

.badge-danger {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
}

.badge-primary {
  background: #e0effc !important;
  color: #1a6cb3 !important;
  border: 1px solid #b9defa !important;
}

.badge-warning {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
}

.badge-info {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #bae6fd !important;
}

.badge-secondary {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

.badge-dark {
  background: #0a1b2d !important;
  color: #ffffff !important;
  border: 1px solid #1a3c61 !important;
}

/* DataTables Pagination & Info */
.dataTables_info {
  font-size: 13px !important;
  color: #5c6f84 !important;
  font-weight: 600 !important;
  padding-top: 14px !important;
}

.dataTables_paginate {
  padding-top: 10px !important;
}

.dataTables_paginate .paginate_button {
  border-radius: 8px !important;
  padding: 6px 12px !important;
  border: 1px solid #d4e5f5 !important;
  background: #ffffff !important;
  color: #1a3c61 !important;
  font-weight: 600 !important;
  margin: 0 3px !important;
  transition: all 0.2s ease !important;
}

.dataTables_paginate .paginate_button.current {
  background: linear-gradient(135deg, #5ca9ea 0%, #2b8bd6 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 3px 10px rgba(43, 139, 214, 0.35) !important;
}

.dataTables_paginate .paginate_button:hover:not(.current):not(.disabled) {
  background: #e0effc !important;
  color: #1a6cb3 !important;
  border-color: #b9defa !important;
}

/* CRUD Form Elements */
.form-group label,
.col-form-label,
label {
  font-weight: 700 !important;
  font-size: 13px !important;
  color: #0a1b2d !important;
  margin-bottom: 6px !important;
}

.form-control,
select.form-control,
textarea.form-control {
  min-height: 44px !important;
  border-radius: 10px !important;
  border: 1.5px solid #d4e5f5 !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  color: #0a1b2d !important;
  background-color: #fafcfe !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}

.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
  border-color: #5ca9ea !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(92, 169, 234, 0.18) !important;
}

.form-control[readonly] {
  background-color: #f1f5f9 !important;
  color: #64748b !important;
  border-color: #e2e8f0 !important;
}

/* Select2 Enhancements */
.select2-container--default .select2-selection--single {
  height: 44px !important;
  border: 1.5px solid #d4e5f5 !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  background-color: #fafcfe !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 26px !important;
  color: #0a1b2d !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px !important;
}

/* Form Action Buttons (Simpan & Batalkan) */
button[type="submit"].btn-primary {
  background: linear-gradient(135deg, #5ca9ea 0%, #2b8bd6 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 10px 24px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  box-shadow: 0 4px 14px rgba(43, 139, 214, 0.35) !important;
  transition: all 0.25s ease !important;
  color: #ffffff !important;
}

button[type="submit"].btn-primary:hover {
  background: linear-gradient(135deg, #4fa0e3 0%, #2076b9 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(43, 139, 214, 0.45) !important;
  color: #ffffff !important;
}

a.btn-warning {
  background: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #475569 !important;
  border-radius: 10px !important;
  padding: 10px 20px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
}

a.btn-warning:hover {
  background: #e2e8f0 !important;
  color: #1e293b !important;
  border-color: #94a3b8 !important;
  text-decoration: none !important;
}

a.btn-warning svg {
  width: 17px !important;
  height: 17px !important;
}

/* Modal Dialog Styling */
.modal-content {
  border-radius: 16px !important;
  border: 1px solid #dce8f5 !important;
  box-shadow: 0 20px 50px rgba(10, 27, 45, 0.2) !important;
  overflow: hidden !important;
}

.modal-header {
  background: #f8fbfe !important;
  border-bottom: 1px solid #e5f0fa !important;
  padding: 16px 22px !important;
}

.modal-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0a1b2d !important;
}

.modal-body {
  padding: 22px !important;
  font-size: 14px !important;
  color: #334155 !important;
}

.modal-footer {
  background: #f8fbfe !important;
  border-top: 1px solid #e5f0fa !important;
  padding: 14px 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}

.modal-footer .btn-danger,
.modal-footer .TombolHapus {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  color: #fff !important;
  padding: 8px 18px !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.modal-footer .btn-default {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
}

/* ==========================================================================
   ANTRIAN & TIKET DIGITAL STYLES - LUXURY ALBICELESTE THEME
   ========================================================================== */

/* Antrian Page Wrapper */
.gov-antrian-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 50px;
}

/* Antrian Hero Banner */
.gov-antrian-hero {
  background: linear-gradient(135deg, #091a2c 0%, #0f2742 55%, #1d4e78 100%);
  border-radius: 20px;
  padding: 32px 36px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(9, 26, 44, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 28px;
}

.gov-antrian-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 169, 234, 0.3) 0%, rgba(92, 169, 234, 0) 70%);
  pointer-events: none;
}

.gov-antrian-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 20%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.12) 0%, rgba(234, 179, 8, 0) 70%);
  pointer-events: none;
}

.gov-antrian-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.gov-antrian-hero-content {
  max-width: 720px;
}

.gov-hero-badge-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #c3e2fa;
  margin-bottom: 14px;
}

.gov-hero-badge-strip .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  display: inline-block;
}

.gov-antrian-hero-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.gov-antrian-hero-title span {
  color: #79bef8;
}

.gov-antrian-hero-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 0;
}

.gov-antrian-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.gov-hero-pill-info {
  background: rgba(10, 27, 45, 0.6);
  border: 1px solid rgba(92, 169, 234, 0.35);
  backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: 12px;
  text-align: right;
}

.gov-hero-pill-info .pill-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 3px;
}

.gov-hero-pill-info .pill-value {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Stepper Indicator */
.gov-steps-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e1eaf5;
  border-radius: 16px;
  padding: 16px 28px;
  margin-bottom: 28px;
  box-shadow: 0 4px 18px rgba(10, 27, 45, 0.04);
}

.gov-step-item {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  flex: 1;
}

.gov-step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f0f7ff;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #64748b;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.gov-step-item.active .gov-step-num {
  background: linear-gradient(135deg, #5ca9ea 0%, #2072b2 100%);
  border-color: #2072b2;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(43, 132, 203, 0.4);
}

.gov-step-info {
  display: flex;
  flex-direction: column;
}

.gov-step-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
}

.gov-step-subtitle {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
}

.gov-step-arrow {
  color: #cbd5e1;
  display: flex;
  align-items: center;
  margin-right: 20px;
}

/* Antrian Modern Cards */
.gov-form-section {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2eaf5;
  box-shadow: 0 6px 24px rgba(10, 27, 45, 0.04);
  margin-bottom: 26px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.gov-form-section:hover {
  box-shadow: 0 10px 30px rgba(10, 27, 45, 0.08);
  border-color: #cbd5e1;
}

.gov-section-header {
  padding: 20px 28px;
  background: linear-gradient(to right, #f8fbfe 0%, #ffffff 100%);
  border-bottom: 1px solid #e6f0fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gov-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gov-section-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border: 1px solid #90caf9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1565c0;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(33, 150, 243, 0.15);
}

.gov-section-icon-box svg {
  width: 22px;
  height: 22px;
}

.gov-section-title {
  font-size: 16px;
  font-weight: 800;
  color: #0a1b2d;
  margin: 0 0 3px 0;
  letter-spacing: -0.2px;
}

.gov-section-desc {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

.gov-section-body {
  padding: 28px;
}

/* Gov Field Group */
.gov-field-group {
  margin-bottom: 22px;
}

.gov-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  text-transform: none;
}

.gov-field-label .req {
  color: #ef4444;
  margin-left: 4px;
}

.gov-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.gov-input-icon {
  position: absolute;
  left: 15px;
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  transition: color 0.2s ease !important;
  z-index: 5 !important;
  width: 18px !important;
  height: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.gov-input-wrap input.form-control,
.gov-input-wrap .form-control {
  height: 48px !important;
  border-radius: 11px !important;
  border: 1.5px solid #d5e2f0 !important;
  padding-left: 48px !important;
  padding-right: 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  background-color: #fafcfe !important;
  transition: all 0.25s ease !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.gov-input-wrap .form-control:focus {
  background-color: #ffffff !important;
  border-color: #5ca9ea !important;
  box-shadow: 0 0 0 4px rgba(92, 169, 234, 0.18) !important;
  outline: none !important;
}

.gov-input-wrap .form-control::placeholder {
  color: #94a3b8 !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
}

.gov-input-wrap:focus-within .gov-input-icon {
  color: #2072b2 !important;
}

.gov-input-wrap textarea.form-control {
  height: auto !important;
  min-height: 90px !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

/* ==========================================================================
   SELECT2 OVERRIDES - NO INNER BORDER, SEAMLESS LUXURY GOVERNMENT STYLE
   ========================================================================== */
.select2-container,
.gov-select2-wrap .select2-container {
  width: 100% !important;
  display: block !important;
}

.select2-container .select2-selection--single,
.select2-container--default .select2-selection--single,
.gov-select2-wrap .select2-container .select2-selection--single {
  height: 48px !important;
  border-radius: 11px !important;
  border: 1.5px solid #d5e2f0 !important;
  background-color: #fafcfe !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  transition: all 0.25s ease !important;
  width: 100% !important;
}

/* CRITICAL: Wipe out the inner border, margin, and background from select2.min.css */
.select2-container .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single .select2-selection__rendered,
.gov-select2-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  height: 46px !important;
  line-height: 46px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  padding: 0 38px 0 16px !important;
  margin: 0 !important;
  width: 100% !important;
  display: block !important;
}

.select2-container .select2-selection--single .select2-selection__arrow,
.select2-container--default .select2-selection--single .select2-selection__arrow,
.gov-select2-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px !important;
  width: 32px !important;
  position: absolute !important;
  top: 0 !important;
  right: 10px !important;
  bottom: 0 !important;
  margin: auto 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #64748b transparent transparent transparent !important;
  border-width: 6px 5px 0 5px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #0284c7 transparent !important;
  border-width: 0 5px 6px 5px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single,
.gov-select2-wrap .select2-container--focus .select2-selection--single,
.gov-select2-wrap .select2-container--open .select2-selection--single {
  border-color: #5ca9ea !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(92, 169, 234, 0.18) !important;
}

.select2-dropdown {
  border: 1.5px solid #d5e2f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 32px rgba(10, 27, 45, 0.12) !important;
  overflow: hidden !important;
  z-index: 1060 !important;
  background: #ffffff !important;
}

.select2-dropdown .select2-search--dropdown {
  padding: 8px 12px !important;
  background-color: #f8fbfe !important;
  border-bottom: 1px solid #e2eaf5 !important;
}

.select2-dropdown .select2-search--dropdown .select2-search__field {
  height: 38px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-size: 13.5px !important;
  background-color: #ffffff !important;
  width: 100% !important;
}

.select2-results__option {
  padding: 10px 16px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
}

.select2-results__option--highlighted[aria-selected] {
  background-color: #0284c7 !important;
  color: #ffffff !important;
}

.select2-results__option[aria-selected="true"] {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   BIOMETRIC & CAMERA SECTION
   ========================================================================== */
.gov-biometric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 991px) {
  .gov-biometric-grid {
    grid-template-columns: 1fr;
  }
}

.gov-camera-card {
  background: #fbfdff;
  border: 1.5px solid #ddecfa;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(10, 27, 45, 0.03);
}

.gov-camera-card:hover {
  border-color: #90caf9;
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.08);
}

.gov-cam-header {
  padding: 14px 20px;
  background: #f0f7fe;
  border-bottom: 1px solid #ddecfa;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gov-cam-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 800;
  color: #0a1b2d;
}

.gov-cam-title svg {
  color: #2072b2;
}

.gov-cam-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e6f7eb;
  border: 1px solid #b7ebd1;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.gov-cam-status-pill .cam-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulseGreen 1.6s infinite ease-in-out;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Biometric Viewfinder Frame */
.gov-viewfinder-box {
  background: #091522;
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
}

/* Corner Reticle brackets */
.gov-viewfinder-box::before,
.gov-viewfinder-box::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: #5ca9ea;
  pointer-events: none;
  z-index: 5;
}

.gov-viewfinder-box::before {
  top: 14px;
  left: 14px;
  border-top: 3px solid #5ca9ea;
  border-left: 3px solid #5ca9ea;
  border-top-left-radius: 6px;
}

.gov-viewfinder-box::after {
  top: 14px;
  right: 14px;
  border-top: 3px solid #5ca9ea;
  border-right: 3px solid #5ca9ea;
  border-top-right-radius: 6px;
}

.gov-viewfinder-bottom-corners {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 5;
}

.gov-viewfinder-bottom-corners .corner-bl {
  width: 24px;
  height: 24px;
  border-bottom: 3px solid #5ca9ea;
  border-left: 3px solid #5ca9ea;
  border-bottom-left-radius: 6px;
}

.gov-viewfinder-bottom-corners .corner-br {
  width: 24px;
  height: 24px;
  border-bottom: 3px solid #5ca9ea;
  border-right: 3px solid #5ca9ea;
  border-bottom-right-radius: 6px;
}

/* Face guideline overlay */
.gov-face-guide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 180px;
  border: 2px dashed rgba(92, 169, 234, 0.5);
  border-radius: 50% 50% 45% 45%;
  pointer-events: none;
  z-index: 4;
}

.gov-face-guide-text {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(9, 21, 34, 0.75);
  color: #c3e2fa;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(92, 169, 234, 0.3);
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
}

/* Card ID guideline overlay */
.gov-card-guide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 140px;
  border: 2px dashed rgba(92, 169, 234, 0.5);
  border-radius: 10px;
  pointer-events: none;
  z-index: 4;
}

/* Video element container */
.gov-camera-stream {
  width: 320px;
  height: 240px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.gov-camera-stream video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 8px;
}

/* Cam controls */
.gov-cam-controls {
  padding: 16px 20px;
  background: #ffffff;
  border-top: 1px solid #ddecfa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gov-btn-snap {
  flex: 1;
  height: 44px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.gov-btn-snap:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
  color: #ffffff;
}

.gov-btn-snap:active {
  transform: translateY(1px);
}

.gov-btn-upload-alt {
  height: 44px;
  padding: 0 16px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.gov-btn-upload-alt:hover {
  background: #e2e8f0;
  color: #1e293b;
  border-color: #94a3b8;
}

/* Cam Preview Area */
.gov-cam-preview-box {
  padding: 16px 20px;
  background: #f8fbfe;
  border-top: 1px solid #e2eaf5;
  display: flex;
  align-items: center;
  gap: 18px;
}

.gov-preview-thumb-wrap {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #5ca9ea;
  box-shadow: 0 4px 12px rgba(10, 27, 45, 0.1);
  background: #e2e8f0;
  flex-shrink: 0;
  position: relative;
}

.gov-preview-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gov-preview-info {
  flex: 1;
}

.gov-preview-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 16px;
  margin-bottom: 5px;
}

.gov-preview-status.ready {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.gov-preview-status.waiting {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.gov-preview-label {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.gov-preview-help {
  font-size: 11.5px;
  color: #64748b;
  margin: 0;
}

/* Form Action Bar */
.gov-form-actions-card {
  background: #ffffff;
  border: 1px solid #d5e2f0;
  border-radius: 18px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(10, 27, 45, 0.06);
  flex-wrap: wrap;
}

.gov-actions-note {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 580px;
}

.gov-actions-note-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gov-actions-note-text {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.gov-actions-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gov-btn-cancel {
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.gov-btn-cancel:hover {
  background: #e2e8f0;
  color: #1e293b;
  border-color: #94a3b8;
}

.gov-btn-submit-antrian {
  height: 48px;
  padding: 0 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.gov-btn-submit-antrian:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.5);
  color: #ffffff;
}

.gov-btn-submit-antrian:active {
  transform: translateY(0);
}

/* ==========================================================================
   DIGITAL TICKET PASS (SUKSES.BLADE.PHP) - VIP BOARDING PASS STYLE
   ========================================================================== */
.gov-ticket-container {
  max-width: 680px;
  margin: 20px auto 50px auto;
}

.gov-ticket-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #d5e4f2;
  box-shadow: 0 20px 60px rgba(10, 27, 45, 0.12);
  overflow: hidden;
  position: relative;
}

/* Ticket Top Header */
.gov-ticket-header {
  background: linear-gradient(135deg, #091a2c 0%, #0f2b48 60%, #1a4971 100%);
  color: #ffffff;
  padding: 28px 32px;
  text-align: center;
  position: relative;
  border-bottom: 2px solid #eab308;
}

.gov-ticket-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #74bdf7 0%, #eab308 50%, #74bdf7 100%);
}

.gov-ticket-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.gov-ticket-emblem {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.gov-ticket-title-block h3 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
}

.gov-ticket-title-block p {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #93c5fd;
  margin: 2px 0 0 0;
  text-transform: uppercase;
}

.gov-ticket-badge-official {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(234, 179, 8, 0.18);
  border: 1px solid rgba(234, 179, 8, 0.5);
  color: #fde047;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-top: 10px;
  text-transform: uppercase;
}

/* Ticket Hero Number */
.gov-ticket-number-box {
  background: linear-gradient(180deg, #f0f7fe 0%, #ffffff 100%);
  padding: 34px 28px;
  text-align: center;
  border-bottom: 2px dashed #cbd5e1;
  position: relative;
}

/* Perforated Notches */
.gov-ticket-number-box::before,
.gov-ticket-number-box::after {
  content: '';
  position: absolute;
  bottom: -15px;
  width: 30px;
  height: 30px;
  background-color: #f1f5f9;
  border-radius: 50%;
  border: 1px solid #d5e4f2;
  z-index: 3;
}

.gov-ticket-number-box::before {
  left: -15px;
  box-shadow: inset -3px 0 6px rgba(0,0,0,0.06);
}

.gov-ticket-number-box::after {
  right: -15px;
  box-shadow: inset 3px 0 6px rgba(0,0,0,0.06);
}

.gov-ticket-label-antrian {
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.gov-ticket-big-number {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: #0369a1;
  letter-spacing: 2px;
  margin-bottom: 14px;
  text-shadow: 0 4px 18px rgba(3, 105, 161, 0.18);
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.gov-ticket-loket-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0284c7;
  color: #ffffff;
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

/* Ticket Details Matrix */
.gov-ticket-details {
  padding: 30px 34px;
}

.gov-ticket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

@media (max-width: 576px) {
  .gov-ticket-grid {
    grid-template-columns: 1fr;
  }
}

.gov-ticket-item {
  background: #f8fbfe;
  border: 1px solid #e2eaf5;
  border-radius: 12px;
  padding: 12px 16px;
}

.gov-ticket-item-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.gov-ticket-item-value {
  font-size: 14px;
  font-weight: 700;
  color: #0a1b2d;
  word-break: break-word;
}

/* Barcode Mockup */
.gov-ticket-barcode-wrap {
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid #eef3f9;
}

.gov-ticket-barcode-mock {
  height: 48px;
  background: repeating-linear-gradient(
    90deg,
    #0f172a,
    #0f172a 2px,
    transparent 2px,
    transparent 5px,
    #0f172a 5px,
    #0f172a 8px,
    transparent 8px,
    transparent 10px,
    #0f172a 10px,
    #0f172a 14px,
    transparent 14px,
    transparent 16px,
    #0f172a 16px,
    #0f172a 17px,
    transparent 17px,
    transparent 21px
  );
  max-width: 320px;
  margin: 0 auto 8px auto;
  opacity: 0.85;
}

.gov-ticket-serial {
  font-size: 12px;
  font-family: monospace;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 3px;
}

/* Notice box */
.gov-ticket-notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1e40af;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 20px;
}

.gov-ticket-notice svg {
  color: #2563eb;
  flex-shrink: 0;
}

/* Ticket Actions (Screen Only) */
.gov-ticket-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.gov-btn-print {
  height: 48px;
  padding: 0 30px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
  transition: all 0.25s ease;
  text-decoration: none !important;
}

.gov-btn-print:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.5);
}

.gov-btn-new-ticket {
  height: 48px;
  padding: 0 22px;
  background: #ffffff;
  border: 1.5px solid #0284c7;
  border-radius: 12px;
  color: #0284c7 !important;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  text-decoration: none !important;
}

.gov-btn-new-ticket:hover {
  background: #f0f9ff;
  color: #0369a1 !important;
}

/* ==========================================================================
   PRINT STYLES FOR DIGITAL TICKET
   ========================================================================== */
@media print {
  /* Hide all unnecessary dashboard chrome */
  body, html {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .header-container,
  .sub-header-container,
  #sidebar,
  .footer-wrapper,
  .gov-ticket-actions,
  .gov-ticket-notice,
  .widget-header,
  .btn,
  a {
    display: none !important;
  }

  .main-container,
  #content,
  .layout-px-spacing,
  .row,
  .col-lg-6 {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .gov-ticket-container {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .gov-ticket-card {
    border: 2px solid #000000 !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: 20px auto !important;
  }

  .gov-ticket-header {
    background: #091a2c !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    padding: 16px !important;
  }

  .gov-ticket-big-number {
    font-size: 54px !important;
    color: #000000 !important;
  }

  .gov-ticket-loket-pill {
    background: #0284c7 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}



