/*!
 * QIRIM App Layout — Axelit Design System Port
 * Custom layout CSS using Axelit design tokens + EJS-compatible sidebar layout
 * Replaces: Gogo 7.4.0 inline CSS
 * Based on: Axelit Next.js Template design tokens
 */

/* ════════════════════════════════════════════════════════════════
   1. DESIGN TOKENS (dari _variables.scss Axelit)
   ════════════════════════════════════════════════════════════════ */
:root {
  /* Colors as RGB triplets — use as rgba(var(--primary), 0.X) */
  --primary: 140, 118, 240;
  --primary-dark: 55, 48, 163;
  --secondary: 100, 100, 100;
  --success: 34, 197, 94;
  --danger: 239, 68, 68;
  --warning: 245, 158, 11;
  --info: 46, 94, 231;
  --light: 215, 208, 200;
  --dark: 40, 38, 50;
  --white: 255, 255, 255;
  --black: 0, 0, 0;

  /* Semantic colors */
  --font-color: #15264b;
  --font-title-color: #1c3264;
  --body-color: #f9f9f9;
  --bodybg-color: #f6f6f6;
  --border_color: #e0dfd6;
  --box-shadow: 0px 0px 21px 3px rgba(100, 100, 100, 0.06);
  --app-transition: all 0.3s ease;

  /* Layout */
  --sidebar-width: 17rem;
  --semi-nav: 4.5rem;
  --header-height: 68px;
  --app-border-radius: 1.8rem;
  --bs-border-radius: 1.8rem;

  /* Typography */
  --font-size: 14px;
  --font-family: "Montserrat", system-ui, -apple-system, sans-serif;
}

/* ════════════════════════════════════════════════════════════════
   2. THEME PRESETS (body class)
   ════════════════════════════════════════════════════════════════ */
body.default { --primary: 140, 118, 240; --primary-dark: 55, 48, 163; }
body.gold    { --primary: 196, 145, 51;  --primary-dark: 130, 95, 25; }
body.warm    { --primary: 226, 90, 60;   --primary-dark: 155, 50, 30; }
body.happy   { --primary: 239, 76, 144;  --primary-dark: 160, 30, 90; }
body.nature  { --primary: 52, 165, 65;   --primary-dark: 30, 105, 40; }
body.cold    { --primary: 28, 132, 221;  --primary-dark: 15, 80, 145; }
body.hot     { --primary: 220, 50, 50;   --primary-dark: 140, 25, 25; }

/* ════════════════════════════════════════════════════════════════
   3. DARK MODE
   ════════════════════════════════════════════════════════════════ */
html.dark,
body.dark,
[data-theme="dark"],
[data-bs-theme="dark"] {
  --font-color: #e2e2f0;
  --font-title-color: #d0d5f0;
  --body-color: #1c1e2a;
  --bodybg-color: #161820;
  --border_color: rgba(255, 255, 255, 0.1);
  --white: 30, 32, 45;
  --dark: 220, 215, 240;
  --box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --bs-body-bg: #161820;
  --bs-body-color: #e2e2f0;
  --bs-card-bg: #1e202d;
  --bs-border-color: rgba(255, 255, 255, 0.1);
  --bs-tertiary-bg: #252837;
  --bs-secondary-bg: #1f2230;
  --bs-emphasis-color: #f1f5f9;
  color-scheme: dark;
}

/* Theme-Adaptive Logos (General / Landing / Auth) */
html[data-bs-theme="dark"] .logo-light:not(.full-sidebar-logo-light):not(.square-sidebar-logo-light):not(.logo-collapsed-square),
html.dark .logo-light:not(.full-sidebar-logo-light):not(.square-sidebar-logo-light):not(.logo-collapsed-square) {
  display: none !important;
}
html[data-bs-theme="dark"] .logo-dark:not(.full-sidebar-logo-dark):not(.square-sidebar-logo-dark):not(.logo-collapsed-square),
html.dark .logo-dark:not(.full-sidebar-logo-dark):not(.square-sidebar-logo-dark):not(.logo-collapsed-square) {
  display: inline-block !important;
}
html:not([data-bs-theme="dark"]):not(.dark) .logo-light:not(.full-sidebar-logo-light):not(.square-sidebar-logo-light):not(.logo-collapsed-square),
html[data-bs-theme="light"] .logo-light:not(.full-sidebar-logo-light):not(.square-sidebar-logo-light):not(.logo-collapsed-square) {
  display: inline-block !important;
}
html:not([data-bs-theme="dark"]):not(.dark) .logo-dark:not(.full-sidebar-logo-dark):not(.square-sidebar-logo-dark):not(.logo-collapsed-square),
html[data-bs-theme="light"] .logo-dark:not(.full-sidebar-logo-dark):not(.square-sidebar-logo-dark):not(.logo-collapsed-square) {
  display: none !important;
}

/* ════════════════════════════════════════════════════════════════
   4. BASE RESET & TYPOGRAPHY
   ════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  font-size: var(--font-size);
  font-weight: 500;
  color: var(--font-color);
  background-color: var(--bodybg-color);
  margin: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--font-title-color);
  line-height: 1.4;
  font-weight: 700;
}

a { color: rgba(var(--primary), 1); text-decoration: none; }
a:hover { text-decoration: none; opacity: 0.85; }

ul { padding-left: 0; list-style: none; margin-bottom: 0; }
p { margin-bottom: 5px; line-height: 1.6; }

/* ════════════════════════════════════════════════════════════════
   5. APP WRAPPER (flex container)
   ════════════════════════════════════════════════════════════════ */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ════════════════════════════════════════════════════════════════
   6. SIDEBAR — nav.vertical-sidebar
   ════════════════════════════════════════════════════════════════ */
nav.vertical-sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  background: rgba(var(--white), 1);
  border-right: 1px solid var(--border_color);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  transition: var(--app-transition);
  overflow: hidden;
}

/* Logo area */
nav.vertical-sidebar .app-logo {
  height: var(--header-height);
  border-bottom: 1px solid var(--border_color);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  flex-shrink: 0;
}

nav.vertical-sidebar .app-logo .logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex: 1;
  overflow: hidden;
}

nav.vertical-sidebar .app-logo .logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

nav.vertical-sidebar .app-logo .logo span {
  font-size: 1.1rem;
  font-weight: 800;
  color: rgba(var(--primary), 1);
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: var(--app-transition);
}

/* Scrollable nav area */
nav.vertical-sidebar .app-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem 0.75rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--primary), 0.2) transparent;
}

nav.vertical-sidebar .app-nav::-webkit-scrollbar { width: 4px; }
nav.vertical-sidebar .app-nav::-webkit-scrollbar-track { background: transparent; }
nav.vertical-sidebar .app-nav::-webkit-scrollbar-thumb { background: rgba(var(--primary), 0.2); border-radius: 10px; }

/* Nav list */
ul.main-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  margin: 0;
}

/* Menu title / section header */
ul.main-nav > li.menu-title {
  padding: 0.85rem 0.5rem 0.25rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(var(--secondary), 0.55);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}

/* Nav item */
ul.main-nav > li {
  list-style: none;
}

ul.main-nav > li > a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.8rem;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--font-color);
  text-decoration: none;
  transition: var(--app-transition);
  white-space: nowrap;
  overflow: hidden;
}

ul.main-nav > li > a i {
  font-size: 19px;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  color: rgba(var(--secondary), 0.65);
  transition: var(--app-transition);
}

ul.main-nav > li > a:hover {
  background: rgba(var(--primary), 0.09);
  color: rgba(var(--primary), 1);
}

ul.main-nav > li > a:hover i {
  color: rgba(var(--primary), 1);
}

/* Active state */
ul.main-nav > li.active > a,
ul.main-nav > li.no-sub.active > a {
  background: rgba(var(--primary), 0.13);
  color: rgba(var(--primary), 1);
  font-weight: 600;
}

ul.main-nav > li.active > a i {
  color: rgba(var(--primary), 1);
}

/* Collapsed / semi-nav */
nav.vertical-sidebar.semi-nav {
  width: var(--semi-nav);
}

.logo-collapsed-favicon {
  display: none !important;
}

nav.vertical-sidebar.semi-nav .app-logo .logo .full-sidebar-logo {
  display: none !important;
}

nav.vertical-sidebar.semi-nav .app-logo .logo .logo-collapsed-favicon {
  display: inline-block !important;
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  object-fit: contain !important;
}

nav.vertical-sidebar.semi-nav .app-logo .logo span,
nav.vertical-sidebar.semi-nav ul.main-nav > li.menu-title,
nav.vertical-sidebar.semi-nav ul.main-nav > li > a .menu-txt {
  opacity: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

nav.vertical-sidebar.semi-nav ul.main-nav > li > a {
  justify-content: center;
  padding: 0.6rem;
}

nav.vertical-sidebar.semi-nav ul.main-nav > li > a i {
  width: auto;
}


/* Collapse toggle button */
.toggle-semi-nav {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--app-transition);
  background: rgba(var(--secondary), 0.07);
  flex-shrink: 0;
}
.toggle-semi-nav:hover {
  background: rgba(var(--primary), 0.12);
  color: rgba(var(--primary), 1);
}

