/**
 * ERP MMS — Design System & Stylesheet
 * Typography: 100% Poppins Family (All Weights 100 to 900 + Italic Variations)
 * Layout: Top-Center Floating Navbar with Obsidian Full Canvas & Faded Aura Glows
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  /* Color Palette Tokens */
  --bg-void: #0D0D0D;
  --bg-base: #111112;
  --bg-card: #141414;
  --bg-card-elevated: #181819;
  --bg-card-hover: #1F1F21;
  --bg-surface-glass: rgba(20, 20, 20, 0.75);
  --bg-surface-subtle: rgba(255, 255, 255, 0.04);

  /* Borders & Insets */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: #242424;
  --border-hover: rgba(255, 255, 255, 0.22);
  --border-focus: #FF4B01;
  --inset-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --inset-card-glow: inset 0 0 20px rgba(255, 255, 255, 0.02);

  /* Typography Colors */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.78);
  --text-muted: rgba(255, 255, 255, 0.50);
  --text-dim: rgba(255, 255, 255, 0.32);

  /* Brand & Module Gradients */
  --brand-orange: #FF4B01;
  --grad-primary: linear-gradient(135deg, #C22E35 0%, #FF4B01 55%, #FF8A4D 100%);
  --grad-hr: linear-gradient(135deg, #6D28D9 0%, #8B5CF6 55%, #C4B5FD 100%);
  --grad-timesheet: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 55%, #60A5FA 100%);
  --grad-procurement: linear-gradient(135deg, #B45309 0%, #F59E0B 55%, #FCD34D 100%);
  --grad-asset: linear-gradient(135deg, #A21CAF 0%, #D946EF 55%, #F0ABFC 100%);
  --grad-emerald: linear-gradient(135deg, #047857 0%, #10B981 55%, #34D399 100%);

  /* Status Colors */
  --status-approved: #34D399;
  --status-pending: #FBBF24;
  --status-rejected: #F87171;
  --status-processing: #60A5FA;

  /* Font Families - 100% POPPINS FAMILY */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --font-serif: 'Poppins', sans-serif;
  --font-sans: 'Poppins', sans-serif;
  --font-mono: 'Poppins', sans-serif;

  /* Layout & Spacing Constants */
  --navbar-height: 74px;
  --space-gap: 28px;
  --space-card-mb: 28px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 180ms var(--ease-smooth);
  --transition-normal: 280ms var(--ease-smooth);
  --transition-spring: 450ms var(--ease-spring);
}

/* ==========================================================================
   RESET & BASE STYLES - 100% POPPINS
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
}

html {
  font-size: 14px;
  color-scheme: dark;
  scroll-behavior: smooth;
  font-family: var(--font-primary);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-void);
  color: var(--text-secondary);
  font-family: var(--font-primary) !important;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  position: relative;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app-container {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.page-content-wrapper {
  width: 100% !important;
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 32px;
  box-sizing: border-box;
  overflow-x: hidden;
}

#main-content-area {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden;
  box-sizing: border-box;
}

button, input, select, textarea, table, th, td, pre, code, kbd, samp {
  font-family: var(--font-primary) !important;
  max-width: 100%;
  box-sizing: border-box;
}

/* Noise Texture Overlay (GPU-friendly, disabled on mobile/tablet to prevent render glitches) */
.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 999;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@media (hover: none), (max-width: 1024px) {
  .noise-overlay {
    display: none !important; /* Eliminates GPU texture thrashing & glitching on tablet/mobile WebKit */
  }
}

/* GPU Hardware Acceleration for Smooth 60 FPS Render */
.hero-wave-canvas-wrapper,
.hero-wave-canvas,
#hero-neural-wave-canvas,
#login-neural-wave-canvas,
.hero-motion-showcase,
.app-top-navbar {
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Typography Hierarchy with Poppins Weights & Italics */
h1 {
  font-family: var(--font-heading) !important;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-heading) !important;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  letter-spacing: -0.015em;
}

h3 {
  font-family: var(--font-heading) !important;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

h4 {
  font-family: var(--font-heading) !important;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.45;
}

/* Poppins Weight & Italic Utilities */
.font-black { font-weight: 900 !important; }
.font-extrabold { font-weight: 800 !important; }
.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.font-medium { font-weight: 500 !important; }
.font-regular { font-weight: 400 !important; }
.font-light { font-weight: 300 !important; }
.font-extralight { font-weight: 200 !important; }
.font-thin { font-weight: 100 !important; }

.italic { font-style: italic !important; }
.font-light-italic { font-weight: 300 !important; font-style: italic !important; }
.font-regular-italic { font-weight: 400 !important; font-style: italic !important; }
.font-medium-italic { font-weight: 500 !important; font-style: italic !important; }
.font-semibold-italic { font-weight: 600 !important; font-style: italic !important; }
.font-bold-italic { font-weight: 700 !important; font-style: italic !important; }

/* Micro Badge Styled with Poppins */
.text-mono-badge {
  font-family: var(--font-primary) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-trend-up, .stat-trend-warn {
  font-family: var(--font-primary) !important;
  font-size: 11px;
  font-weight: 400;
  font-style: italic;
}

/* ==========================================================================
   AMBIENT GLOWING AURAS (FADED COLOR AURA MESH)
   ========================================================================== */

.ambient-glow-top {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100vw);
  max-width: 100vw;
  height: 380px;
  background: radial-gradient(ellipse, rgba(255, 75, 1, 0.12) 0%, rgba(139, 92, 246, 0.06) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.nalar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--inset-card-glow), 0 8px 32px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.nalar-table-container {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  box-sizing: border-box;
  margin-top: 10px;
}

.nalar-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.form-row {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.card-aura-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(65px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  transition: opacity var(--transition-normal);
}

.nalar-card:hover .card-aura-glow {
  opacity: 0.28;
}

.aura-orange { background: #FF4B01; }
.aura-purple { background: #8B5CF6; }
.aura-blue { background: #3B82F6; }
.aura-amber { background: #F59E0B; }
.aura-emerald { background: #10B981; }

.aura-box-blue {
  background: radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 0% 100%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
              var(--bg-card) !important;
  border-color: rgba(59, 130, 246, 0.28) !important;
}

.aura-box-violet {
  background: radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.14) 0%, transparent 60%),
              radial-gradient(circle at 0% 100%, rgba(109, 40, 217, 0.08) 0%, transparent 60%),
              var(--bg-card) !important;
  border-color: rgba(139, 92, 246, 0.28) !important;
}

.aura-box-amber {
  background: radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 0% 100%, rgba(217, 119, 6, 0.08) 0%, transparent 60%),
              var(--bg-card) !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
}

.aura-box-orange {
  background: radial-gradient(circle at 100% 0%, rgba(255, 75, 1, 0.14) 0%, transparent 60%),
              radial-gradient(circle at 0% 100%, rgba(194, 46, 53, 0.08) 0%, transparent 60%),
              var(--bg-card) !important;
  border-color: rgba(255, 75, 1, 0.28) !important;
}

/* HUD Corner Box */
.hud-corner-box {
  position: relative;
}

.hud-corner-box::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  border-top: 2px solid rgba(255, 255, 255, 0.4);
  border-right: 2px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
  border-top-right-radius: 4px;
}

/* ==========================================================================
   TOP-CENTER FLOATING NAVBAR (NALAR AESTHETICS)
   ========================================================================== */

.app-top-navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--navbar-height);
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-navbar-container {
  width: 100%;
  max-width: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Left: Brand anchored to far left */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: flex-start;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 75, 1, 0.35);
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(255, 75, 1, 0.45));
  transition: transform var(--transition-fast);
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.08) rotate(3deg);
}

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

.brand-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.15;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Center: Floating Navigation Pill (Nalar Style - Dead Center) */
.navbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.nav-center-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(22, 22, 25, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 4px 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 400;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.nav-pill-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-pill-item.active {
  color: #fff;
  background: rgba(255, 75, 1, 0.16);
  border-color: rgba(255, 75, 1, 0.45);
  box-shadow: 0 0 16px rgba(255, 75, 1, 0.22);
  font-weight: 500;
}

.nav-pill-item.active svg {
  color: var(--brand-orange);
}

.nav-badge-count {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  background: var(--brand-orange);
  color: #fff;
  margin-left: 4px;
}

/* Glassmorphic Floating Nav Dropdown (HC Hub) */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-flex;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(16, 16, 20, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 270px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 24px rgba(139, 92, 246, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-dropdown-wrapper.dropdown-open .nav-dropdown-menu,
.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.btn-preset-pill {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-preset-pill:hover,
.btn-preset-pill.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34D399;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  text-align: left;
}

.nav-dropdown-item:hover {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.3);
  color: #fff;
  transform: translateX(3px);
}

.dropdown-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.18);
  color: #C4B5FD;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.dropdown-item-title {
  font-weight: 600;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
}

.dropdown-item-desc {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* Right: User Profile & Role Chip anchored to far right */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
  flex-shrink: 0;
}

.navbar-user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(22, 22, 25, 0.85);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  padding: 5px 14px 5px 6px;
  box-shadow: var(--inset-highlight);
  white-space: nowrap;
  flex-shrink: 0;
}

.user-chip-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: var(--grad-primary);
  flex-shrink: 0;
}

.user-chip-meta {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  min-width: max-content;
}

.user-chip-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
}

.user-chip-role {
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  line-height: 1.2;
  white-space: nowrap;
}

.navbar-role-select {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 11.5px;
  padding: 5px 10px;
  outline: none;
  cursor: pointer;
  font-family: var(--font-primary);
  white-space: nowrap;
}

.navbar-role-select:focus {
  border-color: var(--brand-orange);
}

.btn-header-login {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Cloud DB Status Pill Badge (Desktop) */
.btn-header-cloud {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60A5FA;
}

.btn-header-cloud.is-online {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.45);
  color: #34D399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.18);
}

.btn-header-cloud.is-online:hover {
  background: rgba(16, 185, 129, 0.24);
  border-color: #34D399;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.38);
  color: #FFFFFF;
}

.btn-header-cloud.is-offline {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.35);
  color: #60A5FA;
}

