@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-dark: #1e40af;
  --success: #16a34a;
  --success-hover: #15803d;
  --success-light: #f0fdf4;
  --error: #dc2626;
  --error-light: #fef2f2;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-focus: #93c5fd;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

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

html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  position: relative;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top App Navigation Bar (Modern Two-Tier SaaS Header) */
.top-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.08);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.top-nav-main {
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.nav-main-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 1;
  min-width: 0;
}

#navUserFullName {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 1360px) {
  #btnHeaderAbout span,
  #btnHeaderClear span,
  #btnHeaderOpd span {
    display: none;
  }
}

@media (max-width: 1140px) {
  #btnHeaderSqliteDb span {
    display: none;
  }
  #navUserFullName {
    max-width: 90px;
  }
}

.top-nav-toolbar {
  padding: 6px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}

.top-nav-toolbar::-webkit-scrollbar {
  height: 4px;
}
.top-nav-toolbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.toolbar-cluster {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.toolbar-divider {
  width: 1px;
  height: 20px;
  background-color: #cbd5e1;
  margin: 0 6px;
  flex-shrink: 0;
}

.cluster-tag {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
}

.nav-tool-btn {
  height: 31px;
  padding: 0 11px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-brand-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* User Account Dropdown Menu in Top Nav */
.user-menu-wrapper {
  position: relative;
  display: inline-block;
}

.user-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 250px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
  z-index: 99999 !important;
  overflow: hidden;
  animation: fadeInDown 0.15s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rka-dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
  color: #1e293b;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rka-dropdown-item:hover {
  background-color: #f1f5f9;
  color: #2563eb !important;
}

.rka-dropdown-item.text-danger:hover {
  background-color: #fef2f2;
  color: #dc2626 !important;
}

/* Fullscreen Dashboard Fluid Container (No Empty Side Space) */
.container-fluid {
  width: 100%;
  max-width: 100%;
  padding: 24px 28px;
  flex: 1;
  box-sizing: border-box;
  min-width: 0;
}

/* Two-column App Grid Layout for Desktop with Collapse Support */
.app-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  transition: grid-template-columns 0.25s cubic-bezier(0.4, 0, 0.2, 1), gap 0.25s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1440px) {
  .app-layout {
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 28px;
  }
}

