/* ==========================================================================
   IT Bid Auctions - Enterprise B2B Design System & Unified Styles
   Matches Standalone Static Template (Inter / Enterprise Ocean B2B)
   ========================================================================== */

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

/* ==========================================================================
   UNIVERSAL GLOBAL TYPOGRAPHY ENFORCER
   Ensures 'Inter' is applied unconditionally across typography elements
   while protecting icon fonts (Line Awesome, Font Awesome, etc.)
   ========================================================================== */
html,
body,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
p, a, span:not([class*="la-"]):not([class*="fa-"]):not(.la):not(.las):not(.lar):not(.lab):not(.fa):not(.fas):not(.far):not(.fab),
div:not([class*="la-"]):not([class*="fa-"]),
li, ul, ol,
input, button, select, textarea, optgroup,
.btn, .form-control, .form-select,
table, th, td, label, .badge,
.dropdown-menu, .dropdown-item, .nav-link, .modal {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* ==========================================================================
   ICON FONT PROTECTION (Line Awesome, Font Awesome, etc.)
   Ensures icon fonts preserve their font-family and render correctly
   ========================================================================== */
.la,
.las,
.lar,
.lal,
.lad,
.lab,
.la::before,
.las::before,
.lar::before,
.lal::before,
.lad::before,
.lab::before,
[class^="la-"]::before,
[class*=" la-"]::before {
  font-family: "Line Awesome Free" !important;
  font-style: normal !important;
}

.la,
.las,
.la::before,
.las::before {
  font-weight: 900 !important;
}

.lar,
.lar::before {
  font-weight: 400 !important;
}

.lab,
.lab::before {
  font-family: "Line Awesome Brands" !important;
  font-weight: 400 !important;
}

.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands,
.fa::before,
.fas::before,
.far::before,
.fab::before,
.fa-solid::before,
.fa-regular::before,
.fa-brands::before,
[class^="fa-"]::before,
[class*=" fa-"]::before {
  font-family: "Font Awesome 6 Free", "FontAwesome" !important;
  font-style: normal !important;
}

.fa,
.fas,
.fa-solid,
.fa::before,
.fas::before,
.fa-solid::before {
  font-weight: 900 !important;
}

.far,
.fa-regular,
.far::before,
.fa-regular::before {
  font-weight: 400 !important;
}

.fab,
.fa-brands,
.fab::before,
.fa-brands::before {
  font-family: "Font Awesome 6 Brands", "FontAwesome" !important;
}

/* --------------------------------------------------------------------------
   1. Design Tokens & Theme Variables
   -------------------------------------------------------------------------- */

:root,
.mode-light {
  /* Brand Tokens (Matching Template Ocean Theme) */
  --bs-primary: #06b6d4;
  --bs-primary-rgb: 6, 182, 212;
  --bs-primary-hover: #0891b2;
  --bs-primary-active: #0e7490;
  --bs-primary-subtle: rgba(6, 182, 212, 0.12);
  --bs-primary-border-subtle: #a5f3fc;

  --color-brand-50: #ecfeff;
  --color-brand-100: #cffafe;
  --color-brand-200: #a5f3fc;
  --color-brand-300: #67e8f9;
  --color-brand-400: #22d3ee;
  --color-brand-500: #06b6d4;
  --color-brand-600: #0891b2;
  --color-brand-700: #0e7490;
  --color-brand-800: #155e75;
  --color-brand-900: #164e63;

  /* Surfaces & Backgrounds */
  --color-surface-50: #ffffff;
  --color-surface-100: #fafbfc;
  --color-surface-200: #f4f6f9;
  --color-surface-300: #eaeff5;
  --color-surface-450: #d9e1ec;
  --color-surface-500: #ffffff;  /* Card / Container BG */
  --color-surface-600: #f8fafc;  /* Subtle Card Header / Secondary */
  --color-surface-700: #f4f6f9;  /* Section Contrast BG */
  --color-surface-800: #eaeff5;
  --color-surface-900: #f4f6f9;  /* Main Body Background */

  /* Text Colors */
  --color-text-primary: #172935;   /* Dark Headings & High Emphasis */
  --color-text-secondary: #303e67; /* Standard Body Text */
  --color-text-muted: #64748b;     /* Subtitles, Meta & Helpers */
  --color-text-inverse: #ffffff;

  /* Components & Layout Tokens */
  --card-bg: #ffffff;
  --card-bg-subtle: #f8fafc;
  --input-bg: #ffffff;
  --input-border: #d9e1ec;
  --border-color: #eaeff5;
  --border-subtle: #f0f3f8;
  --border-radius-sm: 6px;
  --border-radius: 8px;
  --border-radius-lg: 14px;
  --border-radius-xl: 18px;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: #eaeff5;
  --glass-shadow: rgba(15, 23, 42, 0.04);
}

/* Dark Mode Tokens (Optional toggle via Appearance Studio) */
.mode-dark {
  --bs-primary: #6f6af8;
  --bs-primary-rgb: 111, 106, 248;
  --bs-primary-hover: #817df9;
  --bs-primary-active: #5b56f5;
  --bs-primary-subtle: rgba(111, 106, 248, 0.18);
  --bs-primary-border-subtle: rgba(111, 106, 248, 0.35);

  --color-surface-50: #0f172a;
  --color-surface-100: #131d31;
  --color-surface-200: #1a263f;
  --color-surface-300: #223252;
  --color-surface-450: #2d3f66;
  --color-surface-500: #131c2e;  /* Card BG */
  --color-surface-600: #0f1728;  /* Sub-card BG */
  --color-surface-700: #0c1220;
  --color-surface-800: #080c16;
  --color-surface-900: #090e1a;  /* Body BG */

  --color-text-primary: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-text-inverse: #090e1a;

  --card-bg: #131c2e;
  --card-bg-subtle: #0f1728;
  --input-bg: #0f1728;
  --input-border: #223252;
  --border-color: #1e2c47;
  --border-subtle: #18233a;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(19, 28, 46, 0.95);
  --glass-border: #1e2c47;
  --glass-shadow: rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   Color Palettes (Appearance Studio Engine)
   -------------------------------------------------------------------------- */

/* 1. Ocean Blue (#06b6d4 - Template Default) */
:root, .palette-ocean {
  --bs-primary: #06b6d4;
  --bs-primary-rgb: 6, 182, 212;
  --bs-primary-hover: #0891b2;
  --bs-primary-active: #0e7490;
  --bs-primary-subtle: rgba(6, 182, 212, 0.12);
  --bs-primary-border-subtle: #a5f3fc;
  --color-brand-50: #ecfeff;
  --color-brand-100: #cffafe;
  --color-brand-200: #a5f3fc;
  --color-brand-300: #67e8f9;
  --color-brand-400: #22d3ee;
  --color-brand-500: #06b6d4;
  --color-brand-600: #0891b2;
  --color-brand-700: #0e7490;
  --color-brand-800: #155e75;
  --color-brand-900: #164e63;
}
.mode-dark.palette-ocean,
.mode-dark .palette-ocean {
  --bs-primary: #06b6d4;
  --bs-primary-rgb: 6, 182, 212;
  --bs-primary-hover: #22d3ee;
  --bs-primary-active: #0891b2;
  --bs-primary-subtle: rgba(6, 182, 212, 0.2);
  --bs-primary-border-subtle: rgba(6, 182, 212, 0.4);
}

/* 2. Eco Green (#10b981 - Template) */
.palette-green {
  --bs-primary: #10b981;
  --bs-primary-rgb: 16, 185, 129;
  --bs-primary-hover: #059669;
  --bs-primary-active: #047857;
  --bs-primary-subtle: rgba(16, 185, 129, 0.12);
  --bs-primary-border-subtle: #a7f3d0;
  --color-brand-50: #ecfdf5;
  --color-brand-100: #d1fae5;
  --color-brand-200: #a7f3d0;
  --color-brand-300: #6ee7b7;
  --color-brand-400: #34d399;
  --color-brand-500: #10b981;
  --color-brand-600: #059669;
  --color-brand-700: #047857;
  --color-brand-800: #065f46;
  --color-brand-900: #064e3b;
}
.mode-dark.palette-green,
.mode-dark .palette-green {
  --bs-primary: #10b981;
  --bs-primary-rgb: 16, 185, 129;
  --bs-primary-hover: #34d399;
  --bs-primary-active: #059669;
  --bs-primary-subtle: rgba(16, 185, 129, 0.2);
  --bs-primary-border-subtle: rgba(16, 185, 129, 0.4);
}

/* 3. Cyber Purple (#a855f7 - Template) */
.palette-purple {
  --bs-primary: #a855f7;
  --bs-primary-rgb: 168, 85, 247;
  --bs-primary-hover: #9333ea;
  --bs-primary-active: #7e22ce;
  --bs-primary-subtle: rgba(168, 85, 247, 0.1);
  --bs-primary-border-subtle: #e9d5ff;
  --color-brand-50: #faf5ff;
  --color-brand-100: #f3e8ff;
  --color-brand-200: #e9d5ff;
  --color-brand-300: #d8b4fe;
  --color-brand-400: #c084fc;
  --color-brand-500: #a855f7;
  --color-brand-600: #9333ea;
  --color-brand-700: #7e22ce;
  --color-brand-800: #6b21a8;
  --color-brand-900: #581c87;
}
.mode-dark.palette-purple,
.mode-dark .palette-purple {
  --bs-primary: #a855f7;
  --bs-primary-rgb: 168, 85, 247;
  --bs-primary-hover: #bd7eff;
  --bs-primary-active: #9333ea;
  --bs-primary-subtle: rgba(168, 85, 247, 0.18);
  --bs-primary-border-subtle: rgba(168, 85, 247, 0.35);
}

/* 4. Refurb Orange (#f97316 - Template) */
.palette-orange {
  --bs-primary: #f97316;
  --bs-primary-rgb: 249, 115, 22;
  --bs-primary-hover: #ea580c;
  --bs-primary-active: #c2410c;
  --bs-primary-subtle: rgba(249, 115, 22, 0.1);
  --bs-primary-border-subtle: #fed7aa;
  --color-brand-50: #fff7ed;
  --color-brand-100: #ffedd5;
  --color-brand-200: #fed7aa;
  --color-brand-300: #fdbb2d;
  --color-brand-400: #fb923c;
  --color-brand-500: #f97316;
  --color-brand-600: #ea580c;
  --color-brand-700: #c2410c;
  --color-brand-800: #9a3412;
  --color-brand-900: #7c2d12;
}
.mode-dark.palette-orange,
.mode-dark .palette-orange {
  --bs-primary: #f97316;
  --bs-primary-rgb: 249, 115, 22;
  --bs-primary-hover: #fb923c;
  --bs-primary-active: #ea580c;
  --bs-primary-subtle: rgba(249, 115, 22, 0.18);
  --bs-primary-border-subtle: rgba(249, 115, 22, 0.35);
}

/* 5. Warm Gold (#ca8a04) */
.palette-golden {
  --bs-primary: #ca8a04;
  --bs-primary-rgb: 202, 138, 4;
  --bs-primary-hover: #b07803;
  --bs-primary-active: #966602;
  --bs-primary-subtle: rgba(202, 138, 4, 0.1);
  --bs-primary-border-subtle: #fae8b4;
  --color-brand-50: #fefce8;
  --color-brand-100: #fef9c3;
  --color-brand-200: #fef08a;
  --color-brand-300: #fde047;
  --color-brand-400: #eab308;
  --color-brand-500: #ca8a04;
  --color-brand-600: #a16207;
  --color-brand-700: #854d0e;
  --color-brand-800: #713f12;
  --color-brand-900: #5a310c;
}
.mode-dark.palette-golden,
.mode-dark .palette-golden {
  --bs-primary: #ca8a04;
  --bs-primary-rgb: 202, 138, 4;
  --bs-primary-hover: #eab308;
  --bs-primary-active: #b07803;
  --bs-primary-subtle: rgba(202, 138, 4, 0.18);
  --bs-primary-border-subtle: rgba(202, 138, 4, 0.35);
}

/* 6. Vibrant Yellow (#eab308 - Template) */
.palette-yellow {
  --bs-primary: #eab308;
  --bs-primary-rgb: 234, 179, 8;
  --bs-primary-hover: #ca8a04;
  --bs-primary-active: #a16207;
  --bs-primary-subtle: rgba(234, 179, 8, 0.12);
  --bs-primary-border-subtle: #fef08a;
  --color-brand-50: #fefdf0;
  --color-brand-100: #fef9c3;
  --color-brand-200: #fef08a;
  --color-brand-300: #fde047;
  --color-brand-400: #facc15;
  --color-brand-500: #eab308;
  --color-brand-600: #ca8a04;
  --color-brand-700: #a16207;
  --color-brand-800: #854d0e;
  --color-brand-900: #713f12;
}
.mode-dark.palette-yellow,
.mode-dark .palette-yellow {
  --bs-primary: #eab308;
  --bs-primary-rgb: 234, 179, 8;
  --bs-primary-hover: #fde047;
  --bs-primary-active: #ca8a04;
  --bs-primary-subtle: rgba(234, 179, 8, 0.2);
  --bs-primary-border-subtle: rgba(234, 179, 8, 0.4);
}

/* 7. Crimson Red (#dc2626 - Template) */
.palette-red {
  --bs-primary: #dc2626;
  --bs-primary-rgb: 220, 38, 38;
  --bs-primary-hover: #b91c1c;
  --bs-primary-active: #991b1b;
  --bs-primary-subtle: rgba(220, 38, 38, 0.1);
  --bs-primary-border-subtle: #fca5a5;
  --color-brand-50: #fef2f2;
  --color-brand-100: #fee2e2;
  --color-brand-200: #fca5a5;
  --color-brand-300: #f87171;
  --color-brand-400: #ef4444;
  --color-brand-500: #dc2626;
  --color-brand-600: #b91c1c;
  --color-brand-700: #991b1b;
  --color-brand-800: #7f1d1d;
  --color-brand-900: #450a0a;
}
.mode-dark.palette-red,
.mode-dark .palette-red {
  --bs-primary: #dc2626;
  --bs-primary-rgb: 220, 38, 38;
  --bs-primary-hover: #ef4444;
  --bs-primary-active: #b91c1c;
  --bs-primary-subtle: rgba(220, 38, 38, 0.18);
  --bs-primary-border-subtle: rgba(220, 38, 38, 0.35);
}

/* Theme Logo Switching */
.mode-light .logo-img-dark { display: inline-block !important; }
.mode-light .logo-img-light { display: none !important; }
.mode-dark .logo-img-dark { display: none !important; }
.mode-dark .logo-img-light { display: inline-block !important; }

/* --------------------------------------------------------------------------
   Light / Dark Mode Unified Color Resolution Engine
   Ensures WCAG Compliant Text Visibility Across Both Themes
   -------------------------------------------------------------------------- */

/* --- Light Mode Utility Resolutions --- */
.mode-light .text-dark {
  color: var(--color-text-primary) !important;
}
.mode-light .text-light {
  color: var(--color-text-primary) !important;
}
.mode-light .text-secondary {
  color: var(--color-text-secondary) !important;
}
.mode-light .text-muted {
  color: var(--color-text-muted) !important;
}
.mode-light .text-body {
  color: var(--color-text-secondary) !important;
}
.mode-light a.text-dark {
  color: var(--color-text-primary) !important;
}
.mode-light a.text-dark:hover {
  color: var(--bs-primary) !important;
}
.mode-light a.text-secondary {
  color: var(--color-text-secondary) !important;
}
.mode-light a.text-secondary:hover {
  color: var(--bs-primary) !important;
}
.mode-light .bg-light-subtle {
  background-color: var(--color-surface-600) !important;
  color: var(--color-text-secondary);
}
.mode-light .border-light-subtle {
  border-color: var(--border-color) !important;
}
.mode-light .border-secondary {
  border-color: var(--border-color) !important;
}
.mode-light .bg-dark:not(.badge-custom) {
  background-color: var(--color-surface-600) !important;
  color: var(--color-text-secondary) !important;
  border-color: var(--border-color) !important;
}
.mode-light code {
  color: var(--bs-primary);
  background-color: var(--bs-primary-subtle);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

/* --- Dark Mode Utility Resolutions --- */
.mode-dark .text-dark {
  color: var(--color-text-primary) !important;
}
.mode-dark .text-light {
  color: var(--color-text-primary) !important;
}
.mode-dark .text-secondary {
  color: var(--color-text-secondary) !important;
}
.mode-dark .text-muted {
  color: var(--color-text-muted) !important;
}
.mode-dark .text-body {
  color: var(--color-text-secondary) !important;
}
.mode-dark a.text-dark {
  color: var(--color-text-primary) !important;
  transition: color 0.15s ease-in-out;
}
.mode-dark a.text-dark:hover {
  color: var(--bs-primary) !important;
}
.mode-dark a.text-secondary {
  color: var(--color-text-secondary) !important;
  transition: color 0.15s ease-in-out;
}
.mode-dark a.text-secondary:hover {
  color: var(--bs-primary) !important;
}
.mode-dark .bg-light-subtle {
  background-color: var(--color-surface-600) !important;
  color: var(--color-text-secondary);
}
.mode-dark .border-light-subtle {
  border-color: var(--border-color) !important;
}
.mode-dark .border-secondary {
  border-color: var(--border-color) !important;
}
.mode-dark .bg-dark:not(.badge-custom) {
  background-color: var(--color-surface-600) !important;
  color: var(--color-text-secondary) !important;
  border-color: var(--border-color) !important;
}
.mode-dark code {
  color: var(--color-brand-400);
  background-color: var(--bs-primary-subtle);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

/* Dark Mode Inputs, Search Form, Placeholders */
.mode-dark .form-control,
.mode-dark .form-select,
.mode-dark .form-control-custom,
.mode-dark .form-select-custom,
.mode-dark input,
.mode-dark select,
.mode-dark textarea {
  background-color: var(--input-bg);
  border-color: var(--input-border);
  color: var(--color-text-primary);
}
.mode-dark .form-control:focus,
.mode-dark .form-select:focus,
.mode-dark .form-control-custom:focus,
.mode-dark .form-select-custom:focus,
.mode-dark input:focus,
.mode-dark select:focus,
.mode-dark textarea:focus {
  background-color: var(--input-bg);
  border-color: var(--bs-primary);
  color: var(--color-text-primary);
  box-shadow: 0 0 0 3px var(--bs-primary-subtle);
}
.mode-dark .form-control::placeholder,
.mode-dark .form-control-custom::placeholder,
.mode-dark input::placeholder {
  color: var(--color-text-muted) !important;
  opacity: 1;
}
.mode-dark .hero-nlp-box input.form-control {
  color: var(--color-text-primary) !important;
}
.mode-dark .hero-nlp-box input.form-control::placeholder {
  color: var(--color-text-muted) !important;
  opacity: 1;
}

/* Dark Mode Badges & Compliance Indicators */
.mode-dark .badge-compliance {
  background-color: rgba(34, 183, 131, 0.15);
  color: #34d399;
  border: 1px solid rgba(34, 183, 131, 0.35);
}
.mode-dark .badge-grade-a-plus,
.mode-dark .badge-grade-a,
.mode-dark .bg-success-subtle {
  background-color: rgba(34, 183, 131, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(34, 183, 131, 0.35);
}
.mode-dark .badge-grade-b,
.mode-dark .bg-warning-subtle {
  background-color: rgba(255, 184, 34, 0.15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(255, 184, 34, 0.35);
}
.mode-dark .badge-grade-c,
.mode-dark .badge-grade-scrap,
.mode-dark .bg-danger-subtle {
  background-color: rgba(245, 50, 92, 0.15) !important;
  color: #f87171 !important;
  border: 1px solid rgba(245, 50, 92, 0.35);
}

/* --------------------------------------------------------------------------
   2. Global Typography & Core Elements
   -------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--color-surface-900);
  color: var(--color-text-secondary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 0.875rem; /* 14px - Matches Template Standard */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

main {
  flex: 1 0 auto;
}

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

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

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--color-text-primary);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

h1, .h1 { font-size: 2rem; font-weight: 700; }
h2, .h2 { font-size: 1.5rem; font-weight: 700; }
h3, .h3 { font-size: 1.25rem; font-weight: 600; }
h4, .h4 { font-size: 1.1rem; font-weight: 600; }
h5, .h5 { font-size: 0.95rem; font-weight: 600; }
h6, .h6 { font-size: 0.85rem; font-weight: 600; }

.fs-11 { font-size: 11px !important; }
.fs-12 { font-size: 12px !important; }
.fs-13 { font-size: 13px !important; }
.fs-14 { font-size: 14px !important; }
.fs-15 { font-size: 15px !important; }
.fs-16 { font-size: 16px !important; }
.fs-18 { font-size: 18px !important; }

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-surface-800);
}
::-webkit-scrollbar-thumb {
  background: var(--color-surface-450);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--bs-primary);
}

/* --------------------------------------------------------------------------
   3. Header Navbar (Refined to Match Backend Topbar & Brand)
   -------------------------------------------------------------------------- */

.app-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.55rem 1rem;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  /* padding: 0.15rem 0; */
}

.header-logo-img {
  height: 35px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

/* Navigation Links */
.nav-link-custom {
  color: #555b7e;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: var(--border-radius);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  white-space: nowrap;
}

.mode-dark .nav-link-custom {
  color: #94a3b8;
}

.nav-link-custom:hover {
  color: var(--bs-primary);
  background-color: var(--bs-primary-subtle);
}

.nav-link-custom.active {
  color: var(--bs-primary);
  font-weight: 600;
  background-color: var(--bs-primary-subtle);
}

/* Header Search */
.nav-search-wrapper {
  position: relative;
  width: 100%;
}

.nav-search-input {
  background-color: var(--color-surface-600);
  border: 1px solid var(--input-border);
  color: var(--color-text-secondary);
  border-radius: var(--border-radius);
  font-size: 0.8125rem;
  height: 36px;
  padding: 0.35rem 0.75rem 0.35rem 2.2rem;
  transition: all 0.15s ease;
  width: 100%;
}

.nav-search-input:focus {
  outline: none;
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px var(--bs-primary-subtle);
  background-color: var(--input-bg);
}

.nav-search-input::placeholder {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

.nav-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.nav-search-icon i {
  font-size: 15px;
}

/* Role Badge Selector */
.role-badge-select {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--color-text-secondary);
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 600;
  height: 34px;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}

.role-badge-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px var(--bs-primary-subtle);
}

/* Nav Icon Buttons & Avatar */
.nav-icon-btn {
  background-color: var(--color-surface-600);
  border: 1px solid var(--border-color);
  color: var(--color-text-muted);
  transition: all 0.15s ease;
}

.nav-icon-btn:hover {
  background-color: var(--color-surface-300);
  color: var(--bs-primary);
}

.avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--bs-primary-subtle);
  color: var(--bs-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  border: 1px solid var(--bs-primary-border-subtle);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.avatar-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px var(--bs-primary-subtle);
}

