/* ==========================================================================
   Sumadhura Market Research & Competitive Intelligence Portal
   Executive Ultra-Premium Design System & Collapsing Navigation
   ========================================================================== */

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

:root {
  /* Color Palette - Executive Sapphire, Obsidian & Slate */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-subtle: #eff6ff;
  --primary-border: #bfdbfe;
  
  --sidebar-bg: #0b1329;
  --sidebar-surface: #131d38;
  --sidebar-border: #1e293b;
  --sidebar-text: #94a3b8;
  --sidebar-text-hover: #ffffff;
  --sidebar-active-bg: rgba(37, 99, 235, 0.18);
  --sidebar-active-text: #60a5fa;
  --sidebar-active-bar: #38bdf8;
  
  --accent-gold: #d97706;
  --accent-gold-subtle: #fef3c7;
  --accent-emerald: #059669;
  --accent-emerald-subtle: #ecfdf5;
  --accent-rose: #e11d48;
  --accent-rose-subtle: #fff1f2;
  --accent-indigo: #4f46e5;
  --accent-indigo-subtle: #eef2ff;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.1), 0 6px 16px -2px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.15);
}

/* Base Reset & Compact Scale */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  font-size: 0.84rem;
  line-height: 1.45;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1, .h1 { font-size: 1.4rem; font-weight: 800; }
h2, .h2 { font-size: 1.2rem; font-weight: 700; }
h3, .h3 { font-size: 1.05rem; font-weight: 700; }
h4, .h4 { font-size: 0.95rem; }
h5, .h5 { font-size: 0.86rem; }
h6, .h6 { font-size: 0.78rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
}

/* Layout Shell */
.app-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ==========================================================================
   COLLAPSIBLE & RESPONSIVE SIDEBAR
   ========================================================================== */
.sidebar {
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 1030;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.25s ease, max-width 0.25s ease, transform 0.25s ease;
  position: relative;
}

/* Desktop Collapsed State */
.sidebar.collapsed,
body.sidebar-collapsed .sidebar {
  width: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
}

.sidebar.collapsed .sidebar-brand-text,
.sidebar.collapsed .sidebar-nav .link-text,
.sidebar.collapsed .sidebar-nav span,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .sidebar-footer span:first-child,
body.sidebar-collapsed .sidebar .sidebar-brand-text,
body.sidebar-collapsed .sidebar .sidebar-nav .link-text,
body.sidebar-collapsed .sidebar .sidebar-nav span,
body.sidebar-collapsed .sidebar .nav-badge,
body.sidebar-collapsed .sidebar .sidebar-footer span:first-child {
  display: none !important;
}

.sidebar.collapsed .nav-section-title,
.sidebar.collapsed .nav-section-label,
body.sidebar-collapsed .sidebar .nav-section-title,
body.sidebar-collapsed .sidebar .nav-section-label {
  font-size: 0 !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 10px 12px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: none !important;
}

.sidebar.collapsed .nav-section-title i,
body.sidebar-collapsed .sidebar .nav-section-title i {
  display: none !important;
}

.sidebar.collapsed .sidebar-brand,
body.sidebar-collapsed .sidebar .sidebar-brand {
  justify-content: center;
  padding: 12px 0;
}

.sidebar.collapsed .sidebar-brand a,
body.sidebar-collapsed .sidebar .sidebar-brand a {
  justify-content: center;
  gap: 0 !important;
  width: 100%;
}


.sidebar.collapsed .sidebar-nav,
body.sidebar-collapsed .sidebar .sidebar-nav {
  padding: 10px 6px 18px;
}

.sidebar.collapsed .sidebar-nav a,
.sidebar.collapsed .sidebar-link,
body.sidebar-collapsed .sidebar .sidebar-nav a,
body.sidebar-collapsed .sidebar .sidebar-link {
  justify-content: center;
  padding: 10px 0;
  margin-bottom: 4px;
  position: relative;
}

.sidebar.collapsed .sidebar-nav a i,
.sidebar.collapsed .sidebar-link i,
body.sidebar-collapsed .sidebar .sidebar-nav a i,
body.sidebar-collapsed .sidebar .sidebar-link i {
  font-size: 1.2rem;
  width: auto;
  margin: 0 !important;
}

