/**
 * Design System
 * 
 * Design Language Summary:
 * - Clean, modern interface with a bold yet professional aesthetic
 * - Emphasizes clarity, usability, and accessible visual hierarchy
 * - Balanced use of white space with vibrant accent colors
 * - Consistent component patterns that guide users through complex flows
 * 
 * Brand Voice:
 * - Professional and reliable while remaining approachable
 * - Solution-focused with clear, direct communication
 * - Progressive and modern without being overly trendy
 * - Inspires confidence through consistent visual patterns
 * 
 * Component Patterns:
 * - Interactive elements have clear hover and active states
 * - Consistent spacing and alignment across all components
 * - Information hierarchy reinforced through typography and color
 * - Components maintain their integrity across different viewport sizes
 * 
 * Interaction Design:
 * - Subtle transitions that provide feedback without distraction
 * - Interactive elements respond to user input with appropriate visual cues
 * - Loading states clearly communicate system status
 * - Focus states prioritize accessibility without compromising aesthetics
 * 
 * Accessibility Considerations:
 * - Color contrast ratios exceed WCAG AA standards (4.5:1 for normal text)
 * - Focus indicators clearly visible for keyboard navigation
 * - Touch targets sized appropriately (minimum 44px) for mobile interfaces
 * - Text remains readable at all sizes with adequate line height
 * 
 * Extension Guidelines:
 * - Use the established spacing scale to maintain rhythm
 * - New components should follow existing patterns for states and interactions
 * - Typography should adhere to the defined size and weight scale
 * - When adding new colors, ensure they complement the existing palette
 */

/* Import Google Instrument Sans Font */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');
/* Import Gambetta Font */
@import url('fonts/gambetta/css/gambetta.css');

/* Global Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* CSS Variables (Design Tokens) */
:root {
/* Colors */
--color-primary: #5200FF;
--color-primary-hover: #4400D9;
--color-primary-light: #E8E0FF;
--color-primary-text: #FFFFFF;

--color-secondary: #FFFFFF;
--color-secondary-hover: #F8F8F8;
--color-secondary-text: #1A1A1A;

--color-accent: #AAFE05;
--color-accent-hover: #98E600;
--color-accent-text: #1A1A1A;

--color-background: #FFFFFF;
--color-surface: #FAFAFA;

--color-border: #E5E5E5;
--color-border-focus: #5200FF;

--color-text: #1A1A1A;
--color-text-muted: #737373;
--color-text-inverse: #FFFFFF;

--color-success: #AAFE05;
--color-success-bg: #F5FFD6;

--color-error: #FF0055;
--color-error-bg: #FFE0ED;

--color-warning: #FF4C00;
--color-warning-bg: #FFE8DD;

--color-info: #5200FF;
--color-info-bg: #E8E0FF;
  

  /* Typography */
  --font-family-base: 'Instrument Sans', sans-serif;
  --font-family-headline: 'Gambetta-Variable', serif;
  
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;      /* Added for larger headlines */
  --font-size-4xl: 2.5rem;    /* Added for hero headlines */
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  --line-height-tight: 1;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  
  /* Spacing */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.5rem;
  --spacing-6: 2rem;
  --spacing-7: 2.5rem;
  --spacing-8: 3rem;
  
  /* Borders & Radius */
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.7rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --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);
  
  /* Z-index */
  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;
  
  /* Animations */
  --animate-duration-fast: 150ms;
  --animate-duration-normal: 300ms;
  --animate-duration-slow: 500ms;
  
  --animate-timing-function-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --animate-timing-function-ease-in: cubic-bezier(0.4, 0, 1, 1);
  --animate-timing-function-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --animate-timing-function-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gambetta Font Utilities */
.font-gambetta-light {
  font-family: 'Gambetta-Light', sans-serif;
}

.font-gambetta-regular {
  font-family: 'Gambetta-Regular', sans-serif;
}

.font-gambetta-medium {
  font-family: 'Gambetta-Medium', sans-serif;
}

.font-gambetta-semibold {
  font-family: 'Gambetta-Semibold', sans-serif;
}