.btn-header-cloud.is-offline:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: #60A5FA;
  color: #FFFFFF;
}

.cloud-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  display: inline-block;
  flex-shrink: 0;
  animation: pulse-dot-glow 2s infinite ease-in-out;
}

.btn-header-cloud.is-offline .cloud-pulse-dot {
  background: #94A3B8;
  box-shadow: none;
  animation: none;
}

@keyframes pulse-dot-glow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Logout Button (Desktop) */
.btn-header-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 500;
  font-family: var(--font-primary);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #F87171;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-header-logout:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #F87171;
  color: #FFFFFF;
}

/* Mobile Hamburger Menu Button (Default hidden on desktop) */
.btn-mobile-menu {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #FFFFFF;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.btn-mobile-menu:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Mobile Navigation Drawer & Backdrop */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: #111114;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 15px 0 45px rgba(0, 0, 0, 0.85);
  z-index: 1600;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav-drawer.show,
.mobile-nav-drawer.open,
.mobile-nav-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-content {
  padding: 16px 12px;
  flex: 1;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.drawer-nav-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.drawer-nav-btn.active {
  background: rgba(255, 75, 1, 0.16);
  border-color: rgba(255, 75, 1, 0.45);
  color: #fff;
  font-weight: 600;
}

.drawer-nav-btn.active svg {
  color: var(--brand-orange);
}

/* Mobile Drawer Sub-menu & Accordion */
.drawer-dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-chevron {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  padding: 0 4px;
}

.drawer-submenu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 20px;
  padding-top: 4px;
  padding-bottom: 4px;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  margin-left: 20px;
}

.drawer-sub-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.drawer-sub-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
}