/* Sidebar Collapsed State (Full Width Workspace) */
.app-layout.sidebar-collapsed {
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

.app-layout.sidebar-collapsed .app-sidebar {
  display: none !important;
}

@media (max-width: 1023px) {
  .app-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}

/* Sidebar & Main Panels */
.app-sidebar {
  display: flex;
  flex-direction: column;
}

.sidebar-header-bar {
  border-bottom: 1px solid #e2e8f0;
}

/* Floating Unhide Button when Sidebar is Hidden */
.sidebar-floating-unhide {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1020;
  border-radius: 9999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 12px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: fadeInFloating 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.2s ease;
}

.sidebar-floating-unhide:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

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

@media (min-width: 1024px) {
  .app-sidebar {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 105px);
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }

  .app-sidebar::-webkit-scrollbar {
    width: 6px;
  }
  .app-sidebar::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
  }
  .app-sidebar::-webkit-scrollbar-track {
    background: transparent;
  }
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Step Boxes / Cards */
.step-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.step-box:focus-within {
  border-color: var(--border-focus);
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.step-title {
  font-weight: 700;
  font-size: 15px;
  color: #1e40af;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-num {
  width: 24px;
  height: 24px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.step-desc code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.step-badge {
  background: #e0e7ff;
  color: #3730a3;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step-badge.ready {
  background: #dcfce7;
  color: #15803d;
}

/* Info Card */
.info-card {
  background: #f8fafc;
  border-style: dashed;
}

.info-title {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.info-list {
  list-style: none;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-list li {
  line-height: 1.4;
}

.info-list code {
  background: #e2e8f0;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 11px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s ease-in-out;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-install {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  border: none;
}

.btn-install:hover {
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-xs {
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
}

.btn-indicator {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-indicator:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.15);
}

.btn-full {
  width: 100%;
}

.btn-group-full {
  display: flex;
  gap: 10px;
  width: 100%;
}

.file-info {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Drop Zone Component (Main Workspace) */
.drop-zone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  background: #ffffff;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.drop-zone:hover:not(.disabled) {
  border-color: var(--primary);
  background: var(--primary-light);
}

.drop-zone.dragover {
  border-color: var(--primary);
  background: #dbeafe;
  transform: scale(1.005);
}

.drop-zone.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.drop-icon {
  font-size: 42px;
  margin-bottom: 12px;
  line-height: 1;
}

.drop-text-main {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text);
}

.drop-text-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.drop-buttons {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mass Summary Card */
.mass-summary-card {
  display: none;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.mass-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.mass-summary-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.mass-title {
  font-size: 15px;
  font-weight: 700;
  color: #0369a1;
}

.mass-subtitle {
  font-size: 12px;
  color: #0284c7;
  margin-top: 2px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #e0f2fe;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #0284c7);
  border-radius: 9999px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  color: #334155;
}

/* Status List Container */
.status-list-container {
  max-height: 580px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: var(--radius-md);
  padding: 2px;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.status-list::-webkit-scrollbar {
  width: 6px;
}

.status-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.status-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  font-size: 13px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.status-item:hover {
  background: #fcfdfe;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.status-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  flex-wrap: wrap;
}

.status-item-info {
  flex: 1 1 auto;
  min-width: 0;
}

.status-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.status-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

.status-item-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-item-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
  border-top: 1px dashed rgba(226, 232, 240, 0.9);
  padding-top: 10px;
}

.status-item-actions-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.status-item-toolbar .btn {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.status-item-badges .badge,
.status-item-badges .btn {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}

/* Badges */
.badge {
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-process {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-success {
  background: var(--success-light);
  color: var(--success);
}

.badge-error {
  background: var(--error-light);
  color: var(--error);
}

/* Format Selector */
.format-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.format-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.format-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.format-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary);
}

.format-card input[type="radio"] {
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
}

.format-card-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.format-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.format-card.active .format-title {
  color: var(--primary);
}

.format-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

.format-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
  text-transform: uppercase;
}

.format-card.active .format-tag {
  background: #dbeafe;
  color: #1e40af;
}

/* Mobile Bottom Navigation Bar */
/* Modern Mobile Bottom Navigation Bar (Glassmorphism & Symmetrical FAB) */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 66px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
  z-index: 1040;
  padding: 0 12px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  align-items: center;
  justify-content: space-around;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  user-select: none;
  min-width: 56px;
  gap: 3px;
}

.bottom-nav-item:hover,
.bottom-nav-item:active {
  color: var(--primary);
  transform: scale(0.94);
}

.bottom-nav-icon-wrap {
  font-size: 19px;
  line-height: 1;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bottom-nav-label {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Floating Center Action Button (Upload FAB) */
.bottom-nav-fab-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: -18px;
  gap: 2px;
}

.bottom-nav-fab {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 18px -2px rgba(37, 99, 235, 0.5), 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -2px rgba(37, 99, 235, 0.6);
}

.bottom-nav-fab:active {
  transform: scale(0.92);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}

.bottom-nav-fab-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
}

.bottom-nav-badge-dot {
  position: absolute;
  top: -2px;
  right: -5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  border: 1.5px solid #ffffff;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastIn 0.25s ease-out forwards;
}

.toast.toast-success {
  background: #15803d;
}

.toast.toast-info {
  background: #1e40af;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile & Tablet Responsiveness Overhaul */
@media (max-width: 991px) {
  .top-nav {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 12px !important;
    height: 56px !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1020;
  }

  .nav-brand {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav-brand-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
  }

  .app-logo {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
  }

  .brand-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
  }

  .brand-subtitle {
    display: none !important;
  }

  /* Sembunyikan bilah 15 tombol desktop di HP agar tidak meluber melewati border */
  .nav-actions {
    display: none !important;
  }

  .sidebar-header-bar {
    border-radius: 10px !important;
    padding: 8px 12px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
  }
}

@media (max-width: 991px) {
  /* Kontainer Utama & Layout Proteksi Penuh */
  html, body {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 10px 8px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .app-layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 12px !important;
    box-sizing: border-box !important;
  }

  .app-sidebar,
  .app-main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Step Boxes & Cards di Mobile */
  .step-box {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 14px 12px !important;
    border-radius: 14px !important;
    margin-bottom: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    background: #ffffff !important;
    overflow: hidden !important;
  }

  .step-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .step-header > div:last-child {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
  }

  /* Drop Zone & Upload di Mobile */
  .drop-zone {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 20px 10px !important;
    text-align: center !important;
  }

  .drop-icon {
    font-size: 32px !important;
    margin-bottom: 6px !important;
  }

  .drop-text-main {
    font-size: 14px !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
    padding: 0 4px !important;
    max-width: 100% !important;
  }

  .drop-text-sub {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
    padding: 0 4px !important;
    max-width: 100% !important;
  }

  .drop-buttons,
  .drop-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px !important;
    margin-top: 14px !important;
    box-sizing: border-box !important;
  }

  .drop-buttons .btn,
  .drop-actions .btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 12px !important;
    font-size: 12.5px !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  /* Mass Summary Card di Mobile */
  .mass-summary-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 14px 10px !important;
    border-radius: 14px !important;
    margin-bottom: 14px !important;
    overflow: hidden !important;
  }

  .mass-summary-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .mass-title {
    font-size: 14.5px !important;
  }

  .mass-subtitle {
    font-size: 11.5px !important;
  }

  .mass-summary-actions {
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
  }

  .mass-summary-actions .btn {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    font-size: 12px !important;
    padding: 7px 10px !important;
    box-sizing: border-box !important;
  }

  .progress-track {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .action-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .action-row > div:first-child,
  .action-row-controls {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 6px !important;
    box-sizing: border-box !important;
  }

  .action-row .badge,
  .action-row-badge {
    white-space: normal !important;
    word-break: break-word !important;
    text-align: left !important;
    line-height: 1.4 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
    font-size: 11.5px !important;
  }

  .action-row label {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 11.5px !important;
    word-break: break-word !important;
  }

  #summaryCount {
    width: 100% !important;
    display: block !important;
    font-size: 11.5px !important;
  }

  /* Batch Switch Rows: Kloning, PPTK, RAK, Realisasi, Forensik */
  .batch-clone-row,
  .batch-pptk-row,
  .batch-rak-row,
  .batch-realisasi-row,
  .batch-forensic-row {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 10px 10px !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .batch-clone-row .form-check,
  .batch-pptk-row .form-check,
  .batch-rak-row .form-check,
  .batch-realisasi-row .form-check,
  .batch-forensic-row .form-check {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
  }

  .batch-clone-row .form-check-input,
  .batch-pptk-row .form-check-input,
  .batch-rak-row .form-check-input,
  .batch-realisasi-row .form-check-input,
  .batch-forensic-row .form-check-input {
    flex-shrink: 0 !important;
    margin-top: 2px !important;
  }

  .batch-clone-row .form-check-label,
  .batch-pptk-row .form-check-label,
  .batch-rak-row .form-check-label,
  .batch-realisasi-row .form-check-label,
  .batch-forensic-row .form-check-label {
    font-size: 12px !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .batch-clone-row .badge,
  .batch-pptk-row .badge,
  .batch-rak-row .badge,
  .batch-realisasi-row .badge {
    align-self: flex-start !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-align: left !important;
    max-width: 100% !important;
    font-size: 11px !important;
  }

  .batch-forensic-row .d-flex.align-items-center.gap-2 {
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
  }

  .batch-forensic-row .d-flex.align-items-center.gap-2 .btn {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    font-size: 11.5px !important;
    padding: 7px 10px !important;
    box-sizing: border-box !important;
  }

  /* PPTK Summary Card di Mobile */
  .pptk-summary-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .pptk-summary-card .card-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 10px !important;
  }

  .pptk-summary-card .card-header > div:first-child {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    width: 100% !important;
  }

  .pptk-summary-card .btn-group {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  .pptk-summary-card .btn-group .btn {
    width: 100% !important;
    border-radius: 6px !important;
    margin-bottom: 2px !important;
    font-size: 11px !important;
  }

  .pptk-summary-card .card-body {
    padding: 10px !important;
  }

  .pptk-summary-card .card-body > div {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .pptk-summary-card .toolbar-section-label {
    width: 100% !important;
    text-align: left !important;
    margin-bottom: 2px !important;
  }

  /* Batch Search & Priority Filter Bars */
  .batch-search-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px !important;
  }

  .batch-search-bar .input-group {
    max-width: 100% !important;
    width: 100% !important;
  }

  .priority-filter-bar {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 8px !important;
  }

  .priority-filter-bar > div:first-child {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    width: 100% !important;
  }

  .priority-tag-btn {
    font-size: 10.5px !important;
    padding: 3px 7px !important;
  }

  /* Status List & Status Items di Mobile */
  .status-list-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .status-list {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .status-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 12px 10px !important;
  }

  .status-item-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .status-item-info {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .status-item-title {
    font-size: 13px !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .status-item-meta {
    flex-wrap: wrap !important;
    gap: 4px !important;
    font-size: 11.5px !important;
  }

  .status-item-badges {
    justify-content: flex-start !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
  }

  .status-item-badges .badge,
  .status-item-badges .btn {
    white-space: normal !important;
    word-break: break-word !important;
    text-align: left !important;
    max-width: 100% !important;
    font-size: 10.5px !important;
  }

  .status-item-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .status-item-actions-group {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
  }

  .status-item-actions-group .btn {
    flex: 1 1 auto !important;
    justify-content: center !important;
    font-size: 11px !important;
    padding: 5px 8px !important;
  }

  /* Batch Actions Bar */
  .batch-actions-bar {
    padding: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Mobile Feature Hub Bottom Sheet Modal */
.modal-bottom-sheet-overlay {
  align-items: flex-end !important;
  padding: 0 !important;
}

@media (min-width: 992px) {
  .modal-bottom-sheet-overlay {
    align-items: center !important;
    padding: 20px !important;
  }
  .modal-bottom-sheet-card {
    max-width: 600px !important;
    border-radius: 20px !important;
  }
}

@media (max-width: 991px) {
  .modal-bottom-sheet-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 22px 22px 0 0 !important;
    margin: 0 !important;
    max-height: 85vh !important;
    animation: sheetSlideUp 0.28s cubic-bezier(0.33, 1, 0.68, 1);
  }
}

@keyframes sheetSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0.5;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-sheet-handle {
  width: 40px;
  height: 4px;
  background-color: #cbd5e1;
  border-radius: 2px;
  margin: 8px auto 4px auto;
}

.feature-hub-section-title {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding-left: 2px;
}

.feature-hub-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-hub-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: #1e293b;
  transition: all 0.15s ease;
  width: 100%;
  text-align: left;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.feature-hub-item:hover,
.feature-hub-item:active {
  background: #f8fafc;
  border-color: #93c5fd;
  transform: translateY(-1px);
  color: #1e293b;
}

.feature-hub-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.feature-hub-info {
  flex: 1;
  min-width: 0;
}

.feature-hub-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.feature-hub-desc {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.3;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 992px) {
  .bottom-nav {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .batch-actions-bar .btn,
  .batch-actions-bar .btn-group {
    width: 100%;
    margin-bottom: 4px;
  }

  .batch-actions-bar .btn-group .btn {
    flex: 1;
    font-size: 11px;
    padding: 6px 4px;
  }

  /* Status List Item Responsive */
  .status-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }

  .status-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .status-item-badges {
    justify-content: flex-start;
    width: 100%;
  }

  .status-item-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .status-item-actions-group {
    width: 100%;
  }

  .status-item-toolbar .btn,
  .status-item-badges .badge,
  .status-item-badges .btn {
    font-size: 11px !important;
    padding: 4px 8px !important;
  }

  /* Modal Cards Responsive */
  .modal-overlay {
    padding: 8px;
    align-items: flex-end;
  }

  .modal-card,
  .modal-card-xl,
  .modal-card-xxl,
  .modal-card.modal-card-lg {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 94vh !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-radius: 16px 16px 0 0 !important;
  }

  .modal-header {
    padding: 12px 14px;
  }

  .modal-title {
    font-size: 14px;
  }

  .modal-body {
    padding: 14px;
    gap: 12px;
  }

  .modal-footer {
    padding: 10px 14px;
    flex-direction: column-reverse;
    gap: 8px;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .modal-footer > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  /* KPI Grid & Charts */
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .kpi-card {
    padding: 10px;
  }

  .kpi-value {
    font-size: 15px;
  }

  .kpi-label {
    font-size: 10px;
  }

  .charts-row {
    grid-template-columns: 1fr;
  }

  .chart-canvas-wrapper {
    height: 220px;
  }

  /* Tables & Horizontal Scrolls */
  .table-responsive {
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    white-space: nowrap;
  }

  /* Toast Notifications */
  .toast-container {
    bottom: 74px;
    left: 12px;
    right: 12px;
  }

  .toast {
    font-size: 12px;
    padding: 10px 14px;
  }

  body {
    padding-bottom: 74px !important;
  }

  .top-nav-toolbar {
    display: none !important;
  }

  .bottom-nav {
    display: flex !important;
    z-index: 10050;
  }
}

@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .brand-title {
    font-size: 16px;
  }

  .format-card {
    padding: 10px 12px;
  }
}

/* Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
  background: #ffffff;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-textarea {
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

/* Modal Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  animation: scaleIn 0.2s ease-out;
}

.modal-card.modal-card-lg {
  max-width: 880px;
}

.modal-card.modal-card-xl {
  max-width: 1120px;
}


.about-nav-pills .nav-link {
  border-radius: 50rem;
  font-weight: 600;
  font-size: 13px;
  color: #64748b;
  padding: 8px 18px;
  transition: all 0.2s;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.about-nav-pills .nav-link.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.25);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.feature-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: #f8fafc;
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: #93c5fd;
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.feature-card-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.feature-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 4px;
}

.feature-card-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.step-card-guide {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  background: #ffffff;
  align-items: flex-start;
  transition: all 0.15s;
}

.step-card-guide:hover {
  border-color: #bfdbfe;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.step-card-guide .guide-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #bfdbfe;
}

.guide-step-content {
  flex: 1;
}

.guide-step-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
}

.guide-step-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

.modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e40af;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #64748b;
  line-height: 1;
}

.modal-close:hover {
  color: #0f172a;
}

.modal-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #f8fafc;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.modal-file-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: #1e3a8a;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.highlight-program {
  color: #2563eb;
  font-weight: 700;
}

.modal-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: #ffffff;
}

.modal-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.renstra-matched-badge {
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  color: #15803d;
  font-weight: 600;
}

.renstra-box {
  background: #f8fafc;
  border: 1px solid #dbeafe;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* -------------------------------------------------------------
   EXECUTIVE DASHBOARD & BI ANALYTICS STYLES
   ------------------------------------------------------------- */
.modal-card-xl {
  max-width: 1200px;
  width: 95%;
  max-height: 92vh;
}

.modal-card-xxl {
  max-width: 98.5vw;
  width: 98.5vw;
  height: 96vh;
  max-height: 96vh;
}

/* Detail Modal Category Cards with Integrated Sliders */
.whatif-detail-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.18s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.whatif-detail-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
}

.whatif-detail-card.detail-card-active {
  border-width: 2px !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.whatif-detail-card .form-range {
  height: 0.9rem;
  margin-bottom: 0;
}

.whatif-detail-card .form-range::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}

.kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kpi-value {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.kpi-subtext {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

.charts-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 992px) {
  .charts-row {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.chart-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-canvas-wrapper {
  position: relative;
  height: 250px;
  width: 100%;
}

/* -------------------------------------------------------------
   SMART ANOMALY & RED FLAG ALERT STYLES
   ------------------------------------------------------------- */
.anomaly-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #cbd5e1;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}

.anomaly-item-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.anomaly-item-card.danger {
  border-left-color: #ef4444;
  background: #fffafa;
}

.anomaly-item-card.warning {
  border-left-color: #f59e0b;
  background: #fffdf5;
}

.anomaly-item-card.info {
  border-left-color: #3b82f6;
  background: #f8faff;
}

.anomaly-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 6px;
}

.anomaly-subkeg {
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
}

.anomaly-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.anomaly-detail {
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 8px;
}

.anomaly-rec-box {
  background: rgba(255, 255, 255, 0.85);
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #1e293b;
}

.anomaly-rec-title {
  font-weight: 700;
  color: #059669;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.anomaly-ref-tag {
  font-size: 11px;
  color: #64748b;
  margin-top: 6px;
  font-style: italic;
}

/* -------------------------------------------------------------
   DIFF COMPARATOR STYLES
   ------------------------------------------------------------- */
.diff-table-wrapper {
  max-height: 520px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.diff-table {
  width: 100%;
  font-size: 12.5px;
  border-collapse: collapse;
}

.diff-table th {
  position: sticky;
  top: 0;
  background: #1e3a8a;
  color: #ffffff;
  font-weight: 700;
  padding: 10px 8px;
  text-align: left;
  border: 1px solid #3b82f6;
  z-index: 10;
}

.diff-table td {
  padding: 8px;
  border: 1px solid #e2e8f0;
  vertical-align: top;
}

.diff-row-new {
  background-color: #f0fdf4 !important;
}

.diff-row-removed {
  background-color: #fef2f2 !important;
}

.diff-row-increased {
  background-color: #eff6ff !important;
}

.diff-row-decreased {
  background-color: #fffbeb !important;
}

/* Multi-Stage RKA Progression Styling */
.stage-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stage-slot-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stage-slot-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.stage-slot-card.stage-1 {
  border-top: 4px solid #16a34a;
}

.stage-slot-card.stage-2 {
  border-top: 4px solid #2563eb;
}

.stage-slot-card.stage-3 {
  border-top: 4px solid #9333ea;
}

.stage-slot-card.stage-4 {
  border-top: 4px solid #ea580c;
}

.stage-slot-card.stage-5 {
  border-top: 4px solid #0d9488;
}

.stage-slot-card.stage-6 {
  border-top: 4px solid #e11d48;
}

.stage-slot-card.stage-7 {
  border-top: 4px solid #4f46e5;
}

.stage-slot-card.stage-8 {
  border-top: 4px solid #0891b2;
}

.stage-slot-add-card {
  border: 2px dashed #94a3b8;
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 140px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #475569;
  text-decoration: none !important;
}

.stage-slot-add-card:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(37,99,235,0.1);
}

.stage-slot-add-icon {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-slot-add-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.stage-slot-add-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
  text-align: center;
}

.stage-slot-card.disabled {
  opacity: 0.6;
  background: #f8fafc;
  pointer-events: none;
}

.stage-slot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.stage-slot-title {
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.diff-table-stage th {
  background: #1e293b !important;
  color: #ffffff !important;
  border-color: #334155 !important;
  font-size: 11.5px;
  padding: 10px 8px;
  vertical-align: middle;
}

.diff-table-stage th.col-stage-1 {
  background: #064e3b !important;
  color: #ffffff !important;
  border-left: 2px solid #10b981 !important;
  border-right: 2px solid #10b981 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.diff-table-stage th.col-stage-2 {
  background: #1e3a8a !important;
  color: #ffffff !important;
  border-left: 2px solid #3b82f6 !important;
  border-right: 2px solid #3b82f6 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.diff-table-stage th.col-stage-3 {
  background: #581c87 !important;
  color: #ffffff !important;
  border-left: 2px solid #a855f7 !important;
  border-right: 2px solid #a855f7 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.diff-table-stage th.col-stage-4 {
  background: #7c2d12 !important;
  color: #ffffff !important;
  border-left: 2px solid #f97316 !important;
  border-right: 2px solid #f97316 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.diff-table-stage th.col-stage-5 {
  background: #134e4a !important;
  color: #ffffff !important;
  border-left: 2px solid #14b8a6 !important;
  border-right: 2px solid #14b8a6 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.diff-table-stage th.col-stage-6 {
  background: #881337 !important;
  color: #ffffff !important;
  border-left: 2px solid #f43f5e !important;
  border-right: 2px solid #f43f5e !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.diff-table-stage th.col-stage-7 {
  background: #312e81 !important;
  color: #ffffff !important;
  border-left: 2px solid #6366f1 !important;
  border-right: 2px solid #6366f1 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.diff-table-stage th.col-stage-8 {
  background: #164e63 !important;
  color: #ffffff !important;
  border-left: 2px solid #06b6d4 !important;
  border-right: 2px solid #06b6d4 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.diff-table-stage td.col-stage-1 {
  background-color: rgba(22, 163, 74, 0.04);
}

.diff-table-stage td.col-stage-2 {
  background-color: rgba(37, 99, 235, 0.04);
}

.diff-table-stage td.col-stage-3 {
  background-color: rgba(147, 51, 234, 0.04);
}

.diff-table-stage td.col-stage-4 {
  background-color: rgba(234, 88, 12, 0.04);
}

.diff-table-stage td.col-stage-5 {
  background-color: rgba(13, 148, 136, 0.04);
}

.diff-table-stage td.col-stage-6 {
  background-color: rgba(225, 29, 72, 0.04);
}

.diff-table-stage td.col-stage-7 {
  background-color: rgba(79, 70, 229, 0.04);
}

.diff-table-stage td.col-stage-8 {
  background-color: rgba(8, 145, 178, 0.04);
}

.diff-spec-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
  border: 1px solid #e2e8f0;
}

/* Keterangan Belanja [-] Group Header Row */
.diff-keterangan-header-row {
  background-color: #f1f5f9 !important;
  border-top: 2px solid #cbd5e1 !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

.diff-keterangan-header-row td {
  background-color: #f1f5f9 !important;
  padding: 8px 8px !important;
  font-size: 11.5px;
}

.diff-keterangan-header-row.diff-row-new td {
  background-color: #f0fdf4 !important;
}

.diff-keterangan-header-row.diff-row-removed td {
  background-color: #fef2f2 !important;
}

.diff-keterangan-header-row.diff-row-increased td {
  background-color: #eff6ff !important;
}

.diff-keterangan-header-row.diff-row-decreased td {
  background-color: #fffbeb !important;
}

.diff-item-nested-cell {
  padding-left: 20px !important;
}

/* -------------------------------------------------------------
   PRINT INFOGRAPHIC STYLES (A4 LANDSCAPE)
   ------------------------------------------------------------- */
@media print {
  @page {
    size: A4 landscape;
    margin: 6mm 8mm;
  }

  html, body {
    background: #ffffff !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Default behavior saat bukan mode cetak infografis: sembunyikan modal */
  body:not(.printing-infographic) .modal-overlay {
    display: none !important;
  }

  /* =========================================================
     MODE CETAK INFOGRAFIS EKSEKUTIF (A4 LANDSCAPE)
     ========================================================= */
  body.printing-infographic {
    background: #ffffff !important;
    overflow: visible !important;
  }

  /* Sembunyikan semua elemen langsung di body KECUALI modal executive dashboard */
  body.printing-infographic > *:not(#modalExecutiveDashboard) {
    display: none !important;
  }

  /* Tampilkan modal dashboard sebagai container halaman utama saat dicetak */
  body.printing-infographic #modalExecutiveDashboard {
    display: block !important;
    position: static !important;
    background: #ffffff !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    inset: auto !important;
    z-index: auto !important;
  }

  body.printing-infographic .modal-card {
    display: block !important;
    position: static !important;
    background: #ffffff !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Sembunyikan kontrol tombol dan header modal UI */
  body.printing-infographic .modal-header,
  body.printing-infographic .modal-footer,
  body.printing-infographic .btn,
  body.printing-infographic .btn-close,
  body.printing-infographic .no-print {
    display: none !important;
  }

  /* Area cetak infografis */
  body.printing-infographic #executivePrintArea {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
  }

  body.printing-infographic #executivePrintArea * {
    visibility: visible !important;
  }

  /* Header cetak infografis */
  body.printing-infographic .d-print-block {
    display: block !important;
  }

  /* KPI Grid */
  body.printing-infographic .kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }

  body.printing-infographic .kpi-card {
    padding: 8px 10px !important;
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  body.printing-infographic .kpi-label {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin-bottom: 2px !important;
  }

  body.printing-infographic .kpi-value {
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
  }

  body.printing-infographic .kpi-subtext {
    font-size: 9.5px !important;
    color: #64748b !important;
  }

  /* Charts Row */
  body.printing-infographic .charts-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  body.printing-infographic .chart-card {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    background: #ffffff !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  body.printing-infographic .chart-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
    color: #1e293b !important;
  }

  body.printing-infographic .chart-canvas-wrapper {
    height: 180px !important;
    max-height: 180px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  /* Canvas disembunyikan saat dicetak, digantikan gambar static png */
  body.printing-infographic .chart-canvas-wrapper canvas {
    display: none !important;
  }

  body.printing-infographic .print-chart-img {
    display: block !important;
    max-height: 175px !important;
    width: auto !important;
    margin: 0 auto !important;
  }

  /* Tabel Prioritas */
  body.printing-infographic .card {
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  body.printing-infographic table {
    width: 100% !important;
    font-size: 10px !important;
    border-collapse: collapse !important;
  }

  body.printing-infographic th,
  body.printing-infographic td {
    padding: 3px 6px !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  body.printing-infographic thead th {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #cbd5e1 !important;
  }

  body.printing-infographic .badge {
    border: 1px solid currentColor !important;
    font-size: 8.5px !important;
    padding: 1px 5px !important;
  }

  body.printing-infographic .print-footer-note {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 9px !important;
    color: #94a3b8 !important;
  }
}

/* What-If Simulator Row Hover & Clickable Indicator */
.whatif-clickable-row:hover {
  background-color: #e0f2fe !important;
}

.whatif-clickable-row:hover .text-hover-primary {
  color: #0284c7 !important;
  text-decoration: underline;
}

.cursor-pointer {
  cursor: pointer;
}

/* AI Analyzer Styles (Gemini 2.5) */
.ai-glow-btn {
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1px solid #c7d2fe !important;
  color: #4338ca !important;
  position: relative;
  transition: all 0.25s ease;
}

.ai-glow-btn:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  color: #ffffff !important;
  border-color: #6366f1 !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
  transform: translateY(-1px);
}

.ai-glow-btn:hover i,
.ai-glow-btn:hover span.badge {
  color: #ffffff !important;
}

.preset-tag-btn {
  transition: all 0.2s ease;
  font-size: 11.5px;
  line-height: 1.3;
}

.preset-tag-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

.ai-score-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.ai-progress-stacked {
  height: 22px;
  border-radius: 9999px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* AI Export Buttons (PDF & Word) */
.ai-export-pdf-btn {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  border: none !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.32);
}

.ai-export-pdf-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
}

.ai-export-pdf-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.ai-export-word-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.32);
}

.ai-export-word-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.ai-export-word-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.ai-export-pdf-btn:disabled,
.ai-export-word-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* AI Autocomplete Search Component */
.ai-autocomplete-container {
  position: relative;
}

.ai-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #93c5fd;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16), 0 4px 10px rgba(15, 23, 42, 0.06);
  max-height: 290px;
  overflow-y: auto;
  z-index: 1065;
  display: none;
}

.ai-autocomplete-item {
  padding: 9px 13px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-autocomplete-item:last-child {
  border-bottom: none;
}

.ai-autocomplete-item:hover,
.ai-autocomplete-item.active {
  background-color: #eff6ff;
  border-left: 3px solid #2563eb;
  padding-left: 10px;
}

.ai-autocomplete-item mark {
  background: #fef08a;
  color: #854d0e;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 700;
}

/* Presentation / Sidang TAPD Mode */
.presentation-floating-bar {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-radius: 50px;
  padding: 8px 18px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 15px;
  animation: slideDownFloating 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownFloating {
  from { top: -60px; opacity: 0; }
  to { top: 15px; opacity: 1; }
}

body.presentation-mode {
  background-color: #0b1120 !important;
  color: #f1f5f9 !important;
}

body.presentation-mode .app-header,
body.presentation-mode .upload-section,
body.presentation-mode .bottom-nav {
  display: none !important;
}

body.presentation-mode .main-content {
  padding-top: 70px !important;
  max-width: 98vw !important;
}

body.presentation-mode .status-item {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
  font-size: 14px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

body.presentation-mode .status-item .file-name {
  color: #60a5fa !important;
  font-size: 16px !important;
}

body.presentation-mode .batch-actions-bar,
body.presentation-mode .pptk-summary-bar,
body.presentation-mode .batch-forensic-row {
  background: #1e293b !important;
  border-color: #475569 !important;
}

/* ========================================================================== */
/* BOOTSTRAP 5 THEME ENHANCEMENTS: PROPORTIONAL, MODERN & PROFESSIONAL       */
/* ========================================================================== */

/* Top Navigation Bar Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  .nav-actions {
    display: none !important;
  }
}

.nav-actions .btn {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.32rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.nav-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.nav-actions .btn:active {
  transform: translateY(0);
}

/* Custom Indigo Button for Sovereign TAPD Actions */
.btn-indigo {
  background-color: #4f46e5 !important;
  border-color: #4338ca !important;
  color: #ffffff !important;
}

.btn-indigo:hover {
  background-color: #4338ca !important;
  border-color: #3730a3 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

/* PPTK Summary Card Toolbar (Gambar 2) */
.pptk-summary-card {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-top: 0.75rem;
  overflow: hidden;
}

.pptk-summary-card .card-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.6rem 1rem;
}

.pptk-summary-card .card-body {
  padding: 0.75rem 1rem;
  background: #ffffff;
}

.pptk-summary-card .toolbar-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  min-width: 68px;
}

.pptk-summary-card .btn-sm {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: all 0.15s ease-in-out;
}

.pptk-summary-card .btn-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.pptk-summary-card .btn-sm:active {
  transform: translateY(0);
}

/* Bootstrap Segmented Filter Active States */
.btn-group .btn-outline-secondary.active {
  background-color: #475569 !important;
  border-color: #475569 !important;
  color: #ffffff !important;
}

.btn-group .btn-outline-danger.active {
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
}

.btn-group .btn-outline-success.active {
  background-color: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
}

/* Priority & SPM Tag Filter Bar (Gambar 4) */
.priority-filter-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.5rem 0.85rem;
}

.priority-tag-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s ease-in-out;
  user-select: none;
}

.priority-tag-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.priority-tag-btn.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.priority-tag-btn.tag-pendidikan.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.priority-tag-btn.tag-kesehatan.active {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.priority-tag-btn.tag-stunting.active {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.priority-tag-btn.tag-kemiskinan.active {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
}

.priority-tag-btn.tag-infrastruktur.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

.priority-tag-btn.tag-rutin.active {
  background: #475569;
  border-color: #475569;
  color: #ffffff;
}

/* ==========================================================================
   Floating Unhide Sidebar Button
   ========================================================================== */
.sidebar-floating-unhide {
  position: fixed;
  left: 20px;
  bottom: 24px;
  z-index: 1040;
  border-radius: 50px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-floating-unhide:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.45);
}

/* ==========================================================================
   Modern Executive App Footer
   ========================================================================== */
.app-footer {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
}

/* Glowing Multi-color accent bar on top */
.app-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 30%, #fe2c55 70%, #25f4ee 100%);
  border-radius: 16px 16px 0 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-app-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
}

.footer-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid #bbf7d0;
}

.footer-badge-status .pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #16a34a;
  border-radius: 50px;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.footer-tagline {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

/* Center Creator Capsule - TikTok Aesthetic */
.footer-creator-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tiktok-creator-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #09090b;
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: 9999px;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.tiktok-creator-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(37, 244, 238, 0.18), rgba(254, 44, 85, 0.18));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tiktok-creator-pill:hover {
  transform: translateY(-2.5px) scale(1.02);
  box-shadow: 0 10px 25px -3px rgba(254, 44, 85, 0.35), 0 4px 14px -2px rgba(37, 244, 238, 0.35);
  border-color: rgba(254, 44, 85, 0.55);
}

.tiktok-creator-pill:hover::after {
  opacity: 1;
}

.tiktok-icon-wrap {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff;
  filter: drop-shadow(-1.5px -1.5px 0px rgba(37, 244, 238, 0.85)) drop-shadow(1.5px 1.5px 0px rgba(254, 44, 85, 0.85));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tiktok-creator-pill:hover .tiktok-icon-wrap {
  transform: rotate(-10deg) scale(1.15);
}

.tiktok-creator-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
}

.tiktok-creator-text .creator-label {
  font-size: 10px;
  color: #94a3b8;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 600;
}

.tiktok-creator-text .creator-handle {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'JetBrains Mono', Consolas, monospace, sans-serif;
  letter-spacing: -0.2px;
}

.tiktok-badge-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #fe2c55, #ff0050);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(254, 44, 85, 0.4);
  transition: all 0.25s ease;
}

.tiktok-creator-pill:hover .tiktok-badge-action {
  background: linear-gradient(135deg, #ff0050, #25f4ee);
  color: #09090b;
  transform: translateX(2px);
}

/* Meta wrap on right */
.footer-meta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.footer-copyright {
  font-size: 12px;
  color: #475569;
}

.footer-meta-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #64748b;
}

.meta-sep {
  color: #cbd5e1;
}

.btn-scroll-top {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
}

.btn-scroll-top:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

@media (max-width: 991px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 16px;
  }
  .footer-brand-wrap {
    align-items: center;
  }
  .footer-meta-wrap {
    align-items: center;
  }
}

/* ==========================================================================
   SMART RKA INNOVATION SUITE STYLES (Copilot, BA TAPD, Deficit, Air-Gap)
   ========================================================================== */

/* Microphone pulse animation */
@keyframes micPulseAnim {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.pulse-mic {
  animation: micPulseAnim 1.4s infinite !important;
}

/* Copilot Chat Styling */
.copilot-chat-container {
  display: flex;
  flex-direction: column;
  height: 520px;
  background-color: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.copilot-history {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.copilot-msg {
  max-width: 90%;
  animation: fadeInMsg 0.25s ease-out;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.copilot-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 14px 14px 2px 14px;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15);
}

.copilot-msg.bot {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  padding: 12px 16px;
  border-radius: 14px 14px 14px 2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

/* Copilot Quick Chips Container */
.copilot-quick-chips-bar {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 16px !important;
  background-color: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  min-height: 52px !important;
  box-sizing: border-box !important;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.copilot-quick-chips-bar::-webkit-scrollbar {
  height: 5px;
}

.copilot-quick-chips-bar::-webkit-scrollbar-track {
  background: transparent;
}

.copilot-quick-chips-bar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.copilot-quick-chips-bar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.copilot-prompt-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 32px !important;
  line-height: 30px !important;
  padding: 0 13px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9999px !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.copilot-prompt-chip:hover {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
  color: #1d4ed8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 6px rgba(37, 99, 235, 0.12) !important;
}

.copilot-prompt-chip:active {
  transform: translateY(0) !important;
}

/* Air-Gapped Security Pod Shield Card */
.security-pod-card {
  background: linear-gradient(145deg, #f0fdf4, #dcfce7);
  border: 1px solid #86efac;
  border-radius: 14px;
  padding: 20px;
}

.security-pillar-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.security-pillar-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Deficit Balancer Interactive Pos Belanja Chips */
.deficit-pos-chip {
  cursor: pointer;
  margin: 0;
  user-select: none;
  display: inline-flex;
}

.deficit-pos-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.deficit-pos-chip .chip-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 9999px;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #64748b;
  transition: all 0.15s ease-in-out;
}

.deficit-pos-chip input[type="checkbox"]:checked + .chip-label {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #3b82f6;
  color: #1d4ed8;
  box-shadow: 0 2px 5px rgba(59, 130, 246, 0.18);
  font-weight: 700;
}

.deficit-pos-chip:hover .chip-label {
  border-color: #94a3b8;
  transform: translateY(-1px);
}

/* Komparasi Dokumen RKA - Progres Bar Import Card */
.diff-import-progress-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #2563eb !important;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  animation: slideDownDiffCard 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  transition: all 0.3s ease;
}

@keyframes slideDownDiffCard {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.diff-import-progress-card.is-finished {
  border-left-color: #10b981 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.diff-import-progress-card .progress {
  height: 10px;
  border-radius: 9999px;
  background-color: #f1f5f9;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.diff-import-progress-card .progress-bar {
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  transition: width 0.22s ease-out;
}

.diff-import-progress-card.is-finished .progress-bar {
  background: linear-gradient(90deg, #10b981, #059669);
}

.diff-import-progress-card .diff-progress-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #2563eb;
  transition: all 0.25s ease;
}

.diff-import-progress-card.is-finished .diff-progress-icon-box {
  background: #dcfce7;
  color: #16a34a;
}