.font-gambetta-bold {
  font-family: 'Gambetta-Bold', sans-serif;
}

.font-gambetta-variable {
  font-family: 'Gambetta-Variable', sans-serif;
}

/* Variable font weight utilities */
.font-weight-200 { font-variation-settings: 'wght' 200; }
.font-weight-300 { font-variation-settings: 'wght' 300; }
.font-weight-400 { font-variation-settings: 'wght' 400; }
.font-weight-500 { font-variation-settings: 'wght' 500; }
.font-weight-600 { font-variation-settings: 'wght' 600; }
.font-weight-700 { font-variation-settings: 'wght' 700; }

/* Base Styles */
html {
  font-size: 14px; /* Set base font-size so 1rem = 16px */
}

html, body {
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

body {
  font-size: var(--font-size-md); /* 1rem = 16px now */
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--animate-duration-fast) var(--animate-timing-function-ease);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headline);
  margin-top: 0;
  margin-bottom: var(--spacing-4);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-2xl);
}

h2 {
  font-size: var(--font-size-xl);
}

h3 {
  font-size: var(--font-size-lg);
}

h4 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
}

h5, h6 {
  font-size: var(--font-size-md);
}

p {
  margin-top: 0;
  margin-bottom: var(--spacing-4);
}

/* Typography Utilities */
.text-xs {
  font-size: var(--font-size-xs);
}

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

.text-md {
  font-size: var(--font-size-md);
}

.text-lg {
  font-size: var(--font-size-lg);
}

.text-xl {
  font-size: var(--font-size-xl);
}

.text-2xl {
  font-size: var(--font-size-2xl);
}

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

/* Container */
.container {
  width: 100%;
  padding-right: var(--spacing-4);
  padding-left: var(--spacing-4);
  margin-right: auto;
  margin-left: auto;
}

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

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

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-md);
  line-height: 1;
  padding: var(--spacing-3) var(--spacing-5);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--animate-duration-fast) var(--animate-timing-function-ease);
  position: relative;
  text-decoration: none;
}

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

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-text);
  border-color: var(--color-primary-hover);
  border-width: 1px;
}

.btn-primary:hover:not(:disabled):not([disabled]), 
.btn-primary.hover:not(:disabled):not([disabled]) {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-primary-text);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-secondary-text);
  border-color: #CCCCCC;
  border-width: 1px;
}

.btn-secondary:hover:not(:disabled):not([disabled]), 
.btn-secondary.hover:not(:disabled):not([disabled]) {
  background-color: var(--color-secondary-hover);
  color: var(--color-secondary-text);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text);
  border-color: #DDDDDD;
  border-width: 1px;
}

.btn-ghost:hover:not(:disabled):not([disabled]), 
.btn-ghost.hover:not(:disabled):not([disabled]) {
  background-color: var(--color-surface);
  color: var(--color-text);
}

.btn-loading {
  position: relative;
}

.btn-loading .btn-text {
  opacity: 0.3;
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--color-primary-text);
  animation: spin 1s ease-in-out infinite;
  position: absolute;
  left: 50%;
  margin-left: -0.5rem;
}

.btn-secondary .spinner, .btn-ghost .spinner {
  border: 2px solid rgba(51, 51, 51, 0.3);
  border-top-color: var(--color-text);
}

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

/* Forms */
.form-group {
  margin-bottom: var(--spacing-4);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-2);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.form-control {
  width: 100%;
  padding: var(--spacing-3);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-sizing: border-box;
  transition: border-color var(--animate-duration-fast) var(--animate-timing-function-ease), 
              box-shadow var(--animate-duration-fast) var(--animate-timing-function-ease);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-control[aria-invalid="true"] {
  border-color: var(--color-error);
}

.form-control[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px var(--color-error-bg);
}

.form-select {
  width: 100%;
  padding: var(--spacing-3);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--spacing-3) center;
  background-size: 16px;
  padding-right: var(--spacing-8);
  transition: border-color var(--animate-duration-fast) var(--animate-timing-function-ease),
              box-shadow var(--animate-duration-fast) var(--animate-timing-function-ease);
}

