/* ============================================================
   FORGE Design System — IGH WELD SUPPORT AB
   Industrial precision meets Nordic craft
   ============================================================ */

/* === DESIGN TOKENS === */
:root {
  /* Core palette — Deep industrial */
  --igh-950: #030712;
  --igh-900: #0b1120;
  --igh-800: #111827;
  --igh-700: #1f2937;
  --igh-600: #374151;
  --igh-500: #4b5563;
  --igh-400: #6b7280;
  --igh-300: #9ca3af;
  --igh-200: #d1d5db;
  --igh-100: #f3f4f6;
  --igh-50: #f9fafb;

  /* Ember — Welding fire accent */
  --ember-700: #c2410c;
  --ember-600: #ea580c;
  --ember-500: #f97316;
  --ember-400: #fb923c;
  --ember-300: #fdba74;
  --ember-200: #fed7aa;
  --ember-100: #ffedd5;
  --ember-50: #fff7ed;

  /* Steel — Warm neutrals */
  --steel-800: #292524;
  --steel-700: #44403c;
  --steel-600: #57534e;
  --steel-500: #78716c;
  --steel-400: #a8a29e;
  --steel-300: #d6d3d1;
  --steel-200: #e7e5e4;
  --steel-100: #f5f5f4;
  --steel-50: #fafaf9;

  /* Semantic colors */
  --color-primary: var(--ember-600);
  --color-primary-hover: var(--ember-700);
  --color-primary-light: var(--ember-100);
  --color-surface: var(--steel-50);
  --color-surface-raised: #ffffff;
  --color-surface-dark: var(--igh-800);
  --color-surface-darker: var(--igh-900);
  --color-text: var(--igh-800);
  --color-text-secondary: var(--igh-500);
  --color-text-muted: var(--igh-400);
  --color-text-on-dark: #f1f5f9;
  --color-text-on-dark-muted: #94a3b8;
  --color-border: var(--igh-200);
  --color-border-light: var(--igh-100);

  /* Status */
  --color-success: #16a34a;
  --color-success-bg: #f0fdf4;
  --color-warning: #d97706;
  --color-warning-bg: #fffbeb;
  --color-danger: #dc2626;
  --color-danger-bg: #fef2f2;
  --color-info: #2563eb;
  --color-info-bg: #eff6ff;

  /* Typography */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Radius — Industrial, not bubbly */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.03);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.08), 0 8px 10px rgba(0,0,0,0.03);
  --shadow-ember: 0 4px 14px rgba(234,88,12,0.2);
  --shadow-ember-lg: 0 8px 24px rgba(234,88,12,0.25);

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 150ms var(--ease);
  --t-base: 250ms var(--ease);
  --t-slow: 400ms var(--ease);
}


/* === BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  html { font-size: 16px; }
}

body {
  font-family: var(--font-body);
  background: var(--color-surface);
  color: var(--color-text);
  line-height: 1.65;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

::selection {
  background: var(--ember-200);
  color: var(--igh-900);
}


/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p { color: var(--color-text-secondary); margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: var(--color-text-secondary); line-height: 1.7; }

a { color: var(--color-primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--color-primary-hover); }

.font-mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }

.text-ember { color: var(--color-primary); }
.text-on-dark { color: var(--color-text-on-dark); }
.text-on-dark-muted { color: var(--color-text-on-dark-muted); }

/* Ember highlight for key words */
.ember-highlight {
  color: var(--color-primary);
  position: relative;
}

/* Decorative ember line */
.ember-line {
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}


/* === NAVIGATION === */
.navbar {
  background: var(--color-surface-dark);
  border-bottom: none;
  padding: 0;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ember-600), var(--ember-400), transparent 80%);
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: #ffffff !important;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand img {
  filter: brightness(1.1);
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.2);
  padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
  filter: invert(1);
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-on-dark-muted) !important;
  padding: 0.6rem 1rem !important;
  transition: color var(--t-fast);
  position: relative;
  letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--t-base);
  transform-origin: center;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}


/* === BUTTONS === */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t-base);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.01em;
}

.btn-modern:hover {
  background: var(--color-primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-ember);
}

.btn-modern:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

.btn-modern.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.btn-modern-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.5rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t-base);
}

.btn-modern-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--ember-50);
  transform: translateY(-1px);
}

