/* ═══════════════════════════════════════════════════════════════════
   VOLTXX Design System  ·  v7.0
   Monochrome — Black & White SaaS Theme
   ═══════════════════════════════════════════════════════════════════ */

/* §1  DESIGN TOKENS */
:root {
  /* Brand — Monochrome */
  --primary-color:   #111111;
  --primary-hover:   #333333;
  --primary-dark:    #000000;
  --primary-light:   #F3F3F3;
  --brand-accent:    #111111;
  --brand-accent-h:  #333333;

  /* Status */
  --success-color:   #1A7F37;
  --warning-color:   #BF8700;
  --danger-color:    #CF222E;
  --info-color:      #555555;

  /* Surfaces */
  --bg-color:        #F7F7F7;
  --bg-secondary:    #FFFFFF;
  --surface-color:   #FFFFFF;
  --surface-solid:   #FFFFFF;
  --surface-hover:   #FAFAFA;
  --surface-2:       #F3F3F3;
  --surface-3:       #EEEEEE;

  /* Text */
  --text-main:       #111111;
  --text-muted:      #767676;
  --text-dim:        #AAAAAA;
  --text-inverse:    #FFFFFF;

  /* Borders */
  --border-color:    #E5E5E5;
  --border-subtle:   #F0F0F0;
  --border-strong:   #CCCCCC;

  /* Sidebar — Black */
  --sidebar-bg:      #111111;
  --sidebar-text:    #E5E5E5;
  --sidebar-muted:   #999999;
  --sidebar-dim:     #666666;
  --sidebar-hover:   rgba(255,255,255,0.08);
  --sidebar-active:  rgba(255,255,255,0.12);
  --sidebar-border:  rgba(255,255,255,0.1);
  --sidebar-width:   248px;

  /* Type */
  --font-family:     'Inter', system-ui, -apple-system, sans-serif;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;

  /* Spacing */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;
  --space-4: 16px;  --space-5: 20px;  --space-6: 24px;
  --space-8: 32px;  --space-10: 40px; --space-12: 48px;

  /* Radii */
  --radius-sm:  6px;
  --border-radius: 10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-full: 9999px;

  /* Shadows — soft, professional */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-xl: 0 8px 24px rgba(0,0,0,0.12);

  /* Focus / Glow */
  --glow:       0 0 0 3px rgba(0,0,0,0.08);
  --glow-brand: 0 0 0 3px rgba(0,0,0,0.12);

  /* Transition */
  --transition: all 150ms cubic-bezier(0.4,0,0.2,1);
}


/* ═══════════════════════════════════════════════════════════════════
   §3  RESET & BASE
   ═══════════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-color);
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

::selection {
  background: #D4D4D4;
  color: #000000;
}


/* ═══════════════════════════════════════════════════════════════════
   §4  TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); font-weight: 600; }

p {
  color: var(--text-muted);
  margin-bottom: 1em;
  line-height: 1.7;
}

a:not(.btn) {
  color: var(--text-main);
  transition: color 150ms ease;
}
a:not(.btn):hover {
  color: var(--text-muted);
}

small {
  font-size: var(--text-xs);
  color: var(--text-dim);
}

strong, b {
  font-weight: 600;
}

code, pre {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9em;
}

code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

pre {
  background: var(--surface-2);
  padding: var(--space-4);
  border-radius: var(--border-radius);
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: var(--space-6) 0;
}


/* ═══════════════════════════════════════════════════════════════════
   §5  GLOBAL CONTAINER & NAVIGATION (Landing Pages)
   ═══════════════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

header {
  background: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: color 150ms ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

/* ═══════════════════════════════════════════════════════════════════
   §5.1 TOP NAVIGATION – Legacy
   ═══════════════════════════════════════════════════════════════════ */
   ═══════════════════════════════════════════════════════════════════ */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

.top-nav.scrolled {
  box-shadow: var(--shadow-md);
}

.top-nav .logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-main);
}

.top-nav .logo img {
  height: 32px;
  width: auto;
}

.top-nav .nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.top-nav .nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: color 150ms ease;
}

.top-nav .nav-links a:hover,
.top-nav .nav-links a.active {
  color: var(--text-main);
}

.top-nav .nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}


/* ═══════════════════════════════════════════════════════════════════
   §6  APP SHELL LAYOUT
   ═══════════════════════════════════════════════════════════════════ */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-left: var(--sidebar-width);
  transition: margin-left 250ms ease;
}

.page-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.page-header {
  margin-bottom: var(--space-6);
}

.page-header h1 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.page-header p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: 0;
}