/* ════════════════════════════════════════════════════════════════
   7. APP CONTENT (main area next to sidebar)
   ════════════════════════════════════════════════════════════════ */
.app-content {
  flex: 1;
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  transition: var(--app-transition);
  min-width: 0; /* fix flex overflow */
}

.app-content.semi-expanded {
  margin-left: var(--semi-nav);
}

/* ════════════════════════════════════════════════════════════════
   8. HEADER MAIN (topbar)
   ════════════════════════════════════════════════════════════════ */
header.header-main {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(var(--white), 1);
  border-bottom: 1px solid var(--border_color);
  height: var(--header-height);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--box-shadow);
  gap: 1rem;
}

.header-toggle {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  background: rgba(var(--dark), 0.06);
  transition: var(--app-transition);
  border: none;
  color: var(--font-color);
  flex-shrink: 0;
}
.header-toggle:hover {
  background: rgba(var(--primary), 0.12);
  color: rgba(var(--primary), 1);
}

/* Head Icon Button */
.head-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--dark), 0.06);
  color: var(--font-color);
  transition: var(--app-transition);
  cursor: pointer;
}
.head-icon:hover {
  background: rgba(var(--primary), 0.12);
  color: rgba(var(--primary), 1);
}

/* Axelit Theme Mode Toggle */
.header-dark {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.header-dark .head-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(var(--dark), 0.06);
  transition: var(--app-transition);
}
.header-dark:hover .head-icon {
  background: rgba(var(--primary), 0.12);
  color: rgba(var(--primary), 1);
}

/* Axelit Language Dropdown & Flag */
.header-language .head-icon {
  width: 38px;
  height: 38px;
}
.header-language .head-icon::after,
.header-language a::after,
.header-language .dropdown-toggle::after,
.lang-flag::after,
.no-caret::after {
  display: none !important;
  content: none !important;
  border: none !important;
}
.lang-flag .flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.language-dropdown {
  padding: 0.5rem !important;
  border-radius: 1rem !important;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12) !important;
  min-width: 190px !important;
  border: 1px solid var(--border_color) !important;
  background: rgba(var(--white), 1);
}
.language-dropdown .dropdown-item {
  border-radius: 0.65rem;
  font-size: 13px;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition: var(--app-transition);
  color: var(--font-color);
}
.language-dropdown .dropdown-item:hover,
.language-dropdown .dropdown-item.selected,
.language-dropdown .dropdown-item.active {
  background-color: rgba(var(--primary), 0.12) !important;
  color: rgba(var(--primary), 1) !important;
  font-weight: 600;
}

/* Flag Icon Helper */
.flag-icon {
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  background-size: cover !important;
  background-position: center !important;
}

/* Axelit Header Clock & Weather (HeaderCloud) */
.header-clock-badge {
  background: rgba(var(--dark), 0.05);
  border: 1px solid var(--border_color);
  padding: 0.35rem 0.85rem;
  border-radius: 50rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--app-transition);
}
.header-weather-btn {
  background: rgba(var(--dark), 0.06);
  border-radius: 50rem;
  padding: 0.35rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--font-color);
  transition: var(--app-transition);
  cursor: pointer;
  border: none;
}
.header-weather-btn:hover {
  background: rgba(var(--primary), 0.12);
  color: rgba(var(--primary), 1);
}
.weather-dropdown-card {
  border-radius: 1.25rem !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
  border: 1px solid var(--border_color) !important;
}
.weather-forecast-day {
  border-radius: 0.75rem;
  padding: 0.5rem 0.25rem;
  transition: var(--app-transition);
}
.weather-forecast-day:hover {
  background: rgba(var(--primary), 0.08);
}

/* Circular Sizing & Avatar Helpers */
.round-24 { width: 24px !important; height: 24px !important; min-width: 24px !important; min-height: 24px !important; border-radius: 50% !important; flex-shrink: 0 !important; aspect-ratio: 1/1 !important; }
.round-28 { width: 28px !important; height: 28px !important; min-width: 28px !important; min-height: 28px !important; border-radius: 50% !important; flex-shrink: 0 !important; aspect-ratio: 1/1 !important; }
.round-32 { width: 32px !important; height: 32px !important; min-width: 32px !important; min-height: 32px !important; border-radius: 50% !important; flex-shrink: 0 !important; aspect-ratio: 1/1 !important; }
.round-35 { width: 35px !important; height: 35px !important; min-width: 35px !important; min-height: 35px !important; border-radius: 50% !important; flex-shrink: 0 !important; aspect-ratio: 1/1 !important; }
.round-36 { width: 36px !important; height: 36px !important; min-width: 36px !important; min-height: 36px !important; border-radius: 50% !important; flex-shrink: 0 !important; aspect-ratio: 1/1 !important; }
.round-40 { width: 40px !important; height: 40px !important; min-width: 40px !important; min-height: 40px !important; border-radius: 50% !important; flex-shrink: 0 !important; aspect-ratio: 1/1 !important; }
.round-48 { width: 48px !important; height: 48px !important; min-width: 48px !important; min-height: 48px !important; border-radius: 50% !important; flex-shrink: 0 !important; aspect-ratio: 1/1 !important; }
.round-56 { width: 56px !important; height: 56px !important; min-width: 56px !important; min-height: 56px !important; border-radius: 50% !important; flex-shrink: 0 !important; aspect-ratio: 1/1 !important; }
.round-64 { width: 64px !important; height: 64px !important; min-width: 64px !important; min-height: 64px !important; border-radius: 50% !important; flex-shrink: 0 !important; aspect-ratio: 1/1 !important; }
.round-80 { width: 80px !important; height: 80px !important; min-width: 80px !important; min-height: 80px !important; border-radius: 50% !important; flex-shrink: 0 !important; aspect-ratio: 1/1 !important; }
.avatar-circle { width: 40px !important; height: 40px !important; min-width: 40px !important; min-height: 40px !important; border-radius: 50% !important; flex-shrink: 0 !important; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; aspect-ratio: 1/1 !important; }

/* ════════════════════════════════════════════════════════════════
   9. PAGE BODY
   ════════════════════════════════════════════════════════════════ */
.page-body {
  flex: 1;
  padding: 1.5rem;
}

/* ════════════════════════════════════════════════════════════════
   10. FOOTER
   ════════════════════════════════════════════════════════════════ */
footer.app-footer {
  border-top: 1px solid var(--border_color);
  padding: 0.8rem 1.5rem;
  font-size: 12px;
  color: rgba(var(--secondary), 0.65);
  background: rgba(var(--white), 1);
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ════════════════════════════════════════════════════════════════
   11. SIDEBAR OVERLAY (mobile)
   ════════════════════════════════════════════════════════════════ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: 1039;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ════════════════════════════════════════════════════════════════
   12. CARDS (Axelit style)
   ════════════════════════════════════════════════════════════════ */
.card {
  border: none;
  border-radius: var(--app-border-radius) !important;
  box-shadow: var(--box-shadow);
  background: rgba(var(--white), 1);
  margin-bottom: 1.5rem;
}

.card-header {
  background: transparent !important;
  border-bottom: none !important;
  padding: 1.25rem 1.25rem 0.5rem;
  border-radius: var(--app-border-radius) var(--app-border-radius) 0 0 !important;
}

.card-header .card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--font-title-color);
  margin-bottom: 0;
}

.card-body {
  padding: 1.25rem;
}

.card.hover-effect {
  transition: var(--app-transition);
}
.card.hover-effect:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(var(--primary), 0.12);
}

/* ════════════════════════════════════════════════════════════════
   13. BUTTONS (Axelit rounded style)
   ════════════════════════════════════════════════════════════════ */
.btn {
  border-radius: 0.8rem;
  font-weight: 600;
  transition: var(--app-transition);
  border: none;
  font-size: 13.5px;
}

.btn-primary {
  background: rgba(var(--primary), 1);
  color: rgba(var(--white), 1);
}
.btn-primary:hover {
  background: rgba(var(--primary), 0.85);
  color: rgba(var(--white), 1);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(var(--primary), 0.3);
}

.btn-success  { background: rgba(var(--success), 1);  color: rgba(var(--white), 1); }
.btn-danger   { background: rgba(var(--danger), 1);   color: rgba(var(--white), 1); }
.btn-warning  { background: rgba(var(--warning), 1);  color: rgba(var(--dark), 1); }
.btn-info     { background: rgba(var(--info), 1);     color: rgba(var(--white), 1); }
.btn-secondary{ background: rgba(var(--secondary), 0.12); color: rgba(var(--secondary), 1); }