.drawer-sub-btn.active {
  background: rgba(255, 75, 1, 0.18);
  border-color: rgba(255, 75, 1, 0.4);
  color: #FFFFFF;
  font-weight: 600;
}

.drawer-sub-btn .sub-icon {
  font-size: 13px;
  line-height: 1;
}

/* Super Admin Role Switcher in Mobile Drawer */
.drawer-role-box {
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-role-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--brand-orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.drawer-role-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 12px;
  padding: 8px 10px;
  outline: none;
  cursor: pointer;
}

/* Buttons */
.btn-nalar-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: #0D0D0D;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.btn-nalar-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.24);
}

.btn-nalar-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  box-shadow: var(--inset-highlight);
}

.btn-nalar-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   APPROVAL CENTER THEMATIC FILTER PILLS
   ========================================================================== */

.approval-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.approval-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: rgba(22, 22, 25, 0.85);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--inset-highlight);
}

.approval-filter-pill:hover {
  color: #fff;
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.filter-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-orange { background: var(--brand-orange); }
.dot-violet { background: #8B5CF6; }
.dot-blue { background: #3B82F6; }
.dot-amber { background: #F59E0B; }
.dot-pink { background: #EC4899; }
.dot-emerald { background: #10B981; }
.dot-cyan { background: #06B6D4; }
.dot-red { background: #EF4444; }

.filter-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

/* Active states with theme-specific glowing aura */
.approval-filter-pill.pill-all.active {
  background: rgba(255, 75, 1, 0.15);
  border-color: rgba(255, 75, 1, 0.5);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 75, 1, 0.22);
}
.approval-filter-pill.pill-all.active .filter-badge {
  background: var(--brand-orange);
  color: #fff;
}

.approval-filter-pill.pill-leave.active {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.55);
  color: #fff;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}
.approval-filter-pill.pill-leave.active .filter-badge {
  background: #8B5CF6;
  color: #fff;
}

.approval-filter-pill.pill-timesheet.active {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.55);
  color: #fff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
}
.approval-filter-pill.pill-timesheet.active .filter-badge {
  background: #3B82F6;
  color: #fff;
}

.approval-filter-pill.pill-pr.active {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.55);
  color: #fff;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}
.approval-filter-pill.pill-pr.active .filter-badge {
  background: #F59E0B;
  color: #000;
}

.approval-filter-pill.pill-ca.active {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.55);
  color: #fff;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}
.approval-filter-pill.pill-ca.active .filter-badge {
  background: #F59E0B;
  color: #000;
}

.approval-filter-pill.pill-pending.active {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.55);
  color: #fff;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}
.approval-filter-pill.pill-pending.active .filter-badge {
  background: #F59E0B;
  color: #000;
}

.approval-filter-pill.pill-disbursed.active {
  background: rgba(236, 72, 153, 0.16);
  border-color: rgba(236, 72, 153, 0.55);
  color: #fff;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.25);
}
.approval-filter-pill.pill-disbursed.active .filter-badge {
  background: #EC4899;
  color: #fff;
}

.approval-filter-pill.pill-settlement.active {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.55);
  color: #fff;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}
.approval-filter-pill.pill-settlement.active .filter-badge {
  background: #8B5CF6;
  color: #fff;
}

.approval-filter-pill.pill-settled.active {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.55);
  color: #fff;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}
.approval-filter-pill.pill-settled.active .filter-badge {
  background: #10B981;
  color: #000;
}

.approval-filter-pill.pill-rejected.active {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.55);
  color: #fff;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
}
.approval-filter-pill.pill-rejected.active .filter-badge {
  background: #EF4444;
  color: #fff;
}

/* Hyperlink button for photo preview */
.btn-preview-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-sm);
  color: #FCD34D;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-preview-link:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: #FCD34D;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
}

.btn-mobile-menu {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   MAIN CONTENT CANVAS & HERO MOTION WAVE SECTION
   ========================================================================== */

.app-main-canvas {
  width: 100%;
  min-height: calc(100vh - var(--navbar-height));
  position: relative;
  z-index: 10;
}

.page-content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 32px 28px 80px 28px;
}

/* Hero Showcase Container - Edge-to-Edge Full Viewport Canvas (Nalar Style) */
.hero-motion-showcase {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  border: none;
  border-radius: 0;
  background: radial-gradient(ellipse 100% 70% at 50% -10%, rgba(255, 75, 1, 0.16) 0%, rgba(139, 92, 246, 0.07) 45%, rgba(13, 13, 13, 0) 85%);
  padding: 68px 32px 76px 32px;
  margin-top: -32px;
  margin-bottom: 40px;
  overflow: hidden;
  text-align: center;
  box-shadow: none;
  border-bottom: none;
}

.hero-wave-canvas-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

.hero-wave-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hero-title-headline {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #FFFFFF 15%, #E2E8F0 65%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 28px;
}

.hero-actions-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   CARDS & KPI STATS
   ========================================================================== */

.nalar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--inset-highlight), 0 10px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: var(--space-card-mb);
  transition: all var(--transition-normal);
}

.nalar-card:hover {
  border-color: var(--border-hover);
}

.kpi-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-gap);
  margin-bottom: var(--space-card-mb);
}

