/* ═══════════════════════════════════════════════════════════════════
   VietTinPay AI — Enterprise Left Sidebar & Unified Light Theme
   ═══════════════════════════════════════════════════════════════════ */

/* Critical Anti-FOUC & Anti-Layout-Shift Rules (Zero unstyled flashing) */
[hidden], .hidden, div.hidden, section.hidden, p.hidden, span.hidden, svg.hidden, form.hidden {
  display: none !important;
}

svg {
  max-width: 100%;
  box-sizing: border-box;
}

.vtp-brand-logo-badge svg,
.vtp-sidebar-brand svg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
}

.vtp-menu-icon svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
}

/* Slim Modern Glowing Top Progress Loader */
#vtp-top-loader {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #38bdf8, #6366f1);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7), 0 0 4px rgba(37, 99, 235, 0.8);
  z-index: 99999;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  pointer-events: none;
  border-radius: 0 2px 2px 0;
}

#vtp-top-loader.active {
  width: 75%;
}

#vtp-top-loader.done {
  width: 100%;
  opacity: 0;
  transition: width 0.15s ease, opacity 0.3s ease 0.1s;
}

:root {
  --vtp-sidebar-w: 280px;
  --vtp-sidebar-bg: #ffffff;
  --vtp-sidebar-border: #e2e8f0;
  --vtp-bg: #f8fafc;
  --vtp-card-bg: #ffffff;
  --vtp-primary: #2563eb;
  --vtp-primary-light: #eff6ff;
  --vtp-primary-hover: #1d4ed8;
  --vtp-text-title: #0f172a;
  --vtp-text-body: #334155;
  --vtp-text-muted: #64748b;
  --vtp-radius: 12px;
}

/* Base Body Reset to Clean Unified Light Theme with Smooth Transition */
body {
  background-color: #f8fafc !important;
  background-image: none !important;
  color: var(--vtp-text-body) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  transition: opacity 0.15s ease-out;
}

body.vtp-navigating {
  opacity: 0.75;
}

/* Remove old page rainbow gradients and dark body overrides */
body.bg-gradient-to-r,
body.bg-slate-950,
body.bg-slate-900 {
  background: #f8fafc !important;
}