.btn-outline-primary {
  border: 1.5px solid rgba(var(--primary), 1) !important;
  color: rgba(var(--primary), 1) !important;
  background: transparent !important;
}
.btn-outline-primary:hover {
  background: rgba(var(--primary), 1) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-outline-success {
  border: 1.5px solid rgba(var(--success), 1) !important;
  color: rgba(var(--success), 1) !important;
  background: transparent !important;
}
.btn-outline-success:hover {
  background: rgba(var(--success), 1) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-outline-danger {
  border: 1.5px solid rgba(var(--danger), 1) !important;
  color: rgba(var(--danger), 1) !important;
  background: transparent !important;
}
.btn-outline-danger:hover {
  background: rgba(var(--danger), 1) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-outline-warning {
  border: 1.5px solid rgba(var(--warning), 1) !important;
  color: rgba(var(--warning), 1) !important;
  background: transparent !important;
}
.btn-outline-warning:hover {
  background: rgba(var(--warning), 1) !important;
  color: #000000 !important;
  transform: translateY(-1px);
}

.btn-outline-info {
  border: 1.5px solid rgba(var(--info), 1) !important;
  color: rgba(var(--info), 1) !important;
  background: transparent !important;
}
.btn-outline-info:hover {
  background: rgba(var(--info), 1) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-outline-secondary {
  border: 1.5px solid rgba(var(--secondary), 0.45) !important;
  color: rgba(var(--secondary), 1) !important;
  background: transparent !important;
}
.btn-outline-secondary:hover {
  background: rgba(var(--secondary), 0.15) !important;
  color: rgba(var(--secondary), 1) !important;
  transform: translateY(-1px);
}

.btn-sm  { padding: 0.35rem 0.9rem; font-size: 12.5px; }
.btn-lg  { padding: 0.75rem 1.5rem; font-size: 15px; }
.btn-xs  { padding: 0.2rem 0.6rem;  font-size: 11px;  border-radius: 0.5rem; }

/* ════════════════════════════════════════════════════════════════
   14. FORMS
   ════════════════════════════════════════════════════════════════ */
.form-control, .form-select {
  border-radius: 0.8rem;
  border: 1.5px solid var(--border_color);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--font-color);
  background: rgba(var(--white), 1);
  padding: 0.625rem 0.95rem;
  min-height: 42px;
  transition: var(--app-transition);
}

textarea.form-control {
  min-height: 90px;
  line-height: 1.5;
}

.form-control-sm, .form-select-sm {
  min-height: 36px;
  padding: 0.4rem 0.75rem;
  font-size: 12.5px;
  border-radius: 0.65rem;
}

.form-control-lg, .form-select-lg {
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  font-size: 14.5px;
  border-radius: 0.85rem;
}

.form-control:focus, .form-select:focus {
  border-color: rgba(var(--primary), 0.6);
  box-shadow: 0 0 0 3.5px rgba(var(--primary), 0.12);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted, #94a3b8);
  font-size: 13px;
  font-weight: 400;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--font-title-color);
  margin-bottom: 0.45rem;
  display: inline-block;
}

.form-text {
  font-size: 11.5px;
  color: var(--text-muted, #64748b);
  margin-top: 0.35rem;
}

.form-check-input {
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.15em;
  border-radius: 0.35rem;
  border: 1.5px solid var(--border_color);
  cursor: pointer;
  transition: var(--app-transition);
}

.form-check-input:checked {
  background-color: rgba(var(--primary), 1);
  border-color: rgba(var(--primary), 1);
}

.form-switch .form-check-input {
  width: 2.2em;
  height: 1.2em;
  border-radius: 2rem;
}

.input-group > .form-control,
.input-group > .form-select {
  border-radius: 0.8rem;
}

.input-group-text {
  border-radius: 0.8rem;
  border: 1.5px solid var(--border_color);
  background: rgba(var(--light), 0.3);
  font-size: 13.5px;
  padding: 0.625rem 0.95rem;
  color: var(--font-color);
}

/* ════════════════════════════════════════════════════════════════
   15. BADGES
   ════════════════════════════════════════════════════════════════ */
.badge {
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 11px;
  padding: 0.3em 0.65em;
}

.bg-primary-subtle { background: rgba(var(--primary), 0.1); color: rgba(var(--primary), 1); }
.bg-success-subtle { background: rgba(var(--success), 0.1); color: rgba(var(--success), 1); }
.bg-danger-subtle  { background: rgba(var(--danger),  0.1); color: rgba(var(--danger),  1); }
.bg-warning-subtle { background: rgba(var(--warning), 0.1); color: rgba(var(--dark),    1); }
.bg-info-subtle    { background: rgba(var(--info),    0.1); color: rgba(var(--info),    1); }

/* ════════════════════════════════════════════════════════════════
   16. TABLES
   ════════════════════════════════════════════════════════════════ */
.table {
  --bs-table-bg: transparent;
  font-size: 13.5px;
}

.table > thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(var(--secondary), 0.65);
  border-bottom: none;
  padding: 0.85rem 1rem;
}

.table > tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border-color: var(--border_color);
  color: var(--font-color);
}

.table-hover > tbody > tr:hover {
  background: rgba(var(--primary), 0.04);
}

/* ════════════════════════════════════════════════════════════════
   17. ALERTS
   ════════════════════════════════════════════════════════════════ */
.alert {
  border-radius: var(--app-border-radius);
  border: none;
  font-weight: 500;
  font-size: 13.5px;
}

.alert-success  { background: rgba(var(--success), 0.1); color: rgba(var(--success), 1); }
.alert-danger   { background: rgba(var(--danger),  0.1); color: rgba(var(--danger),  1); }
.alert-warning  { background: rgba(var(--warning), 0.1); color: rgba(var(--dark),    1); }
.alert-info     { background: rgba(var(--info),    0.1); color: rgba(var(--info),    1); }

/* ════════════════════════════════════════════════════════════════
   18. NAV PILLS & TABS (Axelit style)
   ════════════════════════════════════════════════════════════════ */
.nav-pills .nav-link {
  border-radius: 0.7rem;
  font-weight: 600;
  font-size: 13px;
  color: rgba(var(--secondary), 0.75);
  transition: var(--app-transition);
  padding: 0.45rem 1rem;
}
.nav-pills .nav-link.active {
  background: rgba(var(--primary), 1);
  color: rgba(var(--white), 1);
}
.nav-pills .nav-link:not(.active):hover {
  background: rgba(var(--primary), 0.08);
  color: rgba(var(--primary), 1);
}

/* ════════════════════════════════════════════════════════════════
   19. DROPDOWN (Axelit rounded)
   ════════════════════════════════════════════════════════════════ */
.dropdown-menu {
  border-radius: 0.8rem;
  border: none;
  box-shadow: 0 8px 32px rgba(var(--dark), 0.12);
  padding: 0.5rem;
  background: rgba(var(--white), 1);
  font-size: 13px;
}

.dropdown-item {
  border-radius: 0.6rem;
  padding: 0.5rem 0.85rem;
  font-weight: 500;
  color: var(--font-color);
  transition: var(--app-transition);
}

.dropdown-item:hover {
  background: rgba(var(--primary), 0.08);
  color: rgba(var(--primary), 1);
}

.dropdown-item.active {
  background: rgba(var(--primary), 0.1);
  color: rgba(var(--primary), 1);
}

/* ════════════════════════════════════════════════════════════════
   20. MODAL (Axelit rounded)
   ════════════════════════════════════════════════════════════════ */
.modal-content {
  border-radius: var(--app-border-radius);
  border: none;
  box-shadow: 0 16px 64px rgba(var(--dark), 0.18);
  background: rgba(var(--white), 1);
}

.modal-header {
  border-bottom: 1px solid var(--border_color);
  border-radius: var(--app-border-radius) var(--app-border-radius) 0 0;
  padding: 1.25rem 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--border_color);
  padding: 1rem 1.5rem;
}

/* ════════════════════════════════════════════════════════════════
   21. PROGRESS BAR
   ════════════════════════════════════════════════════════════════ */
.progress {
  background: rgba(var(--secondary), 0.1);
  border-radius: 10px;
}
.progress-bar {
  background: rgba(var(--primary), 1);
  border-radius: 10px;
  transition: width 0.5s ease;
}

/* ════════════════════════════════════════════════════════════════
   22. ACCORDION
   ════════════════════════════════════════════════════════════════ */
.accordion-button {
  border-radius: 0.8rem !important;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--font-color);
  background: transparent;
}
.accordion-button:not(.collapsed) {
  color: rgba(var(--primary), 1);
  background: rgba(var(--primary), 0.06);
  box-shadow: none;
}
.accordion-button::after {
  filter: none;
}
.accordion-item {
  border: 1px solid var(--border_color);
  border-radius: 0.8rem !important;
  overflow: hidden;
}

/* ════════════════════════════════════════════════════════════════
   23. AVATAR INITIAL
   ════════════════════════════════════════════════════════════════ */