.kpi-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--inset-highlight), 0 10px 28px rgba(0, 0, 0, 0.35);
}

.kpi-chip:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-elevated);
  transform: translateY(-2px);
}

.kpi-chip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.kpi-chip-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.kpi-chip-value {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.kpi-chip-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.stat-trend-up {
  color: var(--status-approved);
  font-family: var(--font-mono);
  font-weight: 600;
}

.stat-trend-warn {
  color: var(--status-pending);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* ==========================================================================
   ANIMATED FLOWING CONNECTOR PIPELINE
   ========================================================================== */

.pipeline-flow-container {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  padding: 16px 0;
  width: 100%;
}

.flow-step-node {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  z-index: 2;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.flow-step-node.completed {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.05);
}

.flow-step-node.active {
  border-color: var(--brand-orange);
  background: rgba(255, 75, 1, 0.08);
  box-shadow: 0 0 16px rgba(255, 75, 1, 0.2);
}

.flow-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.flow-step-node.completed .flow-step-dot { background: var(--status-approved); }
.flow-step-node.active .flow-step-dot { background: var(--brand-orange); animation: nx-pulse-live 1.5s infinite; }

.flow-connector-line {
  flex: 1;
  height: 2px;
  background-image: linear-gradient(90deg, var(--border-card) 50%, transparent 50%);
  background-size: 14px 2px;
  animation: nx-hiwd-flow 1.2s linear infinite;
  min-width: 24px;
}

/* ==========================================================================
   DATA TABLES & LISTS
   ========================================================================== */

.nalar-table-container {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow-x: auto;
  background: var(--bg-card);
  box-shadow: var(--inset-highlight);
}

.nalar-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.nalar-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  padding: 16px 22px;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-subtle);
}

.nalar-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13.5px;
  color: var(--text-secondary);
  vertical-align: middle;
}

.nalar-table tr:last-child td {
  border-bottom: none;
}