/* ═══════════════════════════════════════════════════════════════════
   §7  SIDEBAR — White with Blue Accents
   ═══════════════════════════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  z-index: 900;
  overflow-y: auto;
  overflow-x: hidden;
  transition: left 250ms ease;
  border-right: 1px solid var(--sidebar-border);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-brand-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
}

.sidebar-brand-name {
  font-size: var(--text-lg);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-5);
  border-bottom: 1px solid var(--sidebar-border);
  min-height: 56px;
}

.sidebar-header .logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.sidebar-header .logo img {
  height: 28px;
  width: auto;
}

.sidebar-header .logo-text {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.sidebar-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sidebar-dim);
  padding: var(--space-5) var(--space-5) var(--space-2);
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-2) 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-5);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--sidebar-muted);
  border-left: 3px solid transparent;
  transition: all 150ms ease;
  cursor: pointer;
}

.sidebar-link i,
.sidebar-link .icon {
  width: 20px;
  text-align: center;
  font-size: 16px;
  opacity: 0.7;
  flex-shrink: 0;
}

.sidebar-link:hover {
  color: #FFFFFF;
  background: var(--sidebar-hover);
}

.sidebar-link.active {
  color: #FFFFFF;
  background: var(--sidebar-active);
  border-left-color: #FFFFFF;
  font-weight: 600;
}

.sidebar-link.active i,
.sidebar-link.active .icon {
  opacity: 1;
  color: #FFFFFF;
}

.sidebar-badge {
  margin-left: auto;
  background: rgba(255,255,255,0.15);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.sidebar-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--sidebar-border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #333333, #555555);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--text-sm);
  color: #FFFFFF;
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--sidebar-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 11px;
  color: var(--sidebar-dim);
}


/* ═══════════════════════════════════════════════════════════════════
   §8  TOP HEADER – App Pages
   ═══════════════════════════════════════════════════════════════════ */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 var(--space-6);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  z-index: 100;
}

.top-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.top-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--text-main);
}

.breadcrumb .separator {
  color: var(--text-dim);
  font-size: var(--text-xs);
}

.breadcrumb .current {
  color: var(--text-main);
  font-weight: 500;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: var(--transition);
}

.user-avatar:hover {
  box-shadow: var(--glow);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}


/* ═══════════════════════════════════════════════════════════════════
   §9  BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--glow);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn i {
  font-size: 16px;
}

/* Primary — Blue */
.btn-primary {
  background: var(--primary-color);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-primary:active {
  background: var(--primary-dark);
}

/* Secondary */
.btn-secondary {
  background: var(--surface-3);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: var(--border-strong);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  background: var(--surface-hover);
  border-color: var(--text-main);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  background: var(--surface-hover);
  color: var(--text-main);
}

/* Danger */
.btn-danger {
  background: var(--danger-color);
  color: #FFFFFF;
}
.btn-danger:hover {
  background: #B91C1C;
}

/* Success */
.btn-success {
  background: var(--success-color);
  color: #FFFFFF;
}
.btn-success:hover {
  background: #047857;
}

/* Warning */
.btn-warning {
  background: var(--warning-color);
  color: #FFFFFF;
}
.btn-warning:hover {
  background: #B45309;
}

/* Sizes */
.btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 6px;
  gap: 4px;
}

.btn-lg {
  height: 44px;
  padding: 0 24px;
  font-size: 15px;
  border-radius: 10px;
  gap: 8px;
}

.btn-xl {
  height: 52px;
  padding: 0 32px;
  font-size: 16px;
  border-radius: 12px;
  gap: 8px;
}

/* Full width */
.btn-block {
  width: 100%;
}

/* Button group */
.btn-group {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}


/* ═══════════════════════════════════════════════════════════════════
   §10  CARDS
   ═══════════════════════════════════════════════════════════════════ */
.card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

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

.card-header h3,
.card-header h4 {
  margin-bottom: 0;
}

.card-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0;
}