.avatar-initial {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(var(--primary), 1);
  color: rgba(var(--white), 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   24. COPY TOAST (global notification)
   ════════════════════════════════════════════════════════════════ */
#qirimCopyToast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  background: rgba(var(--success), 1);
  color: rgba(var(--white), 1);
  padding: 10px 18px;
  border-radius: 0.8rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════
   25. UTILITY HELPERS
   ════════════════════════════════════════════════════════════════ */
.font-monospace { font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace !important; }
.rounded-3  { border-radius: 0.75rem !important; }
.rounded-4  { border-radius: 1rem !important; }
.cursor-pointer { cursor: pointer; }
.transition { transition: var(--app-transition); }

.text-primary   { color: rgba(var(--primary), 1) !important; }
.text-success   { color: rgba(var(--success), 1) !important; }
.text-danger    { color: rgba(var(--danger),  1) !important; }
.text-warning   { color: rgba(var(--warning), 1) !important; }
.text-info      { color: rgba(var(--info),    1) !important; }
.text-muted     { color: rgba(var(--secondary), 0.65) !important; }

.bg-primary     { background: rgba(var(--primary), 1) !important; }
.bg-success     { background: rgba(var(--success), 1) !important; }
.bg-danger      { background: rgba(var(--danger),  1) !important; }
.bg-warning     { background: rgba(var(--warning), 1) !important; }
.bg-light       { background: rgba(var(--light), 0.3) !important; }

.border-0        { border: none !important; }
.shadow-sm       { box-shadow: 0 2px 8px rgba(var(--secondary), 0.08) !important; }
.shadow          { box-shadow: var(--box-shadow) !important; }

.fw-bold     { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-medium   { font-weight: 500 !important; }

.fs-1 { font-size: 11px !important; }
.fs-2 { font-size: 12px !important; }
.fs-3 { font-size: 13px !important; }
.fs-4 { font-size: 14px !important; }
.fs-5 { font-size: 16px !important; }
.fs-6 { font-size: 18px !important; }

/* ════════════════════════════════════════════════════════════════
   26. AXELIT TYPOGRAPHY & UTILITIES
   ════════════════════════════════════════════════════════════════ */
.f-s-9  { font-size: 9px !important; }
.f-s-10 { font-size: 10px !important; }
.f-s-11 { font-size: 11px !important; }
.f-s-12 { font-size: 12px !important; }
.f-s-13 { font-size: 13px !important; }
.f-s-14 { font-size: 14px !important; }
.f-s-15 { font-size: 15px !important; }
.f-s-16 { font-size: 16px !important; }
.f-s-18 { font-size: 18px !important; }
.f-s-20 { font-size: 20px !important; }
.f-s-22 { font-size: 22px !important; }
.f-s-24 { font-size: 24px !important; }
.f-s-28 { font-size: 28px !important; }
.f-s-32 { font-size: 32px !important; }

.f-w-500 { font-weight: 500 !important; }
.f-w-600 { font-weight: 600 !important; }
.f-w-700 { font-weight: 700 !important; }
.f-w-800 { font-weight: 800 !important; }

.b-r-8  { border-radius: 8px !important; }
.b-r-10 { border-radius: 10px !important; }
.b-r-12 { border-radius: 12px !important; }
.b-r-15 { border-radius: 15px !important; }
.b-r-20 { border-radius: 20px !important; }
.b-r-50 { border-radius: 50% !important; }

.txt-ellipsis-1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txt-ellipsis-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ════════════════════════════════════════════════════════════════
   27. AXELIT SOFT PASTEL BADGES
   ════════════════════════════════════════════════════════════════ */
.text-light-warning {
  background-color: #fff8e5 !important;
  color: #b78103 !important;
  border-radius: 8px;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  padding: 4px 10px;
}
.text-light-success {
  background-color: #e6f9f0 !important;
  color: #0d8a50 !important;
  border-radius: 8px;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  padding: 4px 10px;
}
.text-light-info {
  background-color: #e8f4fd !important;
  color: #1a7bb9 !important;
  border-radius: 8px;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  padding: 4px 10px;
}
.text-light-secondary {
  background-color: #f1f1f4 !important;
  color: #6e707e !important;
  border-radius: 8px;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  padding: 4px 10px;
}
.text-light-danger {
  background-color: #fdeeee !important;
  color: #c0392b !important;
  border-radius: 8px;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  padding: 4px 10px;
}
.text-light-primary {
  background-color: rgba(var(--primary), 0.1) !important;
  color: rgba(var(--primary), 1) !important;
  border-radius: 8px;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  padding: 4px 10px;
}

/* ════════════════════════════════════════════════════════════════
   28. AXELIT PROJECT DASHBOARD WIDGETS
   ════════════════════════════════════════════════════════════════ */
/* 1. Total Hours / Quota Card (Dashed Border) */
.project-total-card {
  background-color: rgba(var(--white), 1) !important;
  border: 2px dashed rgba(var(--primary), 0.45) !important;
  border-radius: var(--app-border-radius) !important;
  transition: var(--app-transition);
}
.project-total-card:hover {
  border-color: rgba(var(--primary), 0.9) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--primary), 0.12);
}
.project-total-card .hour-display {
  font-size: 2.3rem !important;
  font-weight: 800 !important;
  color: rgba(var(--primary), 1);
  letter-spacing: -1px;
  line-height: 1;
  margin: 0.5rem 0 0.8rem;
}
.project-total-card .progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(var(--secondary), 0.75);
}
.custom-progress-container {
  display: flex;
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(var(--secondary), 0.1);
  gap: 3px;
}
.custom-progress-container .progress-bar-seg {
  height: 100%;
  border-radius: 4px;
}

/* 2. Soft Pastel Cards (Mobile app / Project Beta style) */
.project-details-card {
  border-radius: var(--app-border-radius) !important;
  border: none !important;
  transition: var(--app-transition);
}
.project-details-card.bg-pastel-blue {
  background-color: #dbeafe !important;
}
.project-details-card.bg-pastel-green {
  background-color: #dcfce7 !important;
}
.project-details-card.bg-pastel-purple {
  background-color: #f3e8ff !important;
}
.project-details-card.bg-pastel-amber {
  background-color: #fef3c7 !important;
}
.project-details-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* 3. Core Teams Card (Patterned Pastel Card) */
.core-teams-card {
  background-color: #fef9c3 !important;
  border-radius: var(--app-border-radius) !important;
  border: none !important;
  position: relative;
  overflow: hidden;
}
.core-teams-card .big-stat {
  font-size: 2.2rem;
  font-weight: 800;
  color: #854d0e;
  line-height: 1;
}

/* 4. Effortless Connect Banner with Shine Effect */
.project-connect-card {
  border-radius: var(--app-border-radius) !important;
  border: 1px solid rgba(var(--primary), 0.2) !important;
  background: linear-gradient(135deg, rgba(var(--primary), 0.12) 0%, rgba(var(--primary), 0.04) 50%, #eff6ff 100%) !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(var(--primary), 0.08) !important;
  transition: var(--app-transition);
}

.project-connect-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--primary), 0.16) !important;
}

/* Glossy Shine Overlay Effect */
.project-connect-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 35%,
    rgba(255, 255, 255, 0.4) 48%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.4) 52%,
    transparent 65%
  );
  transform: rotate(25deg);
  pointer-events: none;
  animation: shineCardEffect 5s infinite linear;
  z-index: 1;
}

.project-connect-card > * {
  position: relative;
  z-index: 2;
}

@keyframes shineCardEffect {
  0% {
    transform: translateX(-120%) rotate(25deg);
  }
  20%, 100% {
    transform: translateX(120%) rotate(25deg);
  }
}

/* Clock box widget */
.clock-box {
  width: 32px;
  height: 32px;
  position: absolute;
  top: 0;
  right: 0;
}
.clock-box .clock {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(var(--primary), 0.7);
  background: rgba(var(--primary), 0.12);
  position: relative;
}
.clock-box .clock .hour,
.clock-box .clock .min {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: bottom center;
  background: rgba(var(--primary), 1);
  border-radius: 2px;
}
.clock-box .clock .hour { width: 2px; height: 7px; }
.clock-box .clock .min  { width: 1.5px; height: 10px; }

/* ════════════════════════════════════════════════════════════════
   29. AXELIT ACTION TILES
   ════════════════════════════════════════════════════════════════ */
.axelit-action-tile {
  background: rgba(var(--white), 1);
  border: 1px solid var(--border_color);
  border-radius: 1.2rem;
  padding: 1.1rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  transition: var(--app-transition);
}
.axelit-action-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(var(--primary), 0.12);
  border-color: rgba(var(--primary), 0.4);
}
.axelit-action-tile .tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 0.6rem;
}
.axelit-action-tile .tile-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--font-title-color);
  margin-bottom: 2px;
}
.axelit-action-tile .tile-desc {
  font-size: 11px;
  color: rgba(var(--secondary), 0.75);
  line-height: 1.3;
}

