/**
 * WF Tickets - Core CSS Variables
 * Global design tokens following design guidelines
 */

:root {
  /* ==========================================================================
     Color System
     ========================================================================== */
  
  /* Primary Colors */
  --color-primary: #1e40af;
  --color-primary-light: #3b82f6;
  --color-primary-dark: #1e3a8a;
  
  /* Secondary Colors */
  --color-secondary: #64748b;
  --color-secondary-light: #94a3b8;
  --color-secondary-dark: #475569;
  
  /* Accent Colors (Gold/Orange) */
  --color-accent: #FFD700;
  --color-accent-alt: #FFA500;
  --color-accent-dark: #F59E0B;
  
  /* Neutral Colors */
  --color-white: #ffffff;
  --color-black: #000000;
  
  /* Gray Scale */
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;
  
  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f1f5f9;
  --bg-dark: #0f2940;
  --bg-darker: #0a1628;
  
  /* Header/Hero Backgrounds */
  --bg-hero-primary: linear-gradient(135deg, #0a1628 0%, #1e3a5f 100%);
  --bg-hero-secondary: linear-gradient(135deg, #1e3a5f 0%, #2e4a6f 100%);
  
  /* Text Colors */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --text-inverse: #ffffff;
  --text-accent: var(--color-accent);
  
  /* ==========================================================================
     Gradients (Consistent angle: 135deg)
     ========================================================================== */
  
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-alt) 100%);
  --gradient-dark: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  --gradient-light: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-gray-100) 100%);
  
  /* ==========================================================================
     Typography Scale
     ========================================================================== */
  
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 2rem;      /* 32px */
  --text-4xl: 2.5rem;    /* 40px */
  --text-5xl: 3rem;      /* 48px */
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* ==========================================================================
     Spacing Scale (8px base unit)
     ========================================================================== */
  
  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  
  /* ==========================================================================
     Border System
     ========================================================================== */
  
  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.25rem;  /* 4px */
  --radius-base: 0.5rem; /* 8px */
  --radius-md: 0.75rem;  /* 12px */
  --radius-lg: 1rem;     /* 16px */
  --radius-xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;
  
  /* Border Width */
  --border-0: 0;
  --border-1: 1px;
  --border-2: 2px;
  --border-3: 3px;
  --border-4: 4px;
  
  /* Border Colors */
  --border-color: var(--color-gray-200);
  --border-color-dark: var(--color-gray-300);
  
  /* ==========================================================================
     Shadows
     ========================================================================== */
  
  --shadow-none: none;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* ==========================================================================
     Animation & Transitions
     ========================================================================== */
  
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
  
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* ==========================================================================
     Z-Index Scale
     ========================================================================== */
  
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --z-modal: 1000;
  --z-tooltip: 1100;
  --z-notification: 1200;
  
  /* ==========================================================================
     Component Specific Variables
     ========================================================================== */
  
  /* Page Headers / Heroes */
  --hero-height: 320px;
  --hero-height-sm: 240px;
  --hero-padding-y: 5rem;
  --hero-bg: var(--bg-hero-primary);
  --hero-text-color: var(--color-white);
  
  /* Cards */
  --card-bg: var(--bg-primary);
  --card-border: 1px solid var(--border-color);
  --card-radius: var(--radius-lg);
  --card-shadow: var(--shadow-base);
  --card-shadow-hover: var(--shadow-lg);
  --card-padding: var(--space-6);
  
  /* Feature Cards */
  --feature-card-icon-size: 3rem;
  --feature-card-icon-color: var(--color-primary);
  --feature-card-heading-size: var(--text-xl);
  --feature-card-text-size: var(--text-base);
  
  /* Stat Cards */
  --stat-number-size: var(--text-3xl);
  --stat-number-color: var(--color-primary);
  --stat-label-size: var(--text-sm);
  --stat-label-color: var(--text-tertiary);
  
  /* Grid Layouts */
  --grid-gap-sm: var(--space-4);
  --grid-gap-md: var(--space-6);
  --grid-gap-lg: var(--space-8);
  
  /* ==========================================================================
     Breakpoints (for reference in CSS)
     ========================================================================== */
  
  --screen-xs: 480px;
  --screen-sm: 640px;
  --screen-md: 768px;
  --screen-lg: 1024px;
  --screen-xl: 1280px;
  --screen-2xl: 1536px;
  
  /* ==========================================================================
     Container
     ========================================================================== */
  
  --container-xs: 100%;
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* ==========================================================================
   Responsive Overrides
   ========================================================================== */