/* Dark surface variant — works both as parent (.on-dark .btn) and on element (.btn.on-dark) */
.on-dark .btn-modern-secondary,
.surface-dark .btn-modern-secondary,
.hero-section .btn-modern-secondary,
.section-dark .btn-modern-secondary,
.btn-modern-secondary.on-dark {
  border-color: rgba(255,255,255,0.25);
  color: #ffffff;
}

.on-dark .btn-modern-secondary:hover,
.surface-dark .btn-modern-secondary:hover,
.hero-section .btn-modern-secondary:hover,
.section-dark .btn-modern-secondary:hover,
.btn-modern-secondary.on-dark:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(234,88,12,0.1);
}

/* Ghost button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
}

.btn-ghost:hover {
  background: var(--igh-100);
  color: var(--color-text);
}

/* Small button */
.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}


/* === CARDS === */
.forge-card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: all var(--t-base);
  overflow: hidden;
}

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

/* Card with ember accent line */
.forge-card-accent {
  border-left: 3px solid var(--color-primary);
}

/* Backward compatibility */
.glass-card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: all var(--t-base);
  overflow: hidden;
}

.glass-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
  transform: translateY(-2px);
}

/* Bootstrap card override */
.card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: all var(--t-base);
  overflow: hidden;
}

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

.card-header {
  background: var(--igh-50);
  border-bottom: 1px solid var(--color-border-light);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 1rem 1.25rem;
}

.card-body { padding: 1.25rem; }


/* === STAT CARDS (Admin Dashboard) === */
.stat-card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--stat-color, var(--color-primary));
}

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

.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-text);
}

.stat-card .stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.stat-card .stat-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1rem;
}


/* === SECTIONS === */
.section-dark {
  background: var(--color-surface-dark);
  color: var(--color-text-on-dark);
}

.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5, .section-dark h6 {
  color: #ffffff;
}

.section-dark p,
.section-dark .lead {
  color: var(--color-text-on-dark-muted);
}

/* Hero */
.hero-section {
  background: var(--color-surface-dark);
  position: relative;
  overflow: hidden;
  border-bottom: none;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(234,88,12,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(99,102,241,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember-600), transparent);
}

.hero-section .container { position: relative; z-index: 2; }

.hero-section h1 {
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero-section .lead {
  color: var(--color-text-on-dark-muted);
  font-size: 1.2rem;
}

/* Section divider */
.section-divider {
  background: var(--igh-50);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}


/* === FORMS === */
.form-control {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  color: var(--color-text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(234,88,12,0.1);
  outline: none;
  background: var(--color-surface-raised);
  color: var(--color-text);
}

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

.form-select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  color: var(--color-text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(234,88,12,0.1);
  outline: none;
}

.form-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.input-group-text {
  background: var(--igh-50);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

/* Dark surface forms */
.section-dark .form-control,
.on-dark .form-control {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #ffffff;
}

.section-dark .form-control:focus,
.on-dark .form-control:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(234,88,12,0.15);
}

.section-dark .form-control::placeholder,
.on-dark .form-control::placeholder {
  color: rgba(255,255,255,0.4);
}


/* === TABLES === */
.table {
  font-size: 0.9rem;
  --bs-table-bg: transparent;
  --bs-table-striped-bg: var(--igh-50);
  --bs-table-hover-bg: var(--ember-50);
}

.table thead th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--igh-50);
  border-bottom: 2px solid var(--color-border);
  border-top: none;
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

.table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text);
}

.table tbody tr {
  transition: background var(--t-fast);
}

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

.table a {
  color: var(--color-primary);
  font-weight: 500;
}

.table a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.table code,
.table .font-mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--igh-100);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-xs);
  color: var(--color-text);
}