/* ════════════════════════════════════════════════════════════════
   30. RESPONSIVE — Mobile (<992px)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  nav.vertical-sidebar { transform: translateX(-110%); }
  nav.vertical-sidebar.mobile-open { transform: translateX(0); }
  .app-content { margin-left: 0 !important; }
  .page-body { padding: 1rem; }
  header.header-main { padding: 0 1rem; }
}

/* ════════════════════════════════════════════════════════════════
   31. AXELIT CHAT DESIGN SYSTEM (from _chat.scss)
   ════════════════════════════════════════════════════════════════ */
.chat-container-box {
  position: relative;
}
.chat-tab-wrapper .tabs.chat-tabs {
  display: flex;
  justify-content: space-between;
  border-radius: var(--bs-border-radius);
  border-bottom: 1px solid var(--border_color);
  padding: 0;
  margin-bottom: 12px;
}
.chat-tab-wrapper .tab-link {
  width: 100%;
  text-align: center;
  font-size: 13px;
  list-style: none;
  padding: 10px 0;
  font-weight: 600;
  color: rgba(var(--dark), 0.7);
  cursor: pointer;
  border-bottom: solid 2px transparent;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-tab-wrapper .tab-link:hover {
  color: rgba(var(--primary), 1);
}
.chat-tab-wrapper .tab-link.active {
  color: rgba(var(--primary), 1);
  border-color: rgba(var(--primary), 1);
}
.chat-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 1rem;
}
.chatdp {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary), 0.12);
  color: rgba(var(--primary), 1);
  font-weight: 700;
}
.chat-box {
  display: flex;
  padding: 6px 0 6px 50px;
}
.chat-box .chat-text {
  padding: 0.75rem 1rem;
  background-color: rgba(var(--secondary), 0.1);
  color: var(--font-color);
  border-radius: 0px 18px 18px 18px;
  font-size: 13.5px;
  max-width: 80%;
  word-break: break-word;
}
.chat-box-right {
  display: flex;
  justify-content: flex-end;
  padding: 6px 50px 6px 0;
  text-align: right;
}
.chat-box-right .chat-text {
  padding: 0.75rem 1rem;
  background-color: rgba(var(--primary), 0.15);
  color: var(--font-title-color);
  border: 1px solid rgba(var(--primary), 0.25);
  border-radius: 18px 0px 18px 18px;
  font-size: 13.5px;
  max-width: 80%;
  text-align: left;
  word-break: break-word;
}
.chat-contact {
  overflow-y: auto;
}
.chat-contact .chat-contactbox {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}
.chat-contact .chat-contactbox:hover {
  background: rgba(var(--primary), 0.06);
}
.chat-contact .chat-contactbox.active {
  background: rgba(var(--primary), 0.12);
  border-left: 3px solid rgba(var(--primary), 1);
}

/* ════════════════════════════════════════════════════════════════
   32. COMPREHENSIVE DARK MODE & THEME TOKENS
   ════════════════════════════════════════════════════════════════ */
html[data-theme="dark"],
html[data-bs-theme="dark"],
html.dark,
body.dark,
[data-theme="dark"],
[data-bs-theme="dark"] {
  --font-color: #e2e2f0;
  --font-title-color: #f1f3f9;
  --body-color: #171822;
  --bodybg-color: #12131b;
  --white: 26, 28, 40;
  --dark: 230, 230, 245;
  --light: 40, 43, 60;
  --border_color: rgba(255, 255, 255, 0.1);
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);

  /* Bootstrap 5.3 Dark Variables */
  --bs-body-bg: #12131b;
  --bs-body-color: #e2e2f0;
  --bs-emphasis-color: #ffffff;
  --bs-secondary-color: #94a3b8;
  --bs-tertiary-bg: #1a1c28;
  --bs-card-bg: #1a1c28;
  --bs-card-border-color: rgba(255, 255, 255, 0.08);
  --bs-border-color: rgba(255, 255, 255, 0.08);
  color-scheme: dark;
}

html[data-theme="dark"] body,
html[data-bs-theme="dark"] body,
html.dark body,
body.dark {
  background-color: var(--bodybg-color) !important;
  color: var(--font-color) !important;
}

html[data-theme="dark"] .app-content,
html[data-bs-theme="dark"] .app-content,
html.dark .app-content,
body.dark .app-content {
  background-color: var(--bodybg-color);
}

html[data-theme="dark"] .card,
html[data-bs-theme="dark"] .card,
html.dark .card,
body.dark .card,
html[data-theme="dark"] .header-card,
html[data-bs-theme="dark"] .header-card,
html.dark .header-card,
body.dark .header-card,
html[data-theme="dark"] .auth-axelit-card,
html[data-bs-theme="dark"] .auth-axelit-card,
html.dark .auth-axelit-card,
body.dark .auth-axelit-card,
html[data-theme="dark"] .wizard-card,
html[data-bs-theme="dark"] .wizard-card,
html.dark .wizard-card,
body.dark .wizard-card {
  background-color: #1a1c28 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--font-color);
}

html[data-theme="dark"] nav.vertical-sidebar,
html[data-bs-theme="dark"] nav.vertical-sidebar,
html.dark nav.vertical-sidebar,
body.dark nav.vertical-sidebar {
  background: #1a1c28 !important;
  border-right-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] nav.vertical-sidebar .app-logo,