/* Tablet and smaller */
@media (max-width: 768px) {
  :root {
    /* Scale down borders and radius */
    --radius-sm: 0.1875rem;  /* 3px */
    --radius-base: 0.375rem; /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    
    /* Slightly smaller text on mobile */
    --text-4xl: 2rem;    /* 32px */
    --text-5xl: 2.5rem;  /* 40px */
  }
}

/* Mobile */
@media (max-width: 480px) {
  :root {
    /* Further scale down for mobile */
    --radius-sm: 0.125rem;   /* 2px */
    --radius-base: 0.25rem;  /* 4px */
    --radius-md: 0.375rem;   /* 6px */
    --radius-lg: 0.5rem;     /* 8px */
    --radius-xl: 0.75rem;    /* 12px */
    
    /* Smaller headings on mobile */
    --text-3xl: 1.75rem; /* 28px */
    --text-4xl: 1.875rem; /* 30px */
    --text-5xl: 2.25rem; /* 36px */
    
    /* Tighter spacing on mobile */
    --space-16: 3rem;    /* 48px */
    --space-20: 4rem;    /* 64px */
    --space-24: 5rem;    /* 80px */
  }
}

/* ==========================================================================
   Dark Mode Support (future implementation)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  :root.dark-mode {
    /* Dark mode color overrides would go here */
  }
}/**
 * WF Tickets - Base Styles
 * Reset and foundational styles
 */

/* ==========================================================================
   Reset / Normalize
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography Base
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin: 0;
  line-height: var(--leading-relaxed);
}

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

a:hover {
  color: var(--color-primary-light);
}

strong, b {
  font-weight: var(--font-bold);
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
}

/* ==========================================================================
   Lists
   ========================================================================== */

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ==========================================================================
   Media
   ========================================================================== */

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

svg {
  display: block;
  vertical-align: middle;
}

/* ==========================================================================
   Forms Base
   ========================================================================== */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  margin: 0;
}

button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
  cursor: pointer;
}

button:disabled,
[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

input,
textarea,
select {
  display: block;
  width: 100%;
}

/* ==========================================================================
   Tables
   ========================================================================== */

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

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

.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-4);
  padding-left: var(--space-4);
}

@media (min-width: 640px) {
  .container { max-width: var(--container-sm); }
}

@media (min-width: 768px) {
  .container { max-width: var(--container-md); }
}

@media (min-width: 1024px) {
  .container { max-width: var(--container-lg); }
}

@media (min-width: 1280px) {
  .container { max-width: var(--container-xl); }
}

/* ==========================================================================
   Focus Styles (Accessibility)
   ========================================================================== */

:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

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

/* ==========================================================================
   Selection
   ========================================================================== */

::selection {
  background-color: var(--color-primary);
  color: var(--color-white);
}

::-moz-selection {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* ==========================================================================
   Scrollbar Styling
   ========================================================================== */

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray-400);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-gray-100);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-500);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-gray-400) var(--color-gray-100);
}/**
 * WF Tickets - Global Components
 * Reusable component styles that maintain consistency across all pages
 */

/* ==========================================================================
   Page Headers / Hero Sections - Unified Design
   ========================================================================== */

.page-header,
.hero-section {
  background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 100%);
  color: var(--color-white);
  padding: var(--space-24) 0 var(--space-20) 0;
  position: relative;
  overflow: hidden;
  min-height: 450px;
  display: flex;
  align-items: center;
}

.page-header::before,
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 100 0 L 0 0 0 100' fill='none' stroke='white' stroke-width='0.5' opacity='0.1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23grid)' /%3E%3C/svg%3E");
  opacity: 0.1;
}

.page-header .container,
.hero-section .container {
  position: relative;
  z-index: 1;
}