.card-subtitle {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.card-body {
  /* no default styles, just a semantic wrapper */
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.card-flat {
  box-shadow: none;
}
.card-flat:hover {
  box-shadow: none;
}


/* ═══════════════════════════════════════════════════════════════════
   §11  STAT CARDS
   ═══════════════════════════════════════════════════════════════════ */
.stat-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.stat-card-icon.blue   { background: #F3F3F3; color: #111111; }
.stat-card-icon.green  { background: #ECFDF5; color: #059669; }
.stat-card-icon.yellow { background: #FFFBEB; color: #D97706; }
.stat-card-icon.red    { background: #FEF2F2; color: #DC2626; }
.stat-card-icon.purple { background: #F5F3FF; color: #7C3AED; }

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-top: var(--space-2);
}

.stat-trend.up   { color: var(--success-color); }
.stat-trend.down { color: var(--danger-color); }


/* ═══════════════════════════════════════════════════════════════════
   §12  FORM CONTROLS
   ═══════════════════════════════════════════════════════════════════ */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.form-control {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-main);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-control::placeholder {
  color: var(--text-dim);
}

.form-control:focus {
  border-color: var(--text-main);
  box-shadow: var(--glow);
}

.form-control:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-control.error {
  border-color: var(--danger-color);
  box-shadow: 0 0 0 3px rgba(207,34,46,0.1);
}

textarea.form-control {
  height: auto;
  min-height: 100px;
  padding: var(--space-3);
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23767676' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-dim);
  margin-top: var(--space-1);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--danger-color);
  margin-top: var(--space-1);
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

/* Toggle Switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--surface-3);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 200ms ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: transform 200ms ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle input:checked + .toggle-slider {
  background: var(--primary-color);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* Search Input */
.search-input-wrap {
  position: relative;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 16px;
  pointer-events: none;
}

.search-input-wrap .form-control {
  padding-left: 36px;
}


/* ═══════════════════════════════════════════════════════════════════
   §13  TABLES
   ═══════════════════════════════════════════════════════════════════ */
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.table td {
  padding: 12px 16px;
  font-size: var(--text-sm);
  color: var(--text-main);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

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

.table tbody tr {
  transition: background 100ms ease;
}

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

.table-striped tbody tr:nth-child(even) {
  background: var(--surface-2);
}

.table-compact th,
.table-compact td {
  padding: 8px 12px;
}


/* ═══════════════════════════════════════════════════════════════════
   §14  BADGES
   ═══════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 999px;
  white-space: nowrap;
  gap: 4px;
}

.badge-blue {
  background: #F3F3F3;
  color: #111111;
}
.badge-green {
  background: #ECFDF5;
  color: #059669;
}
.badge-yellow {
  background: #FFFBEB;
  color: #B45309;
}
.badge-red {
  background: #FEF2F2;
  color: #DC2626;
}
.badge-gray {
  background: var(--surface-3);
  color: var(--text-muted);
}
.badge-purple {
  background: #F5F3FF;
  color: #7C3AED;
}

.badge-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}


/* ═══════════════════════════════════════════════════════════════════
   §15  ALERTS
   ═══════════════════════════════════════════════════════════════════ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.alert-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.alert-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.alert-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.alert-warning {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.alert-info {
  background: #F3F3F3;
  color: #333333;
  border: 1px solid #D4D4D4;
}

.alert-close {
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  line-height: 1;
}

.alert-close:hover {
  opacity: 1;
}


/* ═══════════════════════════════════════════════════════════════════
   §16  MODALS
   ═══════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: var(--space-4);
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--surface-solid);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 250ms ease;
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-card-lg {
  max-width: 720px;
}

.modal-card-xl {
  max-width: 960px;
}

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

.modal-header h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--surface-hover);
  color: var(--text-main);
}

.modal-body {
  padding: var(--space-6);
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-color);
}


/* ═══════════════════════════════════════════════════════════════════
   §17  MOBILE BOTTOM NAVIGATION
   ═══════════════════════════════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  z-index: 800;
  padding: 0 var(--space-2);
}

.mobile-bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 8px;
  transition: color 150ms ease;
  text-decoration: none;
}

.mobile-nav-item i {
  font-size: 20px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--text-main);
}


/* ═══════════════════════════════════════════════════════════════════
   §18  ICON BUTTON
   ═══════════════════════════════════════════════════════════════════ */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: all 150ms ease;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--surface-hover);
  color: var(--text-main);
}

.icon-btn:focus-visible {
  box-shadow: var(--glow);
}

.icon-btn i {
  font-size: 18px;
}

.icon-btn-sm {
  width: 28px;
  height: 28px;
}

.icon-btn-sm i {
  font-size: 14px;
}


/* ═══════════════════════════════════════════════════════════════════
   §19  MOBILE NAV TOGGLE
   ═══════════════════════════════════════════════════════════════════ */
.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-nav-toggle:hover {
  background: var(--surface-hover);
  color: var(--text-main);
}

.mobile-nav-toggle i {
  font-size: 20px;
}


/* ═══════════════════════════════════════════════════════════════════
   §20  AUTH PAGES
   ═══════════════════════════════════════════════════════════════════ */
.auth-layout {
  display: flex;
  min-height: 100vh;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 45%;
  padding: var(--space-12);
  background: linear-gradient(135deg, #111111 0%, #222222 50%, #333333 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05), transparent 50%);
  pointer-events: none;
}

.auth-brand-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 400px;
}

.auth-brand-content h1 {
  font-size: var(--text-3xl);
  color: #FFFFFF;
  margin-bottom: var(--space-4);
}

.auth-brand-content p {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-base);
}

.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  background: var(--bg-color);
}

.auth-form-box {
  width: 100%;
  max-width: 400px;
}

.auth-form-box h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.auth-form-box .subtitle {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-8);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-6) 0;
  color: var(--text-dim);
  font-size: var(--text-sm);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}


/* ═══════════════════════════════════════════════════════════════════
   §21  HERO SECTION – Landing Page
   ═══════════════════════════════════════════════════════════════════ */
.hero {
  padding: 120px var(--space-8) 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.03), transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #111111, #333333);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Features Grid */
.features-section {
  padding: 80px var(--space-8);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: var(--space-8);
  text-align: center;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto var(--space-4);
  background: var(--surface-2);
  color: var(--text-main);
}

.feature-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Section headings */
.section-heading {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-10);
}