/* === BADGES === */
.badge {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.badge-status-active {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(22,163,74,0.2);
}

.badge-status-used {
  background: var(--color-info-bg);
  color: var(--color-info);
  border: 1px solid rgba(37,99,235,0.2);
}

.badge-status-expired {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid rgba(217,119,6,0.2);
}

.badge-status-revoked {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid rgba(220,38,38,0.2);
}

/* Color overrides for Bootstrap bg-* badges */
.badge.bg-success { background-color: var(--color-success) !important; color: #fff !important; }
.badge.bg-primary { background-color: var(--color-primary) !important; color: #fff !important; }
.badge.bg-danger { background-color: var(--color-danger) !important; color: #fff !important; }
.badge.bg-warning { background-color: var(--color-warning) !important; color: #fff !important; }
.badge.bg-info { background-color: var(--color-info) !important; color: #fff !important; }
.badge.bg-secondary { background-color: var(--igh-500) !important; color: #fff !important; }


/* === MODAL === */
.modal-content {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  background: var(--color-surface-raised);
}

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

.modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
}

.modal-body { padding: 1.25rem; }

.modal-footer {
  border-top: 1px solid var(--color-border-light);
  padding: 1rem 1.25rem;
}


/* === DROPDOWN === */
.dropdown-menu {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.35rem;
}

.dropdown-item {
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: all var(--t-fast);
}

.dropdown-item:hover {
  background: var(--ember-50);
  color: var(--color-primary);
}


/* === PAGINATION === */
.page-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.75rem;
  transition: all var(--t-fast);
}

.page-link:hover {
  background: var(--ember-50);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.page-item.active .page-link {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.page-item.disabled .page-link {
  background: var(--igh-50);
  color: var(--color-text-muted);
}


/* === FOOTER === */
.site-footer {
  background: var(--color-surface-dark);
  color: var(--color-text-on-dark);
  margin-top: auto;
}

.site-footer h5,
.site-footer h6 {
  color: #ffffff;
  font-family: var(--font-display);
}

.site-footer p,
.site-footer small {
  color: var(--color-text-on-dark-muted);
}

.site-footer a {
  color: var(--color-primary);
  transition: color var(--t-fast);
}

.site-footer a:hover {
  color: var(--ember-400);
}

.site-footer hr {
  border-color: rgba(255,255,255,0.1);
}


/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.fade-in-up {
  animation: fadeInUp 0.5s var(--ease) both;
}

.fade-in {
  animation: fadeIn 0.4s var(--ease) both;
}

/* Staggered delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }


/* === ICON CONTAINERS === */
.icon-box {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.icon-box-ember {
  background: var(--ember-100);
  color: var(--color-primary);
}

.icon-box-dark {
  background: var(--igh-700);
  color: var(--ember-400);
}

.icon-box-sm {
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
}

.icon-box-lg {
  width: 56px;
  height: 56px;
  font-size: 1.3rem;
}


/* === FEATURE GRID (Bento) === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.feature-item {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--t-base);
}

.feature-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-ember);
  transform: translateY(-2px);
}

.feature-item h5 {
  font-size: 1rem;
  margin-top: 0.75rem;
}


/* === ADMIN SPECIFICS === */
.admin-header {
  background: var(--color-surface-raised);
  border-bottom: 1px solid var(--color-border-light);
  padding: 1.25rem 0;
}

.admin-header h1 {
  font-size: 1.5rem;
  margin: 0;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

/* Quick action buttons */
.quick-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
}

.quick-action:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--ember-50);
}

/* License key display */
.license-key {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--igh-100);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
  color: var(--color-text);
  letter-spacing: 0.02em;
}


/* === TOAST / ALERT === */
.toast-notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  min-width: 300px;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-family: var(--font-display);
  font-size: 0.9rem;
  animation: fadeInUp 0.3s var(--ease);
}

.toast-success {
  background: var(--color-success);
  color: #ffffff;
}

.toast-error {
  background: var(--color-danger);
  color: #ffffff;
}


/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-section { padding: 2.5rem 0; }
  .hero-section h1 { font-size: 2rem; }
  .glass-card { border-radius: var(--radius-md); }
  .feature-grid { grid-template-columns: 1fr; }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .table-responsive { font-size: 0.85rem; }
}

@media (max-width: 576px) {
  .btn-modern { padding: 0.6rem 1rem; font-size: 0.85rem; }
  .stat-card .stat-value { font-size: 1.5rem; }
}


/* === UTILITY OVERRIDES === */
/* Remove the old broad text-color overrides */
.bg-primary, .bg-success, .bg-danger, .bg-info,
.badge.bg-primary, .badge.bg-success, .badge.bg-danger, .badge.bg-info {
  color: #ffffff !important;
}

.bg-warning, .badge.bg-warning {
  color: #000000 !important;
}

.bg-dark { background-color: var(--igh-800) !important; }

/* Hide empty ASP.NET validation summary */
.validation-summary-valid { display: none; }

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

.btn:focus-visible { box-shadow: 0 0 0 3px rgba(234,88,12,0.2); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--igh-100); }
::-webkit-scrollbar-thumb { background: var(--igh-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--igh-400); }


/* === GRAIN TEXTURE OVERLAY (subtle industrial feel) === */
.grain-overlay {
  position: relative;
}

.grain-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}