.sidebar.collapsed .sidebar-nav a.active::before,
body.sidebar-collapsed .sidebar .sidebar-nav a.active::before {
  left: 2px;
}

.sidebar.collapsed .sidebar-footer,
body.sidebar-collapsed .sidebar .sidebar-footer {
  justify-content: center;
  padding: 10px 0;
}

/* Tooltip for collapsed sidebar (Escalation Tracking style) */
.sidebar.collapsed .sidebar-link::after,
.sidebar.collapsed .sidebar-nav a::after,
body.sidebar-collapsed .sidebar .sidebar-link::after,
body.sidebar-collapsed .sidebar .sidebar-nav a::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: #0f172a;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-in-out;
  margin-left: 10px;
  z-index: 9999;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
}

.sidebar.collapsed .sidebar-link:hover::after,
.sidebar.collapsed .sidebar-nav a:hover::after,
body.sidebar-collapsed .sidebar .sidebar-link:hover::after,
body.sidebar-collapsed .sidebar .sidebar-nav a:hover::after {
  opacity: 1;
}

.sidebar-brand {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--sidebar-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
}

.sidebar-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-brand-icon .sidebar-brand-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-brand-text h1,
.sidebar-brand-name {
  font-size: 0.94rem;
  font-weight: 800;
  color: #d6a94e;
  letter-spacing: 0.06em;
  margin: 0;
  line-height: 1.1;
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

.sidebar-brand-text span,
.sidebar-brand-tag {
  font-size: 0.63rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
}

.sidebar-nav {
  padding: 10px 10px 18px;
  flex: 1;
  overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--sidebar-border);
  border-radius: 4px;
}

.nav-section-title {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.08em;
  padding: 12px 10px 4px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 4px;
}

.nav-section-title:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 4px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--sidebar-text);
  margin-bottom: 2px;
  position: relative;
  transition: all 0.15s ease-in-out;
}

.sidebar-nav a i {
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
  color: #64748b;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.sidebar-nav a:hover {
  background-color: var(--sidebar-surface);
  color: var(--sidebar-text-hover);
}

.sidebar-nav a:hover i {
  color: #94a3b8;
}

.sidebar-nav a.active {
  background: var(--sidebar-active-bg);
  color: #ffffff;
  font-weight: 600;
}

.sidebar-nav a.active i {
  color: var(--sidebar-active-bar);
}

.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 6px;
  bottom: 6px;
  width: 3.5px;
  border-radius: 0 4px 4px 0;
  background-color: var(--sidebar-active-bar);
  box-shadow: 0 0 10px var(--sidebar-active-bar);
}

.sidebar-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--sidebar-border);
  background: rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   TOP HEADER & BREADCRUMBS
   ========================================================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--bg-canvas);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-header {
  height: 52px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1060;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.sidebar-toggle-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 8px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
}

.sidebar-toggle-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.sidebar-toggle-btn:active {
  transform: scale(0.95);
  background: #e2e8f0;
}

.sidebar-toggle-btn.active {
  background: var(--primary-subtle);
  color: var(--primary);
  border-color: var(--primary-border);
}

/* User Dropdown & Profile Navigation */
.user-dropdown-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 3px 10px 3px 4px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  outline: none;
}

.user-dropdown-btn:hover,
.user-dropdown-btn:focus,
.user-dropdown-btn[aria-expanded="true"] {
  background: var(--bg-surface-subtle);
  border-color: #94a3b8;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.user-avatar-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.user-avatar-md {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  flex-shrink: 0;
}

.user-name-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.user-role-text {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.user-dropdown-menu {
  min-width: 240px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.15), 0 0 1px rgba(15, 23, 42, 0.1);
  padding: 6px;
  z-index: 1100;
}

.user-dropdown-menu .dropdown-item {
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  padding: 7px 12px;
}

.user-dropdown-menu .dropdown-item:hover {
  background-color: var(--primary-subtle);
  color: var(--primary-dark);
}