.nalar-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-approved {
  background: rgba(52, 211, 153, 0.12);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-pending {
  background: rgba(251, 191, 36, 0.12);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-rejected {
  background: rgba(248, 113, 113, 0.12);
  color: #F87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

/* ==========================================================================
   MODALS (LUXURY GLASSMORPHISM)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10005;
  padding: calc(var(--navbar-height) + 36px) 24px 36px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.show,
.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: calc(100vh - var(--navbar-height) - 60px);
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition-spring);
  position: relative;
}

.modal-backdrop.show .modal-box,
.modal-backdrop.active .modal-box {
  transform: translateY(0px) scale(1);
}

.modal-box::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 120px;
  background: radial-gradient(ellipse, rgba(255, 75, 1, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

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

.modal-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  font-family: var(--font-primary);
}

.form-control:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(255, 75, 1, 0.15);
}

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

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  background: rgba(13, 13, 13, 0.5);
}

/* ==========================================================================
   LOGIN SCREEN OVERLAY (AUTHENTICATION)
   ========================================================================== */

.login-screen-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.login-screen-overlay.show,
.login-screen-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.login-card {
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.quick-role-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  width: 100%;
}

.quick-role-btn:hover {
  border-color: var(--brand-orange);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   MOBILE DRAWER NAVIGATION
   ========================================================================== */

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  background: #121214;
  border-right: 1px solid var(--border-card);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--transition-spring);
  box-shadow: 20px 0 50px rgba(0, 0, 0, 0.8);
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-content {
  padding: 24px 16px;
  overflow-y: auto;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-family: var(--font-primary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
}

.drawer-nav-btn.active {
  background: rgba(255, 75, 1, 0.15);
  border-color: rgba(255, 75, 1, 0.4);
  color: #fff;
  font-weight: 500;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.nalar-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #18181A;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  pointer-events: auto;
  animation: nx-toast-enter 0.35s var(--ease-spring);
}

.nalar-toast.success { border-left: 3px solid #34D399; }
.nalar-toast.warn { border-left: 3px solid #FBBF24; }
.nalar-toast.error { border-left: 3px solid #F87171; }

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */

@keyframes nx-pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

@keyframes nx-hiwd-flow {
  0% { background-position: 0 0; }
  100% { background-position: 28px 0; }
}

@keyframes nx-toast-enter {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.animate-blur-in {
  animation: nx-blur-in 0.4s var(--ease-spring);
}

@keyframes nx-blur-in {
  from { opacity: 0; filter: blur(6px); transform: translateY(8px); }
  to { opacity: 1; filter: blur(0px); transform: translateY(0); }
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--status-approved);
  display: inline-block;
  animation: nx-pulse-live 2s infinite ease-in-out;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1080px) {
  .nav-center-pill {
    padding: 3px 4px;
  }

  .nav-pill-item {
    padding: 7px 12px;
    font-size: 12px;
    gap: 6px;
  }

  .hero-title-headline {
    font-size: 34px;
  }

  .kpi-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .navbar-center {
    display: none;
  }

  .btn-mobile-menu {
    display: flex;
  }

  .navbar-user-chip .user-chip-meta {
    display: none;
  }

  .hero-motion-showcase {
    padding: 36px 20px;
  }

  .hero-title-headline {
    font-size: 28px;
  }

  .kpi-stat-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-flow-container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .flow-connector-line {
    width: 2px;
    height: 18px;
    margin: 0 auto;
  }

  [style*="grid-template-columns: 1.4fr 1fr"],
  [style*="grid-template-columns: 1fr 1.6fr"],
  [style*="grid-template-columns: 1fr 1.5fr"] {
    grid-template-columns: 1fr !important;
  }

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

/* ==========================================================================
   APPROVAL STEPPER & MULTI-LEVEL TRACKER STYLES
   ========================================================================== */

.approval-tracker-stepper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0px;
  padding: 8px 0;
}

.tracker-step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.tracker-step-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 36px;
  min-height: 100%;
}

.tracker-step-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  z-index: 2;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.tracker-step-node.completed {
  background: linear-gradient(135deg, #059669, #10B981);
  color: #fff;
  border: 2px solid #34D399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
}

.tracker-step-node.active {
  background: linear-gradient(135deg, #D97706, #F59E0B);
  color: #fff;
  border: 2px solid #FCD34D;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
  animation: nx-node-pulse 1.8s infinite ease-in-out;
}

.tracker-step-node.upcoming {
  background: rgba(30, 36, 48, 0.9);
  color: var(--text-dim);
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
}

.tracker-step-node.rejected {
  background: linear-gradient(135deg, #DC2626, #EF4444);
  color: #fff;
  border: 2px solid #F87171;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
}

.tracker-step-line {
  width: 2px;
  flex: 1;
  min-height: 48px;
  margin: 4px 0;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
}

.tracker-step-line.completed {
  background: #34D399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

.tracker-step-line.active {
  background: linear-gradient(180deg, #F59E0B 0%, rgba(255, 255, 255, 0.1) 100%);
}

.tracker-step-content {
  flex: 1;
  background: rgba(18, 22, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.tracker-step-item.active .tracker-step-content {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.tracker-step-item.completed .tracker-step-content {
  border-color: rgba(52, 211, 153, 0.25);
}

@keyframes nx-node-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(245, 158, 11, 0.4); }
  50% { transform: scale(1.08); box-shadow: 0 0 20px rgba(245, 158, 11, 0.8); }
}

/* ==========================================================================
   FLOATING ACTION BUTTON (FAB) & SYSTEM MAINTENANCE MODAL (HC & DIR OPS)
   ========================================================================== */
.fab-system-settings {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 990;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4338CA 100%);
  border: 1.5px solid rgba(167, 139, 250, 0.5);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(139, 92, 246, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
}

.fab-system-settings:hover {
  transform: scale(1.1) translateY(-2px);
  border-color: #A78BFA;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 28px rgba(167, 139, 250, 0.6);
}

.fab-system-settings:active {
  transform: scale(0.95);
}

.fab-system-settings svg {
  transition: transform 0.6s ease;
}

.fab-system-settings:hover svg {
  transform: rotate(90deg);
}

.fab-pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid rgba(167, 139, 250, 0.4);
  animation: fab-ring-pulse 2.5s infinite;
  pointer-events: none;
}

@keyframes fab-ring-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.fab-tooltip {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: #E0E7FF;
  font-size: 11.5px;
  font-family: var(--font-mono);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
}

.fab-system-settings:hover .fab-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

/* ==========================================================================
   SPLIT-SCREEN MODERN LOGIN PAGE (UI SOCIAL STYLE)
   ========================================================================== */
.split-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #090B10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
  box-sizing: border-box;
  overflow: hidden;
}

.login-bg-wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.split-login-overlay.show,
.split-login-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.split-login-card {
  max-width: 1060px;
  width: 100%;
  min-height: 640px;
  background: #FFFFFF;
  border-radius: 32px;
  display: flex;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.75), 0 0 1px rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
  z-index: 2;
  animation: splitCardZoomIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes splitCardZoomIn {
  0% { transform: scale(0.96) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Left Pane: Hero Visual & Carousel */
.split-login-left {
  flex: 1.1;
  position: relative;
  background: url('../assets/login-hero-bg.jpg') center/cover no-repeat;
  border-radius: 24px;
  margin: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #FFFFFF;
}

.split-login-left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,10,18,0.5) 0%, rgba(8,10,18,0.15) 40%, rgba(8,10,18,0.88) 100%);
  pointer-events: none;
}

.split-left-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.split-left-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

.split-left-brand-tag .pulse-spark {
  color: #F59E0B;
  font-size: 15px;
  animation: sparkPulse 2s infinite ease-in-out;
}

@keyframes sparkPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.split-left-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-split-ghost {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  transition: color 0.2s;
}

.btn-split-ghost:hover {
  color: #FFFFFF;
}

.btn-split-pill {
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.35);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-split-pill:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-1px);
}

.split-left-center {
  position: relative;
  z-index: 2;
  margin: 30px 0;
}

.split-glow-text {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF;
  text-shadow: 0 4px 20px rgba(0,0,0,0.85);
  margin-bottom: 10px;
}

.split-glow-desc {
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
  max-width: 400px;
  margin: 0;
}

/* Left Bottom Pill (Matching Andrew.ui in reference image) */
.split-left-bottom-pill {
  position: relative;
  z-index: 2;
  background: rgba(14, 18, 28, 0.82);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.split-pill-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.split-pill-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EF4444 0%, #F59E0B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.split-pill-meta {
  min-width: 0;
}

.split-pill-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.split-pill-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.split-pill-arrows {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.split-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.split-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.06);
}

/* Right Pane: Clean Modern Form */
.split-login-right {
  flex: 1;
  background: #FFFFFF;
  padding: 44px 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #0F172A;
  position: relative;
}

.split-right-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.split-logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.split-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.split-logo-text {
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: 0.5px;
}

.split-logo-text strong {
  color: #EF4444;
  font-weight: 800;
}

.split-lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 5px 12px;
  border-radius: 999px;
  user-select: none;
}

.split-right-body {
  margin: auto 0;
}

.split-greeting-box {
  margin-bottom: 24px;
}

.split-main-greeting {
  font-size: 34px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}

.split-greeting-sub {
  font-size: 13.5px;
  color: #64748B;
  margin: 0;
}

.split-input-group {
  margin-bottom: 16px;
  text-align: left;
}

.split-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.split-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.split-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  font-size: 13.5px;
  color: #0F172A;
  background: #F8FAFC;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.split-input:focus {
  border-color: #EF4444;
  background: #FFFFFF;
  box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.12);
}

.split-toggle-eye {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.split-toggle-eye:hover {
  color: #475569;
}

.split-form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-top: 4px;
  margin-bottom: 18px;
}

.split-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748B;
  cursor: pointer;
  user-select: none;
}

.split-forgot-link {
  color: #EF4444;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.split-forgot-link:hover {
  color: #DC2626;
  text-decoration: underline;
}

.split-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: #94A3B8;
  font-size: 12px;
}

.split-divider::before,
.split-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #E2E8F0;
}