/* Desktop Layout */
@media (min-width: 1024px) {
  body {
    padding-left: var(--vtp-sidebar-w) !important;
  }

  .vtp-mobile-header {
    display: none !important;
  }

  .vtp-main-container {
    padding: 24px 36px;
    max-width: 1720px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Mobile Layout */
@media (max-width: 1023px) {
  body {
    padding-left: 0 !important;
  }

  .vtp-main-container {
    padding: 16px 14px;
    width: 100%;
    box-sizing: border-box;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   FLOATING USER FEEDBACK WIDGET & SCREENSHOT PASTE
   ═══════════════════════════════════════════════════════════════════ */

.vtp-feedback-trigger {
  position: fixed;
  bottom: 24px;
  right: 92px;
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  cursor: grab;
  user-select: none;
  touch-action: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vtp-feedback-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.18);
  border-color: #93c5fd;
  color: #2563eb;
}

.vtp-feedback-trigger svg {
  width: 16px;
  height: 16px;
  color: #2563eb;
}

.vtp-feedback-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.vtp-feedback-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.vtp-feedback-modal-overlay.show .vtp-feedback-modal,
.vtp-share-modal-overlay.show .vtp-share-modal {
  transform: scale(1);
}

.vtp-share-modal svg,
.vtp-feedback-modal svg {
  width: 16px;
  height: 16px;
  max-width: 100%;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.vtp-share-modal .vtp-header-icon svg,
.vtp-feedback-modal .vtp-header-icon svg {
  width: 18px;
  height: 18px;
}

#vtp-paste-prompt svg {
  width: 32px !important;
  height: 32px !important;
  margin: 0 auto 4px auto;
  display: block;
}

.vtp-share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.vtp-share-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.vtp-share-modal {
  background: #ffffff;
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
  transform: scale(0.95);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.vtp-feedback-modal {
  background: #ffffff;
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px 24px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
  border: 1px solid #e2e8f0;
  transform: scale(0.95);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════════════════════
/* ═══════════════════════════════════════════════════════════════════
   MODERN FLOATING TOAST NOTIFICATION (BANK-GRADE UI)
   ═══════════════════════════════════════════════════════════════════ */
.vtp-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
  max-width: 420px;
}

.vtp-toast {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #ffffff;
  color: #1e293b;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  animation: vtpToastIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.vtp-toast.toast-success {
  background: #ffffff;
  border-left: 4px solid #10b981;
}

.vtp-toast.toast-error {
  background: #ffffff;
  border-left: 4px solid #ef4444;
}

.vtp-toast.toast-warning {
  background: #ffffff;
  border-left: 4px solid #f59e0b;
}

.vtp-toast.toast-info {
  background: #ffffff;
  border-left: 4px solid #3b82f6;
}

@keyframes vtpToastIn {
  from {
    opacity: 0;
    transform: translateX(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.vtp-toast.vtp-toast-out {
  opacity: 0;
  transform: translateX(20px) scale(0.95);
}

.vtp-feedback-modal-overlay.show .vtp-feedback-modal {
  transform: scale(1);
}

.vtp-paste-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vtp-paste-zone:hover,
.vtp-paste-zone.dragover {
  border-color: #2563eb;
  background: #eff6ff;
}

.vtp-paste-zone.has-image {
  border-style: solid;
  border-color: #bfdbfe;
  background: #ffffff;
}

.vtp-preview-box {
  position: relative;
  display: inline-block;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.vtp-preview-box img {
  max-height: 180px;
  width: auto;
  display: block;
  object-fit: contain;
}

.vtp-remove-img-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.75);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}

.vtp-remove-img-btn:hover {
  background: #ef4444;
}

/* Multi-image feedback grid */
.vtp-multi-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
}

.vtp-multi-img-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #cbd5e1;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.vtp-multi-img-card:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(37,99,235,0.15);
}

.vtp-multi-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vtp-multi-img-del {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.vtp-multi-img-del:hover {
  background: #dc2626;
  transform: scale(1.15);
}

.vtp-multi-img-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(15, 23, 42, 0.85);
  color: #93c5fd;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: monospace;
}

.vtp-multi-img-add {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1.5px dashed #93c5fd;
  background: #eff6ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: #2563eb;
  font-weight: 700;
  font-size: 11px;
  transition: all 0.15s ease;
}

.vtp-multi-img-add:hover {
  background: #dbeafe;
  border-color: #2563eb;
  transform: scale(1.03);
}

/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR COMPONENT
   ═══════════════════════════════════════════════════════════════════ */

.vtp-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--vtp-sidebar-w);
  background: var(--vtp-sidebar-bg);
  border-right: 1px solid var(--vtp-sidebar-border);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 1px 0 10px rgba(0, 0, 0, 0.02);
  user-select: none;
}

@media (max-width: 1023px) {
  .vtp-sidebar {
    transform: translateX(-100%);
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
  }
  .vtp-sidebar.open {
    transform: translateX(0);
  }
}

/* Brand Header */
.vtp-sidebar-brand {
  padding: 14px 16px 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  flex-shrink: 0;
}

.vtp-brand-logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.vtp-brand-logo-badge svg {
  width: 20px;
  height: 20px;
}

.vtp-brand-info {
  display: flex;
  flex-direction: column;
}

.vtp-brand-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--vtp-text-title);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.vtp-brand-subtitle {
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Nav Menu Content (Scrollable) */
.vtp-sidebar-menu {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 transparent;
}

.vtp-sidebar-menu::-webkit-scrollbar {
  width: 3.5px;
}

.vtp-sidebar-menu::-webkit-scrollbar-track {
  background: transparent;
}

.vtp-sidebar-menu::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

.vtp-sidebar-menu:hover::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}

/* ═══════════════════════════════════════════════════════════════════
   MENU HIERARCHY: MENU TỔNG (PARENT CARD) & SUBMENU CON (INDENTED TREE)
   ═══════════════════════════════════════════════════════════════════ */

.vtp-menu-section {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* 1. Menu Tổng (Parent Header Card) */
.vtp-parent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 9px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 8px;
}

.vtp-parent-header:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.vtp-parent-header.has-active {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.vtp-parent-header.has-active .vtp-parent-title {
  color: #1d4ed8;
  font-weight: 700;
}

.vtp-parent-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.vtp-parent-icon-box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.vtp-parent-icon-box svg {
  width: 14px;
  height: 14px;
}

.vtp-parent-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.vtp-parent-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.vtp-parent-count {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 1px 5px;
  border-radius: 9999px;
  line-height: 1.2;
}

.vtp-parent-header.has-active .vtp-parent-count {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.vtp-parent-chevron {
  width: 13px;
  height: 13px;
  color: #94a3b8;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.vtp-menu-section.collapsed .vtp-parent-chevron {
  transform: rotate(-90deg);
}

/* 2. Submenu (Menu Con with Indented Branch Tree) */
.vtp-submenu-tree {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 17px;
  padding-left: 10px;
  border-left: 1.5px solid #e2e8f0;
  margin-top: 4px;
  margin-bottom: 6px;
  position: relative;
  transition: all 0.2s ease;
}

.vtp-menu-section.collapsed .vtp-submenu-tree {
  display: none;
}

/* Submenu Item */
.vtp-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid transparent;
}

.vtp-menu-item:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #f1f5f9;
}

.vtp-menu-item.active {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #dbeafe !important;
  font-weight: 600;
}

/* Branch indicator: connects active item directly to the left tree guideline */
.vtp-menu-item.active::before {
  content: "";
  position: absolute;
  left: -11.5px;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5px;
  height: 16px;
  background: #2563eb;
  border-radius: 2px;
}

/* Fallback legacy classes */
.vtp-menu-section-label {
  display: none;
}
.vtp-menu-list {
  display: flex;
  flex-direction: column;
  gap: 1.5px;
}

/* SVG Icon in Menu */
.vtp-menu-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #64748b;
  transition: color 0.15s ease;
}