.user-dropdown-menu .dropdown-item.text-danger:hover {
  background-color: var(--accent-rose-subtle);
  color: var(--accent-rose) !important;
}

.page-body {
  padding: 20px 24px;
  flex: 1;
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
}

.page-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-subtitle {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.4;
}

/* ==========================================================================
   EXECUTIVE KPI METRIC CARDS
   ========================================================================== */
.kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.02);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.kpi-card.kpi-primary::before { background: linear-gradient(90deg, #2563eb, #38bdf8); }
.kpi-card.kpi-success::before { background: linear-gradient(90deg, #059669, #34d399); }
.kpi-card.kpi-warning::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.kpi-card.kpi-danger::before { background: linear-gradient(90deg, #e11d48, #f43f5e); }
.kpi-card.kpi-info::before { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.kpi-card.kpi-indigo::before { background: linear-gradient(90deg, #4f46e5, #818cf8); }

.kpi-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.kpi-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* ==========================================================================
   CARDS & PANELS
   ========================================================================== */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.02);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
  margin-bottom: 24px;
}

.card:hover {
  box-shadow: 0 6px 20px -2px rgba(15, 23, 42, 0.07);
}

.card-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body {
  padding: 20px 24px;
}

.card-body.p-0 {
  padding: 0 !important;
}

.card-footer {
  background: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-color);
  padding: 14px 24px;
  font-size: 0.78rem;
}

/* Glassmorphic Floating Toolbar */
.premium-toolbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  margin-bottom: 20px;
}

/* ==========================================================================
   TABLES & DATAGRIDS
   ========================================================================== */
.table {
  font-size: 0.82rem;
  color: var(--text-main);
  margin-bottom: 0;
}

.table th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-surface-subtle);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 14px;
  white-space: nowrap;
}

.table td {
  padding: 10px 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-subtle);
}

.table-hover tbody tr {
  transition: background-color 0.12s ease;
}

.table-hover tbody tr:hover td {
  background-color: #f8fafc;
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */
.btn {
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-sm {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 1px solid #1d4ed8;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  border-color: #1e40af;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-outline-primary {
  border-color: var(--primary-border);
  color: var(--primary);
  background: #ffffff;
}

.btn-outline-primary:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-dark {
  background: #0f172a;
  border-color: #0f172a;
}
.btn-dark:hover {
  background: #1e293b;
  border-color: #1e293b;
  transform: translateY(-1px);
}

/* Forms & Inputs */
.form-control, .form-select {
  font-size: 0.86rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  padding: 9px 14px;
  min-height: 42px;
  color: #0f172a;
  background-color: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.form-control-sm, .form-select-sm {
  font-size: 0.8rem;
  padding: 6px 12px;
  min-height: 34px;
  border-radius: 6px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
  display: block;
}

/* Pills & Badges */
.badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.bg-primary-subtle { background-color: #eff6ff !important; color: #1e40af !important; border: 1px solid #bfdbfe; }
.bg-success-subtle { background-color: #ecfdf5 !important; color: #065f46 !important; border: 1px solid #a7f3d0; }
.bg-warning-subtle { background-color: #fffbeb !important; color: #92400e !important; border: 1px solid #fde68a; }
.bg-danger-subtle { background-color: #fff1f2 !important; color: #9f1239 !important; border: 1px solid #fecdd3; }
/* ==========================================================================
   LEGACY & CUSTOM COMPONENT BRIDGES
   ========================================================================== */
.card-custom {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.02);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  margin-bottom: 24px;
  padding: 24px 28px !important;
}

.card-custom:hover {
  box-shadow: 0 6px 20px -2px rgba(15, 23, 42, 0.07);
}

.btn-brand {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 1px solid #1d4ed8;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  font-weight: 600;
  border-radius: 8px;
  padding: 6px 14px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-brand:hover, .btn-brand:focus {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  border-color: #1e40af;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-outline-brand {
  border: 1px solid var(--primary-border);
  color: var(--primary) !important;
  background: #ffffff;
  font-weight: 600;
  border-radius: 8px;
  padding: 6px 14px;
  transition: all 0.15s ease;
}

.btn-outline-brand:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
  color: var(--primary-dark) !important;
  transform: translateY(-1px);
}

.brand-text, .serif {
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Modals */
.modal-content {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 14px 20px;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface-subtle);
  padding: 12px 20px;
}

/* Project Profile & Pill Tags */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pill-own {
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.pill-competitor {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.pill-published {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.pill-draft {
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.pill-under_review {
  background-color: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.pill-rejected {
  background-color: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

/* Key-Value Spec Rows */
.spec-list {
  display: flex;
  flex-direction: column;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.84rem;
}

.spec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-item:first-child {
  padding-top: 0;
}

.spec-label {
  color: #64748b;
  font-weight: 500;
}

.spec-value {
  font-weight: 700;
  color: #0f172a;
  text-align: right;
}

/* Executive Spec Tile Grid System */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.spec-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.spec-tile:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
  transform: translateY(-2px);
}

.spec-tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.spec-tile-icon.icon-emerald {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.spec-tile-icon.icon-amber {
  background: #fffbeb;
  color: #d97706;
  border-color: #fde68a;
}

.spec-tile-icon.icon-indigo {
  background: #eef2ff;
  color: #4f46e5;
  border-color: #c7d2fe;
}

.spec-tile-icon.icon-rose {
  background: #fff1f2;
  color: #e11d48;
  border-color: #fecdd3;
}

.spec-tile-icon.icon-slate {
  background: #f8fafc;
  color: #475569;
  border-color: #e2e8f0;
}

.spec-tile-content {
  flex: 1;
  min-width: 0;
}

.spec-tile-label {
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 3px;
  line-height: 1.2;
}

.spec-tile-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  word-break: break-word;
}

.spec-tile-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 4px;
  line-height: 1.3;
}

/* Executive Card Header System */
.card-header-executive {
  background: #ffffff;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card-header-executive .header-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header-executive .header-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.card-header-executive .header-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.card-header-executive .header-subtitle {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

/* Project Lifecycle Stepper */
.lifecycle-stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.lifecycle-step {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.lifecycle-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.lifecycle-step.active .lifecycle-step-icon {
  background: #eff6ff;
  border-color: #2563eb;
  color: #2563eb;
}

.lifecycle-step.completed .lifecycle-step-icon {
  background: #ecfdf5;
  border-color: #059669;
  color: #059669;
}

.lifecycle-step-body {
  min-width: 0;
}

.lifecycle-step-label {
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  line-height: 1.2;
}

.lifecycle-step-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

/* Rate Card Hero Banner */
.rate-card-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.rate-card-hero .rate-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.rate-card-hero .rate-unit {
  font-size: 0.85rem;
  font-weight: 500;
  color: #94a3b8;
}

.rate-card-hero .rate-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

/* Bank Badges */
.bank-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bank-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.15s ease;
}

.bank-chip:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.bank-chip i {
  color: #2563eb;
}

/* Proximity Landmark Card */
.proximity-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.18s ease;
}

.proximity-tile:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.proximity-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* SWOT Executive Styling */
.swot-card {
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  background: #ffffff;
}

.swot-card.swot-strengths {
  border-top: 4px solid #059669 !important;
}

.swot-card.swot-weaknesses {
  border-top: 4px solid #e11d48 !important;
}

.swot-card.swot-strategy {
  border-top: 4px solid #2563eb !important;
}

.swot-card.swot-persona {
  border-top: 4px solid #475569 !important;
}

.swot-content {
  font-size: 0.86rem;
  line-height: 1.7;
  color: #334155;
}

.swot-placeholder {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 24px 18px;
  text-align: center;
}

.swot-placeholder-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #94a3b8;
}

.swot-placeholder-text {
  font-size: 0.80rem;
  color: #64748b;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* Typology Summary Strip */
.typology-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.typology-summary-item {
  display: flex;
  flex-direction: column;
}

.typology-summary-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 2px;
}

.typology-summary-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

/* Battlecard Executive Item */
.battlecard-luxury-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.battlecard-luxury-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

/* Luxury Project Tabs Navigation System */
.project-tabs-wrapper {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.project-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  border: none;
}

.project-tabs-nav .nav-item {
  margin: 0;
}

.project-tabs-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 10px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.project-tabs-nav .nav-link:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
  border-color: #e2e8f0;
}

.project-tabs-nav .nav-link.active {
  color: #0f172a;
  background: #ffffff;
  border-color: #cbd5e1;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.project-tabs-nav .nav-link.active i {
  color: #2563eb;
}

.tab-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 9999px;
  font-size: 0.70rem;
  font-weight: 700;
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
}

.project-tabs-nav .nav-link.active .tab-pill-badge {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* Nav Tabs Custom (Fallback & Standard) */
.nav-tabs-custom {
  border-bottom: 1px solid #e2e8f0;
  gap: 4px;
}

.nav-tabs-custom .nav-link {
  border: none;
  border-bottom: 2px solid transparent;
  color: #64748b;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 10px 16px;
  border-radius: 8px 8px 0 0;
  transition: all 0.15s ease;
  background: transparent;
}

.nav-tabs-custom .nav-link:hover {
  color: #0f172a;
  background-color: rgba(241, 245, 249, 0.6);
  border-color: transparent;
}

.nav-tabs-custom .nav-link.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  background-color: transparent;
  font-weight: 700;
}

/* Luxury Empty State Component */
.empty-state-luxury {
  padding: 48px 24px;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  margin: 16px 0;
}

.empty-state-luxury-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.empty-state-luxury-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.empty-state-luxury-desc {
  font-size: 0.82rem;
  color: #64748b;
  max-width: 440px;
  margin: 0 auto 16px;
  line-height: 1.5;
}

/* Responsive Shell & Mobile Drawer */
@media (max-width: 991px) {
  .app-wrapper {
    position: relative;
    overflow-x: hidden;
  }

  .sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh !important;
    height: 100dvh !important;
    width: 270px !important;
    min-width: 270px !important;
    max-width: 85vw !important;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1060 !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    border-right: 1px solid var(--sidebar-border);
    display: flex !important;
    flex-direction: column !important;
  }

  .sidebar.mobile-open {
    transform: translateX(0) !important;
  }

  .sidebar-backdrop {
    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: 1055;
    animation: fadeInBackdrop 0.2s ease-out;
  }

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

  .main-content {
    width: 100% !important;
    min-width: 100% !important;
  }

  .page-body {
    padding: 14px;
  }
}

/* ==========================================================================
   DECIMAL SPACING UTILITIES & OVERFLOW HELPERS (POLYFILLS FOR BOOTSTRAP 5)
   ========================================================================== */
.gap-0\.5 { gap: 2px !important; }
.gap-1\.5 { gap: 6px !important; }
.gap-2\.5 { gap: 10px !important; }
.gap-3\.5 { gap: 14px !important; }
.p-0\.5 { padding: 2px !important; }
.p-1\.5 { padding: 6px !important; }
.p-2\.5 { padding: 12px !important; }
.p-3\.5 { padding: 16px !important; }
.px-2\.5 { padding-left: 10px !important; padding-right: 10px !important; }
.px-3\.5 { padding-left: 14px !important; padding-right: 14px !important; }
.py-0\.5 { padding-top: 2px !important; padding-bottom: 2px !important; }
.py-1\.5 { padding-top: 6px !important; padding-bottom: 6px !important; }
.py-2\.5 { padding-top: 10px !important; padding-bottom: 10px !important; }
.py-3\.5 { padding-top: 14px !important; padding-bottom: 14px !important; }
.pb-2\.5 { padding-bottom: 10px !important; }
.pb-3\.5 { padding-bottom: 14px !important; }
.mb-2\.5 { margin-bottom: 10px !important; }
.mb-3\.5 { margin-bottom: 14px !important; }
.me-1\.5 { margin-right: 6px !important; }
.ms-1\.5 { margin-left: 6px !important; }

/* Allow dropdown menus inside cards to overflow without clipping */
.card.overflow-visible,
.card:has(.dropdown) {
  overflow: visible !important;
}

/* Card footer button group spacing */
.card-footer .d-flex {
  gap: 8px;
}

/* ==========================================================================
   DATATABLES ENTERPRISE POLISH & ULTRA-PREMIUM THEME
   ========================================================================== */
.dataTables_wrapper {
  font-family: inherit;
}

.dataTables_wrapper .dataTables_length label {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}

.dataTables_wrapper .dataTables_length select {
  font-size: 0.78rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  padding: 3px 24px 3px 8px;
  color: #1e293b;
  background-color: #ffffff;
  min-height: 30px;
}

.dataTables_wrapper .dataTables_length select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
  outline: none;
}

.dataTables_wrapper .dataTables_filter {
  margin-bottom: 0;
}

.dataTables_wrapper .dataTables_filter label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  width: 100%;
  justify-content: flex-end;
}

.dataTables_wrapper .dataTables_filter input {
  font-size: 0.78rem;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  padding: 5px 14px;
  background-color: #f8fafc;
  color: #0f172a;
  width: 220px;
  max-width: 100%;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dataTables_wrapper .dataTables_filter input:focus {
  background-color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
  width: 260px;
}

.dataTables_wrapper .dataTables_info {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
  padding-top: 0 !important;
}

.dataTables_wrapper .dataTables_paginate {
  margin-bottom: 0;
}

.dataTables_wrapper .dataTables_paginate .pagination {
  margin: 0 !important;
  gap: 3px;
}

.dataTables_wrapper .dataTables_paginate .page-item .page-link {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px !important;
  color: #475569;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  min-width: 28px;
  text-align: center;
  line-height: 1.2;
}

.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3) !important;
}

.dataTables_wrapper .dataTables_paginate .page-item:not(.active):not(.disabled) .page-link:hover {
  background-color: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link {
  color: #94a3b8;
  background-color: #f8fafc;
  border-color: #e2e8f0;
  opacity: 0.7;
}

table.dataTable thead th {
  font-weight: 600 !important;
  color: #334155 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background-color: #f8fafc !important;
}

table.dataTable tbody tr {
  transition: background-color 0.12s ease;
}

table.dataTable tbody tr:hover {
  background-color: #f8fafc !important;
}

/* Category badge colors */
.bg-purple-subtle { background-color: #faf5ff !important; color: #7e22ce !important; border: 1px solid #e9d5ff !important; }
.text-purple { color: #7e22ce !important; }
.border-purple-subtle { border-color: #e9d5ff !important; }
.bg-teal-subtle { background-color: #f0fdfa !important; color: #0f766e !important; border: 1px solid #99f6e4 !important; }

/* ==========================================================================
   ULTRA-PREMIUM SEGMENTED MASTER TABS DOCK
   ========================================================================== */
.master-tabs-dock {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 4px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.master-tabs-dock .nav-item {
  list-style: none;
}

.master-tabs-dock .master-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  font-size: 0.81rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  text-decoration: none;
  outline: none;
  line-height: 1.2;
}

.master-tabs-dock .master-tab-btn .tab-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: #64748b;
  font-size: 0.88rem;
  transition: all 0.18s ease;
}

.master-tabs-dock .master-tab-btn .tab-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  min-width: 20px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  letter-spacing: 0.02em;
  transition: all 0.18s ease;
}

/* Inactive Hover */
.master-tabs-dock .master-tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.7);
  color: #0f172a;
}

.master-tabs-dock .master-tab-btn:hover:not(.active) .tab-icon-wrap {
  color: #2563eb;
}

.master-tabs-dock .master-tab-btn:hover:not(.active) .tab-counter {
  background: #cbd5e1;
  color: #0f172a;
}

/* Active State: Clean elevated card with crisp contrast */
.master-tabs-dock .master-tab-btn.active {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  font-weight: 700 !important;
}

.master-tabs-dock .master-tab-btn.active .tab-icon-wrap {
  background: #eff6ff;
  color: #2563eb;
}

.master-tabs-dock .master-tab-btn.active .tab-counter {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3) !important;
}