.section-heading h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.section-heading p {
  color: var(--text-muted);
}


/* ═══════════════════════════════════════════════════════════════════
   §22  PWA INSTALL BANNER
   ═══════════════════════════════════════════════════════════════════ */
.pwa-banner {
  position: fixed;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--surface-solid);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-xl);
  z-index: 1500;
  max-width: 420px;
  width: calc(100% - 32px);
}

.pwa-banner-text {
  flex: 1;
}

.pwa-banner-text strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-main);
  margin-bottom: 2px;
}

.pwa-banner-text span {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.pwa-banner-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 6px;
}

.pwa-banner-close:hover {
  background: var(--surface-hover);
  color: var(--text-main);
}


/* ═══════════════════════════════════════════════════════════════════
   §23  WIZARD / STEPPER
   ═══════════════════════════════════════════════════════════════════ */
.wizard-panel {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.wizard-header {
  display: flex;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-color);
  background: var(--surface-2);
}

.wizard-steps {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex: 1;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-dim);
  white-space: nowrap;
}

.wizard-step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-3);
  color: var(--text-dim);
  flex-shrink: 0;
}

.wizard-step.active .wizard-step-number {
  background: var(--primary-color);
  color: #FFFFFF;
}

.wizard-step.active {
  color: var(--text-main);
  font-weight: 500;
}

.wizard-step.completed .wizard-step-number {
  background: var(--success-color);
  color: #FFFFFF;
}

.wizard-step-connector {
  width: 24px;
  height: 2px;
  background: var(--border-color);
  flex-shrink: 0;
}

.wizard-step.completed + .wizard-step-connector,
.wizard-step-connector.completed {
  background: var(--success-color);
}

.wizard-body {
  padding: var(--space-8);
}

.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-color);
  background: var(--surface-2);
}


/* ═══════════════════════════════════════════════════════════════════
   §24  DROPDOWNS
   ═══════════════════════════════════════════════════════════════════ */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: var(--space-1);
  min-width: 180px;
  background: var(--surface-solid);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: var(--space-1);
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 150ms ease;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 12px;
  font-size: var(--text-sm);
  color: var(--text-main);
  border-radius: 6px;
  cursor: pointer;
  transition: background 100ms ease;
}

.dropdown-item:hover {
  background: var(--surface-hover);
}

.dropdown-item i {
  width: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--space-1) 0;
}


/* ═══════════════════════════════════════════════════════════════════
   §25  TOOLTIPS
   ═══════════════════════════════════════════════════════════════════ */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #FFFFFF;
  background: #1F2937;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease, visibility 150ms ease;
  pointer-events: none;
  z-index: 600;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}


/* ═══════════════════════════════════════════════════════════════════
   §26  TABS
   ═══════════════════════════════════════════════════════════════════ */
.tabs {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: var(--space-5);
}

.tab-item {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}

.tab-item:hover {
  color: var(--text-main);
}

.tab-item.active {
  color: var(--text-main);
  border-bottom-color: var(--text-main);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}


/* ═══════════════════════════════════════════════════════════════════
   §27  PROGRESS BAR
   ═══════════════════════════════════════════════════════════════════ */
.progress {
  height: 8px;
  background: var(--surface-3);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--primary-color);
  border-radius: var(--radius-full);
  transition: width 400ms ease;
}

.progress-bar.green  { background: var(--success-color); }
.progress-bar.yellow { background: var(--warning-color); }
.progress-bar.red    { background: var(--danger-color); }

.progress-sm { height: 4px; }
.progress-lg { height: 12px; }