/* Dropdown Menus */
.dropdown-menu-custom {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.35rem;
  z-index: 1050;
}

.dropdown-item-custom {
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: var(--border-radius);
  transition: all 0.12s ease;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.dropdown-item-custom:hover {
  background-color: var(--color-surface-600);
  color: var(--bs-primary);
}

.dropdown-item-custom.danger {
  color: #f5325c;
}

.dropdown-item-custom.danger:hover {
  background-color: rgba(245, 50, 92, 0.08);
  color: #f5325c;
}

.notif-item {
  transition: background-color 0.15s ease;
}
.notif-item:hover {
  background-color: var(--color-surface-600);
}

/* --------------------------------------------------------------------------
   4. Buttons System (Strictly Matched to Backend Admin Buttons)
   -------------------------------------------------------------------------- */

.btn {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.5;
  border-radius: var(--border-radius);
  padding: 0.48rem 1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-sm {
  font-size: 0.75rem;
  padding: 0.32rem 0.7rem;
  border-radius: var(--border-radius);
}

.btn-lg {
  font-size: 0.9rem;
  padding: 0.6rem 1.35rem;
  border-radius: var(--border-radius-lg);
}

/* Primary Button (Matches Backend '+ Add User') */
.btn-primary,
.btn-brand {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px 0 rgba(var(--bs-primary-rgb), 0.35);
}

.btn-primary:hover,
.btn-brand:hover {
  background-color: var(--bs-primary-hover) !important;
  border-color: var(--bs-primary-hover) !important;
  color: #ffffff !important;
  box-shadow: none;
  transform: translateY(-1px);
}

.btn-primary:active,
.btn-brand:active {
  background-color: var(--bs-primary-active) !important;
  border-color: var(--bs-primary-active) !important;
  transform: translateY(0);
}

/* Outline Primary */
.btn-outline-primary,
.btn-outline-brand {
  background-color: transparent !important;
  border-color: var(--bs-primary) !important;
  color: var(--bs-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-brand:hover {
  background-color: var(--bs-primary) !important;
  color: #ffffff !important;
}

/* Subtle / Light Button (Secondary) */
.btn-subtle,
.btn-light {
  background-color: var(--color-surface-500) !important;
  border: 1px solid var(--input-border) !important;
  color: var(--color-text-secondary) !important;
  box-shadow: var(--shadow-xs);
}

.btn-subtle:hover,
.btn-light:hover {
  background-color: var(--color-surface-600) !important;
  color: var(--color-text-primary) !important;
  border-color: var(--color-surface-450) !important;
}

/* --------------------------------------------------------------------------
   5. Form Controls (Input, Select, Textarea)
   -------------------------------------------------------------------------- */

.form-control,
.form-select,
.form-control-custom,
.form-select-custom {
  /* background-color: var(--input-bg); */
  background-color: var(--color-surface-900);
  border: 1px solid var(--input-border);
  color: var(--color-text-secondary);
  border-radius: var(--border-radius);
  font-size: 0.8125rem;
  padding: 0.45rem 0.75rem;
  transition: all 0.15s ease;
  width: 100%;
}

.form-control:focus,
.form-select:focus,
.form-control-custom:focus,
.form-select-custom:focus {
  outline: none;
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px var(--bs-primary-subtle);
  background-color: var(--input-bg);
}

.form-control::placeholder,
.form-control-custom::placeholder {
  color: var(--color-text-muted);
}

.form-label-custom {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 0.35rem;
  display: block;
}

/* --------------------------------------------------------------------------
   6. Cards, Layout & B2B Sections
   -------------------------------------------------------------------------- */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.glass-card:hover {
  border-color: rgba(var(--bs-primary-rgb), 0.35);
  box-shadow: 0 12px 40px 0 var(--glass-shadow), 0 0 15px -3px var(--bs-primary);
}

.card-custom {
  background-color: var(--color-surface-500);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.card-custom:hover {
  border-color: var(--bs-primary-border-subtle);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.card-custom-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-card {
  background-color: var(--color-surface-500);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem;
}

.stat-val {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin-top: 0.25rem;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}


/* --------------------------------------------------------------------------
   7. Badges & Grade Indicators
   -------------------------------------------------------------------------- */

.badge-custom {
  font-size: 0.6875rem; /* 11px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--border-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-brand,
.badge-primary {
  background-color: var(--bs-primary);
  color: #ffffff;
}

.badge-brand-subtle,
.bg-primary-subtle {
  background-color: var(--bs-primary-subtle) !important;
  color: var(--bs-primary) !important;
  border: 1px solid var(--bs-primary-border-subtle);
}

.badge-grade-a-plus,
.badge-grade-a,
.bg-success-subtle {
  background-color: rgba(34, 183, 131, 0.1) !important;
  color: #22b783 !important;
  border: 1px solid rgba(34, 183, 131, 0.25);
}

.badge-grade-b,
.bg-warning-subtle {
  background-color: rgba(255, 184, 34, 0.1) !important;
  color: #d97706 !important;
  border: 1px solid rgba(255, 184, 34, 0.25);
}

.badge-grade-c,
.badge-grade-scrap,
.bg-danger-subtle {
  background-color: rgba(245, 50, 92, 0.1) !important;
  color: #f5325c !important;
  border: 1px solid rgba(245, 50, 92, 0.25);
}

.badge-compliance {
  background-color: rgba(34, 183, 131, 0.08);
  color: #167655;
  border: 1px solid rgba(34, 183, 131, 0.2);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--border-radius-sm);
}

/* --------------------------------------------------------------------------
   8. Hero Section & Search Engine
   -------------------------------------------------------------------------- */

.hero-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--color-surface-900) 100%);
  border-bottom: 1px solid var(--border-color);
}

.mode-dark .hero-section {
  background: linear-gradient(180deg, #131c2e 0%, var(--color-surface-900) 100%);
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.hero-nlp-box {
  background-color: #ffffff;
  border: 1px solid var(--input-border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border-radius: 50px;
  padding: 0.35rem 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mode-dark .hero-nlp-box {
  background-color: var(--card-bg);
  border-color: var(--border-color);
}

.hero-nlp-box:focus-within {
  border-color: var(--bs-primary);
  box-shadow: 0 6px 25px rgba(var(--bs-primary-rgb), 0.12);
}

/* --------------------------------------------------------------------------
   9. Tables, Dropzones, Chat & Components
   -------------------------------------------------------------------------- */

.table-custom {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.table-custom th {
  background-color: var(--color-surface-600);
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  padding: 0.65rem 0.95rem;
  border-bottom: 1px solid var(--border-color);
}

.table-custom td {
  padding: 0.60rem 0.95rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.table-custom tbody tr:hover {
  background-color: var(--color-surface-600);
}

.dropzone-box {
  border: 2px dashed var(--input-border);
  background-color: var(--color-surface-600);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropzone-box:hover {
  border-color: var(--bs-primary);
  background-color: var(--bs-primary-subtle);
}

.rfq-thread-item {
  padding: 0.75rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rfq-thread-item:hover {
  background-color: var(--color-surface-600);
}

.rfq-thread-item.active {
  background-color: var(--bs-primary-subtle);
  border-color: var(--bs-primary);
}

.chat-bubble {
  padding: 0.65rem 0.85rem;
  border-radius: var(--border-radius-lg);
  font-size: 0.8125rem;
  line-height: 1.45;
  margin-bottom: 0.5rem;
  max-width: 85%;
}

.chat-bubble-me {
  background-color: var(--bs-primary-subtle);
  border: 1px solid var(--bs-primary-border-subtle);
  color: var(--color-text-primary);
  margin-left: auto;
}

.chat-bubble-them {
  background-color: var(--color-surface-600);
  border: 1px solid var(--border-color);
  color: var(--color-text-secondary);
  margin-right: auto;
}

.scanner-viewport {
  position: relative;
  height: 200px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--color-surface-800);
}

.laser-active {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #38bdf8, #06b6d4, transparent);
  box-shadow: 0 0 12px #38bdf8, 0 0 20px #06b6d4;
  animation: scanLaser 1.5s ease-in-out infinite alternate;
  z-index: 5;
}

@keyframes scanLaser {
  0% {
    top: 0%;
  }
  100% {
    top: 96%;
  }
}

.detection-box {
  position: absolute;
  border: 2px dashed #f43f5e;
  background-color: rgba(244, 63, 94, 0.2);
  border-radius: 4px;
  pointer-events: none;
  z-index: 4;
}

/* --------------------------------------------------------------------------
   10. Appearance Studio & Footer
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   10. Appearance Studio & Footer (Exact Template Match)
   -------------------------------------------------------------------------- */

.appearance-studio {
  background-color: var(--color-surface-700);
  border-top: 1px solid var(--border-color);
  padding: 1.25rem 1rem;
}

.palette-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.palette-btn:hover {
  transform: scale(1.15);
}

.palette-btn.active {
  border-color: #ffffff;
  box-shadow: 0 0 8px var(--color-brand-500);
}

.text-primary {
  color: var(--bs-primary) !important;
}

.border-primary {
  border-color: var(--bs-primary) !important;
}

.bg-primary {
  background-color: var(--bs-primary) !important;
}

/* --------------------------------------------------------------------------
   11. Universal Footer Component (Exact Template Match)
   -------------------------------------------------------------------------- */

.app-footer {
  background-color: var(--color-surface-800);
  border-top: 1px solid var(--border-color);
  padding: 2.25rem 1rem 2rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  text-align: center;
}

.app-footer a {
  color: var(--color-text-secondary);
  margin: 0 0.65rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.app-footer a:hover {
  color: var(--color-brand-400);
  text-decoration: underline;
}

.animate-pulse {
  animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: .4;
    transform: scale(1.15);
  }
}

/* Modals */
.modal-content-custom {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xl);
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-lg);
}

.modal-header-custom {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
}


.forleft{
  margin-left: -70px !important;
}



.forright{
  margin-right: -70px !important;
}

/* --------------------------------------------------------------------------
   7. Wishlist Heart System & Floating Notifications
   -------------------------------------------------------------------------- */

.btn-wishlist {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-wishlist:hover {
  transform: scale(1.12);
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.btn-wishlist:active {
  transform: scale(0.92);
}

.btn-wishlist.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #f5325c;
  box-shadow: 0 4px 12px rgba(245, 50, 92, 0.35);
  animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-wishlist.active i {
  color: #f5325c !important;
}

.mode-dark .btn-wishlist.active {
  background: #1e293b;
  border-color: rgba(245, 50, 92, 0.5);
  color: #f5325c;
  box-shadow: 0 4px 14px rgba(245, 50, 92, 0.35);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Toast Notification for Wishlist */
.wishlist-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--color-text-primary);
  padding: 0.75rem 1.15rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.wishlist-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   8. Customer & Vendor Onboarding Showcase
   -------------------------------------------------------------------------- */

.onboarding-section {
  position: relative;
  background-color: transparent;
}

.onboarding-visual-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.onboarding-img-container {
  border-radius: 28px;
  height: 460px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: var(--color-surface-600);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1), 0 0 1px 1px var(--border-color);
}

.onboarding-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.onboarding-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
}

/* Floating Badges */
.onboarding-user-badge {
  left: 477px;
  bottom: 95px;
  /* right: 15px; */
  z-index: 3;
  width: 60px;
  height: 60px;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.12), 0 6px 12px -4px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid var(--border-color) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.onboarding-user-badge:hover {
  transform: translateY(-2px) scale(1.04);
}

.onboarding-chart-badge {
  bottom: -20px;
  right: 35px;
  z-index: 4;
  min-width: 175px;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.15), 0 8px 16px -4px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid var(--border-color) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.onboarding-chart-badge:hover {
  transform: translateY(-2px);
}

.mode-dark .onboarding-user-badge,
.mode-dark .onboarding-chart-badge {
  background-color: var(--color-surface-600) !important;
  border-color: var(--border-color) !important;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.5) !important;
}

/* Mini Bar Chart Bars */
.mini-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 38px;
  padding-top: 4px;
}

.mini-bar-chart .bar {
  flex: 1;
  width: 5px;
  border-radius: 3px;
  display: inline-block;
}

/* Right Column Content Blocks */
.onboarding-icon-pill {
  width: 52px;
  height: 52px;
  background-color: var(--bs-primary-subtle);
  color: var(--bs-primary);
  border: 1px solid var(--bs-primary-border-subtle);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

.onboarding-block:hover .onboarding-icon-pill {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.2);
}

.onboarding-title {
  color: var(--color-text-primary);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.onboarding-desc {
  color: var(--color-text-secondary);
  line-height: 1.65;
  font-size: 0.875rem;
}

/* CTA Rounded Outlined Button */
.onboarding-cta-btn {
  border-width: 1.5px !important;
  color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  background-color: transparent !important;
  transition: all 0.2s ease;
}

.onboarding-cta-btn:hover {
  background-color: var(--bs-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(var(--bs-primary-rgb), 0.35);
  transform: translateY(-1px);
}

.onboarding-cta-btn .cta-arrow {
  transition: transform 0.2s ease;
}

.onboarding-cta-btn:hover .cta-arrow {
  transform: translateX(4px);
}

/* Responsive Breakpoints */
@media (max-width: 991.98px) {
  .onboarding-img-container {
    height: 380px;
    max-width: 100%;
  }
  .onboarding-visual-wrap {
    max-width: 100%;
    margin-bottom: 2.5rem;
  }
  .onboarding-user-badge {
    bottom: 75px;
    right: 25px;
  }
  .onboarding-chart-badge {
    bottom: -15px;
    right: 35px;
  }
}

@media (max-width: 575.98px) {
  .onboarding-img-container {
    height: 300px;
    border-radius: 20px;
  }
  .onboarding-user-badge {
    width: 48px;
    height: 48px;
    bottom: 55px;
    right: 15px;
    border-radius: 12px !important;
  }
  .onboarding-chart-badge {
    bottom: -15px;
    right: 15px;
    min-width: 145px;
    padding: 0.75rem !important;
    border-radius: 12px !important;
  }
  .onboarding-icon-pill {
    width: 44px;
    height: 44px;
  }
}

/* additional css  */

.px-10{
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.mt-footer{
  margin-top: 73px;
}

/* additional css */

.forpadding {
  padding-left: 10px !important;
  padding-right: 10px !important;
  background-color: var(--color-surface-600);
  border: 1px solid var(--border-color);
  padding: 0.5rem !important;
}

/* ==========================================================================
   7. Portal Workspace Layout & Hybrid Navigation Architecture
   ========================================================================== */

.portal-workspace-layout {
  display: flex;
  min-height: calc(100vh - 58px);
  width: 100%;
}

.portal-sidebar {
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  background-color: var(--card-bg);
  border-right: 1px solid var(--border-color);
  height: calc(100vh - 58px);
  position: sticky;
  top: 58px;
  z-index: 1020;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-badge-icon {
  width: 32px;
  height: 32px;
  background-color: var(--bs-primary-subtle);
  color: var(--bs-primary);
  border: 1px solid var(--bs-primary-border-subtle);
}

.sidebar-heading {
  font-size: 0.6875rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding: 0.65rem 0.75rem 0.25rem;
  list-style: none;
  user-select: none;
}

.sidebar-link {
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: all 0.15s ease;
  text-decoration: none;
  border-left: 3px solid transparent;
  white-space: nowrap;
}

.sidebar-link:hover {
  color: var(--bs-primary);
  background-color: var(--bs-primary-subtle);
}

.sidebar-link.active {
  color: var(--bs-primary) !important;
  font-weight: 600;
  background-color: var(--bs-primary-subtle);
  border-left-color: var(--bs-primary);
}

.sidebar-icon {
  font-size: 1.15rem;
  min-width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.sidebar-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-main-area {
  flex: 1 1 auto;
  min-width: 0;
  background-color: var(--color-surface-900);
  overflow-x: hidden;
}

/* Collapsed Desktop Sidebar Mode */
.portal-sidebar.collapsed {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
}

.portal-sidebar.collapsed .portal-badge-wrap,
.portal-sidebar.collapsed .sidebar-portal-info,
.portal-sidebar.collapsed .sidebar-heading,
.portal-sidebar.collapsed .sidebar-label,
.portal-sidebar.collapsed .sidebar-user-meta {
  display: none !important;
}

.portal-sidebar.collapsed .sidebar-header {
  justify-content: center !important;
  padding: 0.75rem 0.5rem !important;
}

.portal-sidebar.collapsed #sidebarCollapseToggle {
  display: flex !important;
  width: 36px;
  height: 36px;
  background-color: var(--bs-primary-subtle);
  border: 1px solid var(--bs-primary-border-subtle);
  color: var(--bs-primary) !important;
  border-radius: var(--border-radius);
  transition: all 0.15s ease;
  cursor: pointer;
}

.portal-sidebar.collapsed #sidebarCollapseToggle:hover {
  background-color: var(--bs-primary);
  color: #ffffff !important;
  transform: scale(1.08);
}

.portal-sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: 0.55rem 0;
  border-left: 3px solid transparent;
}

.portal-sidebar.collapsed .sidebar-link.active {
  border-left-color: var(--bs-primary);
}

.portal-sidebar.collapsed .sidebar-footer {
  justify-content: center !important;
  padding: 0.65rem 0.25rem !important;
}

.portal-sidebar.collapsed .sidebar-footer .d-flex {
  justify-content: center !important;
  width: 100%;
}

.portal-sidebar.collapsed .sidebar-footer form {
  display: none !important;
}

/* Profile Horizontal Tabs */
.profile-nav-tabs .profile-tab-btn {
  border-radius: var(--border-radius);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.profile-nav-tabs .profile-tab-btn:hover {
  color: var(--bs-primary);
  background-color: var(--bs-primary-subtle);
}

.profile-nav-tabs .profile-tab-btn.active {
  color: #ffffff !important;
  background-color: var(--bs-primary) !important;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