html[data-bs-theme="dark"] nav.vertical-sidebar .app-logo,
html.dark nav.vertical-sidebar .app-logo,
body.dark nav.vertical-sidebar .app-logo {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] header.header-main,
html[data-bs-theme="dark"] header.header-main,
html.dark header.header-main,
body.dark header.header-main {
  background: #1a1c28 !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] footer.app-footer,
html[data-bs-theme="dark"] footer.app-footer,
html.dark footer.app-footer,
body.dark footer.app-footer {
  background: #1a1c28 !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8;
}

html[data-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-control,
html.dark .form-control,
body.dark .form-control,
html[data-theme="dark"] .form-select,
html[data-bs-theme="dark"] .form-select,
html.dark .form-select,
body.dark .form-select,
html[data-theme="dark"] .input-group-text,
html[data-bs-theme="dark"] .input-group-text,
html.dark .input-group-text,
body.dark .input-group-text,
html[data-theme="dark"] .auth-pill-input,
html[data-bs-theme="dark"] .auth-pill-input,
html.dark .auth-pill-input,
body.dark .auth-pill-input {
  background-color: #222534 !important;
  color: #e2e2f0 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .form-control:focus,
html[data-bs-theme="dark"] .form-control:focus,
html.dark .form-control:focus,
body.dark .form-control:focus,
html[data-theme="dark"] .form-select:focus,
html[data-bs-theme="dark"] .form-select:focus,
html.dark .form-select:focus,
body.dark .form-select:focus,
html[data-theme="dark"] .auth-pill-input:focus,
html[data-bs-theme="dark"] .auth-pill-input:focus,
html.dark .auth-pill-input:focus,
body.dark .auth-pill-input:focus {
  background-color: #26293a !important;
  border-color: rgba(var(--primary), 0.7) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .form-control::placeholder,
html[data-bs-theme="dark"] .form-control::placeholder,
html.dark .form-control::placeholder,
body.dark .form-control::placeholder,
html[data-theme="dark"] .auth-pill-input::placeholder,
html[data-bs-theme="dark"] .auth-pill-input::placeholder,
html.dark .auth-pill-input::placeholder,
body.dark .auth-pill-input::placeholder {
  color: #64748b !important;
  opacity: 1;
}

html[data-theme="dark"] .form-select option,
html[data-bs-theme="dark"] .form-select option,
html.dark .form-select option,
body.dark .form-select option {
  background-color: #1e202e !important;
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .dropdown-menu,
html[data-bs-theme="dark"] .dropdown-menu,
html.dark .dropdown-menu,
body.dark .dropdown-menu {
  background-color: #1e202e !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .dropdown-item,
html[data-bs-theme="dark"] .dropdown-item,
html.dark .dropdown-item,
body.dark .dropdown-item {
  color: #d1d5e5 !important;
}

html[data-theme="dark"] .dropdown-item:hover,
html[data-bs-theme="dark"] .dropdown-item:hover,
html.dark .dropdown-item:hover,
body.dark .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus,
html[data-bs-theme="dark"] .dropdown-item:focus,
html.dark .dropdown-item:focus,
body.dark .dropdown-item:focus {
  background-color: rgba(var(--primary), 0.15) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .dropdown-divider,
html[data-bs-theme="dark"] .dropdown-divider,
html.dark .dropdown-divider,
body.dark .dropdown-divider {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .modal-content,
html[data-bs-theme="dark"] .modal-content,
html.dark .modal-content,
body.dark .modal-content {
  background-color: #1a1c28 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--font-color);
}

html[data-theme="dark"] .modal-header,
html[data-bs-theme="dark"] .modal-header,
html.dark .modal-header,
body.dark .modal-header,
html[data-theme="dark"] .modal-footer,
html[data-bs-theme="dark"] .modal-footer,
html.dark .modal-footer,
body.dark .modal-footer {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .modal-body,
html[data-bs-theme="dark"] .modal-body,
html.dark .modal-body,
body.dark .modal-body {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .btn-close,
html[data-bs-theme="dark"] .btn-close,
html.dark .btn-close,
body.dark .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

html[data-theme="dark"] .table,
html[data-bs-theme="dark"] .table,
html.dark .table,
body.dark .table {
  color: var(--font-color) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .table > :not(caption) > * > *,
html[data-bs-theme="dark"] .table > :not(caption) > * > *,
html.dark .table > :not(caption) > * > *,
body.dark .table > :not(caption) > * > * {
  background-color: transparent !important;
  color: var(--font-color) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .table > tbody > tr:hover > *,
html[data-bs-theme="dark"] .table > tbody > tr:hover > *,
html.dark .table > tbody > tr:hover > *,
body.dark .table > tbody > tr:hover > * {
  background-color: rgba(255, 255, 255, 0.03) !important;
}

html[data-theme="dark"] .table-light,
html[data-bs-theme="dark"] .table-light,
html.dark .table-light,
body.dark .table-light,
html[data-theme="dark"] .bg-light,
html[data-bs-theme="dark"] .bg-light,
html.dark .bg-light,
body.dark .bg-light,
html[data-theme="dark"] .bg-light-light,
html[data-bs-theme="dark"] .bg-light-light,
html.dark .bg-light-light,
body.dark .bg-light-light,
html[data-theme="dark"] .bg-light-subtle,
html[data-bs-theme="dark"] .bg-light-subtle,
html.dark .bg-light-subtle,
body.dark .bg-light-subtle {
  background-color: #222534 !important;
  color: var(--font-color) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .bg-white,
html[data-bs-theme="dark"] .bg-white,
html.dark .bg-white,
body.dark .bg-white {
  background-color: #1a1c28 !important;
  color: var(--font-color) !important;
}

html[data-theme="dark"] .text-dark,
html[data-bs-theme="dark"] .text-dark,
html.dark .text-dark,
body.dark .text-dark,
[data-bs-theme="dark"] .text-dark,
[data-theme="dark"] .text-dark {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .text-body,
html[data-bs-theme="dark"] .text-body,
html.dark .text-body,
body.dark .text-body {
  color: #e2e2f0 !important;
}

html[data-theme="dark"] .text-muted,
html[data-bs-theme="dark"] .text-muted,
html.dark .text-muted,
body.dark .text-muted,
[data-bs-theme="dark"] .text-muted,
[data-theme="dark"] .text-muted {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .border,
html[data-bs-theme="dark"] .border,
html.dark .border,
body.dark .border,
html[data-theme="dark"] .border-top,
html[data-bs-theme="dark"] .border-top,
html.dark .border-top,
body.dark .border-top,
html[data-theme="dark"] .border-bottom,
html[data-bs-theme="dark"] .border-bottom,
html.dark .border-bottom,
body.dark .border-bottom,
html[data-theme="dark"] .border-start,
html[data-bs-theme="dark"] .border-start,
html.dark .border-start,
body.dark .border-start,
html[data-theme="dark"] .border-end,
html[data-bs-theme="dark"] .border-end,
html.dark .border-end,
body.dark .border-end,
html[data-theme="dark"] .border-light-subtle,
html[data-bs-theme="dark"] .border-light-subtle,
html.dark .border-light-subtle,
body.dark .border-light-subtle {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .project-total-card,
html[data-bs-theme="dark"] .project-total-card,
html.dark .project-total-card,
body.dark .project-total-card,
html[data-theme="dark"] .project-details-card,
html[data-bs-theme="dark"] .project-details-card,
html.dark .project-details-card,
body.dark .project-details-card,
html[data-theme="dark"] .axelit-action-tile,
html[data-bs-theme="dark"] .axelit-action-tile,
html.dark .axelit-action-tile,
body.dark .axelit-action-tile,
html[data-theme="dark"] .select-content,
html[data-bs-theme="dark"] .select-content,
html.dark .select-content,
body.dark .select-content {
  background-color: #1a1c28 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .nav-tabs .nav-link,
html[data-bs-theme="dark"] .nav-tabs .nav-link,
html.dark .nav-tabs .nav-link,
body.dark .nav-tabs .nav-link {
  color: #94a3b8;
}

html[data-theme="dark"] .nav-tabs .nav-link.active,
html[data-bs-theme="dark"] .nav-tabs .nav-link.active,
html.dark .nav-tabs .nav-link.active,
body.dark .nav-tabs .nav-link.active {
  background-color: #1a1c28;
  color: rgba(var(--primary), 1);
  border-color: rgba(255, 255, 255, 0.1) rgba(255, 255, 255, 0.1) transparent;
}

html[data-theme="dark"] .chat-box .chat-text,
html[data-bs-theme="dark"] .chat-box .chat-text,
html.dark .chat-box .chat-text,
body.dark .chat-box .chat-text {
  background-color: #252838;
  color: #e2e2f0;
}

html[data-theme="dark"] .chat-box-right .chat-text,
html[data-bs-theme="dark"] .chat-box-right .chat-text,
html.dark .chat-box-right .chat-text,
body.dark .chat-box-right .chat-text {
  background-color: rgba(var(--primary), 0.25);
  color: #ffffff;
  border-color: rgba(var(--primary), 0.4);
}

html[data-theme="dark"] .head-icon,
html[data-bs-theme="dark"] .head-icon,
html.dark .head-icon,
body.dark .head-icon {
  background: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .head-icon i,
html[data-bs-theme="dark"] .head-icon i,
html.dark .head-icon i,
body.dark .head-icon i {
  color: #d1d5e5;
}

/* ── Dark Mode Subtle Badges ── */
html[data-theme="dark"] .bg-primary-subtle,
html[data-bs-theme="dark"] .bg-primary-subtle,
html.dark .bg-primary-subtle,
body.dark .bg-primary-subtle {
  background-color: rgba(140, 118, 240, 0.18) !important;
  color: #a78bfa !important;
}

html[data-theme="dark"] .bg-success-subtle,
html[data-bs-theme="dark"] .bg-success-subtle,
html.dark .bg-success-subtle,
body.dark .bg-success-subtle {
  background-color: rgba(34, 197, 94, 0.18) !important;
  color: #4ade80 !important;
}

html[data-theme="dark"] .bg-danger-subtle,
html[data-bs-theme="dark"] .bg-danger-subtle,
html.dark .bg-danger-subtle,
body.dark .bg-danger-subtle {
  background-color: rgba(239, 68, 68, 0.18) !important;
  color: #f87171 !important;
}

html[data-theme="dark"] .bg-warning-subtle,
html[data-bs-theme="dark"] .bg-warning-subtle,
html.dark .bg-warning-subtle,
body.dark .bg-warning-subtle {
  background-color: rgba(245, 158, 11, 0.18) !important;
  color: #fbbf24 !important;
}

html[data-theme="dark"] .bg-info-subtle,
html[data-bs-theme="dark"] .bg-info-subtle,
html.dark .bg-info-subtle,
body.dark .bg-info-subtle {
  background-color: rgba(46, 94, 231, 0.18) !important;
  color: #60a5fa !important;
}

html[data-theme="dark"] .bg-secondary-subtle,
html[data-bs-theme="dark"] .bg-secondary-subtle,
html.dark .bg-secondary-subtle,
body.dark .bg-secondary-subtle {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
}

/* ── Dark Mode: Enterprise / Effortless Connect Banner Card ── */
html[data-theme="dark"] .project-connect-card,
html[data-bs-theme="dark"] .project-connect-card,
html.dark .project-connect-card,
body.dark .project-connect-card {
  background: linear-gradient(135deg, rgba(var(--primary), 0.32) 0%, rgba(24, 26, 42, 0.95) 45%, rgba(var(--primary), 0.18) 100%) !important;
  border: 1px solid rgba(var(--primary), 0.5) !important;
  box-shadow: 0 4px 25px rgba(var(--primary), 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .project-connect-card::before,
html[data-bs-theme="dark"] .project-connect-card::before,
html.dark .project-connect-card::before,
body.dark .project-connect-card::before {
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(var(--primary), 0.2) 42%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(var(--primary), 0.25) 58%,
    transparent 70%
  );
  animation: shineCardEffect 5s infinite linear;
}

html[data-theme="dark"] .project-connect-card .text-dark,
html[data-bs-theme="dark"] .project-connect-card .text-dark,
html.dark .project-connect-card .text-dark,
body.dark .project-connect-card .text-dark {
  color: #ffffff !important;
}

html[data-theme="dark"] .project-connect-card .text-muted,
html[data-bs-theme="dark"] .project-connect-card .text-muted,
html.dark .project-connect-card .text-muted,
body.dark .project-connect-card .text-muted {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .project-connect-card .badge.text-light-primary,
html[data-bs-theme="dark"] .project-connect-card .badge.text-light-primary,
html.dark .project-connect-card .badge.text-light-primary,
body.dark .project-connect-card .badge.text-light-primary {
  background: rgba(var(--primary), 0.3) !important;
  color: #c4b5fd !important;
  border: 1px solid rgba(var(--primary), 0.55) !important;
  box-shadow: 0 2px 8px rgba(var(--primary), 0.25);
}

html[data-theme="dark"] .project-connect-card .btn-outline-primary,
html[data-bs-theme="dark"] .project-connect-card .btn-outline-primary,
html.dark .project-connect-card .btn-outline-primary,
body.dark .project-connect-card .btn-outline-primary {
  background: rgba(var(--primary), 0.18) !important;
  border: 1.5px solid rgba(var(--primary), 0.85) !important;
  color: #e0e7ff !important;
}

html[data-theme="dark"] .project-connect-card .btn-outline-primary:hover,
html[data-bs-theme="dark"] .project-connect-card .btn-outline-primary:hover,
html.dark .project-connect-card .btn-outline-primary:hover,
body.dark .project-connect-card .btn-outline-primary:hover {
  background: rgba(var(--primary), 1) !important;
  color: #ffffff !important;
}

/* ── Dark Mode: Outline Buttons Contrast ── */
html[data-theme="dark"] .btn-outline-success,
html[data-bs-theme="dark"] .btn-outline-success,
html.dark .btn-outline-success,
body.dark .btn-outline-success {
  border: 1.5px solid #22c55e !important;
  color: #4ade80 !important;
}
html[data-theme="dark"] .btn-outline-success:hover,
html[data-bs-theme="dark"] .btn-outline-success:hover,
html.dark .btn-outline-success:hover,
body.dark .btn-outline-success:hover {
  background: #22c55e !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .btn-outline-danger,
html[data-bs-theme="dark"] .btn-outline-danger,
html.dark .btn-outline-danger,
body.dark .btn-outline-danger {
  border: 1.5px solid #ef4444 !important;
  color: #f87171 !important;
}
html[data-theme="dark"] .btn-outline-danger:hover,
html[data-bs-theme="dark"] .btn-outline-danger:hover,
html.dark .btn-outline-danger:hover,
body.dark .btn-outline-danger:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .btn-outline-warning,
html[data-bs-theme="dark"] .btn-outline-warning,
html.dark .btn-outline-warning,
body.dark .btn-outline-warning {
  border: 1.5px solid #f59e0b !important;
  color: #fbbf24 !important;
}
html[data-theme="dark"] .btn-outline-warning:hover,
html[data-bs-theme="dark"] .btn-outline-warning:hover,
html.dark .btn-outline-warning:hover,
body.dark .btn-outline-warning:hover {
  background: #f59e0b !important;
  color: #000000 !important;
}

html[data-theme="dark"] .btn-outline-info,
html[data-bs-theme="dark"] .btn-outline-info,
html.dark .btn-outline-info,
body.dark .btn-outline-info {
  border: 1.5px solid #3b82f6 !important;
  color: #60a5fa !important;
}
html[data-theme="dark"] .btn-outline-info:hover,
html[data-bs-theme="dark"] .btn-outline-info:hover,
html.dark .btn-outline-info:hover,
body.dark .btn-outline-info:hover {
  background: #3b82f6 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .btn-outline-secondary,
html[data-bs-theme="dark"] .btn-outline-secondary,
html.dark .btn-outline-secondary,
body.dark .btn-outline-secondary {
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .btn-outline-secondary:hover,
html[data-bs-theme="dark"] .btn-outline-secondary:hover,
html.dark .btn-outline-secondary:hover,
body.dark .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .btn-outline-primary,
html[data-bs-theme="dark"] .btn-outline-primary,
html.dark .btn-outline-primary,
body.dark .btn-outline-primary {
  border: 1.5px solid rgba(var(--primary), 0.7) !important;
  color: #c4b5fd !important;
}
html[data-theme="dark"] .btn-outline-primary:hover,
html[data-bs-theme="dark"] .btn-outline-primary:hover,
html.dark .btn-outline-primary:hover,
body.dark .btn-outline-primary:hover {
  background: rgba(var(--primary), 1) !important;
  color: #ffffff !important;
}

/* ════════════════════════════════════════════════════════════════
   33. KEYFRAME ANIMATIONS
   ════════════════════════════════════════════════════════════════ */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ════════════════════════════════════════════════════════════════
   34. AXELIT NATIVE FORM SWITCHES & TOGGLES (from _switch.scss)
   ════════════════════════════════════════════════════════════════ */
.form-switch {
  padding-left: 2.85rem !important;
  display: flex;
  align-items: center;
  min-height: 1.5rem;
}

.form-switch .form-check-input {
  width: 2.4rem !important;
  height: 1.3rem !important;
  margin-left: -2.85rem !important;
  background-color: rgba(var(--secondary), 0.25) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff' filter='drop-shadow(0 1px 2px rgba(0,0,0,0.2))'/%3e%3c/svg%3e") !important;
  background-position: left center !important;
  border-radius: 2rem !important;
  border: 1.5px solid rgba(var(--secondary), 0.3) !important;
  transition: background-position 0.2s ease-in-out, background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important;
  cursor: pointer !important;
  flex-shrink: 0;
}

.form-switch .form-check-input:focus {
  border-color: rgba(var(--primary), 0.8) !important;
  box-shadow: 0 0 0 3px rgba(var(--primary), 0.2) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
}

.form-switch .form-check-input:checked {
  background-color: rgba(var(--primary), 1) !important;
  border-color: rgba(var(--primary), 1) !important;
  background-position: right center !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff' filter='drop-shadow(0 1px 2px rgba(0,0,0,0.2))'/%3e%3c/svg%3e") !important;
}

html.dark .form-switch .form-check-input,
[data-bs-theme="dark"] .form-switch .form-check-input {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

html.dark .form-switch .form-check-input:checked,
[data-bs-theme="dark"] .form-switch .form-check-input:checked {
  background-color: rgba(var(--primary), 1) !important;
  border-color: rgba(var(--primary), 1) !important;
}

/* ════════════════════════════════════════════════════════════════
   35. AXELIT CHECKBOXES & RADIOS (from _checkbox_radio.scss)
   ════════════════════════════════════════════════════════════════ */
.form-check-input {
  border-radius: 6px !important;
  border: 1.5px solid rgba(var(--secondary), 0.35) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  width: 1.15em;
  height: 1.15em;
}

.form-check-input[type="radio"] {
  border-radius: 50% !important;
}

.form-check-input:checked {
  background-color: rgba(var(--primary), 1) !important;
  border-color: rgba(var(--primary), 1) !important;
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(var(--primary), 0.2) !important;
  border-color: rgba(var(--primary), 1) !important;
}

html.dark .form-check-input,
[data-bs-theme="dark"] .form-check-input {
  background-color: #222638 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ════════════════════════════════════════════════════════════════
   36. AXELIT FORM WIZARDS & STEPPERS (from _form_wizard.scss)
   ════════════════════════════════════════════════════════════════ */
.form-wizard {
  position: relative;
}

.form-wizard .form-wizard-header {
  position: relative;
}

.form-wizard .form-wizard-steps {
  display: flex;
  margin-bottom: 24px;
  height: 55px;
  justify-content: space-between;
  list-style: none;
  padding-left: 0;
}

.form-wizard .form-wizard-steps li {
  width: calc(50% - 30px);
  position: relative;
}

.form-wizard .form-wizard-steps li:last-child {
  width: 60px;
}

.form-wizard .form-wizard-steps li:last-child:after {
  content: none;
}

.form-wizard .form-wizard-steps li .wizard-steps {
  background-color: rgba(var(--secondary), 0.15);
  color: rgba(var(--dark), 0.7);
  border-radius: 12px;
  font-size: 18px;
  position: relative;
  text-align: center;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--app-transition);
  font-weight: 700;
}

.form-wizard .form-wizard-steps li .wizard-steps.circle-steps {
  border-radius: 50%;
}

.form-wizard .form-wizard-steps li:after {
  width: 100%;
  height: 2px;
  content: "";
  position: absolute;
  background-color: rgba(var(--secondary), 0.2);
  top: 24px;
  left: 0;
  transition: var(--app-transition);
}

.form-wizard .form-wizard-steps li.active .wizard-steps,
.form-wizard .form-wizard-steps li.activated .wizard-steps {
  background-color: rgba(var(--primary), 1);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(var(--primary), 0.35);
}

.form-wizard .form-wizard-steps li.activated:after {
  background-color: rgba(var(--primary), 1);
}

.navstpes {
  display: flex;
  gap: 12px;
  list-style: none;
  padding-left: 0;
}

.navstpes .nav-link {
  text-align: left;
  background-color: transparent;
  border: 1.5px solid rgba(var(--secondary), 0.18);
  display: flex;
  align-items: center;
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--font-color);
  transition: var(--app-transition);
  cursor: pointer;
}

.navstpes .nav-link i,
.navstpes .nav-link svg {
  color: rgba(var(--primary), 1);
  background-color: rgba(var(--primary), 0.1);
  padding: 6px;
  border-radius: 50%;
  font-size: 20px;
  margin-right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navstpes .nav-link:hover,
.navstpes .nav-link.active {
  background-color: rgba(var(--primary), 0.08);
  color: rgba(var(--primary), 1);
  border-color: rgba(var(--primary), 1);
}

.navstpes .nav-link.active i,
.navstpes .nav-link.active svg {
  color: #ffffff;
  background-color: rgba(var(--primary), 1);
}

.select-content {
  border: 1.5px solid var(--border_color);
  border-radius: 18px;
  padding: 16px;
  background: var(--bs-card-bg, #ffffff);
  transition: var(--app-transition);
}

.select-content:hover,
.select-content.selected {
  border-color: rgba(var(--primary), 1);
  box-shadow: 0 4px 20px rgba(var(--primary), 0.1);
}

/* ════════════════════════════════════════════════════════════════
   37. COMPREHENSIVE FRACTIONAL UTILITY HELPERS (Prevents Layout Clipping)
   ════════════════════════════════════════════════════════════════ */
.p-0\.5 { padding: 0.125rem !important; }
.p-1\.5 { padding: 0.375rem !important; }
.p-2\.5 { padding: 0.625rem !important; }
.p-3\.5 { padding: 0.875rem !important; }

.py-0\.5 { padding-top: 0.125rem !important; padding-bottom: 0.125rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.py-3\.5 { padding-top: 0.875rem !important; padding-bottom: 0.875rem !important; }

.px-0\.5 { padding-left: 0.125rem !important; padding-right: 0.125rem !important; }
.px-1\.5 { padding-left: 0.375rem !important; padding-right: 0.375rem !important; }
.px-2\.5 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
.px-3\.5 { padding-left: 0.875rem !important; padding-right: 0.875rem !important; }

.gap-0\.5 { gap: 0.125rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2\.5 { gap: 0.625rem !important; }
.gap-3\.5 { gap: 0.875rem !important; }

.mt-0\.5 { margin-top: 0.125rem !important; }
.mt-1\.5 { margin-top: 0.375rem !important; }
.mt-2\.5 { margin-top: 0.625rem !important; }
.mt-3\.5 { margin-top: 0.875rem !important; }

.mb-0\.5 { margin-bottom: 0.125rem !important; }
.mb-1\.5 { margin-bottom: 0.375rem !important; }
.mb-2\.5 { margin-bottom: 0.625rem !important; }
.mb-3\.5 { margin-bottom: 0.875rem !important; }

.me-0\.5 { margin-right: 0.125rem !important; }
.me-1\.5 { margin-right: 0.375rem !important; }
.me-2\.5 { margin-right: 0.625rem !important; }

.ms-0\.5 { margin-left: 0.125rem !important; }
.ms-1\.5 { margin-left: 0.375rem !important; }
.ms-2\.5 { margin-left: 0.625rem !important; }

.cursor-pointer { cursor: pointer !important; }

/* ════════════════════════════════════════════════════════════════
   38. WHATSAPP EMOJI PICKER POPOVER & COMPONENT STYLES
   ════════════════════════════════════════════════════════════════ */
.wa-emoji-popover {
  position: fixed;
  width: 330px;
  height: 375px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  background: var(--bs-card-bg, #ffffff);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.08);
  z-index: 1095 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.96) translateY(-4px);
  pointer-events: none;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-emoji-popover.show {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.wa-emoji-header {
  padding: 10px 12px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--bs-border-color, #f1f5f9);
  background: var(--bs-card-bg, #ffffff);
}

.wa-emoji-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(var(--dark, 15, 23, 42), 0.05);
  border-radius: 20px;
  padding: 4px 10px;
  gap: 6px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.wa-emoji-search-box:focus-within {
  background: #ffffff;
  border-color: rgba(var(--primary), 1);
  box-shadow: 0 0 0 2px rgba(var(--primary), 0.15);
}

.wa-emoji-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 12px;
  width: 100%;
  color: var(--bs-body-color, #1e293b);
}

.wa-emoji-clear-search {
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  font-size: 12px;
}

.wa-emoji-close-btn {
  font-size: 10px;
  opacity: 0.6;
}
.wa-emoji-close-btn:hover { opacity: 1; }

.wa-emoji-category-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: rgba(var(--dark, 15, 23, 42), 0.02);
  border-bottom: 1px solid var(--bs-border-color, #f1f5f9);
}

.wa-emoji-nav-btn {
  border: none;
  background: transparent;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wa-emoji-nav-btn:hover {
  background: rgba(var(--primary), 0.08);
  color: rgba(var(--primary), 1);
}

.wa-emoji-nav-btn.active {
  background: rgba(var(--primary), 0.15);
  color: rgba(var(--primary), 1);
  font-weight: bold;
}

.wa-emoji-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px 12px;
  scrollbar-width: thin;
}

.wa-emoji-section {
  margin-bottom: 12px;
}

.wa-emoji-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  padding-left: 2px;
}

.wa-emoji-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.wa-emoji-item {
  border: none;
  background: transparent;
  font-size: 20px;
  height: 36px;
  width: 100%;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease;
  user-select: none;
}

.wa-emoji-item:hover {
  background: rgba(var(--primary), 0.12);
  transform: scale(1.22);
  z-index: 2;
}

.wa-emoji-item:active {
  transform: scale(0.95);
}

/* Emoji Trigger Buttons across cards/inputs */
.btn-wa-emoji {
  border: 1px solid var(--bs-border-color, #e2e8f0);
  background: var(--bs-card-bg, #ffffff);
  color: #64748b;
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-wa-emoji:hover {
  background: rgba(var(--primary), 0.08);
  color: rgba(var(--primary), 1);
  border-color: rgba(var(--primary), 0.4);
}

/* Dark mode overrides for WhatsApp Emoji Picker */
html[data-theme="dark"] .wa-emoji-popover,
html[data-bs-theme="dark"] .wa-emoji-popover,
body.dark .wa-emoji-popover {
  background: #1e1e2d !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .wa-emoji-header,
html[data-bs-theme="dark"] .wa-emoji-header,
body.dark .wa-emoji-header {
  background: #1e1e2d !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .wa-emoji-search-box,
html[data-bs-theme="dark"] .wa-emoji-search-box,
body.dark .wa-emoji-search-box {
  background: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .wa-emoji-search-input,
html[data-bs-theme="dark"] .wa-emoji-search-input,
body.dark .wa-emoji-search-input {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .wa-emoji-category-nav,
html[data-bs-theme="dark"] .wa-emoji-category-nav,
body.dark .wa-emoji-category-nav {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .wa-emoji-nav-btn,
html[data-bs-theme="dark"] .wa-emoji-nav-btn,
body.dark .wa-emoji-nav-btn {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .wa-emoji-nav-btn.active,
html[data-bs-theme="dark"] .wa-emoji-nav-btn.active,
body.dark .wa-emoji-nav-btn.active {
  background: rgba(var(--primary), 0.25) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .wa-emoji-section-title,
html[data-bs-theme="dark"] .wa-emoji-section-title,
body.dark .wa-emoji-section-title {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .btn-wa-emoji,
html[data-bs-theme="dark"] .btn-wa-emoji,
body.dark .btn-wa-emoji {
  background: #1e1e2d !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
}

/* ── Universal Auth Floating Top Header Controls ───────────────────────────── */
.auth-floating-header {
  position: fixed;
  top: 18px;
  left: 20px;
  right: 20px;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.auth-floating-header > * {
  pointer-events: auto;
}

.auth-floating-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  min-width: 40px;
  padding: 0 15px;
  border-radius: 50px;
  background: var(--bs-card-bg, #ffffff);
  color: var(--bs-body-color, #1e293b);
  border: 1px solid rgba(var(--primary), 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-floating-btn.icon-only {
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.auth-floating-btn:hover {
  color: rgba(var(--primary), 1);
  border-color: rgba(var(--primary), 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary), 0.15);
}

html.dark .auth-floating-btn,
[data-bs-theme="dark"] .auth-floating-btn {
  background: #1e2235;
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

html.dark .auth-floating-btn:hover,
[data-bs-theme="dark"] .auth-floating-btn:hover {
  background: #272c42;
  color: #ffffff;
  border-color: rgba(var(--primary), 0.6);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.auth-floating-btn .flag-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  border: 1.5px solid rgba(255,255,255,0.7);
}