/* Hero content wrapper - default left-aligned */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Page header content - centered for other pages */
.page-header-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Specific styles for centered page headers */
.page-header h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  text-align: center;
}

/* Hero section h1 (homepage) - left-aligned */
.hero h1,
.hero-section h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.page-header .text-accent,
.hero-section .text-accent {
  color: var(--color-accent);
}

/* Centered lead text for page headers */
.page-header .lead {
  font-size: var(--text-lg);
  color: var(--color-white);
  opacity: 0.9;
  line-height: var(--leading-relaxed);
  max-width: 700px;
  margin: 0 auto var(--space-8);
  text-align: center;
}

/* Left-aligned description for hero */
.hero-section .lead,
.hero-description {
  font-size: var(--text-lg);
  color: var(--color-white);
  opacity: 0.9;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

/* Hero actions - left-aligned for homepage */
.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

/* Page header actions - centered for other pages */
.page-header-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

/* Hero stats - for homepage */
.hero-stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats .stat {
  text-align: center;
}

.hero-stats .stat strong {
  display: block;
  font-size: var(--text-2xl);
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.hero-stats .stat span {
  font-size: var(--text-sm);
  color: var(--color-white);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Cards - Base Styles
   ========================================================================== */

.card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-base);
}

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

.card-header {
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.card-description {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ==========================================================================
   Feature Cards
   ========================================================================== */

.feature-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  text-align: center;
  transition: all var(--transition-base);
}

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

.feature-card-icon {
  font-size: var(--feature-card-icon-size);
  color: var(--feature-card-icon-color);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
}

.feature-card-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.feature-card h3 {
  font-size: var(--feature-card-heading-size);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.feature-card p {
  font-size: var(--feature-card-text-size);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.feature-card ul {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0 0;
}

.feature-card ul li {
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
}

.feature-card ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.feature-card ul li a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ==========================================================================
   Stat Cards
   ========================================================================== */

.stat-card {
  text-align: center;
  padding: var(--space-6);
}

.stat-number,
.stat-value {
  display: block;
  font-size: var(--stat-number-size);
  font-weight: var(--font-bold);
  color: var(--stat-number-color);
  margin-bottom: var(--space-2);
  line-height: 1;
}

.stat-label {
  font-size: var(--stat-label-size);
  color: var(--stat-label-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--font-medium);
}

/* ==========================================================================
   Grid Layouts
   ========================================================================== */

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

.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 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--grid-gap-lg);
}

/* Stat Grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--grid-gap-md);
}

/* ==========================================================================
   Icon Boxes
   ========================================================================== */

.icon-box {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.icon-box-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
}

.icon-box-content {
  flex: 1;
}

.icon-box h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.icon-box p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

/* ==========================================================================
   Content Sections
   ========================================================================== */

.section {
  padding: var(--space-20) 0;
}

.section-light {
  background: var(--bg-primary);
}

.section-gray {
  background: var(--bg-secondary);
}

.section-dark {
  background: var(--bg-hero-primary);
  color: var(--color-white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   CTA Sections
   ========================================================================== */

.cta-section {
  padding: var(--space-20) 0;
  text-align: center;
}

.cta-section h2 {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.cta-section p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Search Boxes
   ========================================================================== */

.search-box,
.kb-search {
  max-width: 600px;
  margin: 0 auto var(--space-12);
  position: relative;
}

.search-input,
.kb-search-input {
  width: 100%;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-lg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all var(--transition-base);
}

.search-input:focus,
.kb-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.search-input::placeholder,
.kb-search-input::placeholder {
  color: var(--text-tertiary);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  .page-header,
  .hero-section {
    min-height: var(--hero-height-sm);
    padding: var(--space-16) 0;
  }
  
  .page-header h1,
  .hero-section h1 {
    font-size: var(--text-3xl);
  }
  
  .page-header .lead,
  .hero-section .lead {
    font-size: var(--text-lg);
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .icon-box {
    flex-direction: column;
    text-align: center;
  }
  
  .icon-box-icon {
    margin: 0 auto;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
}/**
 * WF Tickets - Global Button Styles
 * Two models: Filled (primary) and Ghost (secondary/outline)
 */

/* ==========================================================================
   Base Button Styles
   ========================================================================== */

.btn {
  /* Display */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  /* Typography */
  font-family: var(--font-family-base);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  
  /* Spacing */
  padding: var(--space-3) var(--space-6);
  
  /* Border */
  border: var(--border-2) solid transparent;
  border-radius: var(--radius-base);
  
  /* Interaction */
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-base);
  
  /* Focus */
  position: relative;
}

.btn:focus {
  outline: none;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

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

/* ==========================================================================
   Button Variants
   ========================================================================== */

/* Primary Button (Filled) */
.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.05);
}

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

/* Secondary Button (Ghost/Outline) - Default with white text/border */
.btn-secondary,
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-secondary:hover,
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active,
.btn-outline:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Dark Text/Border Modifier
   ========================================================================== */

/* For buttons that need dark text/border - add btn-dark class */
.btn-dark.btn-primary {
  /* Primary stays the same */
}

.btn-dark.btn-secondary,
.btn-dark.btn-outline {
  color: var(--color-gray-700);
  border-color: var(--color-gray-700);
}

.btn-dark.btn-secondary:hover,
.btn-dark.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Accent Button */
.btn-accent {
  background: var(--gradient-accent);
  color: var(--text-primary);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.05);
}

/* Danger Button */
.btn-danger {
  background: var(--color-error);
  color: var(--color-white);
  border-color: transparent;
}

.btn-danger:hover {
  filter: brightness(0.9);
  transform: translateY(-1px);
}

/* Success Button */
.btn-success {
  background: var(--color-success);
  color: var(--color-white);
  border-color: transparent;
}

.btn-success:hover {
  filter: brightness(0.9);
  transform: translateY(-1px);
}

/* ==========================================================================
   Button Sizes
   ========================================================================== */

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  border-radius: calc(var(--radius-base) * 0.75);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  border-radius: calc(var(--radius-base) * 1.25);
}

.btn-xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-xl);
  border-radius: calc(var(--radius-base) * 1.5);
}

/* ==========================================================================
   Button States
   ========================================================================== */

.btn-block {
  display: flex;
  width: 100%;
}

.btn-rounded {
  border-radius: var(--radius-full);
}

.btn-square {
  border-radius: 0;
}

/* ==========================================================================
   Button Groups
   ========================================================================== */

.btn-group {
  display: inline-flex;
  gap: var(--space-2);
}

.btn-group-vertical {
  display: inline-flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Connected buttons */
.btn-group-connected {
  display: inline-flex;
  gap: 0;
}

.btn-group-connected .btn {
  border-radius: 0;
}

.btn-group-connected .btn:first-child {
  border-top-left-radius: var(--radius-base);
  border-bottom-left-radius: var(--radius-base);
}

.btn-group-connected .btn:last-child {
  border-top-right-radius: var(--radius-base);
  border-bottom-right-radius: var(--radius-base);
}

/* ==========================================================================
   Button with Icons
   ========================================================================== */

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-icon svg {
  width: 1.25em;
  height: 1.25em;
}

.btn-icon-only {
  padding: var(--space-3);
  min-width: 2.5rem;
  min-height: 2.5rem;
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.btn-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  top: 50%;
  left: 50%;
  margin-left: -0.5rem;
  margin-top: -0.5rem;
  border: 2px solid var(--color-white);
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spinner 0.6s linear infinite;
}

@keyframes btn-spinner {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
  .btn {
    padding: var(--space-3) var(--space-5);
    font-size: calc(var(--text-base) * 0.95);
  }
  
  .btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: calc(var(--text-sm) * 0.95);
  }
  
  .btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: calc(var(--text-lg) * 0.95);
  }
}

@media (max-width: 480px) {
  /* Make buttons more touch-friendly on mobile */
  .btn {
    min-height: 44px; /* iOS touch target size */
    padding: var(--space-3) var(--space-4);
  }
  
  /* Stack button groups on mobile */
  .btn-group-responsive {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-group-responsive .btn {
    width: 100%;
  }
}