/* ═══════════════════════════════════════════════════════════════════
   §28  TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-solid);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  min-width: 300px;
  max-width: 420px;
  pointer-events: all;
  animation: slideInRight 250ms ease forwards;
}

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.toast-success .toast-icon { color: var(--success-color); }
.toast-error .toast-icon   { color: var(--danger-color); }
.toast-warning .toast-icon { color: var(--warning-color); }
.toast-info .toast-icon    { color: var(--info-color); }

.toast-message {
  flex: 1;
  color: var(--text-main);
}

.toast-close {
  color: var(--text-dim);
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
  font-size: 16px;
}

.toast-close:hover {
  color: var(--text-main);
}


/* ═══════════════════════════════════════════════════════════════════
   §29  EMPTY STATES
   ═══════════════════════════════════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-6);
  text-align: center;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--text-dim);
  background: var(--surface-2);
  margin-bottom: var(--space-5);
}

.empty-state h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.empty-state p {
  color: var(--text-muted);
  max-width: 360px;
  margin-bottom: var(--space-5);
}


/* ═══════════════════════════════════════════════════════════════════
   §30  LOADING & SKELETON
   ═══════════════════════════════════════════════════════════════════ */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: var(--text-main);
  border-radius: 50%;
  animation: spin 600ms linear infinite;
}

.spinner-sm { width: 14px; height: 14px; }
.spinner-lg { width: 32px; height: 32px; border-width: 3px; }