.split-divider span {
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

/* Quick SSO / Fast Account Switcher Pill */
.btn-split-sso {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  background: #FFFFFF;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.btn-split-sso:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* Primary Red/Orange Pill Button (Exact Match to Reference Image) */
.btn-split-primary-login {
  width: 100%;
  padding: 13.5px 24px;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  border: none;
  border-radius: 999px;
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.38);
  transition: all 0.2s ease;
  letter-spacing: 0.4px;
}

.btn-split-primary-login:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.52);
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
}

.btn-split-primary-login:active {
  transform: translateY(1px);
}

.split-signup-hint {
  margin-top: 16px;
  font-size: 12px;
  color: #64748B;
  text-align: center;
}

.split-signup-hint a {
  color: #EF4444;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.split-signup-hint a:hover {
  text-decoration: underline;
}

.split-right-footer {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.split-social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.split-social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}

.split-social-link:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: translateY(-1.5px);
}

/* Quick Role Picker Modal / Drawer */
.quick-role-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(8, 10, 18, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.quick-role-picker-modal.show {
  display: flex;
}

.quick-role-picker-box {
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  background: #121622;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 24px;
  overflow-y: auto;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
  color: #FFFFFF;
}

/* ==========================================================================
   RESPONSIVE MOBILE LOGIN EXPERIENCE (COMPACT, FAST & SEAMLESS)
   ========================================================================== */
@media (max-width: 860px) {
  .split-login-overlay {
    padding: 16px;
    align-items: center;
    overflow-y: auto;
  }

  .split-login-card {
    flex-direction: column;
    max-width: 420px;
    width: 100%;
    min-height: auto;
    max-height: none;
    border-radius: 24px;
    margin: auto;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75), 0 0 1px rgba(255, 255, 255, 0.2);
  }

  /* Sembunyikan sisi visual kiri & deskripsi panjang di layar handphone */
  .split-login-left {
    display: none !important;
  }

  .split-login-right {
    padding: 32px 24px 28px 24px;
    border-radius: 24px;
  }

  .split-right-header {
    margin-bottom: 18px !important;
  }

  .split-logo-img {
    width: 32px;
    height: 32px;
  }

  .split-logo-text {
    font-size: 16px;
  }

  .split-greeting-box {
    margin-bottom: 22px !important;
  }

  .split-main-greeting {
    font-size: 24px;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
  }

  .split-greeting-sub {
    font-size: 12.5px;
  }

  .split-input-group {
    margin-bottom: 16px !important;
  }

  .split-label {
    font-size: 11.5px;
    margin-bottom: 5px;
  }

  .split-input {
    padding: 11.5px 14px;
    font-size: 13.5px;
    border-radius: 10px;
  }

  .btn-split-primary-login {
    padding: 12px 20px;
    font-size: 14px;
    margin-top: 6px !important;
  }
}

