/* ==========================================================================
   eNotice Global Typography & Sizing Scale System
   Applied across entire application
   ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  /* Typography scale */
  --text-micro: 9px;
  --text-xs: 11px;
  --text-sm: 12.5px;
  --text-base: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-hero: clamp(28px, 4vw, 40px);

  /* Slate & Contrast Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
}

/* Global Root / Body */
html {
  font-family: var(--font-sans);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   1. Hero & Big Screen Displays (Digital preview / Hero titles)
   Font Size: clamp(28px, 4vw, 40px)
   Font Weight: 800 or 900
   Line Height: 1.15
   ========================================================================== */
.hero-title,
.display-hero,
.big-screen-title,
.hero-headline,
.display-4.fw-bold,
.billboard-hero-title {
  font-family: var(--font-sans);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* ==========================================================================
   2. Page & Dashboard Titles (h1)
   Font Size: 22px – 26px
   Font Weight: 800
   Color: #0f172a (Deep Slate)
   ========================================================================== */
h1,
.h1,
.page-title,
.dashboard-title,
.dash-title,
.page-heading {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   3. Billboard Cards, Modal & Section Headers (h2, h3)
   Font Size: 15px – 18px
   Font Weight: 700
   ========================================================================== */
h2,
.h2 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h3,
.h3,
.card-header-title,
.modal-title,
.section-header,
.billboard-card-title,
.card-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  letter-spacing: -0.015em;
}

h4,
.h4 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

h5,
.h5 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

h6,
.h6 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==========================================================================
   4. Default Body & Descriptions
   Font Size: 13.5px – 14px
   Font Weight: 400 (regular) or 500 (medium)
   Line Height: 1.55
   Color: #334155
   ========================================================================== */
p,
.body-text,
.card-text,
.description,
.lead-subtext,
.dash-subtitle,
.profile-card-subtitle,
.sub-desc {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.55;
  color: #334155;
}

.body-medium,
.fw-medium {
  font-weight: 500;
}

/* ==========================================================================
   5. Form Controls (Inputs, Select Dropdowns, Search Bars)
   Font Size: 13px – 14px
   Padding: 10px 14px
   Border Radius: 10px
   Font Weight: 500
   ========================================================================== */
.form-control,
.form-select,
.input-group > .form-control,
.input-group > .form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="file"],
select,
textarea {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-primary);
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
  border-color: #176bd6;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(23, 107, 214, 0.15);
}

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

/* ==========================================================================
   6. Form Labels & Field Titles
   Font Size: 12px – 13px
   Font Weight: 600
   ========================================================================== */
.form-label,
label,
.field-title,
.form-group > label {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: inline-block;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   7. Navigation, Sidebar Links & Tabs
   Font Size: 13px
   Font Weight: 600
   ========================================================================== */
.nav-link,
.sidebar .nav-link,
.navbar-nav .nav-link,
.nav-tabs .nav-link,
.nav-pills .nav-link,
.tab-link,
.sidebar-nav a,
.cms-tabs .nav-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   8. Tables (Billboard Inventory, Booking Schedules)
   Table Headers (th): 11px – 12px (Font Weight: 700, Uppercase, letter-spacing: 0.05em, text-muted)
   Table Cells (td): 13px – 13.5px (Font Weight: 500)
   ========================================================================== */
.table th,
table th,
.table thead th,
.ads-table th,
.history-table th {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background-color: #f8fafc;
  padding: 10px 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
}

.table td,
table td,
.table tbody td,
.ads-table td,
.history-table td {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  padding: 12px 14px;
  vertical-align: middle;
}

/* ==========================================================================
   9. Technical Data (Billboard Codes, Geo-coordinates, Pricing/Day, SKU)
   Font Family: 'JetBrains Mono', Consolas, monospace
   Font Size: 12.5px – 14px
   Font Weight: 600 or 700
   ========================================================================== */
.font-mono,
.mono,
.tech-data,
.billboard-code,
.billboard-id,
.geo-coordinates,
.geo-coord,
.coords-data,
.pricing-rate,
.sku-code,
.price-tag-mono,
.plan-rate,
.rate-data,
.coordinates,
code,
kbd,
samp {
  font-family: var(--font-mono) !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mono-bold,
.rate-bold,
.price-bold {
  font-weight: 700 !important;
}

/* ==========================================================================
   10. Badges & Status Tags (Available, Booked, Maintenance)
   Font Size: 9.5px – 10.5px
   Font Weight: 700 or 800
   Text Transform: uppercase, letter-spacing: 0.5px
   Padding: 3px 8px, Pill rounded
   ========================================================================== */
.badge,
.status-tag,
.tag-pill,
.badge-status,
.ad-location-badge,
.plan-badge-active {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 9999px; /* Pill rounded */
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
}

.badge-heavy {
  font-weight: 800;
}

/* ==========================================================================
   11. Micro-labels & Timestamps
   Font Size: 8px – 10px
   Font Weight: 600
   ========================================================================== */
.micro-label,
.timestamp,
.text-micro,
small.micro,
.time-stamp,
.date-micro,
.sidebar-brand-tag,
.table-subtext-micro,
.field-hint-micro {
  font-family: var(--font-sans);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* Helper Utilities */
.text-slate-900 { color: #0f172a !important; }
.text-slate-700 { color: #334155 !important; }
.text-slate-600 { color: #475569 !important; }
.text-slate-400 { color: #94a3b8 !important; }