.form-select:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-select[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--color-surface);
}

.input-group {
  position: relative;
  display: flex;
  width: 100%;
}

.form-icon {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: 0 var(--spacing-3);
  color: var(--color-text-muted);
}

.icon-prepend .form-icon {
  left: 0;
}

.icon-prepend .form-control {
  padding-left: var(--spacing-8);
}

.icon-append .form-icon {
  right: 0;
}

.icon-append .form-control {
  padding-right: var(--spacing-8);
}

/* Checkboxes & Radio Buttons */
.checkbox-label, .radio-label {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.checkbox, .radio {
  margin: 0;
  margin-right: var(--spacing-2);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
}

.checkbox-text, .radio-text {
  margin-left: var(--spacing-2);
}

.checkbox:disabled + .checkbox-text,
.radio:disabled + .radio-text {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Card */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--spacing-6);
  box-shadow: var(--shadow-md);
}

.card-title {
  margin-top: 0;
  margin-bottom: var(--spacing-4);
}

.card-image {
  margin: -1.5rem -1.5rem var(--spacing-4);
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Alerts */
.alert {
  padding: var(--spacing-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-4);
  display: flex;
  align-items: flex-start;
}

.alert-success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

.alert-info {
  background-color: var(--color-info-bg);
  color: var(--color-info);
}

.alert-error {
  background-color: var(--color-error-bg);
  color: var(--color-error);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-1) var(--spacing-2);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-inverse);
  background-color: var(--color-text-muted);
  border-radius: var(--radius-full);
  line-height: 1;
}

.badge-success {
  background-color: var(--color-success);
}

.badge-error {
  background-color: var(--color-error);
}

.badge-warning {
  background-color: var(--color-warning);
}

/* Navigation */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-4);
  background-color: var(--color-background);
}

.navbar-logo {
  display: flex;
  align-items: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
}

.navbar-logo img {
  margin-right: var(--spacing-2);
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--spacing-6);
}

.nav-links li {
  display: inline-block;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color var(--animate-duration-fast) var(--animate-timing-function-ease);
}

.nav-link:hover, .nav-link.hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-background);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  z-index: var(--z-index-fixed);
}

.bottom-nav-items {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.bottom-nav-items li {
  flex: 1;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-3) var(--spacing-2);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--animate-duration-fast) var(--animate-timing-function-ease);
  position: relative;
}

.bottom-nav-item:hover,
.bottom-nav-item.hover {
  color: var(--color-primary);
  text-decoration: none;
}

.bottom-nav-item.active {
  color: var(--color-primary);
}

.bottom-nav-icon {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-1);
}

.bottom-nav-label {
  font-size: var(--font-size-xs);
  text-align: center;
}

/* Sidebar Navigation */
.sidebar {
  width: 280px;
  height: 100%;
  background-color: var(--color-background);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: fixed;
  left: 0;
  top: 0;
  z-index: var(--z-index-fixed);
  transition: width var(--animate-duration-normal) var(--animate-timing-function-ease);
}

.sidebar-collapsed {
  width: 80px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  padding: var(--spacing-4);
  border-bottom: 1px solid var(--color-border);
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary);
  color: var(--color-primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  margin-right: var(--spacing-3);
  flex-shrink: 0;
}

.sidebar-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-collapsed .sidebar-title {
  display: none;
}

.sidebar-nav {
  flex: 1;
  padding: var(--spacing-4) 0;
}

.sidebar-section {
  margin-bottom: var(--spacing-6);
}

.sidebar-section-title {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-text-muted);
  padding: 0 var(--spacing-4);
  margin: 0 0 var(--spacing-3) 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-collapsed .sidebar-section-title {
  text-align: center;
  padding: 0 var(--spacing-1);
  font-size: 10px;
}

.sidebar-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-item {
  margin-bottom: var(--spacing-1);
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: var(--spacing-3) var(--spacing-4);
  color: var(--color-text);
  text-decoration: none;
  transition: all var(--animate-duration-fast) var(--animate-timing-function-ease);
  border-radius: 0;
  position: relative;
}