.vtp-menu-item:hover .vtp-menu-icon {
  color: #1e293b;
}

.vtp-menu-item.active .vtp-menu-icon {
  color: #2563eb;
}

.vtp-menu-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.vtp-menu-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* Badges: Semantic, Elegant & Crisp */
.vtp-menu-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 1.5px 7px;
  border-radius: 9999px;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
}

.vtp-badge-ai {
  background: #eef2ff !important;
  color: #4f46e5 !important;
  border: 1px solid #c7d2fe !important;
}

.vtp-badge-bhxh {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border: 1px solid #a7f3d0 !important;
}

.vtp-badge-vip {
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
  font-weight: 800 !important;
}

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

.vtp-badge-hot {
  background: #fff1f2 !important;
  color: #e11d48 !important;
  border: 1px solid #fecdd3 !important;
  font-weight: 800 !important;
  animation: vtpBadgePulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes vtpBadgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.88; transform: scale(0.97); }
}

.vtp-menu-item.active .vtp-menu-badge.vtp-badge-ai {
  background: #e0e7ff !important;
  color: #3730a3 !important;
  border-color: #a5b4fc !important;
}

.vtp-menu-item.active .vtp-menu-badge.vtp-badge-hot {
  background: #ffe4e6 !important;
  color: #be123c !important;
  border-color: #fda4af !important;
}

/* Sidebar Footer & User Profile */
.vtp-sidebar-footer {
  padding: 8px 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #fafafa;
  flex-shrink: 0;
}