.skeleton {
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-text {
  height: 14px;
  margin-bottom: var(--space-2);
  border-radius: 4px;
}

.skeleton-heading {
  height: 24px;
  width: 60%;
  margin-bottom: var(--space-3);
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.page-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}


/* ═══════════════════════════════════════════════════════════════════
   §31  PAGINATION
   ═══════════════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.pagination-btn:hover {
  background: var(--surface-hover);
  color: var(--text-main);
}

.pagination-btn.active {
  background: var(--primary-color);
  color: #FFFFFF;
  border-color: var(--primary-color);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}


/* ═══════════════════════════════════════════════════════════════════
   §32  AVATAR
   ═══════════════════════════════════════════════════════════════════ */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  color: var(--text-main);
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-xs { width: 24px; height: 24px; font-size: 10px; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-md { width: 40px; height: 40px; font-size: 14px; }
.avatar-lg { width: 48px; height: 48px; font-size: 18px; }
.avatar-xl { width: 64px; height: 64px; font-size: 24px; }

.avatar-group {
  display: flex;
}

.avatar-group .avatar {
  border: 2px solid var(--bg-secondary);
  margin-left: -8px;
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}


/* ═══════════════════════════════════════════════════════════════════
   §33  ANIMATIONS / KEYFRAMES
   ═══════════════════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideModal {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-in     { animation: fadeIn 300ms ease forwards; }
.animate-fade-in-up  { animation: fadeInUp 400ms ease forwards; }
.animate-fade-in-down{ animation: fadeInDown 400ms ease forwards; }
.animate-slide-modal { animation: slideModal 250ms ease forwards; }


/* ═══════════════════════════════════════════════════════════════════
   §34  CUSTOM SCROLLBAR
   ═══════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}


/* ═══════════════════════════════════════════════════════════════════
   §35  TEXT UTILITIES
   ═══════════════════════════════════════════════════════════════════ */
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.text-left     { text-align: left; }

.text-muted    { color: var(--text-muted) !important; }
.text-dim      { color: var(--text-dim) !important; }
.text-main     { color: var(--text-main) !important; }
.text-primary  { color: var(--primary-color) !important; }
.text-success  { color: var(--success-color) !important; }
.text-warning  { color: var(--warning-color) !important; }
.text-danger   { color: var(--danger-color) !important; }
.text-white    { color: #FFFFFF !important; }

.text-xs       { font-size: var(--text-xs) !important; }
.text-sm       { font-size: var(--text-sm) !important; }
.text-base     { font-size: var(--text-base) !important; }
.text-lg       { font-size: var(--text-lg) !important; }
.text-xl       { font-size: var(--text-xl) !important; }
.text-2xl      { font-size: var(--text-2xl) !important; }
.text-3xl      { font-size: var(--text-3xl) !important; }

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

.uppercase     { text-transform: uppercase; }
.lowercase     { text-transform: lowercase; }
.capitalize    { text-transform: capitalize; }
.truncate      { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.no-wrap       { white-space: nowrap; }
.break-word    { word-break: break-word; }


/* ═══════════════════════════════════════════════════════════════════
   §36  LAYOUT & SPACING UTILITIES
   ═══════════════════════════════════════════════════════════════════ */

/* Flex */
.flex           { display: flex; }
.inline-flex    { display: inline-flex; }
.flex-col       { flex-direction: column; }
.flex-row       { flex-direction: row; }
.flex-wrap      { flex-wrap: wrap; }
.flex-1         { flex: 1; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.items-end      { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between{ justify-content: space-between; }
.justify-end    { justify-content: flex-end; }

/* Gaps */
.gap-1  { gap: var(--space-1); }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-5  { gap: var(--space-5); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* Margin */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Padding */
.p-0  { padding: 0; }
.p-1  { padding: var(--space-1); }
.p-2  { padding: var(--space-2); }
.p-3  { padding: var(--space-3); }
.p-4  { padding: var(--space-4); }
.p-5  { padding: var(--space-5); }
.p-6  { padding: var(--space-6); }
.p-8  { padding: var(--space-8); }

.px-0 { padding-left: 0; padding-right: 0; }
.px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }

.py-0 { padding-top: 0; padding-bottom: 0; }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }

/* Width / Height */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* Display */
.hidden    { display: none !important; }
.block     { display: block; }
.inline    { display: inline; }
.relative  { position: relative; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto   { overflow: auto; }


/* ═══════════════════════════════════════════════════════════════════
   §37  GRID UTILITIES
   ═══════════════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.grid {
  display: grid;
  gap: var(--space-4);
}

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

.grid-auto-fill {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.grid-auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}


/* ═══════════════════════════════════════════════════════════════════
   §38  BORDER & RADIUS UTILITIES
   ═══════════════════════════════════════════════════════════════════ */
.border        { border: 1px solid var(--border-color); }
.border-top    { border-top: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.border-none   { border: none !important; }

.rounded       { border-radius: var(--border-radius); }
.rounded-sm    { border-radius: var(--radius-sm); }
.rounded-lg    { border-radius: var(--radius-lg); }
.rounded-xl    { border-radius: var(--radius-xl); }
.rounded-full  { border-radius: var(--radius-full); }

.shadow-none   { box-shadow: none !important; }
.shadow-sm     { box-shadow: var(--shadow-sm); }
.shadow-md     { box-shadow: var(--shadow-md); }
.shadow-lg     { box-shadow: var(--shadow-lg); }
.shadow-xl     { box-shadow: var(--shadow-xl); }


/* ═══════════════════════════════════════════════════════════════════
   §39  BACKGROUND UTILITIES
   ═══════════════════════════════════════════════════════════════════ */
.bg-primary   { background-color: var(--primary-color) !important; }
.bg-surface   { background-color: var(--surface-color) !important; }
.bg-secondary { background-color: var(--bg-secondary) !important; }
.bg-success   { background-color: var(--success-color) !important; }
.bg-warning   { background-color: var(--warning-color) !important; }
.bg-danger    { background-color: var(--danger-color) !important; }
.bg-transparent { background-color: transparent !important; }


/* ═══════════════════════════════════════════════════════════════════
   §40  SIDEBAR OVERLAY (mobile)
   ═══════════════════════════════════════════════════════════════════ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 899;
}

.sidebar-overlay.active {
  display: block;
}


/* ═══════════════════════════════════════════════════════════════════
   §41  RESPONSIVE – 1024px
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .hero h1 {
    font-size: 2.2rem;
  }

  .auth-brand {
    width: 40%;
    padding: var(--space-8);
  }
}


/* ═══════════════════════════════════════════════════════════════════
   §42  RESPONSIVE – 768px (Tablet)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Sidebar collapse */
  .sidebar {
    left: -248px;
  }

  .sidebar.open {
    left: 0;
  }

  .main-content {
    margin-left: 0;
  }

  /* Show mobile nav toggle */
  .mobile-nav-toggle {
    display: inline-flex;
  }

  /* Show mobile bottom nav */
  .mobile-bottom-nav {
    display: block;
  }

  /* Page body extra bottom padding for mobile nav */
  .page-body {
    padding: var(--space-4);
    padding-bottom: 80px;
  }

  /* Sidebar overlay */
  .sidebar-overlay.active {
    display: block;
  }

  /* Top nav adjustments */
  .top-nav {
    padding: 0 var(--space-4);
  }

  .top-nav .nav-links {
    display: none;
  }

  /* Grid adjustments */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Auth pages */
  .auth-layout {
    flex-direction: column;
  }

  .auth-brand {
    width: 100%;
    padding: var(--space-8) var(--space-6);
    min-height: auto;
  }

  .auth-form-panel {
    padding: var(--space-6);
  }

  /* Hero */
  .hero {
    padding: 100px var(--space-4) 60px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: var(--space-2);
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Tables */
  .table-wrap {
    border-radius: 8px;
  }

  .table th,
  .table td {
    padding: 8px 12px;
  }

  /* Modals */
  .modal-card {
    max-width: 100%;
    margin: var(--space-4);
    border-radius: 12px;
  }

  /* Toast */
  .toast-container {
    left: var(--space-4);
    right: var(--space-4);
    top: auto;
    bottom: 72px;
  }

  .toast {
    min-width: auto;
    width: 100%;
  }

  /* Wizard */
  .wizard-steps {
    overflow-x: auto;
  }

  .wizard-body {
    padding: var(--space-5);
  }
}


/* ═══════════════════════════════════════════════════════════════════
   §43  RESPONSIVE – 480px (Small Mobile)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  .page-body {
    padding: var(--space-3);
    padding-bottom: 80px;
  }

  .card {
    padding: var(--space-4);
    border-radius: 10px;
  }

  .stat-card {
    padding: var(--space-4);
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .top-header {
    padding: 0 var(--space-3);
    height: 48px;
  }

  .btn {
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .btn-lg {
    height: 40px;
    padding: 0 18px;
  }

  .modal-body {
    padding: var(--space-4);
  }

  .modal-header,
  .modal-footer {
    padding: var(--space-3) var(--space-4);
  }

  .hero {
    padding: 80px var(--space-3) 40px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: var(--text-sm);
  }

  .features-section {
    padding: 40px var(--space-3);
  }

  .feature-card {
    padding: var(--space-5);
  }

  .auth-brand-content h1 {
    font-size: var(--text-2xl);
  }

  .wizard-footer {
    flex-direction: column;
    gap: var(--space-2);
  }

  .wizard-footer .btn {
    width: 100%;
  }

  .pwa-banner {
    bottom: 68px;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   §44  PRINT STYLES
   ═══════════════════════════════════════════════════════════════════ */
@media print {
  *,
  *::before,
  *::after {
    background: #FFFFFF !important;
    color: #000000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .sidebar,
  .top-header,
  .top-nav,
  .mobile-bottom-nav,
  .mobile-nav-toggle,
  .sidebar-overlay,
  .btn,
  .icon-btn,
  .toast-container,
  .pwa-banner,
  .modal-overlay {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
  }

  .page-body {
    padding: 0 !important;
    overflow: visible !important;
  }

  .card {
    border: 1px solid #CCC !important;
    page-break-inside: avoid;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 10pt;
    color: #666 !important;
  }

  .table th,
  .table td {
    border: 1px solid #CCC !important;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   §45  MISC / ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════════ */

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Remove focus outline for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Cursor utilities */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.pointer-events-none { pointer-events: none; }

/* Opacity */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* Divider */
.divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--space-4) 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-sm { max-width: 720px; }
.container-lg { max-width: 1440px; }

/* Aspect ratio box */
.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

/* Transition utility */
.transition {
  transition: var(--transition);
}

/* Z-index layers */
.z-10  { z-index: 10; }
.z-20  { z-index: 20; }
.z-50  { z-index: 50; }

/* ═══════════════════════════════════════════════════════════════════
   §46  PROFESSIONAL FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.footer-pro {
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 300px;
}
.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}
.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links-list a {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links-list a:hover {
  color: var(--primary-color);
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.875rem;
}
@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   §47  MOTION MODULES SECTION
   ═══════════════════════════════════════════════════════════════════ */
.motion-section {
  padding: 6rem 1rem;
  background-color: var(--surface-color);
  position: relative;
  overflow: hidden;
}
.motion-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}
.motion-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
@media (max-width: 900px) {
  .motion-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}
.motion-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-left: 2px solid var(--border-color);
  padding-left: 1.5rem;
}
.motion-tab {
  padding: 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
  position: relative;
}
.motion-tab::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: var(--primary-color);
  border-radius: 4px;
  transition: height 0.3s ease;
}
.motion-tab:hover {
  background: var(--surface-hover);
  color: var(--text-main);
}
.motion-tab h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: inherit;
}
.motion-tab p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-dim);
}
.motion-tab.active {
  background: var(--surface-hover);
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}
.motion-tab.active h3 {
  color: var(--primary-color);
}
.motion-tab.active p {
  color: var(--text-muted);
}
.motion-tab.active::before {
  height: 60%;
}

.motion-content {
  position: relative;
  min-height: 480px;
  perspective: 1000px;
}
.motion-pane {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.98);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 600px) {
  .motion-pane {
    padding: 2rem;
  }
}
.motion-pane.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  z-index: 2;
}

.pane-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 1rem;
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.motion-pane h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
}
.motion-pane p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.motion-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.motion-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
}
.motion-features li svg {
  color: var(--success-color);
  flex-shrink: 0;
}