.sidebar-link:hover,
.sidebar-link.hover {
  background-color: var(--color-surface);
  color: var(--color-primary);
  text-decoration: none;
}

.sidebar-link.active {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.sidebar-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--spacing-3);
  flex-shrink: 0;
}

.sidebar-collapsed .sidebar-icon {
  margin-right: 0;
}

.sidebar-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.sidebar-collapsed .sidebar-text {
  display: none;
}

.sidebar-badge {
  background-color: var(--color-primary);
  color: var(--color-primary-text);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  padding: var(--spacing-1) var(--spacing-2);
  border-radius: var(--radius-full);
  margin-left: var(--spacing-2);
}

.sidebar-collapsed .sidebar-badge {
  position: absolute;
  top: var(--spacing-2);
  right: var(--spacing-2);
  margin-left: 0;
  padding: var(--spacing-1);
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tabs */
.tabs-container {
  width: 100%;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--spacing-4);
}

.tab-button {
  padding: var(--spacing-3) var(--spacing-4);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  transition: all var(--animate-duration-fast) var(--animate-timing-function-ease);
}

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

.tab-button.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-content {
  display: none;
  padding: var(--spacing-4) 0;
}

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

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

.table-header {
  background-color: var(--color-surface);
}

.table-th {
  padding: var(--spacing-3) var(--spacing-4);
  text-align: left;
  font-weight: var(--font-weight-semibold);
  border-bottom: 2px solid var(--color-border);
  color: var(--color-text);
}

.table-body {
  background-color: var(--color-background);
}

.table-row {
  border-bottom: 1px solid var(--color-border);
}

.table-row:last-child {
  border-bottom: none;
}

.table-td {
  padding: var(--spacing-3) var(--spacing-4);
  color: var(--color-text);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-index-modal);
}

.modal {
  background-color: var(--color-background);
  border-radius: var(--radius-lg);
  padding: var(--spacing-6);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

/* Steps */
.steps {
  display: flex;
  padding: 0;
  margin: var(--spacing-5) 0;
  overflow-x: auto;
}

.steps.vertical {
  flex-direction: column;
}

.step {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: var(--spacing-3) var(--spacing-2);
  white-space: nowrap;
  color: var(--color-text-muted);
}

.step:before {
  position: absolute;
  left: 0;
  top: 50%;
  height: 4px;
  width: 100%;
  content: "";
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: 2px;
  z-index: -1;
}

.steps.vertical .step:before {
  top: 0;
  left: calc(var(--spacing-3) + 8px);
  height: 100%;
  width: 4px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

.step:first-child:before {
  left: 50%;
  width: 50%;
}

.steps.vertical .step:first-child:before {
  top: 50%;
  left: calc(var(--spacing-3) + 8px);
  height: 50%;
  width: 2px;
}

.step:last-child:before {
  width: 50%;
}

.steps.vertical .step:last-child:before {
  height: 50%;
}

.step:after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-color: var(--color-background);
  border: 3px solid var(--color-border);
  border-radius: 50%;
  margin-right: var(--spacing-3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step-primary {
  color: var(--color-primary);
}

.step-primary:before {
  background-color: var(--color-primary);
}

.step-primary:after {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(110, 35, 255, 0.3);
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: var(--spacing-2) 0;
  margin: 0;
  list-style: none;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:first-child):before {
  content: "/";
  display: inline-block;
  padding: 0 var(--spacing-2);
  color: var(--color-text-muted);
}

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

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

.breadcrumb-item:last-child a {
  color: var(--color-text);
  pointer-events: none;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .navbar {
    padding: var(--spacing-3);
  }
  
  .nav-links {
    gap: var(--spacing-3);
  }
  
  .card {
    padding: var(--spacing-4);
  }
  
  .btn {
    padding: var(--spacing-2) var(--spacing-4);
  }
  
  .steps {
    overflow-x: auto;
  }
  
  .modal {
    width: calc(100% - var(--spacing-6));
    margin: 0 var(--spacing-3);
  }
}