.vtp-user-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 5px;
  border-radius: 9px;
}

.vtp-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #3730a3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.12);
  border: 1px solid #c7d2fe;
}

.vtp-user-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vtp-user-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--vtp-text-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vtp-user-role {
  font-size: 10px;
  color: #16a34a;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.vtp-status-dot {
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.vtp-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vtp-logout-btn:hover {
  background: #fef2f2;
  border-color: #fecdd3;
  color: #e11d48;
}

.vtp-logout-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.vtp-logout-btn svg {
  width: 15px;
  height: 15px;
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE TOP HEADER & BACKDROP
   ═══════════════════════════════════════════════════════════════════ */

.vtp-mobile-header {
  height: 56px;
  background: #ffffff;
  border-bottom: 1px solid var(--vtp-sidebar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.vtp-mobile-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f5f9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vtp-text-title);
  cursor: pointer;
}

.vtp-mobile-toggle-btn svg {
  width: 20px;
  height: 20px;
}

.vtp-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.vtp-sidebar-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════════════
   UNIVERSAL PROFILE CONTEXT BAR (OPTIONAL MÃ HỒ SƠ TOÀN CỤC)
   ═══════════════════════════════════════════════════════════════════ */

.vtp-profile-context-bar {
  background: linear-gradient(135deg, #f8faff 0%, #f1f5fd 50%, #faf5ff 100%);
  border: 1.5px solid #e0e7ff;
  border-radius: 16px;
  padding: 10px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.06);
  font-family: inherit;
  transition: all 0.2s ease;
}

.vtp-profile-context-bar:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.vtp-pcb-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.vtp-pcb-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
  flex-shrink: 0;
}

.vtp-pcb-icon svg {
  width: 18px !important;
  height: 18px !important;
}

.vtp-pcb-title-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.vtp-pcb-label {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #3730a3;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vtp-pcb-opt-tag {
  background: #e0e7ff;
  color: #4338ca;
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 700;
}

.vtp-pcb-sub {
  font-size: 11px;
  color: #64748b;
}

.vtp-pcb-input-wrap {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #c7d2fe;
  border-radius: 10px;
  padding: 2px 4px 2px 10px;
  gap: 6px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
}

.vtp-pcb-input-wrap:focus-within {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.vtp-pcb-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #1e1b4b;
  border: none;
  outline: none;
  background: transparent;
  width: 170px;
}

.vtp-pcb-input::placeholder {
  font-weight: 500;
  font-size: 11.5px;
  color: #94a3b8;
  font-family: inherit;
}

.vtp-pcb-btn-sync {
  padding: 6px 12px;
  border-radius: 8px;
  background: #4f46e5;
  color: #ffffff;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.vtp-pcb-btn-sync:hover {
  background: #4338ca;
}

.vtp-pcb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.vtp-pcb-badge.active {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.vtp-pcb-badge.inactive {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.vtp-pcb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
}

.vtp-pcb-badge.active .vtp-pcb-dot {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.vtp-pcb-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vtp-pcb-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
  transition: all 0.15s;
}

.vtp-pcb-action-link:hover {
  background: linear-gradient(135deg, #4338ca, #3730a3);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

.vtp-pcb-btn-tool {
  padding: 6px 10px;
  border-radius: 8px;
  background: #ffffff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.vtp-pcb-btn-tool:hover {
  background: #eff6ff;
  border-color: #a5b4fc;
}

.vtp-pcb-btn-clear {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ffffff;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.vtp-pcb-btn-clear:hover {
  color: #ef4444;
  border-color: #fca5a5;
  background: #fef2f2;
}

@media (max-width: 768px) {
  .vtp-profile-context-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .vtp-pcb-left, .vtp-pcb-right {
    width: 100%;
    justify-content: space-between;
  }
  .vtp-pcb-input-wrap {
    flex: 1;
  }
  .vtp-pcb-input {
    width: 100%;
  }
}