@media (max-width: 420px) {
  .split-login-overlay {
    padding: 12px;
  }

  .split-login-card {
    border-radius: 20px;
  }

  .split-login-right {
    padding: 26px 18px 22px 18px;
    border-radius: 20px;
  }

  .split-main-greeting {
    font-size: 22px;
  }

  .split-input {
    padding: 10.5px 13px;
    font-size: 13px;
  }
}

/* ==========================================================================
   RESPONSIVE TOP NAVBAR (CLEAN, PROPORTIONAL & CIRCULAR ICONS ON MOBILE)
   ========================================================================== */
@media (max-width: 900px) {
  .btn-mobile-menu {
    display: flex;
  }

  .navbar-center {
    display: none !important;
  }

  .app-top-navbar {
    height: 64px;
  }

  .top-navbar-container {
    padding: 0 16px;
    gap: 12px;
  }

  .navbar-left {
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-link {
    gap: 10px;
    min-width: 0;
  }

  .brand-logo-img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .brand-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    letter-spacing: -0.01em;
  }

  .brand-subtitle {
    font-size: 9px;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
  }

  /* 1. Nama Akun di Navbar: Lingkaran Avatar Elegan */
  .navbar-user-chip {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    gap: 0 !important;
  }

  .user-chip-meta {
    display: none !important;
  }

  .user-chip-avatar {
    width: 36px;
    height: 36px;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  .user-chip-avatar:hover {
    transform: scale(1.06);
  }

  /* 2. Indikator Status Cloud (Supabase) di Mobile: Lingkaran Kompak & Ikon Glow */
  .btn-header-cloud {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .btn-header-cloud:hover {
    transform: scale(1.06);
  }

  .btn-header-cloud .cloud-status-text {
    display: none !important;
  }

  .btn-header-cloud .cloud-pulse-dot {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    width: 6px !important;
    height: 6px !important;
  }

  .btn-header-cloud .cloud-icon {
    width: 16px !important;
    height: 16px !important;
  }

  /* 3. Tombol Log Out di Navbar: Lingkaran Ikon Ramping */
  .btn-header-logout,
  .btn-header-login {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #F87171 !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.18) !important;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .btn-header-logout:hover,
  .btn-header-login:hover {
    background: rgba(239, 68, 68, 0.28) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    color: #FFFFFF !important;
    transform: scale(1.06);
  }

  .btn-header-logout svg,
  .btn-header-login svg {
    width: 15px;
    height: 15px;
  }

  #btn-header-auth-label {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .top-navbar-container {
    padding: 0 10px;
    gap: 6px;
  }

  .navbar-left {
    gap: 6px;
  }

  .brand-logo-img {
    width: 28px;
    height: 28px;
  }

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

  .brand-subtitle {
    font-size: 8px;
  }

  .navbar-right {
    gap: 6px;
  }

  .btn-mobile-menu,
  .user-chip-avatar,
  .btn-header-cloud,
  .btn-header-logout,
  .btn-header-login {
    width: 32px !important;
    height: 32px !important;
  }
}

/* ==========================================================================
   INTERACTIVE LEAVE & HOLIDAY CALENDAR SYSTEM (RESPONSIVE & ADAPTIVE)
   ========================================================================== */
.cuti-calendar-card {
  margin-bottom: 28px;
  padding: 24px 26px;
  background: rgba(18, 14, 10, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.cal-header-title-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cal-nav-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.cal-month-title {
  min-width: 130px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

.cuti-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
}

.cal-day-header {
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: 0.05em;
}

.cal-day-header.weekend {
  color: #F87171;
}

.cal-cell {
  min-height: 80px;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.18s ease;
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
}

.cal-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.25);
}

.cal-cell.is-prev-next {
  min-height: 80px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  opacity: 0.35;
  cursor: not-allowed;
  padding: 8px;
}

.cal-cell.is-prev-next:hover {
  transform: none;
  box-shadow: none;
}

.cal-cell.has-approved {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.5);
}

.cal-cell.has-pending {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.cal-cell.has-holiday {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.cal-cell.is-weekend {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cal-cell.is-today {
  border: 2px solid #60A5FA !important;
  box-shadow: 0 0 16px rgba(96, 165, 250, 0.2);
}

.cal-cell-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.cal-date-number {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.cal-date-number.is-holiday,
.cal-date-number.is-weekend {
  color: #F87171;
}

.cal-today-badge {
  font-size: 9px;
  font-weight: 700;
  color: #60A5FA;
  background: rgba(59, 130, 246, 0.2);
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.cal-cell-bottom {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.cal-event-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.cal-event-pill.approved {
  color: #6EE7B7;
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.cal-event-pill.pending {
  color: #FCD34D;
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.cal-event-pill.holiday {
  color: #FCA5A5;
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.cal-status-text {
  font-size: 10px;
  text-align: right;
  line-height: 1;
}

/* Mobile & Small Screen Responsive Adjustments for Calendar */
@media (max-width: 768px) {
  .cuti-calendar-card {
    padding: 16px 10px;
    margin-bottom: 20px;
    border-radius: 16px;
  }

  .cal-header-row {
    margin-bottom: 12px;
    gap: 10px;
  }

  .cal-nav-toolbar {
    width: 100%;
    justify-content: space-between;
    padding: 4px 6px;
  }

  .cal-month-title {
    min-width: auto;
    flex: 1;
    font-size: 13px;
  }

  .cuti-calendar-grid {
    gap: 3px;
    margin-top: 6px;
  }

  .cal-day-header {
    font-size: 10px;
    padding: 4px 0;
  }

  .cal-cell {
    min-height: 48px;
    padding: 4px 2px;
    border-radius: 6px;
    align-items: center;
    justify-content: space-between;
  }

  .cal-cell.is-prev-next {
    min-height: 48px;
    padding: 4px 2px;
  }

  .cal-cell-top {
    justify-content: center;
  }

  .cal-date-number {
    font-size: 11.5px;
    text-align: center;
  }

  /* Lingkaran Hari Ini di Mobile agar tidak tumpang tindih */
  .cal-cell.is-today .cal-date-number {
    background: #3B82F6;
    color: #FFFFFF !important;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
  }

  .cal-today-badge {
    display: none !important;
  }

  /* Di Mobile: Ganti teks panjang menjadi Micro Dot Indicator yang proporsional */
  .cal-event-pill {
    font-size: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin: 0 auto;
    padding: 0;
  }

  .cal-status-text {
    font-size: 8px;
    text-align: center;
  }

  .cal-legend-bar {
    font-size: 10.5px !important;
    gap: 8px !important;
  }
}

@media (max-width: 400px) {
  .cuti-calendar-card {
    padding: 12px 6px;
  }

  .cuti-calendar-grid {
    gap: 2px;
  }

  .cal-cell {
    min-height: 44px;
    padding: 3px 1px;
  }

  .cal-date-number {
    font-size: 10.5px;
  }

  .cal-cell.is-today .cal-date-number {
    width: 19px;
    height: 19px;
    font-size: 10px;
  }
}

/* ==========================================================================
   GLOBAL RESPONSIVE ANTI-OVERFLOW & FLOATING CARD GUTTERS (MELAYANG & LEGA)
   ========================================================================== */
@media (max-width: 900px) {
  .page-content-wrapper {
    padding: 24px 20px 90px 20px !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .top-navbar-container {
    padding: 0 20px !important;
  }

  /* Kartu Melayang yang Luwes & Lega */
  .nalar-card {
    padding: 22px 20px !important;
    border-radius: 20px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 22px !important;
    background: rgba(20, 20, 24, 0.92) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  }

  /* Hero Showcase Responsif yang Proporsional & Lega */
  .hero-motion-showcase {
    padding: 40px 20px 48px 20px !important;
    margin-top: -24px !important;
    margin-bottom: 28px !important;
    width: auto !important;
    left: auto !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 24px !important;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 75, 1, 0.15) 0%, rgba(139, 92, 246, 0.08) 50%, rgba(18, 18, 22, 0.9) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7) !important;
  }

  .hero-title-headline {
    font-size: 28px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 12px !important;
  }

  .hero-subtitle-desc {
    font-size: 13.5px !important;
    line-height: 1.65 !important;
    max-width: 440px !important;
    margin-bottom: 24px !important;
    padding: 0 4px !important;
  }

  .hero-actions-group {
    width: 100% !important;
    max-width: 340px !important;
    margin: 0 auto !important;
    gap: 10px !important;
    flex-direction: column !important;
  }

  .hero-actions-group .btn-nalar-primary,
  .hero-actions-group .btn-nalar-secondary {
    width: 100% !important;
    justify-content: center !important;
    padding: 11px 18px !important;
  }

  .form-row {
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .form-group {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Safe horizontal touch-scroll for dense data tables */
  .nalar-table-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin-left: 0;
    margin-right: 0;
    border-radius: 14px !important;
  }

  /* Safe horizontal swipe for filter pills */
  .approval-filter-bar {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    padding-bottom: 8px;
    margin-bottom: 20px !important;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .approval-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .approval-filter-pill {
    flex-shrink: 0 !important;
    padding: 8px 16px !important;
    font-size: 12px !important;
  }

  /* Modals */
  .modal-box {
    max-width: calc(100vw - 32px) !important;
    margin: 16px auto !important;
    padding: 20px 18px !important;
    border-radius: 20px !important;
  }

  /* Stat Cards Grid Responsive Break */
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  .stat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-content-wrapper {
    padding: 20px 18px 80px 18px !important;
  }

  .top-navbar-container {
    padding: 0 16px !important;
  }

  .nalar-card {
    padding: 18px 16px !important;
    border-radius: 18px !important;
    margin-bottom: 18px !important;
  }

  .hero-motion-showcase {
    padding: 32px 16px 38px 16px !important;
    border-radius: 20px !important;
  }

  .hero-title-headline {
    font-size: 24px !important;
  }

  .hero-subtitle-desc {
    font-size: 12.5px !important;
  }

  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"],
  .stat-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

@media (max-width: 360px) {
  .page-content-wrapper {
    padding: 16px 14px 70px 14px !important;
  }

  .nalar-card {
    padding: 16px 12px !important;
    border-radius: 16px !important;
  }
}