/* Observer scroll animation */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════
   §48  PWA INSTALL BANNER
   ═══════════════════════════════════════════════════════════════════ */
.pwa-install-banner {
  position: fixed;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: calc(100% - 2rem);
  max-width: 420px;
  padding: 1rem 1.25rem;
  background: #111111;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.06) inset;
  transition: bottom 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pwa-install-banner.show {
  bottom: 1.5rem;
}
.pwa-install-banner .pwa-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: contain;
  background: rgba(255,255,255,0.08);
  padding: 6px;
}
.pwa-install-banner .pwa-info {
  flex: 1;
  min-width: 0;
}
.pwa-install-banner .pwa-info h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
}
.pwa-install-banner .pwa-info p {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.3;
}
.pwa-install-banner .pwa-install-btn {
  flex-shrink: 0;
  background: #FFFFFF;
  color: #111111;
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}
.pwa-install-banner .pwa-install-btn:hover {
  background: #E5E5E5;
  transform: scale(1.03);
}
.pwa-install-banner .pwa-install-btn:active {
  transform: scale(0.97);
}
.pwa-install-banner .pwa-dismiss {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  line-height: 1;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.pwa-install-banner .pwa-dismiss:hover {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
}

/* ═══════════════════════════════════════════════════════════════════
   §49  SIDEBAR DARK-BG TEXT FIX
   Forces light text on the dark (#111) sidebar so links are visible.
   ═══════════════════════════════════════════════════════════════════ */
.sidebar,
.sidebar a,
.sidebar span,
.sidebar div { color: #BBBBBB; }

.sidebar .sidebar-brand-name { color: #FFFFFF !important; }
.sidebar .sidebar-brand-icon { color: #FFFFFF !important; }
.sidebar .sidebar-brand-icon svg { stroke: #FFFFFF; }

.sidebar .sidebar-section-label { color: #777777 !important; }

.sidebar .sidebar-link {
  color: #BBBBBB !important;
}
.sidebar .sidebar-link svg { stroke: #BBBBBB; }

.sidebar .sidebar-link:hover {
  color: #FFFFFF !important;
  background: rgba(255,255,255,0.08) !important;
}
.sidebar .sidebar-link:hover svg { stroke: #FFFFFF; }

.sidebar .sidebar-link.active {
  color: #FFFFFF !important;
  background: rgba(255,255,255,0.12) !important;
  border-left-color: #FFFFFF !important;
}
.sidebar .sidebar-link.active svg { stroke: #FFFFFF; }

.sidebar .sidebar-footer { border-top-color: rgba(255,255,255,0.1) !important; }
.sidebar .sidebar-footer a { color: #999999 !important; }
.sidebar .user-name,
.sidebar .sidebar-user-name { color: #E5E5E5 !important; }
.sidebar .user-role,
.sidebar .sidebar-user-role { color: #777777 !important; }

/* ═══════════════════════════════════════════════════════════════════
   §50  QUOTATION MODULE — Clean Card & Table Overrides
   White backgrounds, black bold borders, clean monochrome look.
   ═══════════════════════════════════════════════════════════════════ */

/* All cards in quotation builder: white bg, bold black border */
.main-content .card,
#quotation-content .card,
[id^="panel-"] .card {
  background: #FFFFFF !important;
  border: 2px solid #111111 !important;
  box-shadow: none !important;
}

/* Table headers inside cards: light gray instead of dark */
.card table thead tr,
[id^="panel-"] table thead tr {
  background: #F5F5F5 !important;
}
.card table thead th,
[id^="panel-"] table thead th {
  color: #333333 !important;
  font-weight: 700 !important;
}

/* KPI / stat boxes inside tech report & quotation */
.card [style*="rgba(30,41,59"] {
  background: #F7F7F7 !important;
}

/* Floor cards, section wrappers, inner containers */
[id^="panel-"] [style*="surface-solid"],
.floor-card,
[id^="panel-"] [style*="border-radius:12px"][style*="padding"] {
  background: #FFFFFF !important;
  border-color: #111111 !important;
}

/* Addressing/labeling info boxes */
.card [style*="background:rgba(17,17,17"] {
  background: #F0F0F0 !important;
  color: #111111 !important;
}

/* Table row borders */
.card table td,
[id^="panel-"] table td {
  border-bottom: 1px solid #E5E5E5;
}

/* Section-card pattern used in profile, etc. */
.section-card {
  background: #FFFFFF !important;
  border: 2px solid #111111 !important;
}
