/*
 * Ziom Theme - CSS Custom Properties
 * Apple iOS Liquid Glass Inspired Design System
 */

:root {
  /* ========================================
   * COLOR PALETTE
   * ======================================== */
  
  /* Primary Colors */
  --ziom-primary: #007AFF;
  --ziom-primary-hover: #0066D6;
  --ziom-primary-active: #0055B3;
  --ziom-primary-light: rgba(0, 122, 255, 0.1);
  
  /* Semantic Colors */
  --ziom-success: #34C759;
  --ziom-success-light: rgba(52, 199, 89, 0.12);
  --ziom-warning: #FF9500;
  --ziom-warning-light: rgba(255, 149, 0, 0.12);
  --ziom-danger: #FF3B30;
  --ziom-danger-light: rgba(255, 59, 48, 0.12);
  --ziom-info: #5AC8FA;
  --ziom-info-light: rgba(90, 200, 250, 0.12);
  
  /* Neutral Colors */
  --ziom-gray-50: #F9FAFB;
  --ziom-gray-100: #F3F4F6;
  --ziom-gray-200: #E5E7EB;
  --ziom-gray-300: #D1D5DB;
  --ziom-gray-400: #9CA3AF;
  --ziom-gray-500: #6B7280;
  --ziom-gray-600: #4B5563;
  --ziom-gray-700: #374151;
  --ziom-gray-800: #1F2937;
  --ziom-gray-900: #111827;
  
  /* Text Colors */
  --ziom-text-primary: #1d1d1f;
  --ziom-text-secondary: #86868b;
  --ziom-text-tertiary: #aeaeb2;
  --ziom-text-inverse: #ffffff;
  
  /* Background Colors */
  --ziom-bg-page: #f5f7fa;
  --ziom-bg-page-gradient: linear-gradient(180deg, #f5f7fa 0%, #eef1f5 100%);
  --ziom-bg-elevated: #ffffff;
  --ziom-bg-surface: #ffffff;
  --ziom-bg-subtle: #F9FAFB;
  
  /* ========================================
   * GLASS EFFECT
   * ======================================== */
  
  --ziom-glass-bg: rgba(255, 255, 255, 0.72);
  --ziom-glass-bg-hover: rgba(255, 255, 255, 0.85);
  --ziom-glass-bg-solid: #ffffff;
  --ziom-glass-blur: blur(20px);
  --ziom-glass-blur-heavy: blur(40px);
  --ziom-glass-border: rgba(255, 255, 255, 0.5);
  --ziom-glass-border-subtle: rgba(0, 0, 0, 0.04);
  
  /* ========================================
   * SHADOWS
   * ======================================== */
  
  --ziom-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --ziom-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --ziom-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --ziom-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --ziom-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
  
  /* Glass-specific shadows */
  --ziom-shadow-glass: 
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04);
  --ziom-shadow-glass-hover:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.04);
  
  /* Inset shadows for inputs */
  --ziom-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.06);
  --ziom-shadow-inset-focus: inset 0 0 0 1px var(--ziom-primary);
  
  /* ========================================
   * BORDER RADIUS
   * ======================================== */
  
  --ziom-radius-xs: 4px;
  --ziom-radius-sm: 8px;
  --ziom-radius-md: 12px;
  --ziom-radius-lg: 16px;
  --ziom-radius-xl: 20px;
  --ziom-radius-2xl: 24px;
  --ziom-radius-full: 9999px;
  
  /* ========================================
   * SPACING
   * ======================================== */
  
  --ziom-space-1: 4px;
  --ziom-space-2: 8px;
  --ziom-space-3: 12px;
  --ziom-space-4: 16px;
  --ziom-space-5: 20px;
  --ziom-space-6: 24px;
  --ziom-space-8: 32px;
  --ziom-space-10: 40px;
  --ziom-space-12: 48px;
  
  /* ========================================
   * TYPOGRAPHY
   * ======================================== */
  
  --ziom-font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ziom-font-mono: "SF Mono", Monaco, "Cascadia Code", monospace;
  
  --ziom-text-xs: 11px;
  --ziom-text-sm: 13px;
  --ziom-text-base: 15px;
  --ziom-text-lg: 17px;
  --ziom-text-xl: 20px;
  --ziom-text-2xl: 24px;
  --ziom-text-3xl: 30px;
  
  --ziom-font-normal: 400;
  --ziom-font-medium: 500;
  --ziom-font-semibold: 600;
  --ziom-font-bold: 700;
  
  --ziom-leading-tight: 1.25;
  --ziom-leading-normal: 1.5;
  --ziom-leading-relaxed: 1.625;
  
  --ziom-tracking-tight: -0.02em;
  --ziom-tracking-normal: 0;
  --ziom-tracking-wide: 0.02em;
  
  /* ========================================
   * TRANSITIONS
   * ======================================== */
  
  --ziom-transition-fast: 150ms ease;
  --ziom-transition-normal: 200ms ease;
  --ziom-transition-slow: 300ms ease;
  --ziom-transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* ========================================
   * Z-INDEX
   * ======================================== */
  
  --ziom-z-dropdown: 100;
  --ziom-z-sticky: 200;
  --ziom-z-modal-backdrop: 300;
  --ziom-z-modal: 400;
  --ziom-z-toast: 500;
}

/* ========================================
 * DARK MODE - Deep Black
 * ======================================== */

[data-theme="dark"] {
  /* Primary Colors - adjusted for dark backgrounds */
  --ziom-primary: #0A84FF;
  --ziom-primary-hover: #409CFF;
  --ziom-primary-active: #0066CC;
  --ziom-primary-light: rgba(10, 132, 255, 0.15);
  
  /* Semantic Colors - iOS dark mode variants */
  --ziom-success: #30D158;
  --ziom-success-light: rgba(48, 209, 88, 0.15);
  --ziom-warning: #FF9F0A;
  --ziom-warning-light: rgba(255, 159, 10, 0.15);
  --ziom-danger: #FF453A;
  --ziom-danger-light: rgba(255, 69, 58, 0.15);
  --ziom-info: #64D2FF;
  --ziom-info-light: rgba(100, 210, 255, 0.15);
  
  /* Neutral Colors - inverted scale */
  --ziom-gray-50: #1C1C1E;
  --ziom-gray-100: #2C2C2E;
  --ziom-gray-200: #3A3A3C;
  --ziom-gray-300: #48484A;
  --ziom-gray-400: #636366;
  --ziom-gray-500: #8E8E93;
  --ziom-gray-600: #AEAEB2;
  --ziom-gray-700: #C7C7CC;
  --ziom-gray-800: #E5E5EA;
  --ziom-gray-900: #F2F2F7;
  
  /* Text Colors */
  --ziom-text-primary: #FFFFFF;
  --ziom-text-secondary: #98989D;
  --ziom-text-tertiary: #636366;
  --ziom-text-inverse: #000000;
  
  /* Background Colors - Deep Black */
  --ziom-bg-page: #000000;
  --ziom-bg-page-gradient: linear-gradient(180deg, #000000 0%, #0A0A0A 100%);
  --ziom-bg-elevated: #1C1C1E;
  --ziom-bg-surface: #1C1C1E;
  --ziom-bg-subtle: #2C2C2E;
  
  /* Glass Effect - Dark variant */
  --ziom-glass-bg: rgba(28, 28, 30, 0.72);
  --ziom-glass-bg-hover: rgba(44, 44, 46, 0.85);
  --ziom-glass-bg-solid: #1C1C1E;
  --ziom-glass-border: rgba(255, 255, 255, 0.1);
  --ziom-glass-border-subtle: rgba(255, 255, 255, 0.08);
  
  /* Shadows - adjusted for dark backgrounds */
  --ziom-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --ziom-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --ziom-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --ziom-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --ziom-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
  
  /* Glass-specific shadows */
  --ziom-shadow-glass: 
    0 4px 24px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.3);
  --ziom-shadow-glass-hover:
    0 8px 32px rgba(0, 0, 0, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.4);
  
  /* Inset shadows */
  --ziom-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  --ziom-shadow-inset-focus: inset 0 0 0 1px var(--ziom-primary);
}

/* Auto-detect OS preference when no explicit theme is set */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    /* Primary Colors - adjusted for dark backgrounds */
    --ziom-primary: #0A84FF;
    --ziom-primary-hover: #409CFF;
    --ziom-primary-active: #0066CC;
    --ziom-primary-light: rgba(10, 132, 255, 0.15);
    
    /* Semantic Colors - iOS dark mode variants */
    --ziom-success: #30D158;
    --ziom-success-light: rgba(48, 209, 88, 0.15);
    --ziom-warning: #FF9F0A;
    --ziom-warning-light: rgba(255, 159, 10, 0.15);
    --ziom-danger: #FF453A;
    --ziom-danger-light: rgba(255, 69, 58, 0.15);
    --ziom-info: #64D2FF;
    --ziom-info-light: rgba(100, 210, 255, 0.15);
    
    /* Neutral Colors - inverted scale */
    --ziom-gray-50: #1C1C1E;
    --ziom-gray-100: #2C2C2E;
    --ziom-gray-200: #3A3A3C;
    --ziom-gray-300: #48484A;
    --ziom-gray-400: #636366;
    --ziom-gray-500: #8E8E93;
    --ziom-gray-600: #AEAEB2;
    --ziom-gray-700: #C7C7CC;
    --ziom-gray-800: #E5E5EA;
    --ziom-gray-900: #F2F2F7;
    
    /* Text Colors */
    --ziom-text-primary: #FFFFFF;
    --ziom-text-secondary: #98989D;
    --ziom-text-tertiary: #636366;
    --ziom-text-inverse: #000000;
    
    /* Background Colors - Deep Black */
    --ziom-bg-page: #000000;
    --ziom-bg-page-gradient: linear-gradient(180deg, #000000 0%, #0A0A0A 100%);
    --ziom-bg-elevated: #1C1C1E;
    --ziom-bg-surface: #1C1C1E;
    --ziom-bg-subtle: #2C2C2E;
    
    /* Glass Effect - Dark variant */
    --ziom-glass-bg: rgba(28, 28, 30, 0.72);
    --ziom-glass-bg-hover: rgba(44, 44, 46, 0.85);
    --ziom-glass-bg-solid: #1C1C1E;
    --ziom-glass-border: rgba(255, 255, 255, 0.1);
    --ziom-glass-border-subtle: rgba(255, 255, 255, 0.08);
    
    /* Shadows - adjusted for dark backgrounds */
    --ziom-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --ziom-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --ziom-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --ziom-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --ziom-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
    
    /* Glass-specific shadows */
    --ziom-shadow-glass: 
      0 4px 24px rgba(0, 0, 0, 0.5),
      0 1px 2px rgba(0, 0, 0, 0.3);
    --ziom-shadow-glass-hover:
      0 8px 32px rgba(0, 0, 0, 0.6),
      0 2px 4px rgba(0, 0, 0, 0.4);
    
    /* Inset shadows */
    --ziom-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.4);
    --ziom-shadow-inset-focus: inset 0 0 0 1px var(--ziom-primary);
  }
}
/*
 * Ziom Theme - Base Styles
 * Foundation styles and resets
 */

/* ========================================
 * PAGE BACKGROUND
 * ======================================== */

/* Apply to body by default - ziom is the primary theme */
body,
.ziom-body,
body.ziom {
  background: var(--ziom-bg-page);
  background: var(--ziom-bg-page-gradient);
  min-height: 100vh;
  color: var(--ziom-text-primary);
  font-family: var(--ziom-font-family);
  font-size: var(--ziom-text-base);
  line-height: var(--ziom-leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
 * TYPOGRAPHY
 * ======================================== */

.ziom-heading-1 {
  font-size: var(--ziom-text-3xl);
  font-weight: var(--ziom-font-bold);
  letter-spacing: var(--ziom-tracking-tight);
  line-height: var(--ziom-leading-tight);
  color: var(--ziom-text-primary);
  margin: 0;
}

.ziom-heading-2 {
  font-size: var(--ziom-text-2xl);
  font-weight: var(--ziom-font-semibold);
  letter-spacing: var(--ziom-tracking-tight);
  line-height: var(--ziom-leading-tight);
  color: var(--ziom-text-primary);
  margin: 0;
}

.ziom-heading-3 {
  font-size: var(--ziom-text-xl);
  font-weight: var(--ziom-font-semibold);
  line-height: var(--ziom-leading-tight);
  color: var(--ziom-text-primary);
  margin: 0;
}

.ziom-heading-4 {
  font-size: var(--ziom-text-lg);
  font-weight: var(--ziom-font-medium);
  line-height: var(--ziom-leading-tight);
  color: var(--ziom-text-primary);
  margin: 0;
}

.ziom-text {
  font-size: var(--ziom-text-base);
  color: var(--ziom-text-primary);
  line-height: var(--ziom-leading-normal);
}

.ziom-text-sm {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
  line-height: var(--ziom-leading-normal);
}

.ziom-text-xs {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-tertiary);
  line-height: var(--ziom-leading-normal);
}

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

.ziom-text-label {
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-medium);
  text-transform: uppercase;
  letter-spacing: var(--ziom-tracking-wide);
  color: var(--ziom-text-tertiary);
}

/* ========================================
 * LINKS
 * ======================================== */

.ziom-link {
  color: var(--ziom-primary);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--ziom-transition-fast);
}

.ziom-link:hover {
  color: var(--ziom-primary-hover);
}

.ziom-link:active {
  color: var(--ziom-primary-active);
}

/* ========================================
 * CONTAINER
 * ======================================== */

.ziom-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--ziom-space-6);
}

.ziom-container-fluid {
  width: 100%;
  padding: var(--ziom-space-6);
}

@media (max-width: 768px) {
  .ziom-container-fluid {
    padding: var(--ziom-space-4);
  }
}

/* ========================================
 * SECTION
 * ======================================== */

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

.ziom-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ziom-space-4);
  margin-bottom: var(--ziom-space-4);
}

.ziom-section-title {
  font-size: var(--ziom-text-lg);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin: 0;
}

.ziom-section-subtitle {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
  margin-top: var(--ziom-space-1);
}

@media (max-width: 576px) {
  .ziom-section-header {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ========================================
 * DIVIDER
 * ======================================== */

.ziom-divider {
  height: 1px;
  background: var(--ziom-glass-border-subtle);
  border: none;
  margin: var(--ziom-space-6) 0;
}

.ziom-divider-vertical {
  width: 1px;
  height: 100%;
  background: var(--ziom-glass-border-subtle);
}

/* ========================================
 * UTILITIES
 * ======================================== */

.ziom-flex {
  display: flex;
}

.ziom-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ziom-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ziom-gap-1 { gap: var(--ziom-space-1); }
.ziom-gap-2 { gap: var(--ziom-space-2); }
.ziom-gap-3 { gap: var(--ziom-space-3); }
.ziom-gap-4 { gap: var(--ziom-space-4); }
.ziom-gap-6 { gap: var(--ziom-space-6); }

.ziom-mt-1 { margin-top: var(--ziom-space-1); }
.ziom-mt-2 { margin-top: var(--ziom-space-2); }
.ziom-mt-3 { margin-top: var(--ziom-space-3); }
.ziom-mt-4 { margin-top: var(--ziom-space-4); }
.ziom-mt-6 { margin-top: var(--ziom-space-6); }
.ziom-mb-1 { margin-bottom: var(--ziom-space-1); }
.ziom-mb-2 { margin-bottom: var(--ziom-space-2); }
.ziom-mb-3 { margin-bottom: var(--ziom-space-3); }
.ziom-mb-4 { margin-bottom: var(--ziom-space-4); }
.ziom-mb-6 { margin-bottom: var(--ziom-space-6); }

.ziom-p-4 { padding: var(--ziom-space-4); }
.ziom-p-6 { padding: var(--ziom-space-6); }
.ziom-px-4 { padding-left: var(--ziom-space-4); padding-right: var(--ziom-space-4); }
.ziom-py-4 { padding-top: var(--ziom-space-4); padding-bottom: var(--ziom-space-4); }

/* ========================================
 * ICON UTILITIES
 * ======================================== */

.ziom-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ziom-icon-sm {
  width: 16px;
  height: 16px;
}

.ziom-icon-md {
  width: 20px;
  height: 20px;
}

.ziom-icon-lg {
  width: 24px;
  height: 24px;
}

/* ========================================
 * FILTER COMPONENTS
 * ======================================== */

.ziom-filter-row {
  display: flex;
  align-items: flex-start;
  gap: var(--ziom-space-6);
  flex-wrap: wrap;
}

.ziom-filter-section {
  flex: 1;
  min-width: 280px;
}

.ziom-filter-title {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin: 0 0 var(--ziom-space-3) 0;
}

.ziom-filter-form {
  display: flex;
  flex-direction: column;
  gap: var(--ziom-space-3);
}

.ziom-filter-inputs {
  display: flex;
  align-items: flex-end;
  gap: var(--ziom-space-3);
  flex-wrap: wrap;
}

.ziom-filter-field {
  display: flex;
  flex-direction: column;
  gap: var(--ziom-space-1);
}

.ziom-filter-separator {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-tertiary);
}

.ziom-filter-divider-vertical {
  width: 1px;
  height: 80px;
  background: var(--ziom-glass-border-subtle);
  align-self: center;
}

/* Compact Filter Bar */
.ziom-filter-bar {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-6);
  flex-wrap: wrap;
}

.ziom-filter-group {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  flex-wrap: wrap;
}

.ziom-filter-label {
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--ziom-tracking-wide);
}

/* Additional utilities */
.ziom-items-center { align-items: center; }
.ziom-justify-center { justify-content: center; }
.ziom-flex-1 { flex: 1; }
.ziom-flex-wrap { flex-wrap: wrap; }

.ziom-h-1 { height: 4px; }
.ziom-rounded { border-radius: var(--ziom-radius-sm); }


.ziom-uppercase { text-transform: uppercase; }
.ziom-tracking-wide { letter-spacing: var(--ziom-tracking-wide); }
.ziom-font-medium { font-weight: var(--ziom-font-medium); }

.ziom-text-primary { color: var(--ziom-text-primary); }
.ziom-text-secondary { color: var(--ziom-text-secondary); }
.ziom-text-tertiary { color: var(--ziom-text-tertiary); }
.ziom-text-success { color: var(--ziom-success); }
.ziom-text-inherit { color: inherit; text-decoration: none; }
.ziom-text-center { text-align: center; }
.ziom-text-left { text-align: left; }
.ziom-text-right { text-align: right; }

.ziom-bg-primary { background: var(--ziom-primary); }
.ziom-bg-gray-200 { background: var(--ziom-gray-200); }

.ziom-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ziom-alert {
  padding: var(--ziom-space-3) var(--ziom-space-4);
  border-radius: var(--ziom-radius-md);
  font-size: var(--ziom-text-sm);
}

.ziom-alert-danger {
  background: var(--ziom-danger-light);
  color: var(--ziom-danger);
}

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

.ziom-filter-inline .ziom-input-sm {
  width: 130px;
}

@media (max-width: 768px) {
  .ziom-filter-row {
    flex-direction: column;
  }
  
  .ziom-filter-divider-vertical {
    display: none;
  }
  
  .ziom-filter-section {
    width: 100%;
  }
  
  .ziom-filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--ziom-space-3);
  }
  
  .ziom-filter-group {
    width: 100%;
  }
}

/* ========================================
 * DARK MODE OVERRIDES
 * ======================================== */

[data-theme="dark"] body,
[data-theme="dark"] .ziom-body,
[data-theme="dark"] body.ziom {
  background: #000000;
  background: linear-gradient(180deg, #000000 0%, #0A0A0A 100%);
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .ziom-link {
  color: #0A84FF;
}

[data-theme="dark"] .ziom-link:hover {
  color: #409CFF;
}

[data-theme="dark"] .ziom-divider {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .ziom-divider-vertical {
  background: rgba(255, 255, 255, 0.08);
}
/*
 * Ziom Theme - Button Components
 * Glass-effect buttons with iOS-inspired styling
 */

/* ========================================
 * BASE BUTTON
 * ======================================== */

.ziom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ziom-space-2);
  padding: var(--ziom-space-2) var(--ziom-space-4);
  font-family: var(--ziom-font-family);
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--ziom-radius-lg);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

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

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

/* Icon alignment in buttons */
.ziom-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ziom-btn-sm svg {
  width: 14px;
  height: 14px;
}

.ziom-btn-xs svg {
  width: 12px;
  height: 12px;
}

/* ========================================
 * BUTTON SIZES
 * ======================================== */

.ziom-btn-xs {
  padding: var(--ziom-space-1) var(--ziom-space-2);
  font-size: var(--ziom-text-xs);
  border-radius: var(--ziom-radius-sm);
}

.ziom-btn-sm {
  padding: 6px var(--ziom-space-3);
  font-size: var(--ziom-text-sm);
  border-radius: var(--ziom-radius-md);
}

.ziom-btn-lg {
  padding: var(--ziom-space-3) var(--ziom-space-6);
  font-size: var(--ziom-text-base);
  border-radius: var(--ziom-radius-lg);
}

.ziom-btn-xl {
  padding: var(--ziom-space-4) var(--ziom-space-8);
  font-size: var(--ziom-text-lg);
  border-radius: var(--ziom-radius-xl);
}

/* ========================================
 * PRIMARY BUTTON
 * ======================================== */

.ziom-btn-primary {
  background: var(--ziom-primary);
  color: var(--ziom-text-inverse);
  box-shadow: var(--ziom-shadow-sm);
}

.ziom-btn-primary:hover {
  background: var(--ziom-primary-hover);
  box-shadow: var(--ziom-shadow-md);
  transform: translateY(-1px);
}

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

/* ========================================
 * SECONDARY / GLASS BUTTON
 * ======================================== */

.ziom-btn-secondary,
.ziom-btn-glass {
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  color: var(--ziom-text-primary);
  border: 1px solid var(--ziom-glass-border-subtle);
  box-shadow: var(--ziom-shadow-glass);
}

.ziom-btn-secondary:hover,
.ziom-btn-glass:hover {
  background: var(--ziom-glass-bg-hover);
  box-shadow: var(--ziom-shadow-glass-hover);
  transform: translateY(-1px);
}

.ziom-btn-secondary:active,
.ziom-btn-glass:active {
  background: var(--ziom-glass-bg-solid);
  box-shadow: var(--ziom-shadow-sm);
  transform: translateY(0);
}

/* ========================================
 * GHOST BUTTON
 * ======================================== */

.ziom-btn-ghost {
  background: transparent;
  color: var(--ziom-text-primary);
}

.ziom-btn-ghost:hover {
  background: var(--ziom-gray-100);
}

.ziom-btn-ghost:active {
  background: var(--ziom-gray-200);
}

/* ========================================
 * OUTLINE BUTTON
 * ======================================== */

.ziom-btn-outline {
  background: transparent;
  color: var(--ziom-primary);
  border: 1px solid var(--ziom-primary);
}

.ziom-btn-outline:hover {
  background: var(--ziom-primary-light);
}

.ziom-btn-outline:active {
  background: var(--ziom-primary);
  color: var(--ziom-text-inverse);
}

/* ========================================
 * SEMANTIC BUTTONS
 * ======================================== */

/* Success */
.ziom-btn-success {
  background: var(--ziom-success);
  color: var(--ziom-text-inverse);
}

.ziom-btn-success:hover {
  filter: brightness(1.1);
}

/* Warning */
.ziom-btn-warning {
  background: var(--ziom-warning);
  color: var(--ziom-text-inverse);
}

.ziom-btn-warning:hover {
  filter: brightness(1.1);
}

/* Danger */
.ziom-btn-danger {
  background: var(--ziom-danger);
  color: var(--ziom-text-inverse);
}

.ziom-btn-danger:hover {
  filter: brightness(1.1);
}

/* Danger Outline */
.ziom-btn-danger-outline {
  background: transparent;
  color: var(--ziom-danger);
  border: 1px solid var(--ziom-danger);
}

.ziom-btn-danger-outline:hover {
  background: var(--ziom-danger-light);
}

/* ========================================
 * ICON BUTTON
 * ======================================== */

.ziom-btn-icon {
  padding: var(--ziom-space-2);
  border-radius: var(--ziom-radius-md);
}

.ziom-btn-icon.ziom-btn-xs {
  padding: var(--ziom-space-1);
  border-radius: var(--ziom-radius-sm);
}

.ziom-btn-icon.ziom-btn-sm {
  padding: 6px;
  border-radius: var(--ziom-radius-sm);
}

.ziom-btn-icon.ziom-btn-lg {
  padding: var(--ziom-space-3);
  border-radius: var(--ziom-radius-md);
}

/* ========================================
 * PILL BUTTON
 * ======================================== */

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

/* ========================================
 * BUTTON GROUP
 * ======================================== */

.ziom-btn-group {
  display: inline-flex;
  border-radius: var(--ziom-radius-lg);
  overflow: hidden;
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  box-shadow: var(--ziom-shadow-glass);
  border: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-btn-group .ziom-btn {
  border-radius: 0;
  box-shadow: none;
  border: none;
  background: transparent;
}

.ziom-btn-group .ziom-btn:not(:last-child) {
  border-right: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-btn-group .ziom-btn:hover {
  background: var(--ziom-gray-100);
  transform: none;
}

.ziom-btn-group .ziom-btn.active {
  background: var(--ziom-primary);
  color: var(--ziom-text-inverse);
}

/* ========================================
 * INLINE EDIT BUTTON
 * ======================================== */

.ziom-btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--ziom-space-1);
  background: transparent;
  color: var(--ziom-text-tertiary);
  border: none;
  border-radius: var(--ziom-radius-sm);
  opacity: 0;
  transition: all var(--ziom-transition-fast);
  cursor: pointer;
}

.ziom-btn-inline:hover {
  background: var(--ziom-gray-100);
  color: var(--ziom-text-secondary);
  opacity: 1;
}

*:hover > .ziom-btn-inline,
td:hover .ziom-btn-inline,
.ziom-btn-inline:focus {
  opacity: 1;
}

/* Always visible inline button variant */
.ziom-btn-inline-visible {
  opacity: 1;
}
/*
 * Ziom Theme - Card Components
 * Frosted glass effect cards
 */

/* ========================================
 * BASE CARD
 * ======================================== */

.ziom-card {
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border-radius: var(--ziom-radius-lg);
  border: 1px solid var(--ziom-glass-border-subtle);
  box-shadow: var(--ziom-shadow-glass);
  overflow: hidden;
}

.ziom-card-solid {
  background: var(--ziom-bg-elevated);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ========================================
 * CARD VARIANTS
 * ======================================== */

.ziom-card-sm {
  border-radius: var(--ziom-radius-md);
}

.ziom-card-lg {
  border-radius: var(--ziom-radius-xl);
}

.ziom-card-xl {
  border-radius: var(--ziom-radius-2xl);
}

/* ========================================
 * CARD INTERACTIVE
 * ======================================== */

.ziom-card-interactive {
  transition: all var(--ziom-transition-normal);
  cursor: pointer;
}

.ziom-card-interactive:hover {
  background: var(--ziom-glass-bg-hover);
  box-shadow: var(--ziom-shadow-glass-hover);
  transform: translateY(-2px);
}

.ziom-card-interactive:active {
  transform: translateY(0);
  box-shadow: var(--ziom-shadow-glass);
}

/* ========================================
 * CARD SECTIONS
 * ======================================== */

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

.ziom-card-header-compact {
  padding: var(--ziom-space-3) var(--ziom-space-4);
}

.ziom-card-title {
  font-size: var(--ziom-text-lg);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin: 0;
}

.ziom-card-subtitle {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
  margin-top: var(--ziom-space-1);
}

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

.ziom-card-body-compact {
  padding: var(--ziom-space-4);
}

.ziom-card-body-flush {
  padding: 0;
}

/* Alias for common Bootstrap pattern */
.ziom-card > .ziom-card-body:first-child {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.ziom-card > .ziom-card-body:last-child {
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}

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

/* ========================================
 * CARD IMAGE
 * ======================================== */

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

.ziom-card-image-top {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

/* ========================================
 * INFO CARD
 * ======================================== */

.ziom-info-card {
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border-radius: var(--ziom-radius-md);
  border: 1px solid var(--ziom-glass-border-subtle);
  padding: var(--ziom-space-4);
}

.ziom-info-card-label {
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-medium);
  text-transform: uppercase;
  letter-spacing: var(--ziom-tracking-wide);
  color: var(--ziom-text-tertiary);
  margin-bottom: var(--ziom-space-2);
}

.ziom-info-card-value {
  font-size: var(--ziom-text-xl);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
}

.ziom-info-card-description {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
  margin-top: var(--ziom-space-1);
}

/* Info Card as Link */
a.ziom-info-card,
a.ziom-info-card.ziom-card-interactive {
  text-decoration: none;
  display: block;
}

a.ziom-info-card:hover,
a.ziom-info-card.ziom-card-interactive:hover {
  background: var(--ziom-glass-bg-hover);
  box-shadow: var(--ziom-shadow-glass-hover);
  transform: translateY(-2px);
}

a.ziom-info-card:active,
a.ziom-info-card.ziom-card-interactive:active {
  transform: translateY(0);
  box-shadow: var(--ziom-shadow-glass);
}

/* ========================================
 * STAT CARD
 * ======================================== */

.ziom-stat-card {
  display: flex;
  flex-direction: column;
  gap: var(--ziom-space-1);
}

.ziom-stat-label {
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-medium);
  text-transform: uppercase;
  letter-spacing: var(--ziom-tracking-wide);
  color: var(--ziom-text-tertiary);
}

.ziom-stat-value {
  font-size: var(--ziom-text-2xl);
  font-weight: var(--ziom-font-bold);
  color: var(--ziom-text-primary);
  letter-spacing: var(--ziom-tracking-tight);
}

.ziom-stat-change {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  display: flex;
  align-items: center;
  gap: var(--ziom-space-1);
}

.ziom-stat-change-positive {
  color: var(--ziom-success);
}

.ziom-stat-change-negative {
  color: var(--ziom-danger);
}

/* ========================================
 * INLINE STAT
 * ======================================== */

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

.ziom-stat-inline-label {
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-medium);
  text-transform: uppercase;
  letter-spacing: var(--ziom-tracking-wide);
  color: var(--ziom-text-tertiary);
}

.ziom-stat-inline-value {
  font-size: var(--ziom-text-xl);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
}

/* ========================================
 * CARD GRID
 * ======================================== */

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

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

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

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

.ziom-card-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.ziom-card-grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1024px) {
  .ziom-card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ziom-card-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .ziom-card-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ziom-card-grid-2,
  .ziom-card-grid-3,
  .ziom-card-grid-4 {
    grid-template-columns: 1fr;
  }
  
  .ziom-card-grid-5,
  .ziom-card-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ziom-card-grid-5,
  .ziom-card-grid-6 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
 * EMPTY STATE CARD
 * ======================================== */

.ziom-empty-state {
  text-align: center;
  padding: var(--ziom-space-12) var(--ziom-space-6);
}

.ziom-empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--ziom-space-4);
  color: var(--ziom-text-tertiary);
  opacity: 0.5;
}

.ziom-empty-state-title {
  font-size: var(--ziom-text-lg);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
  margin-bottom: var(--ziom-space-2);
}

.ziom-empty-state-description {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
  max-width: 480px;
  margin: 0 auto var(--ziom-space-6);
}

.ziom-empty-state-contacts {
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.ziom-empty-state-contacts-title {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--ziom-space-3);
  padding-bottom: var(--ziom-space-2);
  border-bottom: 1px solid var(--ziom-border);
}

.ziom-empty-state-contacts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ziom-empty-state-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ziom-space-3) 0;
  border-bottom: 1px solid var(--ziom-border-light);
}

.ziom-empty-state-contact:last-child {
  border-bottom: none;
}

.ziom-empty-state-contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--ziom-space-1);
}

.ziom-empty-state-contact-name {
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
}

.ziom-empty-state-contact-role {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-tertiary);
}

.ziom-empty-state-no-contacts {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-tertiary);
  font-style: italic;
}

/* ========================================
 * HIGHLIGHT STAT CARD
 * ======================================== */

.ziom-stat-card-highlight {
  background: var(--ziom-primary);
  border-color: var(--ziom-primary);
}

.ziom-stat-card-highlight .ziom-stat-label,
.ziom-stat-card-highlight .ziom-stat-value,
.ziom-stat-card-highlight .ziom-stat-detail {
  color: var(--ziom-text-inverse);
}

.ziom-stat-card-highlight .ziom-stat-icon-highlight {
  background: rgba(255, 255, 255, 0.2);
  color: var(--ziom-text-inverse);
}

.ziom-stat-card-highlight .ziom-stat-detail {
  opacity: 0.9;
}

/* ========================================
 * STAT CARD ENHANCEMENTS
 * ======================================== */

.ziom-stat-header {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  margin-bottom: var(--ziom-space-2);
}

.ziom-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--ziom-radius-md);
  flex-shrink: 0;
}

.ziom-stat-icon-primary {
  background: var(--ziom-primary-light);
  color: var(--ziom-primary);
}

.ziom-stat-icon-success {
  background: var(--ziom-success-light);
  color: var(--ziom-success);
}

.ziom-stat-icon-warning {
  background: var(--ziom-warning-light);
  color: var(--ziom-warning);
}

.ziom-stat-icon-info {
  background: var(--ziom-info-light);
  color: var(--ziom-info);
}

.ziom-stat-details {
  display: flex;
  gap: var(--ziom-space-4);
  margin-top: var(--ziom-space-2);
}

.ziom-stat-detail {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-1);
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
}
/*
 * Ziom Theme - Table Components
 * Clean minimal tables with glass effect
 */

/* ========================================
 * TABLE CONTAINER
 * ======================================== */

.ziom-table-container {
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border-radius: var(--ziom-radius-lg);
  border: 1px solid var(--ziom-glass-border-subtle);
  box-shadow: var(--ziom-shadow-glass);
  overflow: hidden;
}

.ziom-table-responsive,
.ziom-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ========================================
 * BASE TABLE
 * ======================================== */

.ziom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--ziom-text-sm);
}

.ziom-table th,
.ziom-table td {
  padding: var(--ziom-space-3) var(--ziom-space-4);
  text-align: left;
  vertical-align: middle;
}

/* ========================================
 * TABLE HEADER
 * ======================================== */

.ziom-table thead {
  background: rgba(0, 0, 0, 0.02);
}

.ziom-table th {
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ziom-tracking-wide);
  color: var(--ziom-text-secondary);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
  white-space: nowrap;
}

/* Sticky header */
.ziom-table-sticky thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ziom-glass-bg-solid);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
}

/* Sortable header */
.ziom-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background var(--ziom-transition-fast);
}

.ziom-table th.sortable:hover {
  background: rgba(0, 0, 0, 0.04);
}

.ziom-table th.sortable::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: var(--ziom-space-2);
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--ziom-text-tertiary);
  opacity: 0;
  transition: opacity var(--ziom-transition-fast);
}

.ziom-table th.sortable:hover::after {
  opacity: 0.5;
}

.ziom-table th.sortable.sort-asc::after,
.ziom-table th.sortable.sort-desc::after {
  opacity: 1;
  border-top-color: var(--ziom-primary);
}

.ziom-table th.sortable.sort-asc::after {
  border-top: none;
  border-bottom: 4px solid var(--ziom-primary);
}

/* ========================================
 * TABLE BODY
 * ======================================== */

.ziom-table tbody tr {
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
  transition: background var(--ziom-transition-fast);
}

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

.ziom-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.ziom-table td {
  color: var(--ziom-text-primary);
}

/* ========================================
 * TABLE VARIANTS
 * ======================================== */

/* Compact table */
.ziom-table-compact th,
.ziom-table-compact td {
  padding: var(--ziom-space-2) var(--ziom-space-3);
}

/* Borderless table */
.ziom-table-borderless tbody tr {
  border-bottom: none;
}

/* Striped table */
.ziom-table-striped tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.015);
}

.ziom-table-striped tbody tr:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* ========================================
 * TABLE CELLS
 * ======================================== */

/* Numeric cells */
.ziom-table td.numeric,
.ziom-table th.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Action cells */
.ziom-table td.actions {
  white-space: nowrap;
  text-align: right;
}

.ziom-table-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-2);
}

/* Checkbox cells */
.ziom-table td.checkbox,
.ziom-table th.checkbox {
  width: 40px;
  padding-right: 0;
}

/* Style native checkboxes in tables */
.ziom-table input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--ziom-glass-bg);
  border: 1px solid var(--ziom-gray-300);
  border-radius: var(--ziom-radius-xs);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
  position: relative;
  vertical-align: middle;
}

.ziom-table input[type="checkbox"]:hover {
  border-color: var(--ziom-primary);
}

.ziom-table input[type="checkbox"]:checked {
  background: var(--ziom-primary);
  border-color: var(--ziom-primary);
}

.ziom-table input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Status cells */
.ziom-table td.status {
  white-space: nowrap;
}

/* ========================================
 * TABLE LINK ROW
 * ======================================== */

.ziom-table tbody tr.clickable {
  cursor: pointer;
}

.ziom-table tbody tr.clickable:hover {
  background: var(--ziom-primary-light);
}

/* ========================================
 * TABLE SELECTED ROW
 * ======================================== */

.ziom-table tbody tr.selected {
  background: var(--ziom-primary-light);
}

.ziom-table tbody tr.selected:hover {
  background: rgba(0, 122, 255, 0.15);
}

/* ========================================
 * TABLE EMPTY STATE
 * ======================================== */

.ziom-table-empty {
  text-align: center;
  padding: var(--ziom-space-12) var(--ziom-space-4);
  color: var(--ziom-text-secondary);
}

.ziom-table-empty-icon {
  margin-bottom: var(--ziom-space-3);
  color: var(--ziom-text-tertiary);
}

/* ========================================
 * TABLE FOOTER
 * ======================================== */

.ziom-table tfoot {
  background: rgba(0, 0, 0, 0.02);
}

.ziom-table tfoot td {
  font-weight: var(--ziom-font-medium);
  border-top: 1px solid var(--ziom-glass-border-subtle);
}

/* ========================================
 * TABLE TOOLBAR
 * ======================================== */

.ziom-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ziom-space-4);
  padding: var(--ziom-space-4);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-table-toolbar-left {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
}

.ziom-table-toolbar-center {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
  margin-left: auto;
}

.ziom-table-toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
  margin-left: var(--ziom-space-4);
  padding-left: var(--ziom-space-4);
  border-left: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-table-count {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
}

/* ========================================
 * RESPONSIVE TABLE
 * ======================================== */

@media (max-width: 768px) {
  .ziom-table-responsive-stack {
    display: block;
  }

  .ziom-table-responsive-stack thead {
    display: none;
  }

  .ziom-table-responsive-stack tbody,
  .ziom-table-responsive-stack tr,
  .ziom-table-responsive-stack td {
    display: block;
  }

  .ziom-table-responsive-stack tr {
    padding: var(--ziom-space-4);
    border-bottom: 1px solid var(--ziom-glass-border-subtle);
  }

  .ziom-table-responsive-stack td {
    padding: var(--ziom-space-1) 0;
    text-align: right;
  }

  .ziom-table-responsive-stack td::before {
    content: attr(data-label);
    float: left;
    font-weight: var(--ziom-font-medium);
    color: var(--ziom-text-secondary);
  }
}

/* ========================================
 * DARK MODE OVERRIDES
 * ======================================== */

[data-theme="dark"] .ziom-table thead {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .ziom-table th.sortable:hover {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .ziom-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .ziom-table-striped tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .ziom-table-striped tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .ziom-table tfoot {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .ziom-table-sticky thead {
  background: var(--ziom-glass-bg-solid);
}
/*
 * Ziom Theme - Form Components
 * Pill inputs, selects, and switches with glass effects
 */

/* ========================================
 * FORM GROUP
 * ======================================== */

.ziom-form-group {
  margin-bottom: var(--ziom-space-4);
}

.ziom-form-group:last-child {
  margin-bottom: 0;
}

.ziom-form-row {
  display: flex;
  gap: var(--ziom-space-4);
  flex-wrap: wrap;
}

.ziom-form-row > * {
  flex: 1;
  min-width: 200px;
}

/* ========================================
 * FORM LABEL
 * ======================================== */

.ziom-label {
  display: block;
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
  margin-bottom: var(--ziom-space-2);
}

.ziom-label-sm {
  font-size: var(--ziom-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--ziom-tracking-wide);
  color: var(--ziom-text-secondary);
}

.ziom-label-required::after {
  content: '*';
  color: var(--ziom-danger);
  margin-left: var(--ziom-space-1);
}

/* ========================================
 * BASE INPUT
 * ======================================== */

.ziom-input {
  width: 100%;
  padding: var(--ziom-space-2) var(--ziom-space-4);
  font-family: var(--ziom-font-family);
  font-size: var(--ziom-text-base);
  color: var(--ziom-text-primary);
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-lg);
  box-shadow: var(--ziom-shadow-inset);
  transition: all var(--ziom-transition-fast);
  outline: none;
}

.ziom-input::placeholder {
  color: var(--ziom-text-tertiary);
}

.ziom-input:hover {
  background: var(--ziom-glass-bg-hover);
  border-color: var(--ziom-gray-300);
}

.ziom-input:focus {
  background: var(--ziom-bg-elevated);
  border-color: var(--ziom-primary);
  box-shadow: 0 0 0 3px var(--ziom-primary-light);
}

.ziom-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--ziom-gray-100);
}

/* ========================================
 * INPUT SIZES
 * ======================================== */

.ziom-input-sm {
  padding: 6px var(--ziom-space-3);
  font-size: var(--ziom-text-sm);
  border-radius: var(--ziom-radius-md);
}

.ziom-input-lg {
  padding: var(--ziom-space-3) var(--ziom-space-5);
  font-size: var(--ziom-text-lg);
  border-radius: var(--ziom-radius-xl);
}

/* ========================================
 * INPUT PILL (ROUNDED)
 * ======================================== */

.ziom-input-pill {
  border-radius: var(--ziom-radius-full);
}

/* ========================================
 * SELECT
 * ======================================== */

.ziom-select {
  appearance: none;
  width: 100%;
  padding: var(--ziom-space-2) var(--ziom-space-10) var(--ziom-space-2) var(--ziom-space-4);
  font-family: var(--ziom-font-family);
  font-size: var(--ziom-text-base);
  color: var(--ziom-text-primary);
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-lg);
  box-shadow: var(--ziom-shadow-inset);
  transition: all var(--ziom-transition-fast);
  outline: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--ziom-space-3) center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
}

.ziom-select:hover {
  background-color: var(--ziom-glass-bg-hover);
  border-color: var(--ziom-gray-300);
}

.ziom-select:focus {
  background-color: var(--ziom-bg-elevated);
  border-color: var(--ziom-primary);
  box-shadow: 0 0 0 3px var(--ziom-primary-light);
}

.ziom-select-sm {
  padding: 6px var(--ziom-space-8) 6px var(--ziom-space-3);
  font-size: var(--ziom-text-sm);
  border-radius: var(--ziom-radius-md);
  background-size: 14px 14px;
}

.ziom-select-pill {
  border-radius: var(--ziom-radius-full);
}

/* ========================================
 * TEXTAREA
 * ======================================== */

.ziom-textarea {
  width: 100%;
  min-height: 100px;
  padding: var(--ziom-space-3) var(--ziom-space-4);
  font-family: var(--ziom-font-family);
  font-size: var(--ziom-text-base);
  color: var(--ziom-text-primary);
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-lg);
  box-shadow: var(--ziom-shadow-inset);
  transition: all var(--ziom-transition-fast);
  outline: none;
  resize: vertical;
}

.ziom-textarea:focus {
  background: var(--ziom-bg-elevated);
  border-color: var(--ziom-primary);
  box-shadow: 0 0 0 3px var(--ziom-primary-light);
}

/* ========================================
 * CHECKBOX
 * ======================================== */

.ziom-checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-2);
  cursor: pointer;
  user-select: none;
}

.ziom-checkbox input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--ziom-glass-bg);
  border: 1px solid var(--ziom-gray-300);
  border-radius: var(--ziom-radius-xs);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
  position: relative;
}

.ziom-checkbox input[type="checkbox"]:hover {
  border-color: var(--ziom-primary);
}

.ziom-checkbox input[type="checkbox"]:checked {
  background: var(--ziom-primary);
  border-color: var(--ziom-primary);
}

.ziom-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ziom-checkbox input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px var(--ziom-primary-light);
}

.ziom-checkbox-label {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-primary);
}

/* Checkbox group layout */
.ziom-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--ziom-space-2);
  padding: var(--ziom-space-3);
  background: var(--ziom-glass-bg);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-md);
  max-height: 200px;
  overflow-y: auto;
}

.ziom-checkbox-group .ziom-checkbox {
  padding: var(--ziom-space-1) 0;
}

.ziom-checkbox-group-inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--ziom-space-4);
}

/* ========================================
 * RADIO
 * ======================================== */

.ziom-radio {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-2);
  cursor: pointer;
  user-select: none;
}

.ziom-radio input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--ziom-glass-bg);
  border: 1px solid var(--ziom-gray-300);
  border-radius: var(--ziom-radius-full);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
  position: relative;
}

.ziom-radio input[type="radio"]:hover {
  border-color: var(--ziom-primary);
}

.ziom-radio input[type="radio"]:checked {
  border-color: var(--ziom-primary);
  border-width: 5px;
}

.ziom-radio input[type="radio"]:focus {
  box-shadow: 0 0 0 3px var(--ziom-primary-light);
}

.ziom-radio-label {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-primary);
}

/* Radio group inline */
.ziom-radio-group {
  display: flex;
  gap: var(--ziom-space-4);
  flex-wrap: wrap;
}

/* ========================================
 * SWITCH / TOGGLE
 * ======================================== */

.ziom-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-2);
  cursor: pointer;
  user-select: none;
}

.ziom-switch input[type="checkbox"] {
  appearance: none;
  width: 44px;
  height: 24px;
  background: var(--ziom-gray-300);
  border-radius: var(--ziom-radius-full);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
  position: relative;
}

.ziom-switch input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: var(--ziom-radius-full);
  box-shadow: var(--ziom-shadow-sm);
  transition: all var(--ziom-transition-fast);
}

.ziom-switch input[type="checkbox"]:checked {
  background: var(--ziom-primary);
}

.ziom-switch input[type="checkbox"]:checked::after {
  left: 22px;
}

.ziom-switch input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px var(--ziom-primary-light);
}

.ziom-switch-sm input[type="checkbox"] {
  width: 36px;
  height: 20px;
}

.ziom-switch-sm input[type="checkbox"]::after {
  width: 16px;
  height: 16px;
}

.ziom-switch-sm input[type="checkbox"]:checked::after {
  left: 18px;
}

/* ========================================
 * INPUT GROUP
 * ======================================== */

.ziom-input-group {
  display: flex;
  align-items: stretch;
}

.ziom-input-group .ziom-input {
  border-radius: 0;
  border-right-width: 0;
  flex: 1;
  min-width: 0;
}

.ziom-input-group .ziom-input:first-child {
  border-top-left-radius: var(--ziom-radius-lg);
  border-bottom-left-radius: var(--ziom-radius-lg);
}

.ziom-input-group .ziom-input:last-child {
  border-top-right-radius: var(--ziom-radius-lg);
  border-bottom-right-radius: var(--ziom-radius-lg);
  border-right-width: 1px;
}

/* When input-sm is used */
.ziom-input-group .ziom-input-sm:first-child {
  border-top-left-radius: var(--ziom-radius-md);
  border-bottom-left-radius: var(--ziom-radius-md);
}

.ziom-input-group .ziom-input-sm:last-child {
  border-top-right-radius: var(--ziom-radius-md);
  border-bottom-right-radius: var(--ziom-radius-md);
}

.ziom-input-group-text {
  display: flex;
  align-items: center;
  padding: 0 var(--ziom-space-3);
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
  background: var(--ziom-gray-100);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-right-width: 0;
  flex-shrink: 0;
}

.ziom-input-group-text:first-child {
  border-top-left-radius: var(--ziom-radius-lg);
  border-bottom-left-radius: var(--ziom-radius-lg);
}

.ziom-input-group-text:last-child {
  border-top-right-radius: var(--ziom-radius-lg);
  border-bottom-right-radius: var(--ziom-radius-lg);
  border-right-width: 1px;
  border-left-width: 0;
}

/* Small input group text */
.ziom-input-group .ziom-input-group-text {
  padding: 0 var(--ziom-space-2);
  font-size: var(--ziom-text-xs);
}

/* ========================================
 * INPUT WITH ICON
 * ======================================== */

.ziom-input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.ziom-input-icon-wrapper .ziom-input {
  padding-left: var(--ziom-space-10);
}

.ziom-input-icon-wrapper .ziom-input-icon {
  position: absolute;
  left: var(--ziom-space-3);
  color: var(--ziom-text-tertiary);
  pointer-events: none;
}

.ziom-input-icon-wrapper.icon-right .ziom-input {
  padding-left: var(--ziom-space-4);
  padding-right: var(--ziom-space-10);
}

.ziom-input-icon-wrapper.icon-right .ziom-input-icon {
  left: auto;
  right: var(--ziom-space-3);
}

/* ========================================
 * FORM HELPER TEXT
 * ======================================== */

.ziom-form-helper {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
  margin-top: var(--ziom-space-1);
}

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

.ziom-input.error,
.ziom-select.error,
.ziom-textarea.error {
  border-color: var(--ziom-danger);
}

.ziom-input.error:focus,
.ziom-select.error:focus,
.ziom-textarea.error:focus {
  box-shadow: 0 0 0 3px var(--ziom-danger-light);
}

/* ========================================
 * FILE INPUT
 * ======================================== */

.ziom-file-input {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
}

.ziom-file-input input[type="file"] {
  display: none;
}

.ziom-file-input-label {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-2);
  padding: var(--ziom-space-2) var(--ziom-space-4);
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-lg);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
}

.ziom-file-input-label:hover {
  background: var(--ziom-glass-bg-hover);
}

.ziom-file-input-name {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
}

/* ========================================
 * AUTO WIDTH SELECT
 * ======================================== */

.ziom-select-auto {
  width: auto;
}

/* ========================================
 * TOOLBAR (aligned filter inputs)
 * ======================================== */

.ziom-toolbar {
  display: flex;
  align-items: stretch;
  gap: var(--ziom-space-2);
  flex-wrap: wrap;
}

.ziom-toolbar-item {
  position: relative;
  display: flex;
  align-items: center;
}

.ziom-toolbar-item .ziom-input,
.ziom-toolbar-item .ziom-select {
  height: 32px;
  padding-top: 0;
  padding-bottom: 0;
}

.ziom-toolbar-icon {
  position: absolute;
  left: 10px;
  color: var(--ziom-text-tertiary);
  pointer-events: none;
  display: flex;
  align-items: center;
  z-index: 1;
}

.ziom-toolbar-item .ziom-input.has-icon {
  padding-left: 30px;
}

/* Toolbar input widths */
.ziom-toolbar-input-lg { width: 180px; }
.ziom-toolbar-input-md { width: 120px; }
.ziom-toolbar-input-sm { width: 90px; }
.ziom-toolbar-input-xs { width: 70px; }

/* Toolbar buttons - match input height */
.ziom-toolbar .ziom-btn {
  height: 32px;
  display: inline-flex;
  align-items: center;
}

.ziom-toolbar .ziom-btn-sm {
  padding: 0 var(--ziom-space-3);
}

.ziom-toolbar .ziom-btn-xs {
  height: 32px;
  padding: 0 var(--ziom-space-2);
}

/* ========================================
 * MULTISELECT TYPEAHEAD
 * Custom minimal multi-select component
 * ======================================== */

/* Container */
.multiselect {
  position: relative;
  font-family: var(--ziom-font-family);
}

/* Control area - where pills and input live */
.multiselect-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 4px 28px 4px 0;
  border: none;
  border-bottom: 1px solid var(--ziom-gray-300);
  background: transparent;
  cursor: text;
  transition: border-color 150ms ease;
}

.multiselect-control:hover {
  border-bottom-color: var(--ziom-gray-400);
}

.multiselect.is-focused .multiselect-control {
  border-bottom-color: var(--ziom-primary);
}

/* Selected items list */
.multiselect-selected {
  display: contents;
}

/* Pills for selected items */
.multiselect-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 4px 2px 8px;
  background: var(--ziom-gray-100);
  border-radius: 4px;
  font-size: 13px;
  color: var(--ziom-text-primary);
  white-space: nowrap;
}

.multiselect-pill-text {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.multiselect-pill-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ziom-text-tertiary);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
  transition: all 150ms ease;
}

.multiselect-pill-remove:hover {
  background: var(--ziom-gray-200);
  color: var(--ziom-text-primary);
}

/* Text input */
.multiselect-input {
  flex: 1;
  min-width: 120px;
  padding: 4px 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--ziom-text-primary);
  outline: none;
}

.multiselect-input::placeholder {
  color: var(--ziom-text-tertiary);
}

/* Clear all button */
.multiselect-clear {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ziom-text-tertiary);
  font-size: 16px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 150ms ease;
}

.multiselect.has-items .multiselect-clear {
  display: flex;
}

.multiselect-clear:hover {
  color: var(--ziom-text-primary);
  background: var(--ziom-gray-100);
}

/* Dropdown */
.multiselect-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  display: none;
  margin-top: 4px;
  padding: 4px;
  background: var(--ziom-bg-elevated);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-height: 240px;
  overflow-y: auto;
}

.multiselect-dropdown.is-open {
  display: block;
}

/* Options */
.multiselect-option {
  padding: 8px 10px;
  font-size: 14px;
  color: var(--ziom-text-primary);
  border-radius: 6px;
  cursor: pointer;
  transition: background 150ms ease;
}

.multiselect-option:hover,
.multiselect-option.is-highlighted {
  background: var(--ziom-primary-light);
  color: var(--ziom-primary);
}

/* No results */
.multiselect-no-results {
  padding: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--ziom-text-secondary);
}

/* Hidden fields container */
.multiselect-hidden {
  display: none;
}

/* Dark mode */
[data-theme="dark"] .multiselect-control {
  border-bottom-color: var(--ziom-gray-400);
}

[data-theme="dark"] .multiselect-pill {
  background: var(--ziom-gray-200);
}

[data-theme="dark"] .multiselect-dropdown {
  background: var(--ziom-bg-elevated);
  border-color: var(--ziom-gray-300);
}

/* ========================================
 * DARK MODE OVERRIDES
 * ======================================== */

[data-theme="dark"] .ziom-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%238E8E93' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

[data-theme="dark"] .ziom-input:disabled {
  background: var(--ziom-gray-100);
}

[data-theme="dark"] .ziom-switch input[type="checkbox"] {
  background: var(--ziom-gray-400);
}
/*
 * Ziom Theme - Search Components
 * Compact pill-shaped search inspired by iOS
 */

/* ========================================
 * COMPACT SEARCH BAR
 * ======================================== */

.ziom-search {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-full);
  padding: var(--ziom-space-2) var(--ziom-space-4);
  box-shadow: var(--ziom-shadow-sm);
  transition: all var(--ziom-transition-fast);
  min-width: 280px;
}

.ziom-search:hover {
  background: var(--ziom-glass-bg-hover);
  box-shadow: var(--ziom-shadow-md);
}

.ziom-search:focus-within {
  background: var(--ziom-bg-elevated);
  border-color: var(--ziom-primary);
  box-shadow: 0 0 0 3px var(--ziom-primary-light);
}

.ziom-search-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--ziom-text-tertiary);
}

.ziom-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--ziom-font-family);
  font-size: var(--ziom-text-base);
  color: var(--ziom-text-primary);
  outline: none;
  min-width: 0;
}

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

.ziom-search-clear {
  flex-shrink: 0;
  display: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  background: var(--ziom-gray-300);
  border-radius: var(--ziom-radius-full);
  color: white;
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
}

.ziom-search-clear:hover {
  background: var(--ziom-gray-400);
}

.ziom-search.has-value .ziom-search-clear {
  display: flex;
}

/* ========================================
 * SEARCH SIZES
 * ======================================== */

.ziom-search-sm {
  padding: 0 var(--ziom-space-3);
  min-width: 180px;
  height: 32px;
}

.ziom-search-sm .ziom-search-icon {
  width: 14px;
  height: 14px;
}

.ziom-search-sm .ziom-search-input {
  font-size: var(--ziom-text-sm);
  line-height: 1;
}

.ziom-search-lg {
  padding: var(--ziom-space-3) var(--ziom-space-5);
  min-width: 400px;
}

.ziom-search-lg .ziom-search-icon {
  width: 20px;
  height: 20px;
}

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

/* ========================================
 * FULL WIDTH SEARCH
 * ======================================== */

.ziom-search-full {
  width: 100%;
  min-width: 0;
}

/* ========================================
 * SEARCH WITH BUTTON
 * ======================================== */

.ziom-search-with-button {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.ziom-search-with-button .ziom-search {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

.ziom-search-with-button .ziom-btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* ========================================
 * FILTER BAR (Compact filter row)
 * ======================================== */

.ziom-filter-bar {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
  padding: var(--ziom-space-3) var(--ziom-space-4);
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border-radius: var(--ziom-radius-lg);
  border: 1px solid var(--ziom-glass-border-subtle);
  box-shadow: var(--ziom-shadow-glass);
  flex-wrap: wrap;
}

.ziom-filter-bar-compact {
  padding: var(--ziom-space-2) var(--ziom-space-3);
  gap: var(--ziom-space-2);
}

/* ========================================
 * FILTER PILL
 * ======================================== */

.ziom-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-2);
  padding: 6px var(--ziom-space-3);
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-primary);
  background: var(--ziom-gray-100);
  border: none;
  border-radius: var(--ziom-radius-full);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
  white-space: nowrap;
}

.ziom-filter-pill:hover {
  background: var(--ziom-gray-200);
}

.ziom-filter-pill.active {
  background: var(--ziom-primary);
  color: var(--ziom-text-inverse);
}

.ziom-filter-pill-icon {
  width: 14px;
  height: 14px;
}

.ziom-filter-pill-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: var(--ziom-space-1);
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--ziom-radius-full);
  cursor: pointer;
}

.ziom-filter-pill.active .ziom-filter-pill-remove {
  background: rgba(255, 255, 255, 0.3);
}

/* ========================================
 * FILTER DROPDOWN
 * ======================================== */

.ziom-filter-dropdown {
  position: relative;
}

.ziom-filter-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-2);
  padding: 6px var(--ziom-space-3);
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
  background: var(--ziom-glass-bg);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-full);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
}

.ziom-filter-dropdown-trigger:hover {
  background: var(--ziom-glass-bg-hover);
  border-color: var(--ziom-gray-300);
}

.ziom-filter-dropdown-trigger.active {
  background: var(--ziom-primary-light);
  border-color: var(--ziom-primary);
  color: var(--ziom-primary);
}

.ziom-filter-dropdown-content {
  position: absolute;
  top: calc(100% + var(--ziom-space-2));
  left: 0;
  min-width: 200px;
  background: var(--ziom-glass-bg-solid);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-lg);
  box-shadow: var(--ziom-shadow-lg);
  z-index: var(--ziom-z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--ziom-transition-fast);
}

.ziom-filter-dropdown.open .ziom-filter-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ========================================
 * FILTER GROUP (SEGMENTED CONTROL)
 * ======================================== */

.ziom-filter-group {
  display: inline-flex;
  align-items: center;
  background: var(--ziom-gray-100);
  border-radius: var(--ziom-radius-md);
  padding: 3px;
  height: 32px;
}

.ziom-filter-group-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  height: 26px;
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  line-height: 1;
  color: var(--ziom-text-secondary);
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: var(--ziom-radius-xs);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
}

.ziom-filter-group-item:hover {
  color: var(--ziom-text-primary);
  text-decoration: none;
}

.ziom-filter-group-item.active {
  background: var(--ziom-bg-elevated);
  color: var(--ziom-text-primary);
  box-shadow: var(--ziom-shadow-sm);
}

/* For links used as filter items */
a.ziom-filter-group-item {
  text-decoration: none;
}

a.ziom-filter-group-item:hover {
  text-decoration: none;
}

/* ========================================
 * SEARCH RESULTS DROPDOWN
 * ======================================== */

.ziom-search-results {
  position: absolute;
  top: calc(100% + var(--ziom-space-2));
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background: var(--ziom-glass-bg-solid);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-lg);
  box-shadow: var(--ziom-shadow-lg);
  z-index: var(--ziom-z-dropdown);
}

.ziom-search-result-item {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
  padding: var(--ziom-space-3) var(--ziom-space-4);
  cursor: pointer;
  transition: background var(--ziom-transition-fast);
}

.ziom-search-result-item:hover,
.ziom-search-result-item.highlighted {
  background: var(--ziom-gray-50);
}

.ziom-search-result-item:first-child {
  border-top-left-radius: var(--ziom-radius-lg);
  border-top-right-radius: var(--ziom-radius-lg);
}

.ziom-search-result-item:last-child {
  border-bottom-left-radius: var(--ziom-radius-lg);
  border-bottom-right-radius: var(--ziom-radius-lg);
}

.ziom-search-result-title {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
}

.ziom-search-result-subtitle {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
}

/* ========================================
 * SEARCH WRAPPER (For positioning results)
 * ======================================== */

.ziom-search-wrapper {
  position: relative;
  display: inline-flex;
}

.ziom-search-wrapper.full-width {
  display: flex;
  width: 100%;
}

/* ========================================
 * MINIMAL FILTER BAR
 * Compact horizontal row of filter triggers
 * ======================================== */

.ziom-filter-bar-minimal {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  padding: var(--ziom-space-3) 0;
  flex-wrap: wrap;
}

.ziom-filter-bar-minimal form {
  display: contents;
}

.ziom-filter-triggers {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  flex-wrap: nowrap;
}

.ziom-filter-triggers .ziom-typeahead-wrapper {
  width: auto;
  min-width: 200px;
  max-width: 300px;
}

.ziom-filter-actions {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  margin-left: auto;
}

.ziom-filter-divider {
  width: 1px;
  height: 24px;
  background: var(--ziom-gray-200);
  margin: 0 var(--ziom-space-2);
}

/* ========================================
 * FILTER POPOVER
 * Dropdown triggered by pill button
 * ======================================== */

.ziom-filter-popover {
  position: relative;
  display: inline-flex;
}

.ziom-filter-popover-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--ziom-font-family);
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  line-height: 1;
  color: var(--ziom-text-secondary);
  background: var(--ziom-bg-elevated);
  border: 1px solid var(--ziom-gray-200);
  border-radius: var(--ziom-radius-full);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
  white-space: nowrap;
  height: 32px;
}

.ziom-filter-popover-trigger:hover {
  background: var(--ziom-gray-50);
  border-color: var(--ziom-gray-300);
  color: var(--ziom-text-primary);
}

.ziom-filter-popover-trigger.active,
.ziom-filter-popover.open .ziom-filter-popover-trigger {
  background: var(--ziom-primary-light);
  border-color: var(--ziom-primary);
  color: var(--ziom-primary);
}

.ziom-filter-popover-trigger .ziom-filter-icon,
.ziom-filter-popover-trigger > svg:first-of-type:not(.ziom-filter-chevron) {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* FontAwesome icon alignment */
.ziom-filter-popover-trigger .ziom-filter-icon svg,
.ziom-filter-popover-trigger .fa,
.ziom-filter-popover-trigger [data-fa-i2svg] {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

.ziom-filter-popover-trigger .ziom-filter-chevron {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  flex-shrink: 0;
  transition: transform var(--ziom-transition-fast);
}

.ziom-filter-popover.open .ziom-filter-chevron {
  transform: rotate(180deg);
}

.ziom-filter-popover-trigger .ziom-filter-value {
  color: var(--ziom-primary);
  font-weight: var(--ziom-font-semibold);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Popover Content Panel */
.ziom-filter-popover-content {
  position: absolute;
  top: calc(100% + var(--ziom-space-2));
  left: 0;
  min-width: 220px;
  max-width: 320px;
  background: var(--ziom-bg-elevated);
  border: 1px solid var(--ziom-gray-200);
  border-radius: var(--ziom-radius-lg);
  box-shadow: var(--ziom-shadow-lg);
  z-index: var(--ziom-z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--ziom-transition-fast);
}

.ziom-filter-popover.open .ziom-filter-popover-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Right-aligned popover for filters near right edge */
.ziom-filter-popover-content.align-right {
  left: auto;
  right: 0;
}

/* Popover Header */
.ziom-filter-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ziom-space-3) var(--ziom-space-4);
  border-bottom: 1px solid var(--ziom-gray-100);
}

.ziom-filter-popover-title {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
}

/* Popover Body */
.ziom-filter-popover-body {
  padding: var(--ziom-space-3) var(--ziom-space-4);
}

.ziom-filter-popover-body .ziom-input,
.ziom-filter-popover-body .ziom-select {
  width: 100%;
}

/* Popover Footer */
.ziom-filter-popover-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--ziom-space-2);
  padding: var(--ziom-space-3) var(--ziom-space-4);
  border-top: 1px solid var(--ziom-gray-100);
  background: var(--ziom-gray-50);
  border-radius: 0 0 var(--ziom-radius-lg) var(--ziom-radius-lg);
}

/* Checkbox list within popover */
.ziom-filter-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: var(--ziom-space-2);
  max-height: 200px;
  overflow-y: auto;
}

.ziom-filter-checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  padding: var(--ziom-space-2);
  border-radius: var(--ziom-radius-sm);
  cursor: pointer;
  transition: background var(--ziom-transition-fast);
}

.ziom-filter-checkbox-item:hover {
  background: var(--ziom-gray-50);
}

.ziom-filter-checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.ziom-filter-checkbox-item label {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-primary);
  cursor: pointer;
  flex: 1;
}

/* Date range inputs */
.ziom-filter-date-range {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
}

.ziom-filter-date-range .ziom-input {
  flex: 1;
}

.ziom-filter-date-separator {
  color: var(--ziom-text-tertiary);
  font-size: var(--ziom-text-sm);
}

/* ========================================
 * ACTIVE FILTER PILLS
 * Show currently applied filters
 * ======================================== */

.ziom-active-filters {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  flex-wrap: wrap;
  padding: var(--ziom-space-2) 0;
}

.ziom-active-filter {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-1);
  padding: 4px var(--ziom-space-2) 4px var(--ziom-space-3);
  font-size: var(--ziom-text-xs);
  color: var(--ziom-primary);
  background: var(--ziom-primary-light);
  border-radius: var(--ziom-radius-full);
}

.ziom-active-filter-label {
  color: var(--ziom-text-secondary);
}

.ziom-active-filter-value {
  font-weight: var(--ziom-font-medium);
}

.ziom-active-filter-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  margin-left: var(--ziom-space-1);
  background: transparent;
  border: none;
  border-radius: var(--ziom-radius-full);
  color: var(--ziom-primary);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
}

.ziom-active-filter-remove:hover {
  background: var(--ziom-primary);
  color: white;
}

.ziom-active-filter-remove svg {
  width: 12px;
  height: 12px;
}

/* Clear all filters button */
.ziom-clear-all-filters {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
  background: transparent;
  border: none;
  padding: 4px var(--ziom-space-2);
  cursor: pointer;
  transition: color var(--ziom-transition-fast);
}

.ziom-clear-all-filters:hover {
  color: var(--ziom-danger);
}

/* ========================================
 * FILTER STATS / TOTAL
 * Show total results and summary
 * ======================================== */

.ziom-filter-stats {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
}

.ziom-filter-stats-count {
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
}

.ziom-filter-stats-total {
  padding: 4px var(--ziom-space-3);
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-success);
  background: var(--ziom-success-light);
  border-radius: var(--ziom-radius-full);
}

/* ========================================
 * DARK MODE OVERRIDES
 * ======================================== */

[data-theme="dark"] .ziom-filter-pill-remove {
  background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .ziom-search-result-item:hover,
[data-theme="dark"] .ziom-search-result-item.highlighted {
  background: var(--ziom-gray-100);
}

[data-theme="dark"] .ziom-filter-popover-trigger:hover {
  background: var(--ziom-gray-100);
}

[data-theme="dark"] .ziom-filter-popover-footer {
  background: var(--ziom-gray-100);
}

[data-theme="dark"] .ziom-filter-checkbox-item:hover {
  background: var(--ziom-gray-100);
}

[data-theme="dark"] .ziom-filter-group {
  background: var(--ziom-gray-200);
}

[data-theme="dark"] .ziom-filter-pill:hover {
  background: var(--ziom-gray-300);
}

/* ========================================
 * TYPEAHEAD COMPONENT
 * Autocomplete search with navigation
 * ======================================== */

.ziom-typeahead-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.ziom-typeahead-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--ziom-bg-elevated);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-full);
  padding: 0 var(--ziom-space-3);
  height: 36px;
  transition: all var(--ziom-transition-fast);
}

.ziom-typeahead-input-wrapper:hover {
  border-color: var(--ziom-gray-300);
}

.ziom-typeahead-input-wrapper:focus-within {
  border-color: var(--ziom-primary);
  box-shadow: 0 0 0 3px var(--ziom-primary-light);
}

.ziom-typeahead-input-wrapper .ziom-search-icon {
  color: var(--ziom-text-tertiary);
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ziom-typeahead-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--ziom-font-family);
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-primary);
  outline: none;
  padding: 0 var(--ziom-space-2);
  min-width: 0;
}

.ziom-typeahead-input::placeholder {
  color: var(--ziom-text-tertiary);
}

.ziom-typeahead-clear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  background: var(--ziom-gray-300);
  border-radius: var(--ziom-radius-full);
  color: white;
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
  flex-shrink: 0;
}

.ziom-typeahead-clear:hover {
  background: var(--ziom-gray-400);
}

/* Typeahead Results Dropdown - uses fixed positioning to escape overflow:hidden containers */
.ziom-typeahead-results {
  position: fixed !important;
  z-index: 9999 !important;
  max-height: 320px;
  min-width: 200px;
  overflow-y: auto;
  background: var(--ziom-glass-bg-solid);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-lg);
  box-shadow: var(--ziom-shadow-lg);
}

.ziom-typeahead-results:empty {
  display: none !important;
}

.ziom-typeahead-results .ziom-search-result-item {
  text-decoration: none;
}

.ziom-typeahead-results .ziom-search-result-content {
  flex: 1;
  min-width: 0;
}

/* Loading State */
.ziom-typeahead-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ziom-space-2);
  padding: var(--ziom-space-4);
  color: var(--ziom-text-secondary);
  font-size: var(--ziom-text-sm);
}

.ziom-typeahead-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--ziom-gray-200);
  border-top-color: var(--ziom-primary);
  border-radius: 50%;
  animation: ziom-spin 0.6s linear infinite;
}

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

/* Empty State */
.ziom-typeahead-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--ziom-space-4);
  gap: var(--ziom-space-3);
}

.ziom-typeahead-empty-text {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-tertiary);
}

/* Create Button in Empty State */
.ziom-typeahead-create-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-2);
  padding: var(--ziom-space-2) var(--ziom-space-3);
  font-family: var(--ziom-font-family);
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-primary);
  background: var(--ziom-primary-light);
  border: 1px solid var(--ziom-primary);
  border-radius: var(--ziom-radius-md);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ziom-typeahead-create-btn:hover {
  background: var(--ziom-primary);
  color: white;
}

.ziom-typeahead-create-btn svg {
  flex-shrink: 0;
}

[data-theme="dark"] .ziom-typeahead-create-btn {
  background: rgba(var(--ziom-primary-rgb), 0.15);
}

[data-theme="dark"] .ziom-typeahead-create-btn:hover {
  background: var(--ziom-primary);
  color: white;
}

/* Size Variants */
.ziom-typeahead-sm .ziom-typeahead-input-wrapper {
  height: 32px;
  padding: 0 var(--ziom-space-3);
}

.ziom-typeahead-sm .ziom-typeahead-input {
  font-size: var(--ziom-text-xs);
}

.ziom-typeahead-sm .ziom-search-icon {
  width: 12px;
  height: 12px;
}

.ziom-typeahead-lg .ziom-typeahead-input-wrapper {
  height: 44px;
  padding: 0 var(--ziom-space-4);
}

.ziom-typeahead-lg .ziom-typeahead-input {
  font-size: var(--ziom-text-base);
}

.ziom-typeahead-lg .ziom-search-icon {
  width: 18px;
  height: 18px;
}

/* Dark Mode Overrides */
[data-theme="dark"] .ziom-typeahead-input-wrapper {
  background: var(--ziom-gray-100);
  border-color: var(--ziom-gray-200);
}

[data-theme="dark"] .ziom-typeahead-input-wrapper:hover {
  border-color: var(--ziom-gray-300);
}

[data-theme="dark"] .ziom-typeahead-clear {
  background: var(--ziom-gray-400);
}

[data-theme="dark"] .ziom-typeahead-clear:hover {
  background: var(--ziom-gray-500);
}

[data-theme="dark"] .ziom-typeahead-spinner {
  border-color: var(--ziom-gray-400);
  border-top-color: var(--ziom-primary);
}

/* ========================================
 * COMMAND PALETTE (Global Search)
 * Linear/Spotlight-style keyboard-driven search
 * ======================================== */

.ziom-command-palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--ziom-transition-fast);
}

.ziom-command-palette-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.ziom-command-palette {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all var(--ziom-transition-fast);
}

.ziom-command-palette.show {
  opacity: 1;
  visibility: visible;
}

.ziom-command-palette.show .ziom-command-palette-content {
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.ziom-command-palette-content {
  width: 100%;
  max-width: 640px;
  max-height: 70vh;
  background: var(--ziom-glass-bg-solid);
  backdrop-filter: var(--ziom-glass-blur-heavy);
  -webkit-backdrop-filter: var(--ziom-glass-blur-heavy);
  border-radius: var(--ziom-radius-xl);
  border: 1px solid var(--ziom-glass-border-subtle);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.98) translateY(-10px);
  transition: transform var(--ziom-transition-spring);
}

/* Command Palette Header */
.ziom-command-palette-header {
  padding: var(--ziom-space-4);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-command-palette-input-wrapper {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
}

.ziom-command-palette-search-icon {
  color: var(--ziom-text-tertiary);
  flex-shrink: 0;
}

.ziom-command-palette-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--ziom-font-family);
  font-size: var(--ziom-text-lg);
  color: var(--ziom-text-primary);
  outline: none;
  min-width: 0;
}

.ziom-command-palette-input::placeholder {
  color: var(--ziom-text-tertiary);
}

.ziom-command-palette-shortcuts {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-1);
  flex-shrink: 0;
}

/* Command Palette Body */
.ziom-command-palette-body {
  flex: 1;
  overflow-y: auto;
  min-height: 100px;
  max-height: 400px;
}

/* Results Container */
.ziom-command-palette-results {
  padding: var(--ziom-space-2);
}

/* Result Group */
.ziom-command-palette-group {
  margin-bottom: var(--ziom-space-2);
}

.ziom-command-palette-group:last-child {
  margin-bottom: 0;
}

.ziom-command-palette-group-header {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  padding: var(--ziom-space-2) var(--ziom-space-3);
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ziom-command-palette-group-header i {
  font-size: 11px;
  opacity: 0.7;
}

.ziom-command-palette-group-count {
  margin-left: auto;
  background: var(--ziom-gray-200);
  padding: 2px 6px;
  border-radius: var(--ziom-radius-full);
  font-size: 10px;
  font-weight: var(--ziom-font-medium);
}

/* Result Item */
.ziom-command-palette-item {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
  padding: var(--ziom-space-3) var(--ziom-space-3);
  margin: 0 var(--ziom-space-1);
  border-radius: var(--ziom-radius-md);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background var(--ziom-transition-fast);
}

.ziom-command-palette-item:hover,
.ziom-command-palette-item.highlighted {
  background: var(--ziom-primary);
  text-decoration: none;
}

.ziom-command-palette-item:hover .ziom-command-palette-item-title,
.ziom-command-palette-item.highlighted .ziom-command-palette-item-title {
  color: white;
}

.ziom-command-palette-item:hover .ziom-command-palette-item-subtitle,
.ziom-command-palette-item.highlighted .ziom-command-palette-item-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.ziom-command-palette-item:hover .ziom-command-palette-item-arrow,
.ziom-command-palette-item.highlighted .ziom-command-palette-item-arrow {
  opacity: 1;
  color: white;
}

.ziom-command-palette-item-content {
  flex: 1;
  min-width: 0;
}

.ziom-command-palette-item-title {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ziom-command-palette-item-subtitle {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.ziom-command-palette-item-arrow {
  flex-shrink: 0;
  opacity: 0;
  color: var(--ziom-text-tertiary);
  font-size: 12px;
  transition: opacity var(--ziom-transition-fast);
}

/* Item Icon */
.ziom-command-palette-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: var(--ziom-gray-100);
  border-radius: var(--ziom-radius-sm);
  color: var(--ziom-text-secondary);
  font-size: 14px;
  transition: all var(--ziom-transition-fast);
}

.ziom-command-palette-item:hover .ziom-command-palette-item-icon,
.ziom-command-palette-item.highlighted .ziom-command-palette-item-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Action Keyboard Shortcuts */
.ziom-command-palette-action-kbd {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
  transition: opacity var(--ziom-transition-fast);
}

.ziom-command-palette-action-kbd .ziom-kbd {
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  text-transform: uppercase;
}

.ziom-command-palette-item:hover .ziom-command-palette-action-kbd .ziom-kbd,
.ziom-command-palette-item.highlighted .ziom-command-palette-action-kbd .ziom-kbd {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  box-shadow: none;
}

/* Quick Actions Container */
.ziom-command-palette-actions {
  padding: var(--ziom-space-2);
}

/* Go Mode - Visual indicator when G is pressed */
[data-controller="global-search"].go-mode .ziom-command-palette-action-kbd .ziom-kbd:first-child {
  background: var(--ziom-primary);
  border-color: var(--ziom-primary);
  color: white;
}

/* Loading State */
.ziom-command-palette-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ziom-space-2);
  padding: var(--ziom-space-6);
  color: var(--ziom-text-secondary);
  font-size: var(--ziom-text-sm);
}

.ziom-command-palette-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--ziom-gray-200);
  border-top-color: var(--ziom-primary);
  border-radius: 50%;
  animation: ziom-spin 0.6s linear infinite;
}

/* Empty State */
.ziom-command-palette-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--ziom-space-8);
  text-align: center;
}

.ziom-command-palette-empty-icon {
  color: var(--ziom-text-tertiary);
  margin-bottom: var(--ziom-space-3);
  opacity: 0.5;
}

.ziom-command-palette-empty-text {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-secondary);
}

.ziom-command-palette-empty-hint {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-tertiary);
  margin-top: var(--ziom-space-1);
}

/* Footer */
.ziom-command-palette-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ziom-space-5);
  padding: var(--ziom-space-3) var(--ziom-space-4);
  border-top: 1px solid var(--ziom-glass-border-subtle);
  background: var(--ziom-gray-50);
}

.ziom-command-palette-hint {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-1);
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-tertiary);
}

/* Keyboard Key Styling */
.ziom-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 var(--ziom-space-1);
  font-family: var(--ziom-font-family);
  font-size: 11px;
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-secondary);
  background: var(--ziom-bg-elevated);
  border: 1px solid var(--ziom-gray-200);
  border-radius: var(--ziom-radius-xs);
  box-shadow: 0 1px 0 var(--ziom-gray-200);
}

/* Dark Mode Overrides */
[data-theme="dark"] .ziom-command-palette-backdrop {
  background: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .ziom-command-palette-content {
  background: rgba(28, 28, 30, 0.98);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .ziom-command-palette-group-count {
  background: var(--ziom-gray-300);
}

[data-theme="dark"] .ziom-command-palette-footer {
  background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .ziom-kbd {
  background: var(--ziom-gray-200);
  border-color: var(--ziom-gray-300);
  box-shadow: 0 1px 0 var(--ziom-gray-400);
}

[data-theme="dark"] .ziom-command-palette-item-icon {
  background: var(--ziom-gray-200);
  color: var(--ziom-text-secondary);
}

[data-theme="dark"] .ziom-command-palette-spinner {
  border-color: var(--ziom-gray-400);
  border-top-color: var(--ziom-primary);
}

/* Responsive */
@media (max-width: 640px) {
  .ziom-command-palette {
    padding: var(--ziom-space-4);
    padding-top: var(--ziom-space-4);
    align-items: flex-start;
  }
  
  .ziom-command-palette-content {
    max-height: calc(100vh - 32px);
  }
  
  .ziom-command-palette-footer {
    display: none;
  }
}

/* ========================================
 * MOBILE FILTER SHEET (Bottom Sheet)
 * iOS-style slide-up panel for mobile filters
 * ======================================== */

/* Backdrop */
.ziom-filter-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--ziom-transition-fast);
}

.ziom-filter-sheet-backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* Sheet Container */
.ziom-filter-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.ziom-filter-sheet.show {
  transform: translateY(0);
}

/* Sheet Content Panel */
.ziom-filter-sheet-panel {
  background: var(--ziom-bg-elevated);
  border-radius: var(--ziom-radius-xl) var(--ziom-radius-xl) 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  overflow: hidden;
}

/* Drag Handle */
.ziom-filter-sheet-handle {
  display: flex;
  justify-content: center;
  padding: var(--ziom-space-3) var(--ziom-space-4) var(--ziom-space-2);
  cursor: grab;
}

.ziom-filter-sheet-handle::before {
  content: '';
  width: 36px;
  height: 4px;
  background: var(--ziom-gray-300);
  border-radius: var(--ziom-radius-full);
}

/* Sheet Header */
.ziom-filter-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--ziom-space-4) var(--ziom-space-3);
  border-bottom: 1px solid var(--ziom-gray-100);
}

.ziom-filter-sheet-title {
  font-size: var(--ziom-text-lg);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
}

.ziom-filter-sheet-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: var(--ziom-gray-100);
  border: none;
  border-radius: var(--ziom-radius-full);
  color: var(--ziom-text-secondary);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
}

.ziom-filter-sheet-close:hover {
  background: var(--ziom-gray-200);
  color: var(--ziom-text-primary);
}

.ziom-filter-sheet-close svg {
  width: 18px;
  height: 18px;
}

/* Sheet Body - Scrollable filter content */
.ziom-filter-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--ziom-space-4);
  -webkit-overflow-scrolling: touch;
}

/* Filter sections within sheet */
.ziom-filter-sheet-section {
  margin-bottom: var(--ziom-space-5);
}

.ziom-filter-sheet-section:last-child {
  margin-bottom: 0;
}

.ziom-filter-sheet-section-title {
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--ziom-space-3);
}

/* Segmented control in sheet - wrap to multiple rows */
.ziom-filter-sheet-body .ziom-filter-group {
  display: flex;
  flex-wrap: wrap;
  height: auto;
  gap: var(--ziom-space-1);
  padding: var(--ziom-space-1);
}

.ziom-filter-sheet-body .ziom-filter-group-item {
  height: 32px;
  padding: 0 var(--ziom-space-3);
}

/* Filter popovers in sheet - make them inline/stacked */
.ziom-filter-sheet-body .ziom-filter-popover {
  width: 100%;
}

.ziom-filter-sheet-body .ziom-filter-popover-trigger {
  width: 100%;
  justify-content: space-between;
  height: 44px;
  border-radius: var(--ziom-radius-md);
}

/* Popover content in sheet - inline instead of dropdown */
.ziom-filter-sheet-body .ziom-filter-popover-content {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: 1px solid var(--ziom-gray-200);
  border-radius: var(--ziom-radius-md);
  margin-top: var(--ziom-space-2);
  max-width: none;
}

.ziom-filter-sheet-body .ziom-filter-popover-content.hidden {
  display: none;
}

/* Sheet Footer - Sticky action buttons */
.ziom-filter-sheet-footer {
  display: flex;
  gap: var(--ziom-space-3);
  padding: var(--ziom-space-4);
  border-top: 1px solid var(--ziom-gray-100);
  background: var(--ziom-bg-elevated);
}

.ziom-filter-sheet-footer .ziom-btn {
  flex: 1;
}

/* Mobile Filter Trigger Button */
.ziom-filter-mobile-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: var(--ziom-font-family);
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  line-height: 1;
  color: var(--ziom-text-secondary);
  background: var(--ziom-bg-elevated);
  border: 1px solid var(--ziom-gray-200);
  border-radius: var(--ziom-radius-full);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
  white-space: nowrap;
  height: 32px;
  flex-shrink: 0;
}

.ziom-filter-mobile-trigger:hover {
  background: var(--ziom-gray-50);
  border-color: var(--ziom-gray-300);
  color: var(--ziom-text-primary);
}

.ziom-filter-mobile-trigger.has-filters {
  background: var(--ziom-primary-light);
  border-color: var(--ziom-primary);
  color: var(--ziom-primary);
}

.ziom-filter-mobile-trigger svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.ziom-filter-mobile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: var(--ziom-font-semibold);
  color: white;
  background: var(--ziom-primary);
  border-radius: var(--ziom-radius-full);
}

/* ========================================
 * MOBILE FILTER BAR RESPONSIVE
 * ======================================== */

@media (max-width: 767px) {
  /* Show mobile trigger, hide desktop filters */
  .ziom-filter-mobile-trigger {
    display: flex;
  }
  
  /* Hide desktop filter triggers on mobile */
  .ziom-filter-bar-minimal .ziom-filter-triggers {
    display: none;
  }
  
  /* Adjust filter bar layout for mobile */
  .ziom-filter-bar-minimal {
    gap: var(--ziom-space-2);
  }
  
  /* Make search more compact on mobile */
  .ziom-filter-bar-minimal .ziom-search,
  .ziom-filter-bar-minimal .ziom-search-sm,
  .ziom-filter-bar-minimal .ziom-typeahead-wrapper {
    flex: 1;
    min-width: 0;
    max-width: none;
  }
  
  /* Adjust actions for mobile */
  .ziom-filter-bar-minimal .ziom-filter-actions {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--ziom-space-2);
  }
  
  /* Hide divider on mobile */
  .ziom-filter-bar-minimal .ziom-filter-divider {
    display: none;
  }
  
  /* Stats badge adjustments */
  .ziom-filter-bar-minimal .ziom-filter-stats-total {
    margin-left: auto;
  }
}

/* Desktop: ensure filter triggers are visible */
@media (min-width: 768px) {
  .ziom-filter-sheet-backdrop,
  .ziom-filter-sheet {
    display: none !important;
  }
}

/* ========================================
 * DARK MODE - Filter Sheet
 * ======================================== */

[data-theme="dark"] .ziom-filter-sheet-backdrop {
  background: rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .ziom-filter-sheet-panel {
  background: var(--ziom-bg-elevated);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .ziom-filter-sheet-handle::before {
  background: var(--ziom-gray-400);
}

[data-theme="dark"] .ziom-filter-sheet-header {
  border-bottom-color: var(--ziom-gray-200);
}

[data-theme="dark"] .ziom-filter-sheet-close {
  background: var(--ziom-gray-200);
}

[data-theme="dark"] .ziom-filter-sheet-close:hover {
  background: var(--ziom-gray-300);
}

[data-theme="dark"] .ziom-filter-sheet-footer {
  border-top-color: var(--ziom-gray-200);
}

[data-theme="dark"] .ziom-filter-mobile-trigger {
  background: var(--ziom-gray-100);
  border-color: var(--ziom-gray-200);
}

[data-theme="dark"] .ziom-filter-mobile-trigger:hover {
  background: var(--ziom-gray-200);
  border-color: var(--ziom-gray-300);
}
/*
 * Ziom Theme - Badge Components
 * Status pills and label badges
 */

/* ========================================
 * BASE BADGE
 * ======================================== */

.ziom-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-1);
  padding: var(--ziom-space-1) var(--ziom-space-2);
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-medium);
  line-height: 1;
  border-radius: var(--ziom-radius-sm);
  white-space: nowrap;
}

/* ========================================
 * BADGE VARIANTS
 * ======================================== */

/* Default / Neutral */
.ziom-badge-default {
  background: var(--ziom-gray-100);
  color: var(--ziom-text-secondary);
}

/* Primary */
.ziom-badge-primary {
  background: var(--ziom-primary-light);
  color: var(--ziom-primary);
}

/* Secondary */
.ziom-badge-secondary {
  background: var(--ziom-gray-100);
  color: var(--ziom-text-primary);
}

/* Success */
.ziom-badge-success {
  background: var(--ziom-success-light);
  color: var(--ziom-success);
}

/* Warning */
.ziom-badge-warning {
  background: var(--ziom-warning-light);
  color: #B45309;
}

/* Danger */
.ziom-badge-danger {
  background: var(--ziom-danger-light);
  color: var(--ziom-danger);
}

/* Info */
.ziom-badge-info {
  background: var(--ziom-info-light);
  color: #0369A1;
}

/* ========================================
 * SOLID BADGES
 * ======================================== */

.ziom-badge-solid {
  color: var(--ziom-text-inverse);
}

.ziom-badge-solid.ziom-badge-default {
  background: var(--ziom-gray-500);
  color: var(--ziom-text-inverse);
}

.ziom-badge-solid.ziom-badge-primary {
  background: var(--ziom-primary);
  color: var(--ziom-text-inverse);
}

.ziom-badge-solid.ziom-badge-success {
  background: var(--ziom-success);
  color: var(--ziom-text-inverse);
}

.ziom-badge-solid.ziom-badge-warning {
  background: var(--ziom-warning);
  color: var(--ziom-text-inverse);
}

.ziom-badge-solid.ziom-badge-danger {
  background: var(--ziom-danger);
  color: var(--ziom-text-inverse);
}

.ziom-badge-solid.ziom-badge-info {
  background: var(--ziom-info);
  color: var(--ziom-text-inverse);
}

/* ========================================
 * OUTLINE BADGES
 * ======================================== */

.ziom-badge-outline {
  background: transparent;
  border: 1px solid currentColor;
}

.ziom-badge-outline.ziom-badge-default {
  color: var(--ziom-text-secondary);
  border-color: var(--ziom-gray-300);
}

.ziom-badge-outline.ziom-badge-primary {
  color: var(--ziom-primary);
}

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

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

.ziom-badge-outline.ziom-badge-danger {
  color: var(--ziom-danger);
}

/* ========================================
 * BADGE SIZES
 * ======================================== */

.ziom-badge-sm {
  padding: 2px 6px;
  font-size: 10px;
}

.ziom-badge-lg {
  padding: var(--ziom-space-2) var(--ziom-space-3);
  font-size: var(--ziom-text-sm);
}

/* ========================================
 * PILL BADGE (Fully rounded)
 * ======================================== */

.ziom-badge-pill {
  border-radius: var(--ziom-radius-full);
  padding: var(--ziom-space-1) var(--ziom-space-3);
}

.ziom-badge-pill.ziom-badge-sm {
  padding: 2px 8px;
}

.ziom-badge-pill.ziom-badge-lg {
  padding: var(--ziom-space-2) var(--ziom-space-4);
}

/* ========================================
 * BADGE WITH DOT
 * ======================================== */

.ziom-badge-dot {
  padding-left: var(--ziom-space-1);
}

.ziom-badge-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--ziom-radius-full);
  background: currentColor;
}

/* ========================================
 * STATUS BADGE (Inline dot indicator)
 * ======================================== */

.ziom-status {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-2);
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-primary);
}

.ziom-status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--ziom-radius-full);
  flex-shrink: 0;
}

.ziom-status-dot-success {
  background: var(--ziom-success);
}

.ziom-status-dot-warning {
  background: var(--ziom-warning);
}

.ziom-status-dot-danger {
  background: var(--ziom-danger);
}

.ziom-status-dot-info {
  background: var(--ziom-info);
}

.ziom-status-dot-neutral {
  background: var(--ziom-gray-400);
}

/* Pulsing dot for active states */
.ziom-status-dot-pulse {
  position: relative;
}

.ziom-status-dot-pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--ziom-radius-full);
  background: inherit;
  animation: ziom-pulse 2s ease-in-out infinite;
}

@keyframes ziom-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* ========================================
 * COUNT BADGE
 * ======================================== */

.ziom-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-inverse);
  background: var(--ziom-danger);
  border-radius: var(--ziom-radius-full);
}

.ziom-count-badge-primary {
  background: var(--ziom-primary);
}

.ziom-count-badge-sm {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
}

/* ========================================
 * TAG
 * ======================================== */

.ziom-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-1);
  padding: var(--ziom-space-1) var(--ziom-space-2);
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
  background: var(--ziom-gray-100);
  border-radius: var(--ziom-radius-sm);
}

.ziom-tag-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: var(--ziom-space-1);
  color: var(--ziom-text-tertiary);
  border-radius: var(--ziom-radius-full);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
}

.ziom-tag-remove:hover {
  background: var(--ziom-gray-300);
  color: var(--ziom-text-primary);
}

/* ========================================
 * BADGE GROUP
 * ======================================== */

.ziom-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ziom-space-2);
}

/* ========================================
 * DARK MODE OVERRIDES
 * ======================================== */

[data-theme="dark"] .ziom-badge-warning {
  color: var(--ziom-warning);
}

[data-theme="dark"] .ziom-badge-info {
  color: var(--ziom-info);
}
/*
 * Ziom Theme - Pagination Components
 * Glass-effect pagination controls
 */

/* ========================================
 * PAGINATION CONTAINER
 * ======================================== */

.ziom-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ziom-space-1);
  padding: var(--ziom-space-2) 0;
}

/* ========================================
 * PAGINATION ITEMS
 * ======================================== */

.ziom-pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--ziom-space-3);
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: var(--ziom-radius-md);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
}

.ziom-pagination-item:hover {
  background: var(--ziom-gray-100);
}

.ziom-pagination-item:active {
  background: var(--ziom-gray-200);
}

/* Active state */
.ziom-pagination-item.active {
  background: var(--ziom-primary);
  color: var(--ziom-text-inverse);
}

.ziom-pagination-item.active:hover {
  background: var(--ziom-primary-hover);
}

/* Disabled state */
.ziom-pagination-item.disabled {
  color: var(--ziom-text-tertiary);
  cursor: not-allowed;
  pointer-events: none;
}

/* ========================================
 * PAGINATION ARROWS
 * ======================================== */

.ziom-pagination-prev,
.ziom-pagination-next {
  padding: 0 var(--ziom-space-2);
}

.ziom-pagination-first,
.ziom-pagination-last {
  padding: 0 var(--ziom-space-2);
}

/* ========================================
 * PAGINATION ELLIPSIS
 * ======================================== */

.ziom-pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  color: var(--ziom-text-tertiary);
  cursor: default;
}

/* ========================================
 * PAGINATION WITH GLASS EFFECT
 * ======================================== */

.ziom-pagination-glass {
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border-radius: var(--ziom-radius-lg);
  border: 1px solid var(--ziom-glass-border-subtle);
  box-shadow: var(--ziom-shadow-glass);
  padding: var(--ziom-space-1);
}

.ziom-pagination-glass .ziom-pagination-item {
  border-radius: var(--ziom-radius-sm);
}

/* ========================================
 * PAGINATION PILL STYLE
 * ======================================== */

.ziom-pagination-pill {
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border-radius: var(--ziom-radius-full);
  border: 1px solid var(--ziom-glass-border-subtle);
  box-shadow: var(--ziom-shadow-glass);
  padding: var(--ziom-space-1);
}

.ziom-pagination-pill .ziom-pagination-item {
  border-radius: var(--ziom-radius-full);
  min-width: 32px;
  height: 32px;
}

/* ========================================
 * COMPACT PAGINATION
 * ======================================== */

.ziom-pagination-compact .ziom-pagination-item {
  min-width: 32px;
  height: 32px;
  font-size: var(--ziom-text-xs);
}

/* ========================================
 * PAGINATION INFO
 * ======================================== */

.ziom-pagination-info {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
}

.ziom-pagination-info strong {
  color: var(--ziom-text-primary);
  font-weight: var(--ziom-font-medium);
}

/* ========================================
 * PAGINATION WITH INFO
 * ======================================== */

.ziom-pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ziom-space-4);
  flex-wrap: wrap;
}

.ziom-pagination-wrapper-center {
  justify-content: center;
}

/* ========================================
 * PAGINATION PER PAGE
 * ======================================== */

.ziom-pagination-per-page {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
}

.ziom-pagination-per-page select {
  padding: var(--ziom-space-1) var(--ziom-space-6) var(--ziom-space-1) var(--ziom-space-2);
  font-size: var(--ziom-text-sm);
  background: var(--ziom-glass-bg);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-sm);
  cursor: pointer;
}

/* ========================================
 * SIMPLE PAGINATION (Prev/Next only)
 * ======================================== */

.ziom-pagination-simple {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-4);
}

.ziom-pagination-simple-info {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
}

/* ========================================
 * LOAD MORE BUTTON
 * ======================================== */

.ziom-load-more {
  display: flex;
  justify-content: center;
  padding: var(--ziom-space-6) 0;
}

/* ========================================
 * OVERRIDE KAMINARI/BOOTSTRAP PAGINATION
 * ======================================== */

.ziom-pagination-override .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ziom-space-1);
  padding: 0;
  margin: 0;
  list-style: none;
}

.ziom-pagination-override .pagination .page-item {
  margin: 0;
}

.ziom-pagination-override .pagination .page-item a,
.ziom-pagination-override .pagination .page-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--ziom-space-3);
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: var(--ziom-radius-md);
  transition: all var(--ziom-transition-fast);
}

.ziom-pagination-override .pagination .page-item a:hover {
  background: var(--ziom-gray-100);
}

.ziom-pagination-override .pagination .page-item.active a,
.ziom-pagination-override .pagination .page-item.active span {
  background: var(--ziom-primary);
  color: var(--ziom-text-inverse);
}

.ziom-pagination-override .pagination .page-item.disabled a,
.ziom-pagination-override .pagination .page-item.disabled span {
  color: var(--ziom-text-tertiary);
  cursor: not-allowed;
}

/* ========================================
 * MOBILE RESPONSIVE
 * ======================================== */

/* Mobile responsive - 576px */
@media (max-width: 576px) {
  .pagination .page-item a,
  .pagination .page-item span {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
  }

  /* Hide First/Last on medium mobile */
  .pagination .page-item:first-child,
  .pagination .page-item:last-child {
    display: none;
  }
}

/* Mobile responsive - 480px */
@media (max-width: 480px) {
  .pagination .page-item a,
  .pagination .page-item span {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    font-size: 12px;
  }
}
/*
 * Ziom Theme - Modal Components
 * Solid background modal dialogs (white for light mode, dark for dark mode)
 */

/* ========================================
 * MODAL BACKDROP
 * ======================================== */

.ziom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--ziom-transition-fast);
}

.ziom-modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* ========================================
 * MODAL CONTAINER
 * ======================================== */

.ziom-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  padding-left: var(--ziom-space-4);
  padding-right: var(--ziom-space-4);
  padding-bottom: var(--ziom-space-4);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all var(--ziom-transition-fast);
}

.ziom-modal.show {
  opacity: 1;
  visibility: visible;
}

.ziom-modal.show .ziom-modal-content {
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Centered variant (original behavior) */
.ziom-modal-centered {
  align-items: center;
  padding-top: var(--ziom-space-6);
}

/* ========================================
 * MODAL CONTENT
 * ======================================== */

.ziom-modal-content {
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 15vh - var(--ziom-space-4));
  background: var(--ziom-glass-bg-solid);
  border-radius: var(--ziom-radius-xl);
  border: 1px solid var(--ziom-glass-border-subtle);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.98) translateY(-10px);
  transition: transform var(--ziom-transition-spring);
}

/* ========================================
 * MODAL SIZES
 * ======================================== */

.ziom-modal-sm .ziom-modal-content {
  max-width: 400px;
}

.ziom-modal-lg .ziom-modal-content {
  max-width: 700px;
}

.ziom-modal-xl .ziom-modal-content {
  max-width: 900px;
}

.ziom-modal-full .ziom-modal-content {
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
}

/* ========================================
 * MODAL HEADER
 * ======================================== */

.ziom-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ziom-space-4);
  padding: var(--ziom-space-4) var(--ziom-space-5);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
  flex-shrink: 0;
}

.ziom-modal-title {
  font-size: var(--ziom-text-lg);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin: 0;
}

.ziom-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: var(--ziom-gray-100);
  border: none;
  border-radius: var(--ziom-radius-full);
  color: var(--ziom-text-secondary);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
}

.ziom-modal-close:hover {
  background: var(--ziom-gray-200);
  color: var(--ziom-text-primary);
}

/* ========================================
 * MODAL BODY
 * ======================================== */

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

.ziom-modal-body-flush {
  padding: 0;
}

/* ========================================
 * MODAL FOOTER
 * ======================================== */

.ziom-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--ziom-space-3);
  padding: var(--ziom-space-4) var(--ziom-space-5);
  border-top: 1px solid var(--ziom-glass-border-subtle);
  flex-shrink: 0;
}

.ziom-modal-footer-between {
  justify-content: space-between;
}

/* ========================================
 * CENTERED MODAL (iOS Alert style)
 * ======================================== */

.ziom-modal-alert .ziom-modal-content {
  max-width: 320px;
  text-align: center;
}

.ziom-modal-alert .ziom-modal-header {
  border-bottom: none;
  padding-bottom: 0;
  justify-content: center;
}

.ziom-modal-alert .ziom-modal-body {
  padding-top: var(--ziom-space-2);
}

.ziom-modal-alert .ziom-modal-footer {
  border-top: 1px solid var(--ziom-glass-border-subtle);
  padding: 0;
  gap: 0;
}

.ziom-modal-alert .ziom-modal-footer .ziom-btn {
  flex: 1;
  border-radius: 0;
  padding: var(--ziom-space-4);
  border: none;
  background: transparent;
}

.ziom-modal-alert .ziom-modal-footer .ziom-btn:not(:last-child) {
  border-right: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-modal-alert .ziom-modal-footer .ziom-btn:first-child {
  border-bottom-left-radius: var(--ziom-radius-xl);
}

.ziom-modal-alert .ziom-modal-footer .ziom-btn:last-child {
  border-bottom-right-radius: var(--ziom-radius-xl);
}

/* ========================================
 * SLIDE-UP MODAL (Action sheet style)
 * ======================================== */

.ziom-modal-sheet {
  align-items: flex-end;
  padding: 0;
}

.ziom-modal-sheet .ziom-modal-content {
  max-width: 100%;
  width: 100%;
  max-height: 90vh;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  transform: translateY(100%);
}

.ziom-modal-sheet.show .ziom-modal-content {
  transform: translateY(0);
}

.ziom-modal-sheet .ziom-modal-header {
  padding-top: var(--ziom-space-3);
}

.ziom-modal-sheet .ziom-modal-header::before {
  content: '';
  position: absolute;
  top: var(--ziom-space-2);
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  background: var(--ziom-gray-300);
  border-radius: var(--ziom-radius-full);
}

/* ========================================
 * OVERRIDE BOOTSTRAP MODAL
 * ======================================== */

.ziom-modal-override .modal-content {
  background: var(--ziom-glass-bg-solid);
  border-radius: var(--ziom-radius-xl);
  border: 1px solid var(--ziom-glass-border-subtle);
  box-shadow: var(--ziom-shadow-xl);
}

.ziom-modal-override .modal-header {
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
  padding: var(--ziom-space-4) var(--ziom-space-5);
}

.ziom-modal-override .modal-title {
  font-size: var(--ziom-text-lg);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
}

.ziom-modal-override .modal-body {
  padding: var(--ziom-space-5);
}

.ziom-modal-override .modal-footer {
  border-top: 1px solid var(--ziom-glass-border-subtle);
  padding: var(--ziom-space-4) var(--ziom-space-5);
  gap: var(--ziom-space-3);
}

.ziom-modal-override .btn-close {
  width: 28px;
  height: 28px;
  padding: 0;
  background: var(--ziom-gray-100) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/10px no-repeat;
  border-radius: var(--ziom-radius-full);
  opacity: 1;
}

.ziom-modal-override .btn-close:hover {
  background-color: var(--ziom-gray-200);
}

/* ========================================
 * CONFIRMATION MODAL
 * ======================================== */

.ziom-confirm-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--ziom-space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ziom-radius-full);
}

.ziom-confirm-icon-warning {
  background: var(--ziom-warning-light);
  color: var(--ziom-warning);
}

.ziom-confirm-icon-danger {
  background: var(--ziom-danger-light);
  color: var(--ziom-danger);
}

.ziom-confirm-icon-success {
  background: var(--ziom-success-light);
  color: var(--ziom-success);
}

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

.ziom-confirm-message {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
  line-height: var(--ziom-leading-relaxed);
}

/* ========================================
 * DARK MODE OVERRIDES
 * ======================================== */

[data-theme="dark"] .ziom-modal-backdrop {
  background: rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .ziom-modal-content {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .ziom-modal-close {
  background: var(--ziom-gray-700);
  color: var(--ziom-gray-300);
}

[data-theme="dark"] .ziom-modal-close:hover {
  background: var(--ziom-gray-600);
  color: var(--ziom-text-primary);
}

/* ========================================
 * RESPONSIVE
 * ======================================== */

@media (max-width: 640px) {
  .ziom-modal {
    padding-top: var(--ziom-space-4);
  }
  
  .ziom-modal-content {
    max-height: calc(100vh - var(--ziom-space-8));
  }
}
/*
 * Ziom Theme - Alert Components
 * Alerts, toasts, and banner notifications
 */

/* ========================================
 * BASE ALERT
 * ======================================== */

.ziom-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--ziom-space-3);
  padding: var(--ziom-space-3) var(--ziom-space-4);
  font-size: var(--ziom-text-sm);
  line-height: var(--ziom-leading-normal);
  border-radius: var(--ziom-radius-md);
  border: 1px solid transparent;
}

.ziom-alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.ziom-alert-content {
  flex: 1;
  min-width: 0;
}

.ziom-alert-title {
  font-weight: var(--ziom-font-semibold);
  margin-bottom: var(--ziom-space-1);
}

.ziom-alert-description {
  color: inherit;
  opacity: 0.9;
}

.ziom-alert-dismiss {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--ziom-radius-sm);
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
}

.ziom-alert-dismiss:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
}

.ziom-alert-dismiss svg {
  width: 14px;
  height: 14px;
}

/* ========================================
 * ALERT VARIANTS
 * ======================================== */

/* Default / Neutral */
.ziom-alert-default {
  background: var(--ziom-gray-100);
  border-color: var(--ziom-gray-200);
  color: var(--ziom-text-primary);
}

/* Primary / Info */
.ziom-alert-info,
.ziom-alert-primary {
  background: var(--ziom-info-light);
  border-color: var(--ziom-info);
  color: #0369A1;
}

/* Success */
.ziom-alert-success {
  background: var(--ziom-success-light);
  border-color: var(--ziom-success);
  color: #166534;
}

/* Warning */
.ziom-alert-warning {
  background: var(--ziom-warning-light);
  border-color: var(--ziom-warning);
  color: #B45309;
}

/* Danger / Error */
.ziom-alert-danger,
.ziom-alert-error {
  background: var(--ziom-danger-light);
  border-color: var(--ziom-danger);
  color: #B91C1C;
}

/* ========================================
 * ALERT SIZES
 * ======================================== */

.ziom-alert-sm {
  padding: var(--ziom-space-2) var(--ziom-space-3);
  font-size: var(--ziom-text-xs);
}

.ziom-alert-sm .ziom-alert-icon {
  width: 16px;
  height: 16px;
}

.ziom-alert-lg {
  padding: var(--ziom-space-4) var(--ziom-space-5);
  font-size: var(--ziom-text-base);
}

/* ========================================
 * INLINE ALERT (No background)
 * ======================================== */

.ziom-alert-inline {
  background: transparent;
  border: none;
  padding: var(--ziom-space-2) 0;
}

/* ========================================
 * TOAST NOTIFICATIONS
 * ======================================== */

.ziom-toast-container {
  position: fixed;
  z-index: var(--ziom-z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--ziom-space-2);
  pointer-events: none;
  padding: var(--ziom-space-4);
}

/* Positioning */
.ziom-toast-container-top-right {
  top: 0;
  right: 0;
}

.ziom-toast-container-top-left {
  top: 0;
  left: 0;
}

.ziom-toast-container-top-center {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.ziom-toast-container-bottom-right {
  bottom: 0;
  right: 0;
}

.ziom-toast-container-bottom-left {
  bottom: 0;
  left: 0;
}

.ziom-toast-container-bottom-center {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Toast Item */
.ziom-toast {
  display: flex;
  align-items: flex-start;
  gap: var(--ziom-space-3);
  min-width: 300px;
  max-width: 420px;
  padding: var(--ziom-space-3) var(--ziom-space-4);
  background: var(--ziom-glass-bg-solid);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-lg);
  box-shadow: var(--ziom-shadow-lg);
  pointer-events: auto;
  animation: ziom-toast-enter 0.3s var(--ziom-transition-spring);
}

.ziom-toast.ziom-toast-exit {
  animation: ziom-toast-exit 0.2s ease-out forwards;
}

@keyframes ziom-toast-enter {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ziom-toast-exit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
}

/* Toast from bottom */
.ziom-toast-container-bottom-right .ziom-toast,
.ziom-toast-container-bottom-left .ziom-toast,
.ziom-toast-container-bottom-center .ziom-toast {
  animation: ziom-toast-enter-bottom 0.3s var(--ziom-transition-spring);
}

@keyframes ziom-toast-enter-bottom {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ziom-toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.ziom-toast-icon-success {
  color: var(--ziom-success);
}

.ziom-toast-icon-warning {
  color: var(--ziom-warning);
}

.ziom-toast-icon-danger,
.ziom-toast-icon-error {
  color: var(--ziom-danger);
}

.ziom-toast-icon-info {
  color: var(--ziom-info);
}

.ziom-toast-content {
  flex: 1;
  min-width: 0;
}

.ziom-toast-title {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
}

.ziom-toast-message {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
  margin-top: var(--ziom-space-1);
}

.ziom-toast-dismiss {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--ziom-radius-sm);
  color: var(--ziom-text-tertiary);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
}

.ziom-toast-dismiss:hover {
  background: var(--ziom-gray-100);
  color: var(--ziom-text-primary);
}

.ziom-toast-dismiss svg {
  width: 14px;
  height: 14px;
}

/* Toast with action button */
.ziom-toast-actions {
  display: flex;
  gap: var(--ziom-space-2);
  margin-top: var(--ziom-space-2);
}

/* Toast progress bar */
.ziom-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ziom-gray-200);
  border-radius: 0 0 var(--ziom-radius-lg) var(--ziom-radius-lg);
  overflow: hidden;
}

.ziom-toast-progress-bar {
  height: 100%;
  background: var(--ziom-primary);
  transition: width linear;
}

/* ========================================
 * BANNER NOTIFICATIONS
 * ======================================== */

.ziom-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ziom-space-3);
  padding: var(--ziom-space-3) var(--ziom-space-4);
  font-size: var(--ziom-text-sm);
  text-align: center;
}

.ziom-banner-content {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
}

.ziom-banner-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.ziom-banner-message {
  flex: 1;
}

.ziom-banner-message a {
  font-weight: var(--ziom-font-medium);
  text-decoration: underline;
}

.ziom-banner-dismiss {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--ziom-radius-sm);
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
}

.ziom-banner-dismiss:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
}

.ziom-banner-dismiss svg {
  width: 14px;
  height: 14px;
}

/* Banner Variants */
.ziom-banner-default {
  background: var(--ziom-gray-100);
  color: var(--ziom-text-primary);
}

.ziom-banner-info,
.ziom-banner-primary {
  background: var(--ziom-primary);
  color: var(--ziom-text-inverse);
}

.ziom-banner-success {
  background: var(--ziom-success);
  color: var(--ziom-text-inverse);
}

.ziom-banner-warning {
  background: var(--ziom-warning);
  color: var(--ziom-text-inverse);
}

.ziom-banner-danger,
.ziom-banner-error {
  background: var(--ziom-danger);
  color: var(--ziom-text-inverse);
}

/* Sticky banner */
.ziom-banner-sticky {
  position: sticky;
  top: 0;
  z-index: var(--ziom-z-sticky);
}

/* ========================================
 * CALLOUT (Emphasized alert)
 * ======================================== */

.ziom-callout {
  display: flex;
  gap: var(--ziom-space-3);
  padding: var(--ziom-space-4);
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border-left: 4px solid var(--ziom-primary);
  border-radius: var(--ziom-radius-md);
}

.ziom-callout-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--ziom-primary);
}

.ziom-callout-content {
  flex: 1;
}

.ziom-callout-title {
  font-size: var(--ziom-text-base);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin-bottom: var(--ziom-space-1);
}

.ziom-callout-description {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
}

/* Callout Variants */
.ziom-callout-info {
  border-left-color: var(--ziom-info);
}

.ziom-callout-info .ziom-callout-icon {
  color: var(--ziom-info);
}

.ziom-callout-success {
  border-left-color: var(--ziom-success);
}

.ziom-callout-success .ziom-callout-icon {
  color: var(--ziom-success);
}

.ziom-callout-warning {
  border-left-color: var(--ziom-warning);
}

.ziom-callout-warning .ziom-callout-icon {
  color: var(--ziom-warning);
}

.ziom-callout-danger {
  border-left-color: var(--ziom-danger);
}

.ziom-callout-danger .ziom-callout-icon {
  color: var(--ziom-danger);
}

/* ========================================
 * DARK MODE OVERRIDES
 * ======================================== */

[data-theme="dark"] .ziom-alert-info,
[data-theme="dark"] .ziom-alert-primary {
  color: var(--ziom-info);
}

[data-theme="dark"] .ziom-alert-success {
  color: var(--ziom-success);
}

[data-theme="dark"] .ziom-alert-warning {
  color: var(--ziom-warning);
}

[data-theme="dark"] .ziom-alert-danger,
[data-theme="dark"] .ziom-alert-error {
  color: var(--ziom-danger);
}

[data-theme="dark"] .ziom-alert-dismiss:hover {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .ziom-toast {
  background: var(--ziom-bg-elevated);
  box-shadow: var(--ziom-shadow-xl);
}

[data-theme="dark"] .ziom-toast-dismiss:hover {
  background: var(--ziom-gray-200);
}

[data-theme="dark"] .ziom-banner-dismiss:hover {
  background: rgba(255, 255, 255, 0.2);
}
/*
 * Ziom Theme - Tooltip Components
 * Tooltips and popovers with glass effect
 */

/* ========================================
 * TOOLTIP BASE
 * ======================================== */

.ziom-tooltip-wrapper {
  position: relative;
  display: inline-flex;
}

.ziom-tooltip {
  position: absolute;
  z-index: var(--ziom-z-dropdown);
  padding: var(--ziom-space-2) var(--ziom-space-3);
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-inverse);
  background: var(--ziom-gray-900);
  border-radius: var(--ziom-radius-md);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all var(--ziom-transition-fast);
}

.ziom-tooltip-wrapper:hover .ziom-tooltip,
.ziom-tooltip.show {
  opacity: 1;
  visibility: visible;
}

/* Tooltip Arrow */
.ziom-tooltip::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 6px solid transparent;
}

/* ========================================
 * TOOLTIP POSITIONS
 * ======================================== */

/* Top (default) */
.ziom-tooltip-top,
.ziom-tooltip {
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
}

.ziom-tooltip-wrapper:hover .ziom-tooltip-top,
.ziom-tooltip-wrapper:hover .ziom-tooltip:not([class*="ziom-tooltip-"]),
.ziom-tooltip-top.show,
.ziom-tooltip.show:not([class*="ziom-tooltip-"]) {
  transform: translateX(-50%) translateY(0);
}

.ziom-tooltip-top::before,
.ziom-tooltip:not([class*="ziom-tooltip-"])::before {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-top-color: var(--ziom-gray-900);
}

/* Bottom */
.ziom-tooltip-bottom {
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
}

.ziom-tooltip-wrapper:hover .ziom-tooltip-bottom,
.ziom-tooltip-bottom.show {
  transform: translateX(-50%) translateY(0);
}

.ziom-tooltip-bottom::before {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-color: var(--ziom-gray-900);
}

/* Left */
.ziom-tooltip-left {
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
}

.ziom-tooltip-wrapper:hover .ziom-tooltip-left,
.ziom-tooltip-left.show {
  transform: translateY(-50%) translateX(0);
}

.ziom-tooltip-left::before {
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-left-color: var(--ziom-gray-900);
}

/* Right */
.ziom-tooltip-right {
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
}

.ziom-tooltip-wrapper:hover .ziom-tooltip-right,
.ziom-tooltip-right.show {
  transform: translateY(-50%) translateX(0);
}

.ziom-tooltip-right::before {
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-right-color: var(--ziom-gray-900);
}

/* ========================================
 * TOOLTIP VARIANTS
 * ======================================== */

/* Light tooltip */
.ziom-tooltip-light {
  color: var(--ziom-text-primary);
  background: var(--ziom-bg-elevated);
  border: 1px solid var(--ziom-glass-border-subtle);
  box-shadow: var(--ziom-shadow-lg);
}

.ziom-tooltip-light.ziom-tooltip-top::before,
.ziom-tooltip-light:not([class*="ziom-tooltip-"])::before {
  border-top-color: var(--ziom-bg-elevated);
}

.ziom-tooltip-light.ziom-tooltip-bottom::before {
  border-bottom-color: var(--ziom-bg-elevated);
}

.ziom-tooltip-light.ziom-tooltip-left::before {
  border-left-color: var(--ziom-bg-elevated);
}

.ziom-tooltip-light.ziom-tooltip-right::before {
  border-right-color: var(--ziom-bg-elevated);
}

/* Multiline tooltip */
.ziom-tooltip-multiline {
  white-space: normal;
  max-width: 200px;
  text-align: center;
}

/* ========================================
 * POPOVER
 * ======================================== */

.ziom-popover-wrapper {
  position: relative;
  display: inline-flex;
}

.ziom-popover {
  position: absolute;
  z-index: var(--ziom-z-dropdown);
  min-width: 200px;
  max-width: 320px;
  background: var(--ziom-glass-bg-solid);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-lg);
  box-shadow: var(--ziom-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--ziom-transition-fast);
}

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

/* Popover Arrow */
.ziom-popover::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--ziom-glass-bg-solid);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-right: none;
  border-bottom: none;
  transform: rotate(45deg);
}

/* ========================================
 * POPOVER POSITIONS
 * ======================================== */

/* Top */
.ziom-popover-top {
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
}

.ziom-popover-top.show {
  transform: translateX(-50%) translateY(0);
}

.ziom-popover-top::before {
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(-135deg);
}

/* Bottom */
.ziom-popover-bottom {
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
}

.ziom-popover-bottom.show {
  transform: translateX(-50%) translateY(0);
}

.ziom-popover-bottom::before {
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

/* Left */
.ziom-popover-left {
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
}

.ziom-popover-left.show {
  transform: translateY(-50%) translateX(0);
}

.ziom-popover-left::before {
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(135deg);
}

/* Right */
.ziom-popover-right {
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
}

.ziom-popover-right.show {
  transform: translateY(-50%) translateX(0);
}

.ziom-popover-right::before {
  left: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* ========================================
 * POPOVER SECTIONS
 * ======================================== */

.ziom-popover-header {
  padding: var(--ziom-space-3) var(--ziom-space-4);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-popover-title {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin: 0;
}

.ziom-popover-subtitle {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
  margin-top: var(--ziom-space-1);
}

.ziom-popover-body {
  padding: var(--ziom-space-3) var(--ziom-space-4);
}

.ziom-popover-body p {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
  margin: 0;
}

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

/* Simple popover (body only) */
.ziom-popover-simple {
  padding: var(--ziom-space-3) var(--ziom-space-4);
}

.ziom-popover-simple p {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
  margin: 0;
}

/* ========================================
 * POPOVER WITH MENU
 * ======================================== */

.ziom-popover-menu {
  padding: var(--ziom-space-1);
  min-width: 160px;
}

.ziom-popover-menu-item {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  padding: var(--ziom-space-2) var(--ziom-space-3);
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-primary);
  text-decoration: none;
  border-radius: var(--ziom-radius-sm);
  cursor: pointer;
  transition: background var(--ziom-transition-fast);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.ziom-popover-menu-item:hover {
  background: var(--ziom-gray-100);
}

.ziom-popover-menu-item svg {
  width: 16px;
  height: 16px;
  color: var(--ziom-text-secondary);
}

.ziom-popover-menu-item-danger {
  color: var(--ziom-danger);
}

.ziom-popover-menu-item-danger svg {
  color: var(--ziom-danger);
}

.ziom-popover-menu-divider {
  height: 1px;
  background: var(--ziom-glass-border-subtle);
  margin: var(--ziom-space-1) 0;
}

/* ========================================
 * DATA ATTRIBUTE TOOLTIP (CSS-only)
 * ======================================== */

[data-ziom-tooltip] {
  position: relative;
}

[data-ziom-tooltip]::after {
  content: attr(data-ziom-tooltip);
  position: absolute;
  z-index: var(--ziom-z-dropdown);
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: var(--ziom-space-2) var(--ziom-space-3);
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-inverse);
  background: var(--ziom-gray-900);
  border-radius: var(--ziom-radius-md);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all var(--ziom-transition-fast);
}

[data-ziom-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ========================================
 * DARK MODE OVERRIDES
 * ======================================== */

[data-theme="dark"] .ziom-tooltip {
  background: var(--ziom-gray-800);
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .ziom-tooltip-top::before,
[data-theme="dark"] .ziom-tooltip:not([class*="ziom-tooltip-"])::before {
  border-top-color: var(--ziom-gray-800);
}

[data-theme="dark"] .ziom-tooltip-bottom::before {
  border-bottom-color: var(--ziom-gray-800);
}

[data-theme="dark"] .ziom-tooltip-left::before {
  border-left-color: var(--ziom-gray-800);
}

[data-theme="dark"] .ziom-tooltip-right::before {
  border-right-color: var(--ziom-gray-800);
}

[data-theme="dark"] .ziom-tooltip-light {
  background: var(--ziom-bg-elevated);
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .ziom-popover {
  background: var(--ziom-bg-elevated);
}

[data-theme="dark"] .ziom-popover::before {
  background: var(--ziom-bg-elevated);
}

[data-theme="dark"] .ziom-popover-menu-item:hover {
  background: var(--ziom-gray-200);
}

[data-theme="dark"] [data-ziom-tooltip]::after {
  background: var(--ziom-gray-800);
  color: var(--ziom-text-primary);
}
/*
 * Ziom Theme - Progress Components
 * Progress bars, spinners, and skeleton loaders
 */

/* ========================================
 * PROGRESS BAR
 * ======================================== */

.ziom-progress {
  width: 100%;
  height: 8px;
  background: var(--ziom-gray-200);
  border-radius: var(--ziom-radius-full);
  overflow: hidden;
}

.ziom-progress-bar {
  height: 100%;
  background: var(--ziom-primary);
  border-radius: var(--ziom-radius-full);
  transition: width var(--ziom-transition-normal);
}

/* Progress sizes */
.ziom-progress-xs {
  height: 4px;
}

.ziom-progress-sm {
  height: 6px;
}

.ziom-progress-lg {
  height: 12px;
}

.ziom-progress-xl {
  height: 16px;
}

/* Progress with label */
.ziom-progress-labeled {
  position: relative;
}

.ziom-progress-labeled .ziom-progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ziom-progress-label {
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-inverse);
}

/* ========================================
 * PROGRESS VARIANTS
 * ======================================== */

.ziom-progress-success .ziom-progress-bar {
  background: var(--ziom-success);
}

.ziom-progress-warning .ziom-progress-bar {
  background: var(--ziom-warning);
}

.ziom-progress-danger .ziom-progress-bar {
  background: var(--ziom-danger);
}

.ziom-progress-info .ziom-progress-bar {
  background: var(--ziom-info);
}

/* Striped progress */
.ziom-progress-striped .ziom-progress-bar {
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 1rem 1rem;
}

/* Animated striped progress */
.ziom-progress-animated .ziom-progress-bar {
  animation: ziom-progress-stripes 1s linear infinite;
}

@keyframes ziom-progress-stripes {
  0% {
    background-position: 1rem 0;
  }
  100% {
    background-position: 0 0;
  }
}

/* Indeterminate progress */
.ziom-progress-indeterminate .ziom-progress-bar {
  width: 30%;
  animation: ziom-progress-indeterminate 1.5s ease-in-out infinite;
}

@keyframes ziom-progress-indeterminate {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(400%);
  }
}

/* ========================================
 * PROGRESS WITH STEPS
 * ======================================== */

.ziom-progress-steps {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
}

.ziom-progress-step {
  flex: 1;
  height: 4px;
  background: var(--ziom-gray-200);
  border-radius: var(--ziom-radius-full);
}

.ziom-progress-step-active {
  background: var(--ziom-primary);
}

.ziom-progress-step-completed {
  background: var(--ziom-success);
}

/* ========================================
 * CIRCULAR PROGRESS / SPINNER
 * ======================================== */

.ziom-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--ziom-gray-200);
  border-top-color: var(--ziom-primary);
  border-radius: 50%;
  animation: ziom-spin 0.8s linear infinite;
}

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

/* Spinner sizes */
.ziom-spinner-xs {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

.ziom-spinner-sm {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

.ziom-spinner-lg {
  width: 32px;
  height: 32px;
  border-width: 4px;
}

.ziom-spinner-xl {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

/* Spinner variants */
.ziom-spinner-light {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: white;
}

.ziom-spinner-success {
  border-top-color: var(--ziom-success);
}

.ziom-spinner-danger {
  border-top-color: var(--ziom-danger);
}

/* ========================================
 * DOTS LOADER
 * ======================================== */

.ziom-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ziom-dot {
  width: 8px;
  height: 8px;
  background: var(--ziom-primary);
  border-radius: 50%;
  animation: ziom-dot-bounce 1.4s ease-in-out infinite both;
}

.ziom-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.ziom-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes ziom-dot-bounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Dots sizes */
.ziom-dots-sm .ziom-dot {
  width: 6px;
  height: 6px;
}

.ziom-dots-lg .ziom-dot {
  width: 10px;
  height: 10px;
}

/* ========================================
 * SKELETON LOADER
 * ======================================== */

.ziom-skeleton {
  background: linear-gradient(
    90deg,
    var(--ziom-gray-100) 25%,
    var(--ziom-gray-200) 50%,
    var(--ziom-gray-100) 75%
  );
  background-size: 200% 100%;
  animation: ziom-skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--ziom-radius-sm);
}

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

/* Skeleton shapes */
.ziom-skeleton-text {
  height: 16px;
  width: 100%;
  margin-bottom: var(--ziom-space-2);
}

.ziom-skeleton-text:last-child {
  width: 70%;
  margin-bottom: 0;
}

.ziom-skeleton-title {
  height: 24px;
  width: 50%;
  margin-bottom: var(--ziom-space-3);
}

.ziom-skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--ziom-radius-full);
  flex-shrink: 0;
}

.ziom-skeleton-avatar-sm {
  width: 32px;
  height: 32px;
}

.ziom-skeleton-avatar-lg {
  width: 56px;
  height: 56px;
}

.ziom-skeleton-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: var(--ziom-radius-md);
  flex-shrink: 0;
}

.ziom-skeleton-image {
  width: 100%;
  height: 200px;
  border-radius: var(--ziom-radius-md);
}

.ziom-skeleton-button {
  height: 36px;
  width: 100px;
  border-radius: var(--ziom-radius-lg);
}

.ziom-skeleton-input {
  height: 40px;
  width: 100%;
  border-radius: var(--ziom-radius-lg);
}

/* Skeleton layouts */
.ziom-skeleton-card {
  background: var(--ziom-glass-bg);
  border-radius: var(--ziom-radius-lg);
  padding: var(--ziom-space-4);
  border: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-skeleton-row {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
}

.ziom-skeleton-stack {
  display: flex;
  flex-direction: column;
  gap: var(--ziom-space-2);
  flex: 1;
}

/* ========================================
 * LOADING OVERLAY
 * ======================================== */

.ziom-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: inherit;
  z-index: 10;
}

.ziom-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ziom-space-3);
}

.ziom-loading-text {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
}

/* ========================================
 * PROGRESS RING (SVG-based circular)
 * ======================================== */

.ziom-progress-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ziom-progress-ring svg {
  transform: rotate(-90deg);
}

.ziom-progress-ring-track {
  fill: none;
  stroke: var(--ziom-gray-200);
}

.ziom-progress-ring-fill {
  fill: none;
  stroke: var(--ziom-primary);
  stroke-linecap: round;
  transition: stroke-dashoffset var(--ziom-transition-normal);
}

.ziom-progress-ring-value {
  position: absolute;
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
}

/* Progress ring sizes */
.ziom-progress-ring-sm {
  width: 48px;
  height: 48px;
}

.ziom-progress-ring-sm .ziom-progress-ring-track,
.ziom-progress-ring-sm .ziom-progress-ring-fill {
  stroke-width: 4;
}

.ziom-progress-ring-sm .ziom-progress-ring-value {
  font-size: var(--ziom-text-xs);
}

.ziom-progress-ring-lg {
  width: 80px;
  height: 80px;
}

.ziom-progress-ring-lg .ziom-progress-ring-track,
.ziom-progress-ring-lg .ziom-progress-ring-fill {
  stroke-width: 6;
}

.ziom-progress-ring-lg .ziom-progress-ring-value {
  font-size: var(--ziom-text-lg);
}

/* ========================================
 * DARK MODE OVERRIDES
 * ======================================== */

[data-theme="dark"] .ziom-progress {
  background: var(--ziom-gray-300);
}

[data-theme="dark"] .ziom-progress-step {
  background: var(--ziom-gray-300);
}

[data-theme="dark"] .ziom-spinner {
  border-color: var(--ziom-gray-400);
  border-top-color: var(--ziom-primary);
}

[data-theme="dark"] .ziom-skeleton {
  background: linear-gradient(
    90deg,
    var(--ziom-gray-200) 25%,
    var(--ziom-gray-300) 50%,
    var(--ziom-gray-200) 75%
  );
  background-size: 200% 100%;
}

[data-theme="dark"] .ziom-loading-overlay {
  background: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .ziom-progress-ring-track {
  stroke: var(--ziom-gray-300);
}
/*
 * Ziom Theme - Avatar Components
 * User avatars with status indicators and groups
 */

/* ========================================
 * BASE AVATAR
 * ======================================== */

.ziom-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--ziom-radius-full);
  background: var(--ziom-gray-200);
  color: var(--ziom-text-secondary);
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-semibold);
  overflow: hidden;
  flex-shrink: 0;
}

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

/* Avatar initials */
.ziom-avatar-initials {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Avatar icon placeholder */
.ziom-avatar-icon {
  width: 50%;
  height: 50%;
  color: var(--ziom-text-tertiary);
}

/* ========================================
 * AVATAR SIZES
 * ======================================== */

.ziom-avatar-xs {
  width: 24px;
  height: 24px;
  font-size: var(--ziom-text-xs);
}

.ziom-avatar-sm {
  width: 32px;
  height: 32px;
  font-size: var(--ziom-text-xs);
}

.ziom-avatar-lg {
  width: 56px;
  height: 56px;
  font-size: var(--ziom-text-lg);
}

.ziom-avatar-xl {
  width: 72px;
  height: 72px;
  font-size: var(--ziom-text-xl);
}

.ziom-avatar-2xl {
  width: 96px;
  height: 96px;
  font-size: var(--ziom-text-2xl);
}

/* ========================================
 * AVATAR SHAPES
 * ======================================== */

.ziom-avatar-square {
  border-radius: var(--ziom-radius-md);
}

.ziom-avatar-rounded {
  border-radius: var(--ziom-radius-lg);
}

/* ========================================
 * AVATAR WITH BORDER
 * ======================================== */

.ziom-avatar-bordered {
  border: 2px solid var(--ziom-bg-elevated);
  box-shadow: var(--ziom-shadow-sm);
}

/* ========================================
 * AVATAR STATUS INDICATOR
 * ======================================== */

.ziom-avatar-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: var(--ziom-radius-full);
  border: 2px solid var(--ziom-bg-elevated);
}

/* Status variants */
.ziom-avatar-status-online {
  background: var(--ziom-success);
}

.ziom-avatar-status-offline {
  background: var(--ziom-gray-400);
}

.ziom-avatar-status-busy {
  background: var(--ziom-danger);
}

.ziom-avatar-status-away {
  background: var(--ziom-warning);
}

/* Status sizes by avatar size */
.ziom-avatar-xs .ziom-avatar-status {
  width: 8px;
  height: 8px;
  border-width: 1.5px;
}

.ziom-avatar-sm .ziom-avatar-status {
  width: 10px;
  height: 10px;
  border-width: 1.5px;
}

.ziom-avatar-lg .ziom-avatar-status {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

.ziom-avatar-xl .ziom-avatar-status,
.ziom-avatar-2xl .ziom-avatar-status {
  width: 16px;
  height: 16px;
  border-width: 3px;
}

/* ========================================
 * AVATAR WITH BADGE
 * ======================================== */

.ziom-avatar-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-inverse);
  background: var(--ziom-danger);
  border-radius: var(--ziom-radius-full);
  border: 2px solid var(--ziom-bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ziom-avatar-badge-primary {
  background: var(--ziom-primary);
}

/* ========================================
 * AVATAR COLOR VARIANTS
 * ======================================== */

.ziom-avatar-primary {
  background: var(--ziom-primary-light);
  color: var(--ziom-primary);
}

.ziom-avatar-success {
  background: var(--ziom-success-light);
  color: var(--ziom-success);
}

.ziom-avatar-warning {
  background: var(--ziom-warning-light);
  color: #B45309;
}

.ziom-avatar-danger {
  background: var(--ziom-danger-light);
  color: var(--ziom-danger);
}

.ziom-avatar-info {
  background: var(--ziom-info-light);
  color: #0369A1;
}

/* ========================================
 * AVATAR GROUP
 * ======================================== */

.ziom-avatar-group {
  display: inline-flex;
  flex-direction: row-reverse;
}

.ziom-avatar-group .ziom-avatar {
  border: 2px solid var(--ziom-bg-elevated);
  margin-left: -12px;
  transition: transform var(--ziom-transition-fast);
}

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

.ziom-avatar-group .ziom-avatar:hover {
  transform: translateY(-2px);
  z-index: 10;
}

/* Avatar group sizes */
.ziom-avatar-group-sm .ziom-avatar {
  margin-left: -8px;
}

.ziom-avatar-group-lg .ziom-avatar {
  margin-left: -16px;
}

/* Avatar group remaining count */
.ziom-avatar-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--ziom-radius-full);
  background: var(--ziom-gray-100);
  color: var(--ziom-text-secondary);
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-semibold);
  border: 2px solid var(--ziom-bg-elevated);
  margin-left: -12px;
}

.ziom-avatar-group-sm .ziom-avatar-group-count {
  width: 32px;
  height: 32px;
  font-size: 10px;
  margin-left: -8px;
}

.ziom-avatar-group-lg .ziom-avatar-group-count {
  width: 56px;
  height: 56px;
  font-size: var(--ziom-text-sm);
  margin-left: -16px;
}

/* ========================================
 * AVATAR WITH NAME
 * ======================================== */

.ziom-avatar-with-name {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-3);
}

.ziom-avatar-name {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
}

.ziom-avatar-subtitle {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
  margin-top: 1px;
}

/* Compact variant */
.ziom-avatar-with-name-compact {
  gap: var(--ziom-space-2);
}

.ziom-avatar-with-name-compact .ziom-avatar-name {
  font-size: var(--ziom-text-xs);
}

/* ========================================
 * AVATAR STACK (Vertical)
 * ======================================== */

.ziom-avatar-stack {
  display: flex;
  flex-direction: column;
}

.ziom-avatar-stack .ziom-avatar {
  border: 2px solid var(--ziom-bg-elevated);
  margin-top: -12px;
}

.ziom-avatar-stack .ziom-avatar:first-child {
  margin-top: 0;
}

/* ========================================
 * CLICKABLE AVATAR
 * ======================================== */

.ziom-avatar-clickable {
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
}

.ziom-avatar-clickable:hover {
  transform: scale(1.05);
  box-shadow: var(--ziom-shadow-md);
}

.ziom-avatar-clickable:active {
  transform: scale(0.98);
}

/* ========================================
 * DARK MODE OVERRIDES
 * ======================================== */

[data-theme="dark"] .ziom-avatar {
  background: var(--ziom-gray-300);
}

[data-theme="dark"] .ziom-avatar-bordered {
  border-color: var(--ziom-bg-elevated);
}

[data-theme="dark"] .ziom-avatar-status {
  border-color: var(--ziom-bg-elevated);
}

[data-theme="dark"] .ziom-avatar-badge {
  border-color: var(--ziom-bg-elevated);
}

[data-theme="dark"] .ziom-avatar-group .ziom-avatar {
  border-color: var(--ziom-bg-elevated);
}

[data-theme="dark"] .ziom-avatar-group-count {
  background: var(--ziom-gray-200);
  border-color: var(--ziom-bg-elevated);
}

[data-theme="dark"] .ziom-avatar-warning {
  color: var(--ziom-warning);
}

[data-theme="dark"] .ziom-avatar-info {
  color: var(--ziom-info);
}
/*
 * Ziom Theme - Tab Components
 * Horizontal and vertical tab navigation
 */

/* ========================================
 * BASE TABS CONTAINER
 * ======================================== */

.ziom-tabs {
  display: flex;
  flex-direction: column;
}

/* ========================================
 * TAB LIST
 * ======================================== */

.ziom-tab-list {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-1);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ziom-tab-list-center {
  justify-content: center;
}

.ziom-tab-list-end {
  justify-content: flex-end;
}

.ziom-tab-list-stretch .ziom-tab {
  flex: 1;
}

/* ========================================
 * TAB ITEM
 * ======================================== */

.ziom-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ziom-space-2);
  padding: var(--ziom-space-3) var(--ziom-space-4);
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-secondary);
  text-decoration: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
  white-space: nowrap;
}

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

.ziom-tab.active,
.ziom-tab[aria-selected="true"] {
  color: var(--ziom-primary);
  border-bottom-color: var(--ziom-primary);
}

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

.ziom-tab:disabled,
.ziom-tab.disabled {
  color: var(--ziom-text-tertiary);
  cursor: not-allowed;
}

/* Tab with icon */
.ziom-tab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Tab with badge */
.ziom-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  font-size: 10px;
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-inverse);
  background: var(--ziom-gray-400);
  border-radius: var(--ziom-radius-full);
}

.ziom-tab.active .ziom-tab-badge {
  background: var(--ziom-primary);
}

/* ========================================
 * TAB CONTENT / PANELS
 * ======================================== */

.ziom-tab-panels {
  padding: var(--ziom-space-4) 0;
}

.ziom-tab-panel {
  display: none;
}

.ziom-tab-panel.active,
.ziom-tab-panel[aria-hidden="false"] {
  display: block;
}

/* Animated tab panels */
.ziom-tab-panel-animated {
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--ziom-transition-fast);
}

.ziom-tab-panel-animated.active {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
 * TAB SIZES
 * ======================================== */

.ziom-tabs-sm .ziom-tab {
  padding: var(--ziom-space-2) var(--ziom-space-3);
  font-size: var(--ziom-text-xs);
}

.ziom-tabs-sm .ziom-tab svg {
  width: 14px;
  height: 14px;
}

.ziom-tabs-lg .ziom-tab {
  padding: var(--ziom-space-4) var(--ziom-space-5);
  font-size: var(--ziom-text-base);
}

.ziom-tabs-lg .ziom-tab svg {
  width: 18px;
  height: 18px;
}

/* ========================================
 * PILLS TABS
 * ======================================== */

.ziom-tabs-pills .ziom-tab-list {
  border-bottom: none;
  gap: var(--ziom-space-2);
}

.ziom-tabs-pills .ziom-tab {
  border-bottom: none;
  border-radius: var(--ziom-radius-md);
  margin-bottom: 0;
}

.ziom-tabs-pills .ziom-tab:hover {
  background: var(--ziom-gray-100);
}

.ziom-tabs-pills .ziom-tab.active {
  background: var(--ziom-primary);
  color: var(--ziom-text-inverse);
}

/* ========================================
 * BOXED TABS (Glass effect)
 * ======================================== */

.ziom-tabs-boxed .ziom-tab-list {
  border: none;
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-lg);
  padding: var(--ziom-space-1);
  gap: 0;
}

.ziom-tabs-boxed .ziom-tab {
  border-bottom: none;
  margin-bottom: 0;
  border-radius: var(--ziom-radius-md);
}

.ziom-tabs-boxed .ziom-tab:hover {
  background: var(--ziom-gray-100);
}

.ziom-tabs-boxed .ziom-tab.active {
  background: var(--ziom-bg-elevated);
  color: var(--ziom-text-primary);
  box-shadow: var(--ziom-shadow-sm);
}

/* ========================================
 * VERTICAL TABS
 * ======================================== */

.ziom-tabs-vertical {
  flex-direction: row;
}

.ziom-tabs-vertical .ziom-tab-list {
  flex-direction: column;
  border-bottom: none;
  border-right: 1px solid var(--ziom-glass-border-subtle);
  min-width: 180px;
  gap: 0;
}

.ziom-tabs-vertical .ziom-tab {
  justify-content: flex-start;
  border-bottom: none;
  border-right: 2px solid transparent;
  margin-bottom: 0;
  margin-right: -1px;
}

.ziom-tabs-vertical .ziom-tab.active {
  border-right-color: var(--ziom-primary);
}

.ziom-tabs-vertical .ziom-tab-panels {
  flex: 1;
  padding: 0 0 0 var(--ziom-space-4);
}

/* Vertical pills */
.ziom-tabs-vertical.ziom-tabs-pills .ziom-tab-list {
  border-right: none;
  gap: var(--ziom-space-1);
}

.ziom-tabs-vertical.ziom-tabs-pills .ziom-tab {
  border-right: none;
  margin-right: 0;
}

/* ========================================
 * TABS WITH OVERFLOW (Scrollable)
 * ======================================== */

.ziom-tabs-scrollable .ziom-tab-list {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ziom-tabs-scrollable .ziom-tab-list::-webkit-scrollbar {
  display: none;
}

/* ========================================
 * SEGMENT CONTROL (iOS style)
 * ======================================== */

.ziom-segment-control {
  display: inline-flex;
  background: var(--ziom-gray-100);
  border-radius: var(--ziom-radius-md);
  padding: 3px;
}

.ziom-segment-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ziom-space-1);
  padding: 6px var(--ziom-space-4);
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--ziom-radius-sm);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
  white-space: nowrap;
}

.ziom-segment-item:hover {
  color: var(--ziom-text-primary);
}

.ziom-segment-item.active {
  background: var(--ziom-bg-elevated);
  color: var(--ziom-text-primary);
  box-shadow: var(--ziom-shadow-sm);
}

.ziom-segment-item svg {
  width: 14px;
  height: 14px;
}

/* Segment control sizes */
.ziom-segment-control-sm {
  padding: 2px;
}

.ziom-segment-control-sm .ziom-segment-item {
  padding: 4px var(--ziom-space-3);
  font-size: var(--ziom-text-xs);
}

.ziom-segment-control-lg .ziom-segment-item {
  padding: var(--ziom-space-2) var(--ziom-space-5);
  font-size: var(--ziom-text-base);
}

/* Full width segment control */
.ziom-segment-control-full {
  width: 100%;
}

.ziom-segment-control-full .ziom-segment-item {
  flex: 1;
}

/* ========================================
 * DARK MODE OVERRIDES
 * ======================================== */

[data-theme="dark"] .ziom-tab:hover {
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .ziom-tabs-pills .ziom-tab:hover {
  background: var(--ziom-gray-200);
}

[data-theme="dark"] .ziom-tabs-boxed .ziom-tab-list {
  background: var(--ziom-glass-bg);
}

[data-theme="dark"] .ziom-tabs-boxed .ziom-tab:hover {
  background: var(--ziom-gray-200);
}

[data-theme="dark"] .ziom-tabs-boxed .ziom-tab.active {
  background: var(--ziom-gray-300);
}

[data-theme="dark"] .ziom-segment-control {
  background: var(--ziom-gray-200);
}

[data-theme="dark"] .ziom-segment-item.active {
  background: var(--ziom-gray-400);
}
/*
 * Ziom Theme - Accordion Components
 * Collapsible sections with glass effect
 */

/* ========================================
 * BASE ACCORDION
 * ======================================== */

.ziom-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--ziom-space-2);
}

/* ========================================
 * ACCORDION ITEM
 * ======================================== */

.ziom-accordion-item {
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-lg);
  overflow: hidden;
  transition: box-shadow var(--ziom-transition-fast);
}

.ziom-accordion-item:hover {
  box-shadow: var(--ziom-shadow-sm);
}

.ziom-accordion-item.open {
  box-shadow: var(--ziom-shadow-md);
}

/* ========================================
 * ACCORDION HEADER
 * ======================================== */

.ziom-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ziom-space-3);
  width: 100%;
  padding: var(--ziom-space-4);
  font-family: var(--ziom-font-family);
  font-size: var(--ziom-text-base);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
}

.ziom-accordion-header:hover {
  background: var(--ziom-gray-50);
}

.ziom-accordion-header:focus-visible {
  outline: 2px solid var(--ziom-primary);
  outline-offset: -2px;
}

/* Header with icon on left */
.ziom-accordion-header-content {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
  flex: 1;
  min-width: 0;
}

.ziom-accordion-header-icon {
  width: 20px;
  height: 20px;
  color: var(--ziom-text-secondary);
  flex-shrink: 0;
}

.ziom-accordion-title {
  font-weight: var(--ziom-font-medium);
}

.ziom-accordion-subtitle {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-normal);
  color: var(--ziom-text-secondary);
  margin-top: 2px;
}

/* ========================================
 * ACCORDION CHEVRON
 * ======================================== */

.ziom-accordion-chevron {
  width: 20px;
  height: 20px;
  color: var(--ziom-text-tertiary);
  flex-shrink: 0;
  transition: transform var(--ziom-transition-fast);
}

.ziom-accordion-item.open .ziom-accordion-chevron {
  transform: rotate(180deg);
}

/* ========================================
 * ACCORDION BODY
 * ======================================== */

.ziom-accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--ziom-transition-normal);
}

.ziom-accordion-item.open .ziom-accordion-body {
  grid-template-rows: 1fr;
}

.ziom-accordion-body-content {
  overflow: hidden;
}

.ziom-accordion-body-inner {
  padding: 0 var(--ziom-space-4) var(--ziom-space-4);
  color: var(--ziom-text-secondary);
  font-size: var(--ziom-text-sm);
  line-height: var(--ziom-leading-relaxed);
}

/* Body with divider */
.ziom-accordion-body-divided {
  border-top: 1px solid var(--ziom-glass-border-subtle);
  padding-top: var(--ziom-space-4);
}

/* ========================================
 * ACCORDION VARIANTS
 * ======================================== */

/* Bordered (no gap) */
.ziom-accordion-bordered {
  gap: 0;
}

.ziom-accordion-bordered .ziom-accordion-item {
  border-radius: 0;
  margin-top: -1px;
}

.ziom-accordion-bordered .ziom-accordion-item:first-child {
  border-top-left-radius: var(--ziom-radius-lg);
  border-top-right-radius: var(--ziom-radius-lg);
  margin-top: 0;
}

.ziom-accordion-bordered .ziom-accordion-item:last-child {
  border-bottom-left-radius: var(--ziom-radius-lg);
  border-bottom-right-radius: var(--ziom-radius-lg);
}

/* Flush (no borders) */
.ziom-accordion-flush .ziom-accordion-item {
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-accordion-flush .ziom-accordion-item:last-child {
  border-bottom: none;
}

.ziom-accordion-flush .ziom-accordion-header {
  padding-left: 0;
  padding-right: 0;
}

.ziom-accordion-flush .ziom-accordion-body-inner {
  padding-left: 0;
  padding-right: 0;
}

/* Solid background */
.ziom-accordion-solid .ziom-accordion-item {
  background: var(--ziom-bg-elevated);
  backdrop-filter: none;
}

/* ========================================
 * ACCORDION SIZES
 * ======================================== */

.ziom-accordion-sm .ziom-accordion-header {
  padding: var(--ziom-space-3);
  font-size: var(--ziom-text-sm);
}

.ziom-accordion-sm .ziom-accordion-body-inner {
  padding: 0 var(--ziom-space-3) var(--ziom-space-3);
  font-size: var(--ziom-text-xs);
}

.ziom-accordion-sm .ziom-accordion-chevron,
.ziom-accordion-sm .ziom-accordion-header-icon {
  width: 16px;
  height: 16px;
}

.ziom-accordion-lg .ziom-accordion-header {
  padding: var(--ziom-space-5);
  font-size: var(--ziom-text-lg);
}

.ziom-accordion-lg .ziom-accordion-body-inner {
  padding: 0 var(--ziom-space-5) var(--ziom-space-5);
  font-size: var(--ziom-text-base);
}

/* ========================================
 * FAQ ACCORDION
 * ======================================== */

.ziom-faq {
  gap: var(--ziom-space-3);
}

.ziom-faq .ziom-accordion-header {
  font-size: var(--ziom-text-base);
  font-weight: var(--ziom-font-semibold);
}

.ziom-faq .ziom-accordion-body-inner {
  font-size: var(--ziom-text-base);
  line-height: var(--ziom-leading-relaxed);
}

/* ========================================
 * COLLAPSIBLE SECTION (Standalone)
 * ======================================== */

.ziom-collapsible {
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-lg);
  overflow: hidden;
}

.ziom-collapsible-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--ziom-space-4);
  font-family: var(--ziom-font-family);
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
}

.ziom-collapsible-trigger:hover {
  background: var(--ziom-gray-50);
}

.ziom-collapsible-icon {
  width: 16px;
  height: 16px;
  color: var(--ziom-text-tertiary);
  transition: transform var(--ziom-transition-fast);
}

.ziom-collapsible.open .ziom-collapsible-icon {
  transform: rotate(180deg);
}

.ziom-collapsible-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--ziom-transition-normal);
}

.ziom-collapsible.open .ziom-collapsible-content {
  grid-template-rows: 1fr;
}

.ziom-collapsible-content-inner {
  overflow: hidden;
}

.ziom-collapsible-body {
  padding: 0 var(--ziom-space-4) var(--ziom-space-4);
}

/* ========================================
 * DARK MODE OVERRIDES
 * ======================================== */

[data-theme="dark"] .ziom-accordion-header:hover {
  background: var(--ziom-gray-100);
}

[data-theme="dark"] .ziom-accordion-solid .ziom-accordion-item {
  background: var(--ziom-bg-elevated);
}

[data-theme="dark"] .ziom-collapsible-trigger:hover {
  background: var(--ziom-gray-100);
}
/*
 * Ziom Theme - List Components
 * Styled lists, list groups, and description lists
 */

/* ========================================
 * BASE LIST
 * ======================================== */

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

/* ========================================
 * SIMPLE LIST (UL/OL style)
 * ======================================== */

.ziom-list-simple {
  padding-left: var(--ziom-space-5);
}

.ziom-list-simple li {
  position: relative;
  padding: var(--ziom-space-1) 0;
  color: var(--ziom-text-primary);
  font-size: var(--ziom-text-base);
  line-height: var(--ziom-leading-relaxed);
}

/* Bullet list */
.ziom-list-bullet li::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--ziom-space-4));
  top: 0.75em;
  width: 6px;
  height: 6px;
  background: var(--ziom-primary);
  border-radius: var(--ziom-radius-full);
}

/* Check list */
.ziom-list-check li::before {
  content: '✓';
  position: absolute;
  left: calc(-1 * var(--ziom-space-5));
  color: var(--ziom-success);
  font-weight: var(--ziom-font-bold);
}

/* Numbered list */
.ziom-list-numbered {
  counter-reset: list-counter;
}

.ziom-list-numbered li {
  counter-increment: list-counter;
}

.ziom-list-numbered li::before {
  content: counter(list-counter) '.';
  position: absolute;
  left: calc(-1 * var(--ziom-space-5));
  color: var(--ziom-text-secondary);
  font-weight: var(--ziom-font-medium);
}

/* ========================================
 * LIST GROUP
 * ======================================== */

.ziom-list-group {
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-lg);
  overflow: hidden;
}

.ziom-list-group-item {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
  padding: var(--ziom-space-3) var(--ziom-space-4);
  color: var(--ziom-text-primary);
  font-size: var(--ziom-text-sm);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
  transition: background var(--ziom-transition-fast);
}

.ziom-list-group-item:last-child {
  border-bottom: none;
}

/* Interactive list items */
a.ziom-list-group-item,
button.ziom-list-group-item {
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

a.ziom-list-group-item:hover,
button.ziom-list-group-item:hover {
  background: var(--ziom-gray-50);
}

a.ziom-list-group-item:active,
button.ziom-list-group-item:active {
  background: var(--ziom-gray-100);
}

/* Active state */
.ziom-list-group-item.active {
  background: var(--ziom-primary-light);
  color: var(--ziom-primary);
}

/* Disabled state */
.ziom-list-group-item.disabled {
  color: var(--ziom-text-tertiary);
  cursor: not-allowed;
  pointer-events: none;
}

/* ========================================
 * LIST GROUP ITEM PARTS
 * ======================================== */

.ziom-list-group-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--ziom-text-secondary);
}

.ziom-list-group-content {
  flex: 1;
  min-width: 0;
}

.ziom-list-group-title {
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
}

.ziom-list-group-subtitle {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
  margin-top: 2px;
}

.ziom-list-group-action {
  flex-shrink: 0;
  color: var(--ziom-text-tertiary);
}

.ziom-list-group-item:hover .ziom-list-group-action {
  color: var(--ziom-text-secondary);
}

/* ========================================
 * LIST GROUP VARIANTS
 * ======================================== */

/* Flush (no outer border) */
.ziom-list-group-flush {
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
}

.ziom-list-group-flush .ziom-list-group-item:last-child {
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
}

/* Horizontal list group */
.ziom-list-group-horizontal {
  display: flex;
  flex-direction: row;
}

.ziom-list-group-horizontal .ziom-list-group-item {
  border-bottom: none;
  border-right: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-list-group-horizontal .ziom-list-group-item:last-child {
  border-right: none;
}

/* Spaced list group */
.ziom-list-group-spaced {
  background: transparent;
  backdrop-filter: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: var(--ziom-space-2);
}

.ziom-list-group-spaced .ziom-list-group-item {
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-md);
}

/* ========================================
 * LIST GROUP SIZES
 * ======================================== */

.ziom-list-group-sm .ziom-list-group-item {
  padding: var(--ziom-space-2) var(--ziom-space-3);
  font-size: var(--ziom-text-xs);
}

.ziom-list-group-sm .ziom-list-group-icon {
  width: 16px;
  height: 16px;
}

.ziom-list-group-lg .ziom-list-group-item {
  padding: var(--ziom-space-4) var(--ziom-space-5);
  font-size: var(--ziom-text-base);
}

/* ========================================
 * DESCRIPTION LIST
 * ======================================== */

.ziom-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--ziom-space-2) var(--ziom-space-4);
  margin: 0;
}

.ziom-dt {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-secondary);
}

.ziom-dd {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-primary);
  margin: 0;
}

/* Stacked description list */
.ziom-dl-stacked {
  display: flex;
  flex-direction: column;
  gap: var(--ziom-space-4);
}

.ziom-dl-stacked .ziom-dt {
  margin-bottom: var(--ziom-space-1);
}

/* Horizontal description list */
.ziom-dl-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ziom-space-6);
}

.ziom-dl-horizontal .ziom-dl-item {
  display: flex;
  flex-direction: column;
  gap: var(--ziom-space-1);
}

/* Description list with dividers */
.ziom-dl-divided .ziom-dl-item {
  padding-bottom: var(--ziom-space-3);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-dl-divided .ziom-dl-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

/* ========================================
 * KEY-VALUE LIST
 * ======================================== */

.ziom-kv-list {
  display: flex;
  flex-direction: column;
  gap: var(--ziom-space-3);
}

.ziom-kv-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--ziom-space-4);
}

.ziom-kv-key {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
  flex-shrink: 0;
}

.ziom-kv-value {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
  text-align: right;
}

/* With dividers */
.ziom-kv-list-divided .ziom-kv-item {
  padding-bottom: var(--ziom-space-3);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-kv-list-divided .ziom-kv-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

/* ========================================
 * TIMELINE LIST
 * ======================================== */

.ziom-timeline {
  position: relative;
  padding-left: var(--ziom-space-8);
}

.ziom-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ziom-gray-200);
}

.ziom-timeline-item {
  position: relative;
  padding-bottom: var(--ziom-space-6);
}

.ziom-timeline-item:last-child {
  padding-bottom: 0;
}

.ziom-timeline-marker {
  position: absolute;
  left: calc(-1 * var(--ziom-space-8) + 6px);
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--ziom-bg-elevated);
  border: 2px solid var(--ziom-gray-300);
  border-radius: var(--ziom-radius-full);
}

.ziom-timeline-marker-active {
  border-color: var(--ziom-primary);
  background: var(--ziom-primary);
}

.ziom-timeline-marker-success {
  border-color: var(--ziom-success);
  background: var(--ziom-success);
}

.ziom-timeline-content {
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-md);
  padding: var(--ziom-space-3) var(--ziom-space-4);
}

.ziom-timeline-title {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
}

.ziom-timeline-time {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-tertiary);
  margin-top: var(--ziom-space-1);
}

.ziom-timeline-description {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
  margin-top: var(--ziom-space-2);
}

/* ========================================
 * DARK MODE OVERRIDES
 * ======================================== */

[data-theme="dark"] a.ziom-list-group-item:hover,
[data-theme="dark"] button.ziom-list-group-item:hover {
  background: var(--ziom-gray-100);
}

[data-theme="dark"] a.ziom-list-group-item:active,
[data-theme="dark"] button.ziom-list-group-item:active {
  background: var(--ziom-gray-200);
}

[data-theme="dark"] .ziom-timeline::before {
  background: var(--ziom-gray-300);
}

[data-theme="dark"] .ziom-timeline-marker {
  background: var(--ziom-bg-elevated);
  border-color: var(--ziom-gray-400);
}
/*
 * Ziom Theme - Grid System
 * Responsive grid layout utilities
 */

/* ========================================
 * GRID CONTAINER
 * ======================================== */

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

/* ========================================
 * GRID COLUMNS
 * ======================================== */

.ziom-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.ziom-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ziom-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ziom-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ziom-grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ziom-grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ziom-grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ziom-grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.ziom-grid-cols-9 { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.ziom-grid-cols-10 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.ziom-grid-cols-11 { grid-template-columns: repeat(11, minmax(0, 1fr)); }
.ziom-grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* Auto-fit and auto-fill */
.ziom-grid-cols-auto-fit { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.ziom-grid-cols-auto-fill { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* ========================================
 * GRID GAP
 * ======================================== */

.ziom-grid-gap-0 { gap: 0; }
.ziom-grid-gap-1 { gap: var(--ziom-space-1); }
.ziom-grid-gap-2 { gap: var(--ziom-space-2); }
.ziom-grid-gap-3 { gap: var(--ziom-space-3); }
.ziom-grid-gap-4 { gap: var(--ziom-space-4); }
.ziom-grid-gap-5 { gap: var(--ziom-space-5); }
.ziom-grid-gap-6 { gap: var(--ziom-space-6); }
.ziom-grid-gap-8 { gap: var(--ziom-space-8); }

/* Column gap */
.ziom-grid-gap-x-0 { column-gap: 0; }
.ziom-grid-gap-x-2 { column-gap: var(--ziom-space-2); }
.ziom-grid-gap-x-4 { column-gap: var(--ziom-space-4); }
.ziom-grid-gap-x-6 { column-gap: var(--ziom-space-6); }

/* Row gap */
.ziom-grid-gap-y-0 { row-gap: 0; }
.ziom-grid-gap-y-2 { row-gap: var(--ziom-space-2); }
.ziom-grid-gap-y-4 { row-gap: var(--ziom-space-4); }
.ziom-grid-gap-y-6 { row-gap: var(--ziom-space-6); }

/* ========================================
 * GRID COLUMN SPAN
 * ======================================== */

.ziom-col-span-1 { grid-column: span 1 / span 1; }
.ziom-col-span-2 { grid-column: span 2 / span 2; }
.ziom-col-span-3 { grid-column: span 3 / span 3; }
.ziom-col-span-4 { grid-column: span 4 / span 4; }
.ziom-col-span-5 { grid-column: span 5 / span 5; }
.ziom-col-span-6 { grid-column: span 6 / span 6; }
.ziom-col-span-7 { grid-column: span 7 / span 7; }
.ziom-col-span-8 { grid-column: span 8 / span 8; }
.ziom-col-span-9 { grid-column: span 9 / span 9; }
.ziom-col-span-10 { grid-column: span 10 / span 10; }
.ziom-col-span-11 { grid-column: span 11 / span 11; }
.ziom-col-span-12 { grid-column: span 12 / span 12; }
.ziom-col-span-full { grid-column: 1 / -1; }

/* ========================================
 * GRID ROW SPAN
 * ======================================== */

.ziom-row-span-1 { grid-row: span 1 / span 1; }
.ziom-row-span-2 { grid-row: span 2 / span 2; }
.ziom-row-span-3 { grid-row: span 3 / span 3; }
.ziom-row-span-4 { grid-row: span 4 / span 4; }
.ziom-row-span-5 { grid-row: span 5 / span 5; }
.ziom-row-span-6 { grid-row: span 6 / span 6; }
.ziom-row-span-full { grid-row: 1 / -1; }

/* ========================================
 * FLEXBOX ROW
 * ======================================== */

.ziom-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(-1 * var(--ziom-space-2));
  margin-right: calc(-1 * var(--ziom-space-2));
}

.ziom-row > * {
  padding-left: var(--ziom-space-2);
  padding-right: var(--ziom-space-2);
}

/* Row gaps */
.ziom-row-gap-0 { margin-left: 0; margin-right: 0; }
.ziom-row-gap-0 > * { padding-left: 0; padding-right: 0; }

.ziom-row-gap-4 {
  margin-left: calc(-1 * var(--ziom-space-2));
  margin-right: calc(-1 * var(--ziom-space-2));
}
.ziom-row-gap-4 > * {
  padding-left: var(--ziom-space-2);
  padding-right: var(--ziom-space-2);
}

/* ========================================
 * FLEXBOX COLUMNS
 * ======================================== */

.ziom-col { flex: 1 0 0%; }
.ziom-col-auto { flex: 0 0 auto; width: auto; }

.ziom-col-1 { flex: 0 0 auto; width: 8.333333%; }
.ziom-col-2 { flex: 0 0 auto; width: 16.666667%; }
.ziom-col-3 { flex: 0 0 auto; width: 25%; }
.ziom-col-4 { flex: 0 0 auto; width: 33.333333%; }
.ziom-col-5 { flex: 0 0 auto; width: 41.666667%; }
.ziom-col-6 { flex: 0 0 auto; width: 50%; }
.ziom-col-7 { flex: 0 0 auto; width: 58.333333%; }
.ziom-col-8 { flex: 0 0 auto; width: 66.666667%; }
.ziom-col-9 { flex: 0 0 auto; width: 75%; }
.ziom-col-10 { flex: 0 0 auto; width: 83.333333%; }
.ziom-col-11 { flex: 0 0 auto; width: 91.666667%; }
.ziom-col-12 { flex: 0 0 auto; width: 100%; }

/* ========================================
 * RESPONSIVE GRID (Medium breakpoint: 768px)
 * ======================================== */

@media (min-width: 768px) {
  .ziom-md-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .ziom-md-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ziom-md-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ziom-md-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ziom-md-grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ziom-md-grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .ziom-md-col-span-1 { grid-column: span 1 / span 1; }
  .ziom-md-col-span-2 { grid-column: span 2 / span 2; }
  .ziom-md-col-span-3 { grid-column: span 3 / span 3; }
  .ziom-md-col-span-4 { grid-column: span 4 / span 4; }
  .ziom-md-col-span-5 { grid-column: span 5 / span 5; }
  .ziom-md-col-span-6 { grid-column: span 6 / span 6; }

  .ziom-md-col-1 { flex: 0 0 auto; width: 8.333333%; }
  .ziom-md-col-2 { flex: 0 0 auto; width: 16.666667%; }
  .ziom-md-col-3 { flex: 0 0 auto; width: 25%; }
  .ziom-md-col-4 { flex: 0 0 auto; width: 33.333333%; }
  .ziom-md-col-5 { flex: 0 0 auto; width: 41.666667%; }
  .ziom-md-col-6 { flex: 0 0 auto; width: 50%; }
  .ziom-md-col-7 { flex: 0 0 auto; width: 58.333333%; }
  .ziom-md-col-8 { flex: 0 0 auto; width: 66.666667%; }
  .ziom-md-col-9 { flex: 0 0 auto; width: 75%; }
  .ziom-md-col-10 { flex: 0 0 auto; width: 83.333333%; }
  .ziom-md-col-11 { flex: 0 0 auto; width: 91.666667%; }
  .ziom-md-col-12 { flex: 0 0 auto; width: 100%; }
}

/* ========================================
 * RESPONSIVE GRID (Large breakpoint: 1024px)
 * ======================================== */

@media (min-width: 1024px) {
  .ziom-lg-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .ziom-lg-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ziom-lg-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ziom-lg-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ziom-lg-grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ziom-lg-grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .ziom-lg-col-span-1 { grid-column: span 1 / span 1; }
  .ziom-lg-col-span-2 { grid-column: span 2 / span 2; }
  .ziom-lg-col-span-3 { grid-column: span 3 / span 3; }
  .ziom-lg-col-span-4 { grid-column: span 4 / span 4; }
  .ziom-lg-col-span-5 { grid-column: span 5 / span 5; }
  .ziom-lg-col-span-6 { grid-column: span 6 / span 6; }

  .ziom-lg-col-1 { flex: 0 0 auto; width: 8.333333%; }
  .ziom-lg-col-2 { flex: 0 0 auto; width: 16.666667%; }
  .ziom-lg-col-3 { flex: 0 0 auto; width: 25%; }
  .ziom-lg-col-4 { flex: 0 0 auto; width: 33.333333%; }
  .ziom-lg-col-5 { flex: 0 0 auto; width: 41.666667%; }
  .ziom-lg-col-6 { flex: 0 0 auto; width: 50%; }
  .ziom-lg-col-7 { flex: 0 0 auto; width: 58.333333%; }
  .ziom-lg-col-8 { flex: 0 0 auto; width: 66.666667%; }
  .ziom-lg-col-9 { flex: 0 0 auto; width: 75%; }
  .ziom-lg-col-10 { flex: 0 0 auto; width: 83.333333%; }
  .ziom-lg-col-11 { flex: 0 0 auto; width: 91.666667%; }
  .ziom-lg-col-12 { flex: 0 0 auto; width: 100%; }
}

/* ========================================
 * RESPONSIVE GRID (XL breakpoint: 1280px)
 * ======================================== */

@media (min-width: 1280px) {
  .ziom-xl-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .ziom-xl-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ziom-xl-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ziom-xl-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ziom-xl-grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ziom-xl-grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .ziom-xl-col-span-1 { grid-column: span 1 / span 1; }
  .ziom-xl-col-span-2 { grid-column: span 2 / span 2; }
  .ziom-xl-col-span-3 { grid-column: span 3 / span 3; }
  .ziom-xl-col-span-4 { grid-column: span 4 / span 4; }
  .ziom-xl-col-span-5 { grid-column: span 5 / span 5; }
  .ziom-xl-col-span-6 { grid-column: span 6 / span 6; }
}

/* ========================================
 * DISPLAY UTILITIES
 * ======================================== */

.ziom-hidden { display: none; }
.ziom-block { display: block; }
.ziom-inline { display: inline; }
.ziom-inline-block { display: inline-block; }
.ziom-flex { display: flex; }
.ziom-inline-flex { display: inline-flex; }
.ziom-grid-display { display: grid; }

/* Responsive display */
@media (max-width: 767px) {
  .ziom-sm-hidden { display: none; }
  .ziom-sm-block { display: block; }
  .ziom-sm-flex { display: flex; }
}

@media (min-width: 768px) {
  .ziom-md-hidden { display: none; }
  .ziom-md-block { display: block; }
  .ziom-md-flex { display: flex; }
}

@media (min-width: 1024px) {
  .ziom-lg-hidden { display: none; }
  .ziom-lg-block { display: block; }
  .ziom-lg-flex { display: flex; }
}

/* ========================================
 * FLEXBOX UTILITIES
 * ======================================== */

.ziom-flex-row { flex-direction: row; }
.ziom-flex-row-reverse { flex-direction: row-reverse; }
.ziom-flex-col { flex-direction: column; }
.ziom-flex-col-reverse { flex-direction: column-reverse; }

.ziom-flex-nowrap { flex-wrap: nowrap; }
.ziom-flex-wrap { flex-wrap: wrap; }
.ziom-flex-wrap-reverse { flex-wrap: wrap-reverse; }

.ziom-items-start { align-items: flex-start; }
.ziom-items-center { align-items: center; }
.ziom-items-end { align-items: flex-end; }
.ziom-items-stretch { align-items: stretch; }
.ziom-items-baseline { align-items: baseline; }

.ziom-justify-start { justify-content: flex-start; }
.ziom-justify-center { justify-content: center; }
.ziom-justify-end { justify-content: flex-end; }
.ziom-justify-between { justify-content: space-between; }
.ziom-justify-around { justify-content: space-around; }
.ziom-justify-evenly { justify-content: space-evenly; }

.ziom-self-start { align-self: flex-start; }
.ziom-self-center { align-self: center; }
.ziom-self-end { align-self: flex-end; }
.ziom-self-stretch { align-self: stretch; }

.ziom-flex-grow { flex-grow: 1; }
.ziom-flex-grow-0 { flex-grow: 0; }
.ziom-flex-shrink { flex-shrink: 1; }
.ziom-flex-shrink-0 { flex-shrink: 0; }

/* ========================================
 * SPACING UTILITIES (Extended)
 * ======================================== */

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

/* Margin X (horizontal) */
.ziom-mx-0 { margin-left: 0; margin-right: 0; }
.ziom-mx-1 { margin-left: var(--ziom-space-1); margin-right: var(--ziom-space-1); }
.ziom-mx-2 { margin-left: var(--ziom-space-2); margin-right: var(--ziom-space-2); }
.ziom-mx-3 { margin-left: var(--ziom-space-3); margin-right: var(--ziom-space-3); }
.ziom-mx-4 { margin-left: var(--ziom-space-4); margin-right: var(--ziom-space-4); }
.ziom-mx-6 { margin-left: var(--ziom-space-6); margin-right: var(--ziom-space-6); }
.ziom-mx-auto { margin-left: auto; margin-right: auto; }

/* Margin Y (vertical) */
.ziom-my-0 { margin-top: 0; margin-bottom: 0; }
.ziom-my-1 { margin-top: var(--ziom-space-1); margin-bottom: var(--ziom-space-1); }
.ziom-my-2 { margin-top: var(--ziom-space-2); margin-bottom: var(--ziom-space-2); }
.ziom-my-3 { margin-top: var(--ziom-space-3); margin-bottom: var(--ziom-space-3); }
.ziom-my-4 { margin-top: var(--ziom-space-4); margin-bottom: var(--ziom-space-4); }
.ziom-my-6 { margin-top: var(--ziom-space-6); margin-bottom: var(--ziom-space-6); }

/* Margin Left */
.ziom-ml-0 { margin-left: 0; }
.ziom-ml-1 { margin-left: var(--ziom-space-1); }
.ziom-ml-2 { margin-left: var(--ziom-space-2); }
.ziom-ml-3 { margin-left: var(--ziom-space-3); }
.ziom-ml-4 { margin-left: var(--ziom-space-4); }
.ziom-ml-6 { margin-left: var(--ziom-space-6); }
.ziom-ml-auto { margin-left: auto; }

/* Margin Right */
.ziom-mr-0 { margin-right: 0; }
.ziom-mr-1 { margin-right: var(--ziom-space-1); }
.ziom-mr-2 { margin-right: var(--ziom-space-2); }
.ziom-mr-3 { margin-right: var(--ziom-space-3); }
.ziom-mr-4 { margin-right: var(--ziom-space-4); }
.ziom-mr-6 { margin-right: var(--ziom-space-6); }
.ziom-mr-auto { margin-right: auto; }

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

/* Padding X (horizontal) */
.ziom-px-0 { padding-left: 0; padding-right: 0; }
.ziom-px-1 { padding-left: var(--ziom-space-1); padding-right: var(--ziom-space-1); }
.ziom-px-2 { padding-left: var(--ziom-space-2); padding-right: var(--ziom-space-2); }
.ziom-px-3 { padding-left: var(--ziom-space-3); padding-right: var(--ziom-space-3); }
.ziom-px-5 { padding-left: var(--ziom-space-5); padding-right: var(--ziom-space-5); }
.ziom-px-6 { padding-left: var(--ziom-space-6); padding-right: var(--ziom-space-6); }

/* Padding Y (vertical) */
.ziom-py-0 { padding-top: 0; padding-bottom: 0; }
.ziom-py-1 { padding-top: var(--ziom-space-1); padding-bottom: var(--ziom-space-1); }
.ziom-py-2 { padding-top: var(--ziom-space-2); padding-bottom: var(--ziom-space-2); }
.ziom-py-3 { padding-top: var(--ziom-space-3); padding-bottom: var(--ziom-space-3); }
.ziom-py-5 { padding-top: var(--ziom-space-5); padding-bottom: var(--ziom-space-5); }
.ziom-py-6 { padding-top: var(--ziom-space-6); padding-bottom: var(--ziom-space-6); }

/* ========================================
 * WIDTH & HEIGHT UTILITIES
 * ======================================== */

.ziom-w-full { width: 100%; }
.ziom-w-auto { width: auto; }
.ziom-w-screen { width: 100vw; }

.ziom-h-full { height: 100%; }
.ziom-h-auto { height: auto; }
.ziom-h-screen { height: 100vh; }

.ziom-min-w-0 { min-width: 0; }
.ziom-min-h-0 { min-height: 0; }
.ziom-min-h-screen { min-height: 100vh; }

.ziom-max-w-sm { max-width: 24rem; }
.ziom-max-w-md { max-width: 28rem; }
.ziom-max-w-lg { max-width: 32rem; }
.ziom-max-w-xl { max-width: 36rem; }
.ziom-max-w-2xl { max-width: 42rem; }
.ziom-max-w-3xl { max-width: 48rem; }
.ziom-max-w-4xl { max-width: 56rem; }
.ziom-max-w-5xl { max-width: 64rem; }
.ziom-max-w-6xl { max-width: 72rem; }
.ziom-max-w-7xl { max-width: 80rem; }
.ziom-max-w-full { max-width: 100%; }

/* ========================================
 * ASPECT RATIO
 * ======================================== */

.ziom-aspect-auto { aspect-ratio: auto; }
.ziom-aspect-square { aspect-ratio: 1 / 1; }
.ziom-aspect-video { aspect-ratio: 16 / 9; }
.ziom-aspect-4-3 { aspect-ratio: 4 / 3; }
.ziom-aspect-3-2 { aspect-ratio: 3 / 2; }

/* ========================================
 * OVERFLOW
 * ======================================== */

.ziom-overflow-auto { overflow: auto; }
.ziom-overflow-hidden { overflow: hidden; }
.ziom-overflow-visible { overflow: visible; }
.ziom-overflow-scroll { overflow: scroll; }
.ziom-overflow-x-auto { overflow-x: auto; }
.ziom-overflow-y-auto { overflow-y: auto; }
/*
 * Ziom Theme - Website Leads Components
 * Specific styles for website leads table
 */

/* ========================================
 * MESSAGE PREVIEW
 * ======================================== */

.ziom-message-preview {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
}

.ziom-message-container {
  max-width: 100%;
}

/* ========================================
 * UTM DATA ROW
 * ======================================== */

.ziom-utm-row td {
  padding: 0 !important;
}

.ziom-utm-container {
  padding: var(--ziom-space-3);
  background: var(--ziom-gray-50);
  border-radius: var(--ziom-radius-md);
  max-width: 100%;
  overflow-x: auto;
}

.ziom-utm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--ziom-space-2);
}

.ziom-utm-title {
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--ziom-tracking-wide);
  margin: 0;
}

/* ========================================
 * UTM TABLE
 * ======================================== */

.ziom-utm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--ziom-text-xs);
}

.ziom-utm-table td {
  padding: 2px var(--ziom-space-2) 2px 0;
  vertical-align: top;
  border: none;
}

.ziom-utm-key {
  color: var(--ziom-text-tertiary);
  min-width: 100px;
  font-weight: var(--ziom-font-medium);
}

.ziom-utm-value {
  word-break: break-all;
  color: var(--ziom-text-primary);
}

.ziom-utm-raw {
  font-size: var(--ziom-text-xs);
  max-height: 200px;
  overflow-y: auto;
  background: var(--ziom-bg-elevated);
  padding: var(--ziom-space-2);
  margin: 0;
  border-radius: var(--ziom-radius-sm);
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ========================================
 * LEAD ROW
 * ======================================== */

.ziom-lead-row {
  cursor: pointer;
}

.ziom-lead-row:hover {
  background: var(--ziom-primary-light);
}

/* ========================================
 * COMPACT EMAIL STATUS
 * ======================================== */

.ziom-email-status {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ziom-email-status-time {
  font-size: 10px;
  color: var(--ziom-text-tertiary);
}

.ziom-email-status-reason {
  font-size: 10px;
  color: var(--ziom-danger);
  line-height: 1.2;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========================================
 * ASSIGNED ICON
 * ======================================== */

.ziom-assigned-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ziom-assigned-icon-yes {
  color: var(--ziom-success);
}

.ziom-assigned-icon-no {
  color: var(--ziom-gray-300);
}
/*
 * Ziom Theme - Customers Index
 * Compact customer listing styles
 */

/* ========================================
 * CUSTOMER STATS GRID
 * ======================================== */

.ziom-customer-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ziom-space-3);
}

@media (max-width: 1024px) {
  .ziom-customer-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .ziom-customer-stats {
    grid-template-columns: 1fr;
  }
}

/* ========================================
 * COMPACT STAT CARD
 * ======================================== */

.ziom-stat-mini {
  display: flex;
  align-items: flex-start;
  gap: var(--ziom-space-3);
  padding: var(--ziom-space-2);
}

.ziom-stat-mini-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--ziom-radius-md);
  flex-shrink: 0;
}

.ziom-stat-mini-icon svg {
  width: 20px;
  height: 20px;
}

.ziom-stat-mini-icon-default {
  background: var(--ziom-gray-100);
  color: var(--ziom-gray-500);
}

.ziom-stat-mini-icon-danger {
  background: var(--ziom-danger-light);
  color: var(--ziom-danger);
}

.ziom-stat-mini-icon-success {
  background: var(--ziom-success-light);
  color: var(--ziom-success);
}

.ziom-stat-mini-icon-warning {
  background: var(--ziom-warning-light);
  color: var(--ziom-warning);
}

.ziom-stat-mini-content {
  flex: 1;
  min-width: 0;
}

.ziom-stat-mini-label {
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--ziom-tracking-wide);
}

.ziom-stat-mini-value {
  font-size: var(--ziom-text-xl);
  font-weight: var(--ziom-font-bold);
  color: var(--ziom-text-primary);
  letter-spacing: var(--ziom-tracking-tight);
}

/* ========================================
 * CLEANUP FILTERS BAR
 * ======================================== */

.ziom-cleanup-bar {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
  flex-wrap: wrap;
  padding: var(--ziom-space-3) var(--ziom-space-4);
  background: var(--ziom-info-light);
  border-radius: var(--ziom-radius-md);
}

.ziom-cleanup-bar-label {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
}

.ziom-cleanup-bar-count {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
  margin-left: auto;
}

/* ========================================
 * BULK ACTIONS BAR
 * ======================================== */

.ziom-bulk-actions {
  display: none;
  align-items: center;
  gap: var(--ziom-space-3);
  padding: var(--ziom-space-3) var(--ziom-space-4);
  background: var(--ziom-primary-light);
  border-radius: var(--ziom-radius-md);
}

.ziom-bulk-actions.visible {
  display: flex;
}

.ziom-bulk-actions-label {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-primary);
}

/* ========================================
 * CUSTOMER TABLE
 * ======================================== */

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

.ziom-customer-table th {
  padding: var(--ziom-space-2) var(--ziom-space-3);
}

.ziom-customer-table td {
  padding: var(--ziom-space-2) var(--ziom-space-3);
}

.ziom-customer-table .col-checkbox {
  width: 36px;
  text-align: center;
}

.ziom-customer-table .col-date {
  width: 80px;
  white-space: nowrap;
}

.ziom-customer-table .col-count {
  width: 45px;
  text-align: center;
}

.ziom-customer-table .col-phone {
  width: 100px;
  white-space: nowrap;
}

.ziom-customer-table .col-risk {
  width: 40px;
  text-align: center;
}

.ziom-customer-table .col-status {
  width: 110px;
}

/* Extra compact table */
.ziom-customer-table.ziom-table-compact th,
.ziom-customer-table.ziom-table-compact td {
  padding: 6px 8px;
  font-size: 12px;
}

/* Extra small badge */
.ziom-badge-xs {
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
}

/* Spam row highlight */
.ziom-customer-table tbody tr.spam-row {
  background: var(--ziom-danger-light);
}

.ziom-customer-table tbody tr.spam-row:hover {
  background: rgba(255, 59, 48, 0.15);
}

/* Inline edit button */
.ziom-inline-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  margin-left: 4px;
  background: transparent;
  border: none;
  color: var(--ziom-text-tertiary);
  cursor: pointer;
  opacity: 0;
  transition: all var(--ziom-transition-fast);
  border-radius: var(--ziom-radius-xs);
  vertical-align: middle;
}

.ziom-inline-edit-btn:hover {
  background: var(--ziom-gray-100);
  color: var(--ziom-primary);
}

td:hover .ziom-inline-edit-btn,
.ziom-inline-edit-btn:focus {
  opacity: 1;
}

/* Status select compact */
.ziom-customer-table .ziom-select-sm {
  padding: 4px 28px 4px 8px;
  font-size: 12px;
  min-width: 100px;
}

/* Sort link */
.ziom-sort-link {
  color: var(--ziom-text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-1);
}

.ziom-sort-link:hover {
  color: var(--ziom-text-primary);
}

/* ========================================
 * FILTERS BAR COMPACT
 * ======================================== */

.ziom-filters-bar {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
  flex-wrap: wrap;
}

.ziom-filters-bar .ziom-input-icon-wrapper {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.ziom-filters-bar .ziom-select-sm {
  width: auto;
  min-width: 140px;
}

.ziom-filter-toggles {
  display: flex;
  gap: 0;
  border-radius: var(--ziom-radius-md);
  overflow: hidden;
  border: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-filter-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  background: var(--ziom-glass-bg);
  border: none;
  color: var(--ziom-text-secondary);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
}

.ziom-filter-toggle:not(:last-child) {
  border-right: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-filter-toggle:hover {
  background: var(--ziom-gray-100);
}

.ziom-filter-toggle.active {
  background: var(--ziom-primary);
  color: white;
}

.ziom-filter-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ziom-filter-toggle:has(input:checked) {
  background: var(--ziom-primary);
  color: white;
}

/* ========================================
 * TOAST
 * ======================================== */

.ziom-toast-container {
  position: fixed;
  bottom: var(--ziom-space-4);
  right: var(--ziom-space-4);
  z-index: var(--ziom-z-toast);
}

.ziom-toast {
  background: var(--ziom-bg-elevated);
  border-radius: var(--ziom-radius-md);
  box-shadow: var(--ziom-shadow-lg);
  overflow: hidden;
  min-width: 280px;
}

.ziom-toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ziom-space-3) var(--ziom-space-4);
  background: var(--ziom-gray-50);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-toast-title {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
}

.ziom-toast-body {
  padding: var(--ziom-space-3) var(--ziom-space-4);
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
}

/* Spinner animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ========================================
 * CUSTOMER SHOW PAGE
 * ======================================== */

/* Profile Container */
.ziom-customer-profile {
  max-width: 1400px;
  margin: 0 auto;
}

/* ========================================
 * CUSTOMER HEADER
 * ======================================== */

.ziom-customer-header {
  display: flex;
  flex-direction: column;
  gap: var(--ziom-space-3);
}

.ziom-customer-name {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
}

.ziom-customer-name h1 {
  font-size: var(--ziom-text-2xl);
  font-weight: var(--ziom-font-bold);
  color: var(--ziom-text-primary);
  margin: 0;
}

.ziom-customer-email {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
}

.ziom-customer-email h2 {
  font-size: var(--ziom-text-lg);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-secondary);
  margin: 0;
}

.ziom-customer-status {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
}

.ziom-customer-status-label {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-tertiary);
}

.ziom-customer-status .ziom-select {
  width: auto;
  min-width: 120px;
}

/* Associated Emails */
.ziom-associated-emails {
  margin-top: var(--ziom-space-3);
}

.ziom-associated-emails h3 {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-secondary);
  margin-bottom: var(--ziom-space-2);
}

.ziom-associated-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ziom-space-2);
}

.ziom-associated-item {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-2);
  padding: var(--ziom-space-1) var(--ziom-space-3);
  background: var(--ziom-gray-100);
  border-radius: var(--ziom-radius-full);
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
}

.ziom-associated-item button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--ziom-transition-fast);
}

.ziom-associated-item button:hover {
  opacity: 1;
}

/* Inline Edit Input */
.ziom-inline-edit-input {
  font-size: inherit;
  font-weight: inherit;
  padding: var(--ziom-space-1) var(--ziom-space-2);
  border: 1px solid var(--ziom-primary);
  border-radius: var(--ziom-radius-sm);
  outline: none;
  background: var(--ziom-bg-elevated);
}

/* ========================================
 * VERTICAL TIMELINE
 * ======================================== */

.ziom-timeline {
  position: relative;
  padding: var(--ziom-space-4) 0;
}

.ziom-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background: var(--ziom-gray-200);
}

.ziom-timeline-item {
  position: relative;
  padding-left: 48px;
  margin-bottom: var(--ziom-space-4);
}

.ziom-timeline-item:last-child {
  margin-bottom: 0;
}

.ziom-timeline-badge {
  position: absolute;
  left: 12px;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ziom-primary);
  border: 2px solid var(--ziom-bg-elevated);
  box-shadow: 0 0 0 2px var(--ziom-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ziom-timeline-badge svg {
  width: 10px;
  height: 10px;
  color: var(--ziom-text-inverse);
}

.ziom-timeline-content {
  background: var(--ziom-bg-elevated);
  border-radius: var(--ziom-radius-md);
  padding: var(--ziom-space-3);
  box-shadow: var(--ziom-shadow-xs);
  border: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-timeline-date {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
  margin-bottom: var(--ziom-space-2);
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-1);
  padding: 2px 6px;
  background: var(--ziom-gray-100);
  border-radius: var(--ziom-radius-xs);
}

.ziom-timeline-title {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  margin-bottom: var(--ziom-space-2);
  line-height: 1.3;
}

.ziom-timeline-title a {
  color: var(--ziom-text-primary);
  text-decoration: none;
}

.ziom-timeline-title a:hover {
  color: var(--ziom-primary);
}

.ziom-timeline-details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ziom-space-2);
  align-items: center;
}

.ziom-timeline-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: var(--ziom-gray-100);
  border-radius: var(--ziom-radius-xs);
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
}

.ziom-timeline-tag svg {
  width: 10px;
  height: 10px;
  color: var(--ziom-gray-400);
}

.ziom-timeline-tag a {
  color: inherit;
  text-decoration: none;
}

.ziom-timeline-tag a:hover {
  color: var(--ziom-primary);
}

/* ========================================
 * SECTION HEADERS
 * ======================================== */

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

.ziom-section-title {
  font-size: var(--ziom-text-lg);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin: 0;
}

/* ========================================
 * KANBAN BOARD
 * ======================================== */

.ziom-kanban {
  display: flex;
  gap: var(--ziom-space-3);
  overflow-x: auto;
  padding: var(--ziom-space-2) 0;
  min-height: 300px;
}

.ziom-kanban-column {
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.ziom-kanban-header {
  padding: var(--ziom-space-3);
  background: var(--ziom-bg-elevated);
  border-radius: var(--ziom-radius-md) var(--ziom-radius-md) 0 0;
  border: 1px solid var(--ziom-glass-border-subtle);
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.ziom-kanban-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--ziom-radius-md) var(--ziom-radius-md) 0 0;
}

.ziom-kanban-column:nth-child(1) .ziom-kanban-header::before { background: var(--ziom-primary); }
.ziom-kanban-column:nth-child(2) .ziom-kanban-header::before { background: var(--ziom-info); }
.ziom-kanban-column:nth-child(3) .ziom-kanban-header::before { background: var(--ziom-warning); }
.ziom-kanban-column:nth-child(4) .ziom-kanban-header::before { background: var(--ziom-success); }

.ziom-kanban-title {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin: 0;
}

.ziom-kanban-count {
  background: var(--ziom-gray-100);
  color: var(--ziom-text-secondary);
  padding: 2px 8px;
  border-radius: var(--ziom-radius-full);
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-medium);
}

.ziom-kanban-body {
  flex: 1;
  padding: var(--ziom-space-3);
  background: var(--ziom-gray-50);
  border-radius: 0 0 var(--ziom-radius-md) var(--ziom-radius-md);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: var(--ziom-space-3);
  overflow-y: auto;
  max-height: 500px;
}

/* ========================================
 * KANBAN CARD
 * ======================================== */

.ziom-kanban-card {
  background: var(--ziom-bg-elevated);
  border-radius: var(--ziom-radius-md);
  border: 1px solid var(--ziom-glass-border-subtle);
  overflow: hidden;
  transition: all var(--ziom-transition-fast);
}

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

.ziom-kanban-card-header {
  padding: var(--ziom-space-2) var(--ziom-space-3);
  background: var(--ziom-gray-50);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-kanban-card-id {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-tertiary);
}

.ziom-kanban-card-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ziom-primary);
  color: var(--ziom-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-semibold);
}

.ziom-kanban-card-body {
  padding: var(--ziom-space-3);
}

.ziom-kanban-card-title {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin-bottom: var(--ziom-space-2);
  line-height: 1.2;
}

.ziom-kanban-card-badges {
  display: flex;
  gap: var(--ziom-space-1);
  flex-wrap: wrap;
  margin-bottom: var(--ziom-space-2);
}

/* Progress Bar */
.ziom-progress {
  margin-bottom: var(--ziom-space-2);
}

.ziom-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--ziom-gray-200);
  border-radius: var(--ziom-radius-full);
  overflow: hidden;
  margin-bottom: 4px;
}

.ziom-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ziom-primary), var(--ziom-info));
  border-radius: var(--ziom-radius-full);
  transition: width var(--ziom-transition-normal);
}

.ziom-progress-text {
  font-size: 10px;
  color: var(--ziom-text-tertiary);
  text-align: center;
}

/* Stage Indicators */
.ziom-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ziom-space-1);
  margin-bottom: var(--ziom-space-2);
}

.ziom-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--ziom-space-1);
  border-radius: var(--ziom-radius-xs);
  transition: all var(--ziom-transition-fast);
}

.ziom-stage.completed {
  background: var(--ziom-success-light);
}

.ziom-stage.incomplete {
  background: var(--ziom-gray-100);
}

.ziom-stage-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ziom-stage.completed .ziom-stage-icon {
  background: var(--ziom-success);
  color: var(--ziom-text-inverse);
}

.ziom-stage.incomplete .ziom-stage-icon {
  background: var(--ziom-gray-300);
  color: var(--ziom-text-inverse);
}

.ziom-stage-icon svg {
  width: 10px;
  height: 10px;
}

.ziom-stage-label {
  font-size: 9px;
  font-weight: var(--ziom-font-medium);
  text-align: center;
  line-height: 1;
}

.ziom-stage.completed .ziom-stage-label {
  color: var(--ziom-success);
}

.ziom-stage.incomplete .ziom-stage-label {
  color: var(--ziom-text-tertiary);
}

/* Document Count */
.ziom-doc-count {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-1);
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-tertiary);
  margin-bottom: var(--ziom-space-2);
}

.ziom-doc-count svg {
  width: 12px;
  height: 12px;
  color: var(--ziom-gray-400);
}

/* Card Footer */
.ziom-kanban-card-footer {
  padding: var(--ziom-space-2) var(--ziom-space-3);
  background: var(--ziom-gray-50);
  border-top: 1px solid var(--ziom-glass-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ziom-kanban-card-date {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-tertiary);
}

/* ========================================
 * TOUR FEEDBACK GRID
 * ======================================== */

.ziom-feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ziom-space-4);
}

@media (max-width: 1024px) {
  .ziom-feedback-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ziom-feedback-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive Kanban */
@media (max-width: 1024px) {
  .ziom-kanban {
    flex-direction: column;
    gap: var(--ziom-space-4);
  }
  
  .ziom-kanban-column {
    min-width: auto;
    max-width: none;
  }
  
  .ziom-kanban-body {
    max-height: none;
  }
}
/*
 * Ziom Theme - Buildings Index
 * Compact glass-effect building list/grid
 */

/* ========================================
 * VIEW TOGGLE
 * ======================================== */

.ziom-buildings-view-toggle {
  display: flex;
  gap: var(--ziom-space-1);
}

.ziom-buildings-view-toggle .ziom-btn {
  padding: 6px 10px;
}

.ziom-buildings-view-toggle .ziom-btn.active {
  background: var(--ziom-primary);
  color: var(--ziom-text-inverse);
  border-color: var(--ziom-primary);
}

/* ========================================
 * BUILDING TABLE
 * ======================================== */

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

.ziom-buildings-table th {
  padding: var(--ziom-space-2) var(--ziom-space-3);
}

.ziom-buildings-table td {
  padding: var(--ziom-space-2) var(--ziom-space-3);
}

.ziom-buildings-table .building-name {
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
}

.ziom-buildings-table .building-address {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
}

.ziom-buildings-table .building-neighborhood {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-tertiary);
}

.ziom-buildings-table .building-orgs {
  font-size: 10px;
  color: var(--ziom-text-tertiary);
}

/* ========================================
 * DENSE TABLE VARIANT
 * ======================================== */

.ziom-buildings-table-dense {
  font-size: var(--ziom-text-xs);
}

.ziom-buildings-table-dense th {
  padding: 6px 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ziom-text-tertiary);
  font-weight: var(--ziom-font-medium);
  white-space: nowrap;
}

.ziom-buildings-table-dense td {
  padding: 6px 8px;
  vertical-align: middle;
  white-space: nowrap;
}

.ziom-buildings-table-dense tr {
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-buildings-table-dense tr:hover {
  background: var(--ziom-gray-50);
}

/* Truncated cells for long text */
.ziom-cell-truncate {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Right-aligned text (for numbers) */
.ziom-text-right {
  text-align: right;
}

/* Tertiary text color */
.ziom-text-tertiary {
  color: var(--ziom-text-tertiary);
}

/* Extra small button for dense tables */
.ziom-btn-xs {
  padding: 2px 4px;
  font-size: 10px;
  line-height: 1;
}

.ziom-btn-xs svg {
  width: 10px;
  height: 10px;
}

/* Dense table action buttons */
.ziom-buildings-table-dense .ziom-building-actions {
  gap: 2px;
}

.ziom-buildings-table-dense .ziom-building-actions .ziom-btn {
  padding: 2px 4px;
}

/* ========================================
 * STAT CELL (Table)
 * ======================================== */

.ziom-stat-cell {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-2);
}

.ziom-stat-cell .ziom-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--ziom-radius-sm);
  flex-shrink: 0;
}

.ziom-stat-cell span {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
}

/* ========================================
 * STAT ICON COLORS
 * ======================================== */

.ziom-stat-icon-info {
  background: var(--ziom-info-light);
  color: var(--ziom-info);
}

.ziom-stat-icon-warning {
  background: var(--ziom-warning-light);
  color: var(--ziom-warning);
}

.ziom-stat-icon-success {
  background: var(--ziom-success-light);
  color: var(--ziom-success);
}

.ziom-stat-icon-muted {
  background: var(--ziom-gray-100);
  color: var(--ziom-gray-500);
}

/* ========================================
 * ACTION BUTTONS
 * ======================================== */

.ziom-building-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-1);
}

.ziom-building-actions .ziom-btn {
  padding: 4px 6px;
  text-decoration: none;
}

.ziom-building-actions .ziom-btn-pinned {
  background: var(--ziom-primary-light);
  color: var(--ziom-primary);
  border-color: var(--ziom-primary);
}

/* ========================================
 * BUILDING CARD
 * ======================================== */

.ziom-building-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ziom-building-card-body {
  flex: 1;
  padding: var(--ziom-space-3);
}

.ziom-building-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--ziom-space-2);
  margin-bottom: var(--ziom-space-1);
}

.ziom-building-card-title {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin: 0;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.ziom-building-card-title a,
.ziom-building-card-title a:link,
.ziom-building-card-title a:visited,
.ziom-building-card-title a:hover,
.ziom-building-card-title a:active {
  color: inherit;
  text-decoration: none !important;
}

.ziom-building-card-title a:hover {
  color: var(--ziom-primary);
}

/* ========================================
 * CARD HEADER ICONS (pin, website, email)
 * ======================================== */

.ziom-building-card-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ziom-building-card-icons a,
.ziom-building-card-icons a:link,
.ziom-building-card-icons a:visited,
.ziom-building-card-icons a:hover,
.ziom-building-card-icons a:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  color: var(--ziom-text-tertiary);
  transition: color var(--ziom-transition-fast);
}

.ziom-building-card-icons a:hover {
  color: var(--ziom-primary);
}

.ziom-building-card-icons a.ziom-icon-link-success:hover {
  color: var(--ziom-success);
}

.ziom-building-card-icons svg {
  display: block;
}

/* ========================================
 * CARD ADDRESS & LOCATION
 * ======================================== */

.ziom-building-card-address {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
  margin-bottom: var(--ziom-space-1);
  line-height: 1.4;
}

.ziom-building-card-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--ziom-text-tertiary);
  margin-bottom: var(--ziom-space-2);
}

.ziom-building-card-location svg {
  flex-shrink: 0;
}

/* ========================================
 * CARD STATS ROW
 * ======================================== */

.ziom-building-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ziom-space-2);
  row-gap: var(--ziom-space-1);
}

.ziom-building-card-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--ziom-text-secondary);
}

.ziom-building-card-stat .ziom-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
}

.ziom-building-card-stat .ziom-stat-icon svg {
  width: 10px;
  height: 10px;
}

/* ========================================
 * CARD FOOTER
 * ======================================== */

.ziom-building-card-footer {
  padding: var(--ziom-space-2) var(--ziom-space-3);
  border-top: 1px solid var(--ziom-glass-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--ziom-space-2);
}

.ziom-building-card-token {
  font-family: var(--ziom-font-mono);
  font-size: 9px;
  color: var(--ziom-text-tertiary);
  background: var(--ziom-gray-100);
  padding: 2px 6px;
  border-radius: var(--ziom-radius-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

/* Footer action buttons */
.ziom-building-card-footer .ziom-building-actions .ziom-btn {
  padding: 3px 5px;
}

.ziom-building-card-footer .ziom-building-actions a,
.ziom-building-card-footer .ziom-building-actions a:link,
.ziom-building-card-footer .ziom-building-actions a:visited,
.ziom-building-card-footer .ziom-building-actions a:hover,
.ziom-building-card-footer .ziom-building-actions a:active,
.ziom-building-card-footer .ziom-building-actions button {
  text-decoration: none !important;
}

/* ========================================
 * CARD GRID
 * ======================================== */

.ziom-buildings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ziom-space-3);
}

@media (max-width: 1200px) {
  .ziom-buildings-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .ziom-buildings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .ziom-buildings-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
 * ICON LINKS (generic)
 * ======================================== */

.ziom-icon-link,
.ziom-icon-link:link,
.ziom-icon-link:visited,
.ziom-icon-link:hover,
.ziom-icon-link:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ziom-text-tertiary);
  text-decoration: none !important;
  transition: color var(--ziom-transition-fast);
}

.ziom-icon-link:hover {
  color: var(--ziom-primary);
}

.ziom-icon-link-success:hover {
  color: var(--ziom-success);
}

.ziom-icon-link svg {
  display: block;
}

/* ========================================
 * PIN ICON
 * ======================================== */

.ziom-pin-icon {
  color: var(--ziom-primary);
  display: inline-flex;
  align-items: center;
}

/* ========================================
 * BUILDING CARD LINK RESET
 * ======================================== */

.ziom-building-card a,
.ziom-building-card a:link,
.ziom-building-card a:visited,
.ziom-building-card a:hover,
.ziom-building-card a:active {
  text-decoration: none !important;
}

.ziom-building-card .ziom-btn,
.ziom-building-card .ziom-btn:hover {
  text-decoration: none !important;
}

/* Form button wrappers from button_to */
.ziom-building-card form {
  display: inline-flex;
}

.ziom-building-card form .ziom-btn {
  text-decoration: none !important;
}

/* Ensure SVGs in buttons don't cause issues */
.ziom-building-actions svg {
  display: block;
  pointer-events: none;
}

/* ========================================
 * BUILDINGS SEARCH FILTERS
 * ======================================== */

.ziom-buildings-filters {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  flex-wrap: wrap;
}

.ziom-buildings-filters .ziom-input-icon-wrapper {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}

.ziom-buildings-filters .ziom-input-icon-wrapper .ziom-input {
  padding-left: 36px;
  height: 36px;
}

/* ========================================
 * MULTI-SELECT TYPEAHEAD
 * ======================================== */

.ziom-multiselect {
  position: relative;
  min-width: 220px;
}

/* Trigger button */
.ziom-multiselect-trigger {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  padding: 6px var(--ziom-space-3);
  height: 36px;
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-md);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
  font-size: var(--ziom-text-sm);
}

.ziom-multiselect-trigger:hover {
  background: var(--ziom-glass-bg-hover);
  border-color: var(--ziom-gray-300);
}

.ziom-multiselect-icon {
  color: var(--ziom-text-tertiary);
  display: flex;
  align-items: center;
}

.ziom-multiselect-placeholder {
  flex: 1;
  color: var(--ziom-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ziom-multiselect-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--ziom-primary);
  color: white;
  font-size: 11px;
  font-weight: var(--ziom-font-semibold);
  border-radius: var(--ziom-radius-full);
}

.ziom-multiselect-chevron {
  color: var(--ziom-text-tertiary);
  display: flex;
  align-items: center;
  transition: transform var(--ziom-transition-fast);
}

/* Dropdown container */
.ziom-multiselect-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 280px;
  background: var(--ziom-bg-elevated);
  border: 1px solid var(--ziom-glass-border);
  border-radius: var(--ziom-radius-lg);
  box-shadow: var(--ziom-shadow-lg);
  z-index: 100;
  overflow: hidden;
}

/* Search input inside dropdown */
.ziom-multiselect-search {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  padding: var(--ziom-space-3);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-multiselect-search-icon {
  color: var(--ziom-text-tertiary);
  flex-shrink: 0;
}

.ziom-multiselect-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: var(--ziom-text-sm);
  background: transparent;
  color: var(--ziom-text-primary);
}

.ziom-multiselect-input::placeholder {
  color: var(--ziom-text-tertiary);
}

/* Clear all row */
.ziom-multiselect-clear-row {
  display: flex;
  padding: var(--ziom-space-2) var(--ziom-space-3);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-multiselect-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-secondary);
  background: var(--ziom-gray-100);
  border: none;
  border-radius: var(--ziom-radius-sm);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
}

.ziom-multiselect-clear-btn:hover {
  background: var(--ziom-gray-200);
  color: var(--ziom-text-primary);
}

/* Selected tags area */
.ziom-multiselect-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: var(--ziom-space-2) var(--ziom-space-3);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
  max-height: 120px;
  overflow-y: auto;
  background: var(--ziom-gray-50);
}

/* Individual tag pill - iOS style solid blue */
.ziom-multiselect-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 12px;
  background: var(--ziom-primary);
  color: white;
  font-size: 13px;
  font-weight: var(--ziom-font-medium);
  border-radius: var(--ziom-radius-full);
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 122, 255, 0.3);
}

.ziom-multiselect-tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  border-radius: var(--ziom-radius-full);
  color: white;
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
}

.ziom-multiselect-tag-remove:hover {
  background: rgba(255, 255, 255, 0.4);
}

.ziom-multiselect-tag-remove svg {
  display: block;
  width: 10px;
  height: 10px;
}

/* Options list */
.ziom-multiselect-options {
  max-height: 200px;
  overflow-y: auto;
}

/* Individual option */
.ziom-multiselect-option {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  padding: var(--ziom-space-2) var(--ziom-space-3);
  cursor: pointer;
  transition: background var(--ziom-transition-fast);
}

.ziom-multiselect-option:hover,
.ziom-multiselect-option.highlighted {
  background: var(--ziom-gray-50);
}

.ziom-multiselect-option.selected {
  background: var(--ziom-primary-light);
}

.ziom-multiselect-option.selected:hover,
.ziom-multiselect-option.selected.highlighted {
  background: var(--ziom-primary-light);
}

.ziom-multiselect-option-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: transparent;
  flex-shrink: 0;
}

.ziom-multiselect-option.selected .ziom-multiselect-option-check {
  color: var(--ziom-primary);
}

.ziom-multiselect-option-label {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-primary);
}

/* Hidden utility */
.ziom-multiselect .hidden {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ziom-buildings-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .ziom-buildings-filters .ziom-input-icon-wrapper {
    max-width: none;
  }
  
  .ziom-multiselect {
    width: 100%;
  }
  
  .ziom-multiselect-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: var(--ziom-radius-lg) var(--ziom-radius-lg) 0 0;
    max-height: 70vh;
  }
  
  .ziom-multiselect-options {
    max-height: 40vh;
  }
}

/* ========================================
 * FORM MAP CONTAINER
 * ======================================== */

.bu-map-container {
  height: 200px;
  border-radius: var(--ziom-radius-md);
  border: 1px solid var(--ziom-glass-border-subtle);
  overflow: hidden;
}
/*
 * Ziom Theme - Building Units
 * Compact building unit show page styles
 */

/* ========================================
 * KANBAN LAYOUT (Tour Feedbacks by Week)
 * ======================================== */

.bu-kanban-scroll {
  display: flex;
  gap: var(--ziom-space-4);
  overflow-x: auto;
  padding: var(--ziom-space-2) 0;
  -webkit-overflow-scrolling: touch;
}

.bu-kanban-column {
  min-width: 300px;
  max-width: 340px;
  flex: 0 0 300px;
  background: var(--ziom-gray-50);
  border-radius: var(--ziom-radius-md);
  padding: var(--ziom-space-3);
}

.bu-kanban-header {
  text-align: center;
  margin-bottom: var(--ziom-space-3);
  padding-bottom: var(--ziom-space-2);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
}

.bu-kanban-title {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin-bottom: var(--ziom-space-1);
}

.bu-kanban-badges {
  display: flex;
  justify-content: center;
  gap: var(--ziom-space-1);
  flex-wrap: wrap;
}

/* ========================================
 * FEEDBACK CARD (Compact)
 * ======================================== */

.bu-feedback-card {
  background: var(--ziom-bg-elevated);
  border-radius: var(--ziom-radius-md);
  border: 1px solid var(--ziom-glass-border-subtle);
  padding: var(--ziom-space-3);
  margin-bottom: var(--ziom-space-2);
}

.bu-feedback-card:last-child {
  margin-bottom: 0;
}

.bu-feedback-customer {
  margin-bottom: var(--ziom-space-2);
}

.bu-feedback-customer-name {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
}

.bu-feedback-customer-email,
.bu-feedback-customer-phone {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--ziom-space-1);
}

.bu-feedback-agent {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-tertiary);
  display: flex;
  align-items: center;
  gap: var(--ziom-space-1);
  margin-top: var(--ziom-space-1);
}

.bu-feedback-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ziom-space-1);
  margin-bottom: var(--ziom-space-2);
}

.bu-feedback-content {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-primary);
  line-height: var(--ziom-leading-normal);
  word-break: break-word;
}

.bu-feedback-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--ziom-space-2);
}

/* ========================================
 * FEEDBACK SUMMARY STATS
 * ======================================== */

.bu-summary-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ziom-space-4);
}

@media (max-width: 768px) {
  .bu-summary-stats {
    grid-template-columns: 1fr;
  }
}

.bu-summary-item {
  margin-bottom: var(--ziom-space-3);
}

.bu-summary-item:last-child {
  margin-bottom: 0;
}

.bu-summary-label {
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-medium);
  text-transform: uppercase;
  letter-spacing: var(--ziom-tracking-wide);
  color: var(--ziom-text-tertiary);
  margin-bottom: var(--ziom-space-1);
}

.bu-summary-value {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-primary);
}

/* ========================================
 * AI SUMMARY BOX
 * ======================================== */

.bu-ai-summary {
  margin-top: var(--ziom-space-4);
  padding-top: var(--ziom-space-4);
  border-top: 1px solid var(--ziom-glass-border-subtle);
}

.bu-ai-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--ziom-space-2);
}

.bu-ai-summary-title {
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-medium);
  text-transform: uppercase;
  letter-spacing: var(--ziom-tracking-wide);
  color: var(--ziom-text-tertiary);
}

.bu-ai-summary-content {
  background: var(--ziom-bg-elevated);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-md);
  padding: var(--ziom-space-3);
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
  min-height: 60px;
}

/* ========================================
 * SIMILAR UNITS TABLE
 * ======================================== */

.bu-similar-units .ziom-table td {
  vertical-align: middle;
}

.bu-unit-cell {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
}

.bu-unit-icon {
  color: var(--ziom-text-tertiary);
  flex-shrink: 0;
}

/* ========================================
 * UNIT INFO GRID (Building Unit Partial)
 * ======================================== */

.bu-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ziom-space-4);
}

@media (max-width: 768px) {
  .bu-info-grid {
    grid-template-columns: 1fr;
  }
}

.bu-info-section-title {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-secondary);
  margin-bottom: var(--ziom-space-3);
  text-transform: uppercase;
  letter-spacing: var(--ziom-tracking-wide);
}

.bu-info-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ziom-space-3);
}

.bu-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--ziom-space-2);
}

.bu-info-icon {
  color: var(--ziom-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.bu-info-icon-success {
  color: var(--ziom-success);
}

.bu-info-icon-info {
  color: var(--ziom-info);
}

.bu-info-icon-danger {
  color: var(--ziom-danger);
}

.bu-info-label {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-tertiary);
}

.bu-info-value {
  font-size: var(--ziom-text-base);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
}

/* ========================================
 * FLOOR PLAN & IMAGES
 * ======================================== */

.bu-floor-plan {
  margin-top: var(--ziom-space-4);
}

.bu-floor-plan-link {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-2);
  margin-bottom: var(--ziom-space-3);
}

.bu-floor-plan-thumbnail {
  max-width: 100%;
  border-radius: var(--ziom-radius-md);
  border: 1px solid var(--ziom-glass-border-subtle);
}

.bu-images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ziom-space-3);
  margin-top: var(--ziom-space-3);
}

@media (max-width: 768px) {
  .bu-images-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bu-images-grid img {
  width: 100%;
  border-radius: var(--ziom-radius-md);
  border: 1px solid var(--ziom-glass-border-subtle);
}

/* ========================================
 * UNIT SUMMARY CARD
 * ======================================== */

.bu-unit-summary {
  margin-top: var(--ziom-space-4);
}

/* ========================================
 * LOADING SPINNER
 * ======================================== */

.bu-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--ziom-gray-200);
  border-top-color: var(--ziom-primary);
  border-radius: 50%;
  animation: bu-spin 0.8s linear infinite;
}

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

.bu-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--ziom-space-4);
  gap: var(--ziom-space-2);
  color: var(--ziom-text-secondary);
  font-size: var(--ziom-text-sm);
}

/* ========================================
 * COMPACT BADGE VARIANTS
 * ======================================== */

.bu-badge-outline {
  background: transparent;
  border: 1px solid var(--ziom-gray-200);
  color: var(--ziom-text-secondary);
  font-weight: var(--ziom-font-normal);
}

.bu-badge-fav {
  border: 1.5px solid var(--ziom-text-primary);
  background: var(--ziom-bg-elevated);
  color: var(--ziom-text-primary);
}

/* ========================================
 * FORM IMAGE PREVIEWS
 * ======================================== */

.bu-image-thumbnail {
  border-radius: var(--ziom-radius-md);
  overflow: hidden;
  border: 1px solid var(--ziom-glass-border-subtle);
}

.bu-image-preview {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.bu-floor-plan-preview {
  max-width: 200px;
}

.bu-floor-plan-preview .bu-image-preview {
  height: auto;
  max-height: 150px;
}
/*
 * Ziom Theme - Dashboard Styles
 * Compact dashboard components
 */

/* ========================================
 * DASHBOARD CONTAINER
 * ======================================== */

.ziom-dashboard {
  max-width: 1400px;
  margin: 0 auto;
}

/* ========================================
 * DASHBOARD HEADER
 * ======================================== */

.ziom-dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ziom-space-4);
  margin-bottom: var(--ziom-space-4);
}

.ziom-dashboard-title {
  font-size: var(--ziom-text-2xl);
  font-weight: var(--ziom-font-bold);
  color: var(--ziom-text-primary);
  margin: 0;
}

.ziom-dashboard-subtitle {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
  margin-top: var(--ziom-space-1);
}

.ziom-dashboard-actions {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .ziom-dashboard-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .ziom-dashboard-actions {
    justify-content: flex-start;
  }
}

/* ========================================
 * STAT CARD WITH SEARCH
 * ======================================== */

.ziom-stat-search-card {
  display: flex;
  flex-direction: column;
  gap: var(--ziom-space-3);
  padding: var(--ziom-space-3);
}

.ziom-stat-search-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.ziom-stat-search-value {
  font-size: var(--ziom-text-2xl);
  font-weight: var(--ziom-font-bold);
  color: var(--ziom-primary);
  text-decoration: none;
  transition: opacity var(--ziom-transition-fast);
}

.ziom-stat-search-value:hover {
  opacity: 0.8;
}

.ziom-stat-search-value.text-success { color: var(--ziom-success); }
.ziom-stat-search-value.text-info { color: var(--ziom-info); }
.ziom-stat-search-value.text-warning { color: var(--ziom-warning); }

.ziom-stat-search-label {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
  margin-top: var(--ziom-space-1);
}

/* Compact search within stat card */
.ziom-stat-search-form {
  display: flex;
  align-items: center;
  background: var(--ziom-bg-elevated);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-full);
  padding: 0 var(--ziom-space-3);
  height: 32px;
  transition: all var(--ziom-transition-fast);
}

.ziom-stat-search-form:focus-within {
  border-color: var(--ziom-primary);
  box-shadow: 0 0 0 3px var(--ziom-primary-light);
}

.ziom-stat-search-form .ziom-search-icon {
  color: var(--ziom-text-tertiary);
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.ziom-stat-search-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-primary);
  outline: none;
  padding: 0 var(--ziom-space-2);
  min-width: 0;
}

.ziom-stat-search-form input::placeholder {
  color: var(--ziom-text-tertiary);
}

.ziom-stat-search-form button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--ziom-primary);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.ziom-stat-search-form button:hover {
  color: var(--ziom-primary-hover);
}

/* ========================================
 * DASHBOARD GRID
 * ======================================== */

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

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

.ziom-dashboard-grid-main {
  grid-template-columns: 2fr 1fr;
}

@media (max-width: 1024px) {
  .ziom-dashboard-grid-2,
  .ziom-dashboard-grid-main {
    grid-template-columns: 1fr;
  }
}

/* ========================================
 * RECENT SECTION
 * ======================================== */

.ziom-recent-section {
  display: flex;
  flex-direction: column;
}

.ziom-recent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ziom-space-3) var(--ziom-space-4);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-recent-title {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  font-size: var(--ziom-text-base);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin: 0;
}

.ziom-recent-title svg {
  width: 18px;
  height: 18px;
  color: var(--ziom-text-secondary);
}

.ziom-recent-body {
  flex: 1;
  padding: var(--ziom-space-2) 0;
}

/* ========================================
 * RECENT LIST ITEM
 * ======================================== */

.ziom-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ziom-space-3);
  padding: var(--ziom-space-2) var(--ziom-space-4);
  text-decoration: none;
  color: inherit;
  transition: background var(--ziom-transition-fast);
}

.ziom-recent-item:hover {
  background: var(--ziom-gray-50);
}

.ziom-recent-item-content {
  flex: 1;
  min-width: 0;
}

.ziom-recent-item-title {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ziom-recent-item-subtitle {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ziom-recent-item-meta {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-tertiary);
  flex-shrink: 0;
}

/* ========================================
 * BUILDING LIST ITEM (with actions)
 * ======================================== */

.ziom-building-item {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
  padding: var(--ziom-space-2) var(--ziom-space-4);
  transition: background var(--ziom-transition-fast);
}

.ziom-building-item:hover {
  background: var(--ziom-gray-50);
}

.ziom-building-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--ziom-primary-light);
  color: var(--ziom-primary);
  border-radius: var(--ziom-radius-md);
  flex-shrink: 0;
}

.ziom-building-item-icon svg {
  width: 16px;
  height: 16px;
}

.ziom-building-item-content {
  flex: 1;
  min-width: 0;
}

.ziom-building-item-title {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  margin: 0;
}

.ziom-building-item-title a {
  color: var(--ziom-text-primary);
  text-decoration: none;
}

.ziom-building-item-title a:hover {
  color: var(--ziom-primary);
}

.ziom-building-item-title svg {
  width: 12px;
  height: 12px;
  color: var(--ziom-primary);
}

.ziom-building-item-details {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
  margin-top: 2px;
}

.ziom-building-item-details span {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-1);
}

.ziom-building-item-details svg {
  width: 10px;
  height: 10px;
  color: var(--ziom-text-tertiary);
}

.ziom-building-item-actions {
  display: flex;
  gap: var(--ziom-space-1);
  flex-shrink: 0;
}

/* ========================================
 * COMPACT ACTION BUTTON
 * ======================================== */

.ziom-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-sm);
  color: var(--ziom-text-secondary);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
  text-decoration: none;
}

.ziom-action-btn:hover {
  background: var(--ziom-gray-100);
  color: var(--ziom-text-primary);
  transform: translateY(-1px);
}

.ziom-action-btn svg {
  width: 12px;
  height: 12px;
}

.ziom-action-btn-primary:hover {
  background: var(--ziom-primary-light);
  border-color: var(--ziom-primary);
  color: var(--ziom-primary);
}

.ziom-action-btn-success:hover {
  background: var(--ziom-success-light);
  border-color: var(--ziom-success);
  color: var(--ziom-success);
}

.ziom-action-btn-info:hover {
  background: var(--ziom-info-light);
  border-color: var(--ziom-info);
  color: var(--ziom-info);
}

/* ========================================
 * EMPTY STATE (compact)
 * ======================================== */

.ziom-empty-compact {
  text-align: center;
  padding: var(--ziom-space-6) var(--ziom-space-4);
}

.ziom-empty-compact-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--ziom-space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ziom-gray-100);
  border-radius: 50%;
  color: var(--ziom-text-tertiary);
}

.ziom-empty-compact-icon svg {
  width: 24px;
  height: 24px;
}

.ziom-empty-compact-title {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-secondary);
  margin-bottom: var(--ziom-space-1);
}

.ziom-empty-compact-text {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-tertiary);
  margin-bottom: var(--ziom-space-3);
}

/* ========================================
 * SALES DASHBOARD SPECIFIC
 * ======================================== */

/* Stat card with icon */
.ziom-stat-icon-card {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
  padding: var(--ziom-space-3);
}

.ziom-stat-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ziom-stat-icon-badge svg {
  width: 18px;
  height: 18px;
}

.ziom-stat-icon-badge-primary {
  background: var(--ziom-primary-light);
  color: var(--ziom-primary);
}

.ziom-stat-icon-badge-success {
  background: var(--ziom-success-light);
  color: var(--ziom-success);
}

.ziom-stat-icon-badge-info {
  background: var(--ziom-info-light);
  color: var(--ziom-info);
}

.ziom-stat-icon-badge-warning {
  background: var(--ziom-warning-light);
  color: var(--ziom-warning);
}

.ziom-stat-icon-content {
  flex: 1;
}

.ziom-stat-icon-value {
  font-size: var(--ziom-text-xl);
  font-weight: var(--ziom-font-bold);
  color: var(--ziom-text-primary);
}

.ziom-stat-icon-value-primary { color: var(--ziom-primary); }
.ziom-stat-icon-value-success { color: var(--ziom-success); }
.ziom-stat-icon-value-info { color: var(--ziom-info); }
.ziom-stat-icon-value-warning { color: var(--ziom-warning); }

.ziom-stat-icon-label {
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-secondary);
}

/* ========================================
 * COMPACT TABLE
 * ======================================== */

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

.ziom-dashboard-table th {
  padding: var(--ziom-space-2) var(--ziom-space-3);
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ziom-tracking-wide);
  color: var(--ziom-text-tertiary);
}

.ziom-dashboard-table td {
  padding: var(--ziom-space-2) var(--ziom-space-3);
}

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

.ziom-dashboard-table tbody tr:hover {
  background: var(--ziom-gray-50);
}

/* Table building cell */
.ziom-table-building {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
}

.ziom-table-building-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--ziom-primary-light);
  color: var(--ziom-primary);
  border-radius: var(--ziom-radius-md);
  flex-shrink: 0;
}

.ziom-table-building-icon svg {
  width: 14px;
  height: 14px;
}

.ziom-table-building-info {
  min-width: 0;
}

.ziom-table-building-name {
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
  text-decoration: none;
}

.ziom-table-building-name:hover {
  color: var(--ziom-primary);
}

.ziom-table-building-token {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-tertiary);
}

/* Table count badge */
.ziom-table-count {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-1);
  padding: var(--ziom-space-1) var(--ziom-space-2);
  background: var(--ziom-primary-light);
  color: var(--ziom-primary);
  border-radius: var(--ziom-radius-sm);
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-medium);
}

.ziom-table-count svg {
  width: 10px;
  height: 10px;
}

.ziom-table-count-info {
  background: var(--ziom-info-light);
  color: var(--ziom-info);
}

/* ========================================
 * TOUR ITEM (for recent tours list)
 * ======================================== */

.ziom-tour-item {
  display: flex;
  align-items: flex-start;
  gap: var(--ziom-space-3);
  padding: var(--ziom-space-3) var(--ziom-space-4);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-tour-item:last-child {
  border-bottom: none;
}

.ziom-tour-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--ziom-primary-light);
  color: var(--ziom-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.ziom-tour-item-icon svg {
  width: 14px;
  height: 14px;
}

.ziom-tour-item-content {
  flex: 1;
  min-width: 0;
}

.ziom-tour-item-name {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  margin: 0;
}

.ziom-tour-item-name a {
  color: var(--ziom-text-primary);
  text-decoration: none;
}

.ziom-tour-item-name a:hover {
  color: var(--ziom-primary);
}

.ziom-tour-item-address {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
  margin-top: 2px;
}

.ziom-tour-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--ziom-space-2);
}

.ziom-tour-item-date {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-tertiary);
}

/* ========================================
 * RESPONSIVE
 * ======================================== */

@media (max-width: 576px) {
  .ziom-building-item {
    flex-wrap: wrap;
  }
  
  .ziom-building-item-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: var(--ziom-space-2);
  }
}
/*
 * Ziom Theme - Navigation Component
 * Glass-effect navigation with compact styling
 */

/* ========================================
 * NAVIGATION WRAPPER
 * ======================================== */

.ziom-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: var(--ziom-z-sticky);
}

/* ========================================
 * MAIN NAVIGATION
 * ======================================== */

.ziom-nav {
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
  box-shadow: var(--ziom-shadow-sm);
  height: 48px;
}

.ziom-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--ziom-space-4);
}

/* ========================================
 * BRAND / LOGO
 * ======================================== */

.ziom-nav-brand {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  text-decoration: none;
  flex-shrink: 0;
}

.ziom-nav-brand-logo {
  width: 14px;
  height: auto;
}

.ziom-nav-brand-wordmark {
  width: 80px;
  height: auto;
}

/* Light mode: show light logo, hide dark */
.ziom-nav-brand-wordmark-dark {
  display: none;
}

/* Dark mode: show dark logo, hide light */
[data-theme="dark"] .ziom-nav-brand-wordmark-light {
  display: none;
}
[data-theme="dark"] .ziom-nav-brand-wordmark-dark {
  display: block;
}

/* ========================================
 * MOBILE TOGGLE
 * ======================================== */

.ziom-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--ziom-radius-sm);
  color: var(--ziom-text-primary);
  cursor: pointer;
  transition: background var(--ziom-transition-fast);
}

.ziom-nav-toggle:hover {
  background: var(--ziom-gray-100);
}

.ziom-nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* ========================================
 * DESKTOP NAVIGATION (inside nav bar)
 * ======================================== */

.ziom-nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-1);
  flex: 1;
  margin-left: var(--ziom-space-4);
}

/* ========================================
 * MOBILE MENU CONTAINER (outside nav bar)
 * Hidden on desktop, full-screen slide-in on mobile
 * ======================================== */

.ziom-nav-menu {
  display: none;
}

/* ========================================
 * NAV LINKS
 * ======================================== */

.ziom-nav-links {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.ziom-nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-1);
  padding: 6px var(--ziom-space-3);
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
  text-decoration: none;
  border-radius: var(--ziom-radius-sm);
  transition: all var(--ziom-transition-fast);
  white-space: nowrap;
  border: none;
  background: transparent;
  cursor: pointer;
}

.ziom-nav-link:hover {
  background: var(--ziom-gray-100);
  color: var(--ziom-text-primary);
}

.ziom-nav-link:active {
  background: var(--ziom-gray-200);
}

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

.ziom-nav-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Hide mobile-specific elements on desktop */
.ziom-nav-link-icon,
.ziom-nav-dropdown-back,
.ziom-nav-dropdown-title {
  display: none;
}

/* ========================================
 * DROPDOWN
 * ======================================== */

.ziom-nav-dropdown {
  position: relative;
}

.ziom-nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-1);
  padding: 6px var(--ziom-space-3);
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
  text-decoration: none;
  border-radius: var(--ziom-radius-sm);
  transition: all var(--ziom-transition-fast);
  white-space: nowrap;
  border: none;
  background: transparent;
  cursor: pointer;
}

.ziom-nav-dropdown-toggle:hover {
  background: var(--ziom-gray-100);
}

.ziom-nav-dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--ziom-transition-fast);
}

.ziom-nav-dropdown.open .ziom-nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.ziom-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  padding: var(--ziom-space-1);
  background: var(--ziom-glass-bg-solid);
  backdrop-filter: var(--ziom-glass-blur-heavy);
  -webkit-backdrop-filter: var(--ziom-glass-blur-heavy);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-md);
  box-shadow: var(--ziom-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--ziom-transition-fast);
  z-index: var(--ziom-z-dropdown);
}

/* User menu dropdown needs more width for theme toggle */
.ziom-nav-user .ziom-nav-dropdown-menu {
  min-width: 220px;
  left: auto;
  right: 0;
}

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

.ziom-nav-dropdown-item {
  display: block;
  padding: 6px var(--ziom-space-3);
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-primary);
  text-decoration: none;
  border-radius: var(--ziom-radius-xs);
  transition: background var(--ziom-transition-fast);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.ziom-nav-dropdown-item:hover {
  background: var(--ziom-gray-100);
}

.ziom-nav-dropdown-divider {
  height: 1px;
  margin: var(--ziom-space-1) 0;
  background: var(--ziom-glass-border-subtle);
}

/* Right-aligned dropdown */
.ziom-nav-dropdown-menu-end {
  left: auto;
  right: 0;
}

/* ========================================
 * USER MENU
 * ======================================== */

.ziom-nav-user {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  margin-left: auto;
}

.ziom-nav-user-actions {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
}

/* ========================================
 * MOBILE OVERLAY (hidden on desktop)
 * ======================================== */

.ziom-nav-overlay {
  display: none;
}

.ziom-nav-close {
  display: none;
}

/* ========================================
 * MOBILE STYLES - SLIDE-IN PANEL
 * ======================================== */

@media (max-width: 992px) {
  /* Hide desktop navigation on mobile */
  .ziom-nav-desktop {
    display: none;
  }

  /* Overlay backdrop - positioned relative to viewport (outside nav with backdrop-filter) */
  .ziom-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ziom-transition-normal), visibility var(--ziom-transition-normal);
    z-index: 1000;
  }

  .ziom-nav-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  /* Show toggle button */
  .ziom-nav-toggle {
    display: flex;
  }

  /* Full-screen slide-in panel - covers entire viewport */
  .ziom-nav-menu {
    display: flex;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: var(--ziom-bg-elevated);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ziom-transition-normal), visibility var(--ziom-transition-normal);
    z-index: 1001;
    overflow-x: hidden;
    overflow-y: auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    box-sizing: border-box;
  }

  .ziom-nav-menu.open {
    opacity: 1;
    visibility: visible;
  }

  /* Panel header with close button - only show when menu is open */
  .ziom-nav-close {
    display: none;
  }

  .ziom-nav-menu.open .ziom-nav-close {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--ziom-space-4) var(--ziom-space-6);
    border-bottom: 1px solid var(--ziom-glass-border-subtle);
    box-sizing: border-box;
  }

  .ziom-nav-close-label {
    font-size: var(--ziom-text-lg);
    font-weight: var(--ziom-font-semibold);
    color: var(--ziom-text-primary);
    text-transform: uppercase;
    letter-spacing: var(--ziom-tracking-wide);
  }

  .ziom-nav-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--ziom-gray-100);
    border: none;
    border-radius: var(--ziom-radius-full);
    color: var(--ziom-text-secondary);
    cursor: pointer;
    transition: all var(--ziom-transition-fast);
  }

  .ziom-nav-close-btn:hover {
    background: var(--ziom-gray-200);
    color: var(--ziom-text-primary);
  }
  
  .ziom-nav-close-btn svg {
    width: 20px;
    height: 20px;
  }

  /* Show mobile-specific elements */
  .ziom-nav-link-icon {
    display: block;
  }

  /* Nav links in panel - iOS App Grid style */
  .ziom-nav-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    max-width: 320px;
    padding: var(--ziom-space-6) var(--ziom-space-4);
    gap: var(--ziom-space-4);
    box-sizing: border-box;
  }

  .ziom-nav-links li {
    width: 100%;
  }

  .ziom-nav-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    aspect-ratio: 1;
    padding: var(--ziom-space-4);
    align-items: center;
    justify-content: center;
    gap: var(--ziom-space-2);
    font-size: var(--ziom-text-sm);
    font-weight: var(--ziom-font-medium);
    border-radius: var(--ziom-radius-xl);
    background: var(--ziom-gray-100);
    box-sizing: border-box;
    text-align: center;
  }
  
  .ziom-nav-link-icon {
    font-size: 40px;
    color: var(--ziom-primary);
  }
  
  .ziom-nav-link-label {
    line-height: 1.2;
    color: var(--ziom-text-primary);
  }

  .ziom-nav-link:hover {
    background: var(--ziom-gray-200);
  }

  .ziom-nav-link:active {
    background: var(--ziom-gray-300);
    transform: scale(0.95);
  }
  
  .ziom-nav-link.active {
    background: var(--ziom-primary-light);
  }
  
  .ziom-nav-link.active .ziom-nav-link-icon {
    color: var(--ziom-primary);
  }

  /* Dropdowns in panel - iOS App Grid style */
  .ziom-nav-dropdown {
    width: 100%;
    box-sizing: border-box;
  }

  .ziom-nav-dropdown-toggle {
    display: flex;
    flex-direction: column;
    width: 100%;
    aspect-ratio: 1;
    padding: var(--ziom-space-4);
    align-items: center;
    justify-content: center;
    gap: var(--ziom-space-2);
    font-size: var(--ziom-text-sm);
    font-weight: var(--ziom-font-medium);
    border-radius: var(--ziom-radius-xl);
    background: var(--ziom-gray-100);
    box-sizing: border-box;
    text-align: center;
  }
  
  .ziom-nav-dropdown-toggle .ziom-nav-link-icon {
    font-size: 40px;
    color: var(--ziom-primary);
  }
  
  .ziom-nav-dropdown-toggle .ziom-nav-link-label {
    line-height: 1.2;
    color: var(--ziom-text-primary);
  }
  
  /* Hide the default dropdown arrow on mobile */
  .ziom-nav-dropdown-toggle::after {
    display: none;
  }

  .ziom-nav-dropdown-toggle:hover {
    background: var(--ziom-gray-200);
  }
  
  .ziom-nav-dropdown-toggle:active {
    background: var(--ziom-gray-300);
    transform: scale(0.95);
  }

  .ziom-nav-dropdown-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: var(--ziom-bg-elevated);
    border: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    opacity: 0;
    visibility: hidden;
    max-height: none;
    overflow-y: auto;
    transition: opacity var(--ziom-transition-normal), visibility var(--ziom-transition-normal);
    box-sizing: border-box;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
    gap: var(--ziom-space-3);
  }

  .ziom-nav-dropdown.open .ziom-nav-dropdown-menu {
    visibility: visible;
    opacity: 1;
  }
  
  .ziom-nav-dropdown-back {
    position: absolute;
    top: var(--ziom-space-4);
    left: var(--ziom-space-4);
    display: flex;
    align-items: center;
    gap: var(--ziom-space-2);
    padding: var(--ziom-space-2) var(--ziom-space-3);
    font-size: var(--ziom-text-sm);
    font-weight: var(--ziom-font-medium);
    color: var(--ziom-text-secondary);
    background: var(--ziom-gray-100);
    border: none;
    border-radius: var(--ziom-radius-md);
    cursor: pointer;
    transition: all var(--ziom-transition-fast);
  }
  
  .ziom-nav-dropdown-back:hover {
    background: var(--ziom-gray-200);
    color: var(--ziom-text-primary);
  }
  
  .ziom-nav-dropdown-back i {
    font-size: 16px;
  }
  
  .ziom-nav-dropdown-title {
    font-size: var(--ziom-text-xl);
    font-weight: var(--ziom-font-semibold);
    color: var(--ziom-text-primary);
    margin-bottom: var(--ziom-space-4);
  }

  .ziom-nav-dropdown-item {
    width: calc(100% - var(--ziom-space-8));
    max-width: 320px;
    min-height: 56px;
    padding: var(--ziom-space-4) var(--ziom-space-6);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--ziom-space-3);
    font-size: var(--ziom-text-base);
    font-weight: var(--ziom-font-medium);
    border-radius: var(--ziom-radius-lg);
    background: var(--ziom-gray-100);
    box-sizing: border-box;
  }
  
  .ziom-nav-dropdown-item i {
    font-size: 24px;
    color: var(--ziom-primary);
  }

  .ziom-nav-dropdown-item:hover {
    background: var(--ziom-gray-200);
  }
  
  .ziom-nav-dropdown-item:active {
    background: var(--ziom-gray-300);
    transform: scale(0.98);
  }

  .ziom-nav-dropdown-divider {
    display: none;
  }

  /* User section in panel - Footer strip style */
  .ziom-nav-user {
    width: 100%;
    margin: 0;
    margin-top: auto;
    padding: var(--ziom-space-4) var(--ziom-space-6);
    border-top: 1px solid var(--ziom-glass-border-subtle);
    background: var(--ziom-gray-50);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
  }

  .ziom-nav-user .ziom-nav-dropdown {
    width: 100%;
    max-width: none;
  }

  /* Reset to horizontal strip style for user dropdown */
  .ziom-nav-user .ziom-nav-dropdown-toggle {
    display: flex;
    flex-direction: row;
    width: 100%;
    aspect-ratio: auto;
    min-height: 56px;
    padding: var(--ziom-space-3) var(--ziom-space-4);
    justify-content: flex-start;
    gap: var(--ziom-space-3);
    font-size: var(--ziom-text-base);
    border-radius: var(--ziom-radius-lg);
    background: var(--ziom-gray-100);
  }
  
  .ziom-nav-user .ziom-nav-dropdown-toggle .ziom-nav-link-icon {
    font-size: 28px;
  }
  
  .ziom-nav-user .ziom-nav-dropdown-toggle .ziom-nav-link-label {
    flex: 1;
    text-align: left;
  }
  
  /* Show chevron for user dropdown */
  .ziom-nav-user .ziom-nav-dropdown-toggle::after {
    display: inline-block;
    margin-left: auto;
  }

  .ziom-nav-user .ziom-nav-dropdown-menu {
    background: var(--ziom-bg-elevated);
  }

  .ziom-nav-user-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0;
    gap: var(--ziom-space-3);
  }

  .ziom-nav-user-actions .ziom-btn {
    width: 100%;
    justify-content: center;
    min-height: 56px;
    font-size: var(--ziom-text-base);
    border-radius: var(--ziom-radius-lg);
  }
}

/* Body scroll lock when menu is open */
body.ziom-nav-open {
  overflow: hidden;
}

/* ========================================
 * THEME TOGGLE
 * ======================================== */

.ziom-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ziom-space-2) var(--ziom-space-3);
  cursor: default;
  box-sizing: border-box;
  gap: var(--ziom-space-3);
}

.ziom-theme-toggle:hover {
  background: transparent;
}

.ziom-theme-label {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--ziom-tracking-wide);
  font-weight: var(--ziom-font-medium);
}

.ziom-theme-options {
  display: flex;
  gap: var(--ziom-space-1);
}

.ziom-theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: var(--ziom-gray-100);
  border: 1px solid transparent;
  border-radius: var(--ziom-radius-sm);
  color: var(--ziom-text-secondary);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
}

.ziom-theme-btn:hover {
  background: var(--ziom-gray-200);
  color: var(--ziom-text-primary);
}

.ziom-theme-btn.active {
  background: var(--ziom-primary-light);
  border-color: var(--ziom-primary);
  color: var(--ziom-primary);
}

.ziom-theme-btn svg {
  width: 14px;
  height: 14px;
}

/* Mobile adjustments for theme toggle */
@media (max-width: 992px) {
  .ziom-theme-toggle {
    padding: var(--ziom-space-3) var(--ziom-space-4);
    flex-wrap: wrap;
    gap: var(--ziom-space-2);
  }
  
  .ziom-theme-toggle .ziom-theme-label {
    flex: 1;
  }
  
  .ziom-theme-toggle .ziom-theme-options {
    flex-shrink: 0;
  }
}
/*
 * Ziom Theme - Sidebar Component
 * Glass-effect sidebar navigation with collapsible functionality
 */

/* ========================================
 * PAGE LAYOUT WITH SIDEBAR
 * ======================================== */

.ziom-page-with-sidebar {
  display: flex;
  min-height: calc(100vh - 48px); /* Account for nav height */
}

.ziom-page-content {
  flex: 1;
  min-width: 0;
  padding: var(--ziom-space-6);
  transition: margin-left var(--ziom-transition-normal);
}

/* ========================================
 * SIDEBAR BASE
 * ======================================== */

.ziom-sidebar {
  position: sticky;
  top: 48px; /* Below main nav */
  height: calc(100vh - 48px);
  width: 240px;
  flex-shrink: 0;
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border-right: 1px solid var(--ziom-glass-border-subtle);
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--ziom-space-4) 0;
  transition: width var(--ziom-transition-normal);
  display: flex;
  flex-direction: column;
}

/* ========================================
 * COLLAPSED STATE (Desktop)
 * ======================================== */

.ziom-sidebar.collapsed {
  width: 60px;
}

.ziom-sidebar.collapsed .ziom-sidebar-header {
  padding: var(--ziom-space-2);
  justify-content: center;
}

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

.ziom-sidebar.collapsed .ziom-sidebar-link {
  justify-content: center;
  padding: var(--ziom-space-2);
  margin: 0 var(--ziom-space-1);
}

.ziom-sidebar.collapsed .ziom-sidebar-link span:not(.ziom-sidebar-icon) {
  display: none;
}

.ziom-sidebar.collapsed .ziom-sidebar-badge {
  display: none;
}

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

.ziom-sidebar.collapsed .ziom-sidebar-section-title {
  justify-content: center;
  padding: var(--ziom-space-2);
}

.ziom-sidebar.collapsed .ziom-sidebar-section-title span {
  display: none;
}

.ziom-sidebar.collapsed .ziom-sidebar-sublinks {
  display: none;
}

.ziom-sidebar.collapsed .ziom-sidebar-footer {
  padding: var(--ziom-space-2);
  text-align: center;
}

.ziom-sidebar.collapsed .ziom-sidebar-building-name,
.ziom-sidebar.collapsed .ziom-sidebar-building-address {
  display: none;
}

.ziom-sidebar.collapsed .ziom-sidebar-divider {
  margin: var(--ziom-space-2) var(--ziom-space-1);
}

/* ========================================
 * COLLAPSE TOGGLE BUTTON (Desktop)
 * ======================================== */

.ziom-sidebar-collapse-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: var(--ziom-gray-100);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-sm);
  color: var(--ziom-text-secondary);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
  flex-shrink: 0;
  margin-left: auto;
}

.ziom-sidebar-collapse-toggle:hover {
  background: var(--ziom-gray-200);
  color: var(--ziom-text-primary);
}

.ziom-sidebar-collapse-toggle svg {
  transition: transform var(--ziom-transition-fast);
}

.ziom-sidebar.collapsed .ziom-sidebar-collapse-toggle {
  margin: 0 auto;
}

.ziom-sidebar.collapsed .ziom-sidebar-collapse-toggle svg {
  transform: rotate(180deg);
}

/* Custom scrollbar for sidebar */
.ziom-sidebar::-webkit-scrollbar {
  width: 6px;
}

.ziom-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.ziom-sidebar::-webkit-scrollbar-thumb {
  background: var(--ziom-gray-300);
  border-radius: var(--ziom-radius-full);
}

.ziom-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--ziom-gray-400);
}

/* ========================================
 * SIDEBAR HEADER
 * ======================================== */

.ziom-sidebar-header {
  padding: var(--ziom-space-2) var(--ziom-space-4);
  margin-bottom: var(--ziom-space-2);
}

.ziom-sidebar-title {
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ziom-tracking-wide);
  color: var(--ziom-text-tertiary);
  margin: 0;
}

/* ========================================
 * SIDEBAR NAVIGATION
 * ======================================== */

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

.ziom-sidebar-section {
  margin-bottom: var(--ziom-space-4);
}

.ziom-sidebar-section-title {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  padding: var(--ziom-space-2) var(--ziom-space-4);
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ziom-tracking-wide);
  color: var(--ziom-text-tertiary);
  margin: 0;
}

/* ========================================
 * SIDEBAR LINKS
 * ======================================== */

.ziom-sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
  padding: var(--ziom-space-2) var(--ziom-space-4);
  margin: 0 var(--ziom-space-2);
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
  text-decoration: none;
  border-radius: var(--ziom-radius-md);
  transition: all var(--ziom-transition-fast);
  min-height: 36px;
}

.ziom-sidebar-link:hover {
  background: var(--ziom-gray-100);
  color: var(--ziom-text-primary);
}

.ziom-sidebar-link:active {
  background: var(--ziom-gray-200);
}

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

.ziom-sidebar-link.active .ziom-sidebar-icon {
  color: var(--ziom-primary);
}

/* ========================================
 * SIDEBAR ICONS
 * ======================================== */

.ziom-sidebar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--ziom-text-secondary);
  transition: color var(--ziom-transition-fast);
}

.ziom-sidebar-link:hover .ziom-sidebar-icon {
  color: var(--ziom-text-primary);
}

/* ========================================
 * SIDEBAR BADGE
 * ======================================== */

.ziom-sidebar-badge {
  margin-left: auto;
  padding: 2px 8px;
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-secondary);
  background: var(--ziom-gray-100);
  border-radius: var(--ziom-radius-full);
  min-width: 24px;
  text-align: center;
}

.ziom-sidebar-link.active .ziom-sidebar-badge {
  background: var(--ziom-primary);
  color: var(--ziom-text-inverse);
}

/* ========================================
 * SIDEBAR DIVIDER
 * ======================================== */

.ziom-sidebar-divider {
  height: 1px;
  background: var(--ziom-glass-border-subtle);
  margin: var(--ziom-space-3) var(--ziom-space-4);
}

/* ========================================
 * SIDEBAR FOOTER (for building info)
 * ======================================== */

.ziom-sidebar-footer {
  margin-top: auto;
  padding: var(--ziom-space-4);
  border-top: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-sidebar-building-name {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin: 0 0 var(--ziom-space-1) 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ziom-sidebar-building-address {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========================================
 * NESTED/SUB LINKS
 * ======================================== */

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

.ziom-sidebar-sublink {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
  padding: var(--ziom-space-2) var(--ziom-space-4);
  padding-left: calc(var(--ziom-space-4) + 20px + var(--ziom-space-3));
  margin: 0 var(--ziom-space-2);
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
  text-decoration: none;
  border-radius: var(--ziom-radius-md);
  transition: all var(--ziom-transition-fast);
  min-height: 32px;
}

.ziom-sidebar-sublink:hover {
  background: var(--ziom-gray-100);
  color: var(--ziom-text-primary);
}

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

/* ========================================
 * MOBILE TOGGLE BUTTON
 * ======================================== */

.ziom-sidebar-toggle {
  display: none;
  position: fixed;
  bottom: var(--ziom-space-4);
  left: var(--ziom-space-4);
  width: 48px;
  height: 48px;
  background: var(--ziom-primary);
  color: var(--ziom-text-inverse);
  border: none;
  border-radius: var(--ziom-radius-full);
  box-shadow: var(--ziom-shadow-lg);
  cursor: pointer;
  z-index: var(--ziom-z-sticky);
  align-items: center;
  justify-content: center;
  transition: all var(--ziom-transition-fast);
}

.ziom-sidebar-toggle:hover {
  background: var(--ziom-primary-hover);
  transform: scale(1.05);
}

.ziom-sidebar-toggle:active {
  transform: scale(0.95);
}

/* ========================================
 * MOBILE OVERLAY
 * ======================================== */

.ziom-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: calc(var(--ziom-z-modal-backdrop) - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ziom-transition-normal), visibility var(--ziom-transition-normal);
}

.ziom-sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ========================================
 * RESPONSIVE STYLES
 * ======================================== */

@media (max-width: 992px) {
  .ziom-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: var(--ziom-z-modal);
    transform: translateX(-100%);
    transition: transform var(--ziom-transition-normal);
    box-shadow: var(--ziom-shadow-xl);
  }

  .ziom-sidebar.open {
    transform: translateX(0);
  }

  .ziom-sidebar-toggle {
    display: flex;
  }

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

  .ziom-page-content {
    padding: var(--ziom-space-4);
  }
}

@media (max-width: 576px) {
  .ziom-sidebar {
    width: 280px;
    max-width: 85vw;
  }
}

/* ========================================
 * DARK MODE ADJUSTMENTS
 * ======================================== */

[data-theme="dark"] .ziom-sidebar {
  background: var(--ziom-glass-bg);
  border-right-color: var(--ziom-glass-border-subtle);
}

[data-theme="dark"] .ziom-sidebar-link:hover {
  background: var(--ziom-gray-100);
}

[data-theme="dark"] .ziom-sidebar-badge {
  background: var(--ziom-gray-200);
  color: var(--ziom-text-secondary);
}

[data-theme="dark"] .ziom-sidebar::-webkit-scrollbar-thumb {
  background: var(--ziom-gray-400);
}

[data-theme="dark"] .ziom-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--ziom-gray-500);
}

/* Body scroll lock when sidebar is open on mobile */
body.ziom-sidebar-open {
  overflow: hidden;
}
/*
 * Ziom Theme - Applicants Components
 * Styles for applicant show page and related components
 */

/* ========================================
 * APPLICANT HEADER
 * ======================================== */

.ziom-applicant-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ziom-space-4);
}

.ziom-applicant-header-main {
  flex: 1;
}

.ziom-applicant-name {
  font-size: var(--ziom-text-xl);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin: 0 0 var(--ziom-space-2) 0;
}

.ziom-applicant-email {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-primary);
}

.ziom-applicant-meta {
  display: flex;
  flex-direction: column;
  gap: var(--ziom-space-1);
  font-size: var(--ziom-text-xs);
}

.ziom-applicant-meta-item {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
}

.ziom-applicant-meta-label {
  color: var(--ziom-text-tertiary);
}

.ziom-applicant-meta-value {
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
  font-family: var(--ziom-font-mono, monospace);
}

/* ========================================
 * STAGE INDICATORS
 * ======================================== */

.ziom-stages {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--ziom-space-3);
}

.ziom-stage {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  padding: var(--ziom-space-1) var(--ziom-space-2);
  background: var(--ziom-gray-100);
  border-radius: var(--ziom-radius-md);
}

[data-theme="dark"] .ziom-stage {
  background: rgba(255, 255, 255, 0.05);
}

.ziom-stage-left {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-1);
}

.ziom-stage-icon {
  font-size: var(--ziom-text-xs);
  width: 16px;
  text-align: center;
}

.ziom-stage-title {
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
}

.ziom-stage-right {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-1);
}

/* ========================================
 * STATUS HISTORY / TIMELINE
 * ======================================== */

.ziom-status-history {
  background: var(--ziom-gray-50);
  border-radius: var(--ziom-radius-md);
  padding: var(--ziom-space-3);
}

.ziom-status-history-item {
  padding: var(--ziom-space-1) 0;
  font-size: var(--ziom-text-xs);
}

.ziom-status-history-date {
  color: var(--ziom-text-tertiary);
  display: flex;
  align-items: center;
  gap: var(--ziom-space-1);
}

.ziom-status-history-change {
  color: var(--ziom-text-secondary);
  margin-top: var(--ziom-space-1);
}

[data-theme="dark"] .ziom-status-history {
  background: rgba(255, 255, 255, 0.03);
}

/* ========================================
 * EDITABLE CELLS
 * ======================================== */

.ziom-editable-cell {
  position: relative;
}

.ziom-editable-cell .ziom-cell-content {
  display: inline;
}

.ziom-editable-cell .edit-text {
  opacity: 0;
  margin-left: var(--ziom-space-2);
  font-size: var(--ziom-text-xs);
  color: var(--ziom-primary);
  cursor: pointer;
  transition: opacity var(--ziom-transition-fast);
}

.ziom-editable-cell:hover .edit-text {
  opacity: 1;
}

/* ========================================
 * ACCORDION SECTIONS
 * ======================================== */

.ziom-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--ziom-space-2);
}

.ziom-accordion-item {
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border-radius: var(--ziom-radius-lg);
  border: 1px solid var(--ziom-glass-border-subtle);
  overflow: hidden;
}

.ziom-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ziom-space-3) var(--ziom-space-4);
  background: transparent;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: background var(--ziom-transition-fast);
}

.ziom-accordion-header:hover {
  background: rgba(0, 0, 0, 0.02);
}

.ziom-accordion-title {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
}

.ziom-accordion-badge {
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-normal);
  color: var(--ziom-primary);
}

.ziom-accordion-chevron {
  color: var(--ziom-text-tertiary);
  transition: transform var(--ziom-transition-fast);
}

.ziom-accordion-item.open .ziom-accordion-chevron {
  transform: rotate(180deg);
}

.ziom-accordion-body {
  padding: 0 var(--ziom-space-4) var(--ziom-space-4);
}

[data-theme="dark"] .ziom-accordion-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* ========================================
 * DOCUMENT SECTIONS
 * ======================================== */

.ziom-document-section {
  margin-bottom: var(--ziom-space-4);
}

.ziom-document-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--ziom-space-2);
}

.ziom-document-title {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin: 0;
}

/* ========================================
 * SECTION HEADERS
 * ======================================== */

.ziom-section-header-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--ziom-space-2);
}

.ziom-section-title-sm {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin: 0;
}

/* ========================================
 * DATA SECTIONS
 * ======================================== */

.ziom-data-section {
  margin-bottom: var(--ziom-space-4);
}

.ziom-data-section:last-child {
  margin-bottom: 0;
}

/* ========================================
 * STATUS CARDS
 * ======================================== */

.ziom-status-card {
  background: var(--ziom-gray-50);
  border-radius: var(--ziom-radius-md);
  padding: var(--ziom-space-3);
}

.ziom-status-card-title {
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-secondary);
  margin-bottom: var(--ziom-space-2);
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
}

.ziom-status-card-row {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  font-size: var(--ziom-text-sm);
  margin-bottom: var(--ziom-space-1);
}

.ziom-status-card-row:last-child {
  margin-bottom: 0;
}

.ziom-status-card-label {
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
}

.ziom-status-card-value {
  color: var(--ziom-text-secondary);
}

[data-theme="dark"] .ziom-status-card {
  background: rgba(255, 255, 255, 0.03);
}

/* ========================================
 * ACTION BUTTONS ROW
 * ======================================== */

.ziom-actions-row {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
  flex-wrap: wrap;
  padding-top: var(--ziom-space-2);
  border-top: 1px solid var(--ziom-glass-border-subtle);
  margin-top: var(--ziom-space-3);
}

/* ========================================
 * VALUE DISPLAY
 * ======================================== */

.ziom-value-nil {
  font-family: var(--ziom-font-mono, monospace);
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-tertiary);
  background: var(--ziom-gray-100);
  padding: 1px 4px;
  border-radius: var(--ziom-radius-xs);
}

[data-theme="dark"] .ziom-value-nil {
  background: rgba(255, 255, 255, 0.1);
}

/* ========================================
 * GRID LAYOUTS
 * ======================================== */

.ziom-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ziom-space-3);
}

.ziom-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ziom-space-3);
}

.ziom-grid-3-1 {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: var(--ziom-space-3);
}

@media (max-width: 768px) {
  .ziom-grid-2,
  .ziom-grid-3,
  .ziom-grid-3-1 {
    grid-template-columns: 1fr;
  }
  
  .ziom-applicant-header {
    flex-direction: column;
  }
}

/* ========================================
 * TABLE ACTION COLUMN
 * ======================================== */

.ziom-table .ziom-col-actions {
  width: 100px;
  white-space: nowrap;
}

/* ========================================
 * EMPTY STATE
 * ======================================== */

.ziom-empty-row {
  text-align: center;
  color: var(--ziom-text-tertiary);
  font-size: var(--ziom-text-sm);
  padding: var(--ziom-space-4);
}

/* ========================================
 * STRIPE-STYLE PAGE LAYOUT
 * Two-column layout with main content and sidebar
 * ======================================== */

.ziom-page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--ziom-space-6);
  align-items: start;
}

.ziom-page-main {
  min-width: 0;
}

.ziom-page-sidebar {
  position: sticky;
  top: var(--ziom-space-4);
}

@media (max-width: 1024px) {
  .ziom-page-layout {
    grid-template-columns: 1fr;
  }
  
  .ziom-page-sidebar {
    position: static;
  }
}

/* ========================================
 * STRIPE-STYLE KEY-VALUE GRID
 * Compact label/value pairs in grid layout
 * ======================================== */

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

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

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

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

.ziom-kv-grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 768px) {
  .ziom-kv-grid-2,
  .ziom-kv-grid-3,
  .ziom-kv-grid-4,
  .ziom-kv-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ziom-kv-grid-2,
  .ziom-kv-grid-3,
  .ziom-kv-grid-4,
  .ziom-kv-grid-6 {
    grid-template-columns: 1fr;
  }
}

.ziom-kv-item {
  min-width: 0;
}

.ziom-kv-label {
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-tertiary);
  margin-bottom: var(--ziom-space-1);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.ziom-kv-value {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
  word-break: break-word;
}

.ziom-kv-value-mono {
  font-family: var(--ziom-font-mono, monospace);
  font-size: var(--ziom-text-xs);
}

.ziom-kv-value-empty {
  color: var(--ziom-text-tertiary);
}

/* Editable key-value items */
.ziom-kv-item-editable {
  position: relative;
}

.ziom-kv-item-editable .edit-text {
  opacity: 0;
  margin-left: var(--ziom-space-1);
  font-size: var(--ziom-text-xs);
  color: var(--ziom-primary);
  cursor: pointer;
  transition: opacity var(--ziom-transition-fast);
}

.ziom-kv-item-editable:hover .edit-text {
  opacity: 1;
}

/* ========================================
 * INLINE EDIT COMPONENT
 * Click-to-edit fields without modals
 * ======================================== */

.ziom-inline-edit {
  display: inline-block;
  width: 100%;
}

.ziom-inline-edit-display {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-1);
}

.ziom-inline-edit-display:hover {
  color: var(--ziom-primary);
}

.ziom-inline-edit-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ziom-space-2);
}

.ziom-inline-edit-form .ziom-input-sm {
  height: 28px;
  padding: var(--ziom-space-1) var(--ziom-space-2);
  font-size: var(--ziom-text-sm);
  min-width: 100px;
}

.ziom-inline-edit-form select.ziom-input-sm {
  min-width: 120px;
}

.ziom-inline-edit-actions {
  display: flex;
  gap: var(--ziom-space-1);
  flex-shrink: 0;
}

.ziom-inline-edit-error {
  width: 100%;
  margin-top: var(--ziom-space-1);
  padding: var(--ziom-space-1) var(--ziom-space-2);
  font-size: var(--ziom-text-xs);
  color: var(--ziom-danger);
  background-color: rgba(var(--ziom-danger-rgb, 220, 38, 38), 0.1);
  border-radius: var(--ziom-radius-sm);
}

/* Date field specific styles */
.ziom-inline-edit-date-input {
  text-align: center;
}

.ziom-inline-edit-date-sep {
  color: var(--ziom-text-tertiary);
  font-size: var(--ziom-text-sm);
}

/* Smaller buttons for inline edit */
.ziom-inline-edit-actions .ziom-btn-xs {
  padding: var(--ziom-space-1) var(--ziom-space-2);
  font-size: var(--ziom-text-xs);
  height: 24px;
}

/* ========================================
 * STRIPE-STYLE SIDEBAR
 * Details panel on the right
 * ======================================== */

.ziom-sidebar-card {
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border-radius: var(--ziom-radius-lg);
  border: 1px solid var(--ziom-glass-border-subtle);
  overflow: hidden;
}

.ziom-sidebar-section {
  padding: var(--ziom-space-4);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-sidebar-section:last-child {
  border-bottom: none;
}

.ziom-sidebar-title {
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--ziom-space-3);
}

.ziom-sidebar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--ziom-space-2);
  padding: var(--ziom-space-2) 0;
  font-size: var(--ziom-text-sm);
}

.ziom-sidebar-row:first-of-type {
  padding-top: 0;
}

.ziom-sidebar-row:last-of-type {
  padding-bottom: 0;
}

.ziom-sidebar-label {
  color: var(--ziom-text-tertiary);
  flex-shrink: 0;
}

.ziom-sidebar-value {
  color: var(--ziom-text-primary);
  font-weight: var(--ziom-font-medium);
  text-align: right;
  word-break: break-all;
}

.ziom-sidebar-value-link {
  color: var(--ziom-primary);
  text-decoration: none;
}

.ziom-sidebar-value-link:hover {
  text-decoration: underline;
}

/* Copy icon button for sidebar rows */
.ziom-copy-icon-btn {
  background: none;
  border: none;
  padding: 0 0 0 var(--ziom-space-1);
  cursor: pointer;
  color: var(--ziom-text-tertiary);
  opacity: 0;
  transition: opacity var(--ziom-transition-fast), color var(--ziom-transition-fast);
  vertical-align: middle;
  line-height: 1;
}

.ziom-sidebar-row:hover .ziom-copy-icon-btn {
  opacity: 1;
}

.ziom-copy-icon-btn:hover {
  color: var(--ziom-text-primary);
}

/* ========================================
 * STRIPE-STYLE HEADER
 * Prominent name with inline details
 * ======================================== */

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

.ziom-stripe-header-top {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
  margin-bottom: var(--ziom-space-2);
}

.ziom-stripe-header-name {
  font-size: var(--ziom-text-2xl);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin: 0;
}

.ziom-stripe-header-meta {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-4);
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
}

.ziom-stripe-header-meta-item {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
}

/* ========================================
 * COMPACT SECTION STYLING
 * For Stripe-like dense layouts
 * ======================================== */

.ziom-section-compact {
  margin-bottom: var(--ziom-space-4);
}

.ziom-section-compact:last-child {
  margin-bottom: 0;
}

.ziom-section-header-stripe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--ziom-space-3);
  padding-bottom: var(--ziom-space-2);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-section-title-stripe {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin: 0;
}

/* ========================================
 * COMPACT STATUS DISPLAY
 * ======================================== */

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

.ziom-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ziom-status-dot-success {
  background: var(--ziom-success);
}

.ziom-status-dot-warning {
  background: var(--ziom-warning);
}

.ziom-status-dot-danger {
  background: var(--ziom-danger);
}

.ziom-status-dot-default {
  background: var(--ziom-gray-400);
}

/* ========================================
 * DOCUMENT CARDS
 * Minimal card-based document display
 * ======================================== */

.ziom-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--ziom-space-3);
}

.ziom-doc-card {
  background: var(--ziom-gray-50);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-md);
  padding: var(--ziom-space-3);
  transition: all var(--ziom-transition-fast);
}

.ziom-doc-card:hover {
  background: var(--ziom-gray-100);
  border-color: var(--ziom-gray-300);
}

[data-theme="dark"] .ziom-doc-card {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .ziom-doc-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ziom-doc-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--ziom-primary-light);
  color: var(--ziom-primary);
  border-radius: var(--ziom-radius-md);
  margin-bottom: var(--ziom-space-2);
}

.ziom-doc-card-type {
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: var(--ziom-space-1);
}

.ziom-doc-card-meta {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-tertiary);
  margin-bottom: var(--ziom-space-2);
}

.ziom-doc-card-meta-item {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-1);
  margin-bottom: 2px;
}

.ziom-doc-card-meta-item:last-child {
  margin-bottom: 0;
}

.ziom-doc-card-files {
  display: flex;
  flex-direction: column;
  gap: var(--ziom-space-1);
}

.ziom-doc-card-file {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  padding: var(--ziom-space-1) var(--ziom-space-2);
  background: var(--ziom-glass-bg);
  border-radius: var(--ziom-radius-sm);
  font-size: var(--ziom-text-xs);
  color: var(--ziom-primary);
  text-decoration: none;
  transition: background var(--ziom-transition-fast);
  overflow: hidden;
}

.ziom-doc-card-file:hover {
  background: var(--ziom-primary-light);
  text-decoration: none;
}

.ziom-doc-card-file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.ziom-doc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--ziom-space-6) var(--ziom-space-4);
  background: var(--ziom-gray-50);
  border: 1px dashed var(--ziom-gray-300);
  border-radius: var(--ziom-radius-md);
  text-align: center;
}

[data-theme="dark"] .ziom-doc-empty {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--ziom-glass-border-subtle);
}

.ziom-doc-empty-icon {
  color: var(--ziom-text-tertiary);
  margin-bottom: var(--ziom-space-2);
  opacity: 0.5;
}

.ziom-doc-empty-text {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-tertiary);
}

/* ========================================
 * PLAID VERIFICATION ITEMS
 * Compact display for Plaid data
 * ======================================== */

.ziom-plaid-column {
  min-width: 0;
}

.ziom-plaid-item {
  padding: var(--ziom-space-2) 0;
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-plaid-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ziom-plaid-item:first-child {
  padding-top: 0;
}

.ziom-plaid-item-value {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
}

.ziom-plaid-item-status {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
}

.ziom-plaid-item-meta {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-tertiary);
  margin-top: 2px;
}
/*
 * Ziom Theme - Breadcrumb Component
 * Apple macOS Finder-inspired path navigation
 */

/* ========================================
 * MAIN CONTAINER
 * ======================================== */

.ziom-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ziom-space-3);
  padding: var(--ziom-space-2) var(--ziom-space-4);
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
}

/* ========================================
 * BREADCRUMB LIST
 * ======================================== */

.ziom-breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-1);
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
  flex: 1;
}

/* ========================================
 * BREADCRUMB ITEMS
 * ======================================== */

.ziom-breadcrumb-item {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-1);
  min-width: 0;
}

/* ========================================
 * BREADCRUMB LINKS
 * ======================================== */

.ziom-breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-1);
  padding: 4px var(--ziom-space-2);
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-secondary);
  text-decoration: none;
  border-radius: var(--ziom-radius-sm);
  transition: all var(--ziom-transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.ziom-breadcrumb-link:hover {
  color: var(--ziom-text-primary);
  background: var(--ziom-gray-100);
}

.ziom-breadcrumb-link:active {
  background: var(--ziom-gray-200);
}

/* Home icon link */
.ziom-breadcrumb-link-home {
  padding: 4px 6px;
  color: var(--ziom-text-tertiary);
}

.ziom-breadcrumb-link-home:hover {
  color: var(--ziom-text-primary);
}

.ziom-breadcrumb-link-home svg {
  width: 14px;
  height: 14px;
}

/* Current/Active item */
.ziom-breadcrumb-item-current .ziom-breadcrumb-link {
  color: var(--ziom-primary);
  font-weight: var(--ziom-font-semibold);
  background: var(--ziom-primary-light);
}

.ziom-breadcrumb-item-current .ziom-breadcrumb-link:hover {
  background: var(--ziom-primary-light);
}

/* ========================================
 * SEPARATOR
 * ======================================== */

.ziom-breadcrumb-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ziom-text-tertiary);
  flex-shrink: 0;
}

.ziom-breadcrumb-separator svg {
  width: 12px;
  height: 12px;
}

/* ========================================
 * ACTIONS
 * ======================================== */

.ziom-breadcrumb-actions {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  flex-shrink: 0;
}

/* ========================================
 * RESPONSIVE
 * ======================================== */

@media (max-width: 768px) {
  .ziom-breadcrumb {
    padding: var(--ziom-space-2) var(--ziom-space-3);
    gap: var(--ziom-space-2);
  }

  .ziom-breadcrumb-link {
    max-width: 120px;
    padding: 4px 6px;
    font-size: var(--ziom-text-xs);
  }

  .ziom-breadcrumb-separator svg {
    width: 10px;
    height: 10px;
  }

  /* Hide middle items on very small screens */
  .ziom-breadcrumb-list.ziom-breadcrumb-truncate .ziom-breadcrumb-item:not(:first-child):not(:last-child) {
    display: none;
  }

  .ziom-breadcrumb-list.ziom-breadcrumb-truncate .ziom-breadcrumb-ellipsis {
    display: flex;
  }
}

@media (max-width: 480px) {
  .ziom-breadcrumb-link {
    max-width: 80px;
  }

  .ziom-breadcrumb-actions .ziom-btn span {
    display: none;
  }
}

/* ========================================
 * ELLIPSIS (for truncation)
 * ======================================== */

.ziom-breadcrumb-ellipsis {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4px;
  color: var(--ziom-text-tertiary);
  font-size: var(--ziom-text-sm);
}
/*
 * Ziom Theme - Admin Bar Component
 * Compact platform admin toolbar
 */

/* ========================================
 * ADMIN BAR BASE
 * ======================================== */

.ziom-admin-bar {
  position: sticky;
  top: 0;
  z-index: calc(var(--ziom-z-sticky) + 10);
  height: 32px;
  background: var(--ziom-glass-bg-solid);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-admin-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--ziom-space-4);
}

/* ========================================
 * ENVIRONMENT VARIANTS
 * ======================================== */

.ziom-admin-bar--dev {
  border-left: 3px solid #6f42c1;
  background: linear-gradient(90deg, rgba(111, 66, 193, 0.08) 0%, var(--ziom-glass-bg-solid) 200px);
}

.ziom-admin-bar--prod {
  border-left: 3px solid var(--ziom-danger);
  background: linear-gradient(90deg, rgba(255, 59, 48, 0.08) 0%, var(--ziom-glass-bg-solid) 200px);
}

/* ========================================
 * ENVIRONMENT INDICATOR
 * ======================================== */

.ziom-admin-bar-env {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
}

.ziom-admin-bar-env-label {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-1);
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ziom-tracking-wide);
}

.ziom-admin-bar--dev .ziom-admin-bar-env-label {
  color: #6f42c1;
}

.ziom-admin-bar--prod .ziom-admin-bar-env-label {
  color: var(--ziom-danger);
}

/* ========================================
 * QUICK LINKS
 * ======================================== */

.ziom-admin-bar-links {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
}

.ziom-admin-bar-link {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
  text-decoration: none;
  padding: 2px var(--ziom-space-2);
  border-radius: var(--ziom-radius-xs);
  transition: all var(--ziom-transition-fast);
}

.ziom-admin-bar-link:hover {
  color: var(--ziom-primary);
  background: var(--ziom-primary-light);
}

.ziom-admin-bar-divider {
  width: 1px;
  height: 12px;
  background: var(--ziom-glass-border-subtle);
}

/* ========================================
 * DROPDOWNS CONTAINER
 * ======================================== */

.ziom-admin-bar-dropdowns {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-1);
}

/* ========================================
 * DROPDOWN (reuses nav dropdown patterns)
 * ======================================== */

.ziom-admin-bar-dropdown {
  position: relative;
}

.ziom-admin-bar-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-1);
  padding: 4px var(--ziom-space-2);
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-primary);
  text-decoration: none;
  border-radius: var(--ziom-radius-xs);
  transition: all var(--ziom-transition-fast);
  white-space: nowrap;
  border: none;
  background: transparent;
  cursor: pointer;
}

.ziom-admin-bar-dropdown-toggle:hover {
  background: var(--ziom-gray-100);
}

.ziom-admin-bar-dropdown-toggle svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.ziom-admin-bar-dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 3px solid currentColor;
  transition: transform var(--ziom-transition-fast);
}

.ziom-admin-bar-dropdown.open .ziom-admin-bar-dropdown-toggle::after {
  transform: rotate(180deg);
}

.ziom-admin-bar-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 200px;
  padding: var(--ziom-space-1);
  background: var(--ziom-glass-bg-solid);
  backdrop-filter: var(--ziom-glass-blur-heavy);
  -webkit-backdrop-filter: var(--ziom-glass-blur-heavy);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-md);
  box-shadow: var(--ziom-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--ziom-transition-fast);
  z-index: var(--ziom-z-dropdown);
}

.ziom-admin-bar-dropdown.open .ziom-admin-bar-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ziom-admin-bar-dropdown-item {
  display: block;
  padding: 6px var(--ziom-space-3);
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-primary);
  text-decoration: none;
  border-radius: var(--ziom-radius-xs);
  transition: background var(--ziom-transition-fast);
}

.ziom-admin-bar-dropdown-item:hover {
  background: var(--ziom-gray-100);
}

.ziom-admin-bar-dropdown-divider {
  height: 1px;
  margin: var(--ziom-space-1) 0;
  background: var(--ziom-glass-border-subtle);
}

/* ========================================
 * RESPONSIVE
 * ======================================== */

@media (max-width: 768px) {
  .ziom-admin-bar-container {
    padding: 0 var(--ziom-space-3);
  }
  
  .ziom-admin-bar-links {
    display: none;
  }

  .ziom-admin-bar-dropdowns {
    display: none;
  }
}

@media (max-width: 1024px) {
  .ziom-admin-bar-dropdown-menu {
    right: auto;
    left: 0;
  }
}

/* ========================================
 * DARK MODE OVERRIDES
 * ======================================== */

[data-theme="dark"] .ziom-admin-bar--dev {
  background: linear-gradient(90deg, rgba(111, 66, 193, 0.2) 0%, var(--ziom-glass-bg-solid) 200px);
}

[data-theme="dark"] .ziom-admin-bar--prod {
  background: linear-gradient(90deg, rgba(255, 69, 58, 0.2) 0%, var(--ziom-glass-bg-solid) 200px);
}

[data-theme="dark"] .ziom-admin-bar-dropdown-toggle:hover {
  background: var(--ziom-gray-200);
}

[data-theme="dark"] .ziom-admin-bar-dropdown-item:hover {
  background: var(--ziom-gray-200);
}
/*
 * Ziom Theme - Footer Component
 * Compact glass-effect footer styling
 */

/* ========================================
 * MAIN FOOTER
 * ======================================== */

.ziom-footer {
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border-top: 1px solid var(--ziom-glass-border-subtle);
  padding: var(--ziom-space-4) 0;
  margin-top: auto;
}

.ziom-footer-container {
  display: flex;
  gap: var(--ziom-space-8);
  flex-wrap: wrap;
}

/* ========================================
 * BRAND SECTION
 * ======================================== */

.ziom-footer-brand {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}

.ziom-footer-brand-logo {
  height: 24px;
  width: auto;
  margin-bottom: var(--ziom-space-2);
}

.ziom-footer-brand-text {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
  line-height: var(--ziom-leading-normal);
  margin: 0;
}

/* ========================================
 * LINKS COLUMNS
 * ======================================== */

.ziom-footer-links {
  min-width: 100px;
}

.ziom-footer-links-title {
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  text-transform: uppercase;
  letter-spacing: var(--ziom-tracking-wide);
  margin: 0 0 var(--ziom-space-2) 0;
}

.ziom-footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ziom-space-1);
}

.ziom-footer-link {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
  text-decoration: none;
  transition: color var(--ziom-transition-fast);
  padding: 2px 0;
  display: inline-block;
}

.ziom-footer-link:hover {
  color: var(--ziom-primary);
}

/* ========================================
 * DIVIDER
 * ======================================== */

.ziom-footer-divider {
  height: 1px;
  background: var(--ziom-glass-border-subtle);
  border: none;
  margin: var(--ziom-space-4) 0;
}

/* ========================================
 * BOTTOM ROW
 * ======================================== */

.ziom-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ziom-space-4);
  flex-wrap: wrap;
}

.ziom-footer-copyright {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-tertiary);
  margin: 0;
}

/* ========================================
 * SOCIAL ICONS
 * ======================================== */

.ziom-footer-social {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
}

.ziom-footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--ziom-text-tertiary);
  text-decoration: none;
  border-radius: var(--ziom-radius-sm);
  transition: all var(--ziom-transition-fast);
}

.ziom-footer-social-link:hover {
  color: var(--ziom-primary);
  background: var(--ziom-primary-light);
}

.ziom-footer-social-link i {
  font-size: 14px;
}

/* ========================================
 * RESPONSIVE
 * ======================================== */

@media (max-width: 768px) {
  .ziom-footer {
    padding: var(--ziom-space-3) 0;
  }

  .ziom-footer-container {
    gap: var(--ziom-space-4);
  }

  .ziom-footer-brand {
    flex-basis: 100%;
    max-width: none;
  }

  .ziom-footer-links {
    flex: 1;
    min-width: 80px;
  }

  .ziom-footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--ziom-space-2);
  }
}

/* ========================================
 * DARK MODE
 * ======================================== */

[data-theme="dark"] .ziom-footer {
  background: var(--ziom-glass-bg);
  border-top-color: var(--ziom-glass-border-subtle);
}

[data-theme="dark"] .ziom-footer-divider {
  background: var(--ziom-glass-border-subtle);
}
/*
 * Ziom Theme - Integrations Page
 * Styles for integration management views
 */

/* ========================================
 * INTEGRATION SECTION
 * ======================================== */

.ziom-integration-section {
  margin-bottom: var(--ziom-space-6);
}

.ziom-integration-section:last-child {
  margin-bottom: 0;
}

/* ========================================
 * INTEGRATION HEADER
 * ======================================== */

.ziom-integration-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ziom-space-4);
  margin-bottom: var(--ziom-space-3);
}

.ziom-integration-title {
  font-size: var(--ziom-text-lg);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin: 0;
}

/* ========================================
 * INTEGRATION TABLE ACTIONS
 * ======================================== */

.ziom-integration-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--ziom-space-2);
}
/*
 * Ziom Theme - Users Components
 * User management specific styles
 */

/* ========================================
 * USERS TABLE
 * ======================================== */

.ziom-users-table {
  /* Ensure consistent column widths */
}

.ziom-users-table th,
.ziom-users-table td {
  vertical-align: middle;
}

/* ID column - compact */
.ziom-users-table .col-id {
  width: 60px;
  text-align: center;
}

/* Phone column */
.ziom-users-table .col-phone {
  white-space: nowrap;
}

/* Role column */
.ziom-users-table .col-role {
  white-space: nowrap;
}

/* Date column */
.ziom-users-table .col-date {
  white-space: nowrap;
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
}

/* Actions column */
.ziom-users-table .col-actions {
  width: 120px;
  white-space: nowrap;
}

/* ========================================
 * USER ACTIONS GROUP
 * ======================================== */

.ziom-user-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-1);
}

.ziom-user-actions .ziom-btn {
  padding: var(--ziom-space-1);
}

/* ========================================
 * USERS STATS COMPACT
 * ======================================== */

.ziom-users-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ziom-space-3);
  margin-bottom: var(--ziom-space-4);
}

@media (max-width: 768px) {
  .ziom-users-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ziom-users-stats {
    grid-template-columns: 1fr;
  }
}

.ziom-users-stat-card {
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border-radius: var(--ziom-radius-md);
  border: 1px solid var(--ziom-glass-border-subtle);
  padding: var(--ziom-space-3);
  text-align: center;
}

.ziom-users-stat-value {
  font-size: var(--ziom-text-xl);
  font-weight: var(--ziom-font-bold);
  line-height: 1;
  margin-bottom: var(--ziom-space-1);
}

.ziom-users-stat-value-primary {
  color: var(--ziom-primary);
}

.ziom-users-stat-value-success {
  color: var(--ziom-success);
}

.ziom-users-stat-value-info {
  color: var(--ziom-info);
}

.ziom-users-stat-value-warning {
  color: var(--ziom-warning);
}

.ziom-users-stat-label {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--ziom-tracking-wide);
}

/* ========================================
 * USERS SEARCH
 * ======================================== */

.ziom-users-search {
  margin-bottom: var(--ziom-space-4);
}

.ziom-users-search-form {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
}

.ziom-users-search-form .ziom-search {
  flex: 1;
}

/* ========================================
 * DARK MODE OVERRIDES
 * ======================================== */

[data-theme="dark"] .ziom-users-stat-card {
  background: var(--ziom-glass-bg);
}
/*
 * Ziom Theme - Role Card Components
 * Selection cards for role/option picking in forms
 */

/* ========================================
 * ROLE CARD GROUP
 * ======================================== */

.ziom-role-card-group {
  display: flex;
  flex-direction: column;
  gap: var(--ziom-space-3);
}

/* ========================================
 * ROLE CARD
 * ======================================== */

.ziom-role-card {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border: 2px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-lg);
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
  box-shadow: var(--ziom-shadow-glass);
  padding: 0;
  user-select: none;
  margin: 0 auto;
}

.ziom-role-card:hover {
  background: var(--ziom-glass-bg-hover);
  border-color: var(--ziom-primary-light);
}

/* ========================================
 * ROLE CARD BODY
 * ======================================== */

.ziom-role-card-body {
  display: flex;
  align-items: flex-start;
  gap: var(--ziom-space-3);
  padding: var(--ziom-space-3) var(--ziom-space-4);
  position: relative;
  color: var(--ziom-text-primary);
  background: transparent;
  border-radius: var(--ziom-radius-lg);
  transition: all var(--ziom-transition-fast);
}

/* ========================================
 * ROLE CARD ICON
 * ======================================== */

.ziom-role-card-icon {
  flex-shrink: 0;
  color: var(--ziom-primary);
  margin-top: 2px;
  transition: color var(--ziom-transition-fast);
}

/* ========================================
 * ROLE CARD CONTENT
 * ======================================== */

.ziom-role-card-content {
  flex: 1;
}

.ziom-role-card-title {
  font-size: var(--ziom-text-base);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin-bottom: 2px;
  transition: color var(--ziom-transition-fast);
}

.ziom-role-card-desc {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
  transition: color var(--ziom-transition-fast);
}

/* ========================================
 * ROLE CARD CHECK INDICATOR
 * ======================================== */

.ziom-role-card-check {
  display: none;
  position: absolute;
  top: var(--ziom-space-3);
  right: var(--ziom-space-3);
  color: var(--ziom-text-inverse);
}

/* ========================================
 * SELECTED STATE
 * ======================================== */

.ziom-role-card input[type="radio"] {
  display: none;
}

.ziom-role-card input[type="radio"]:checked + .ziom-role-card-body {
  background: var(--ziom-primary);
  color: var(--ziom-text-inverse);
  box-shadow: var(--ziom-shadow-md);
}

.ziom-role-card input[type="radio"]:checked + .ziom-role-card-body .ziom-role-card-title,
.ziom-role-card input[type="radio"]:checked + .ziom-role-card-body .ziom-role-card-icon {
  color: var(--ziom-text-inverse);
}

.ziom-role-card input[type="radio"]:checked + .ziom-role-card-body .ziom-role-card-desc {
  color: rgba(255, 255, 255, 0.85);
}

.ziom-role-card input[type="radio"]:checked + .ziom-role-card-body .ziom-role-card-check {
  display: block;
}

/* ========================================
 * RESPONSIVE
 * ======================================== */

@media (max-width: 700px) {
  .ziom-role-card-group {
    gap: var(--ziom-space-2);
  }
  
  .ziom-role-card {
    max-width: 100%;
  }
  
  .ziom-role-card-body {
    padding: var(--ziom-space-3);
  }
}

/* ========================================
 * DARK MODE
 * ======================================== */

[data-theme="dark"] .ziom-role-card {
  border-color: var(--ziom-glass-border-subtle);
}

[data-theme="dark"] .ziom-role-card:hover {
  border-color: var(--ziom-primary);
}
/*
 * Ziom Theme - Statistics Page Styles
 * Compact stats dashboard components
 */

/* ========================================
 * STATISTICS PAGE CONTAINER
 * ======================================== */

.ziom-stats-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--ziom-space-4);
}

/* ========================================
 * STATISTICS HEADER
 * ======================================== */

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

.ziom-stats-title {
  font-size: var(--ziom-text-xl);
  font-weight: var(--ziom-font-bold);
  color: var(--ziom-text-primary);
  margin: 0 0 var(--ziom-space-1) 0;
}

.ziom-stats-subtitle {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
  margin: 0;
}

/* ========================================
 * COMPACT FILTERS
 * ======================================== */

.ziom-stats-filters {
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border-radius: var(--ziom-radius-lg);
  border: 1px solid var(--ziom-glass-border-subtle);
  padding: var(--ziom-space-3);
  margin-bottom: var(--ziom-space-4);
}

.ziom-stats-filter-row {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  flex-wrap: wrap;
}

.ziom-stats-filter-group {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
}

.ziom-stats-filter-label {
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-secondary);
  white-space: nowrap;
}

.ziom-stats-filter-input {
  height: 32px;
  padding: 0 var(--ziom-space-3);
  font-size: var(--ziom-text-sm);
  border-radius: var(--ziom-radius-md);
  min-width: 120px;
}

.ziom-stats-filter-select {
  height: 32px;
  padding: 0 var(--ziom-space-6) 0 var(--ziom-space-3);
  font-size: var(--ziom-text-sm);
  border-radius: var(--ziom-radius-md);
  min-width: 100px;
}

.ziom-stats-filter-actions {
  display: flex;
  gap: var(--ziom-space-2);
}

.ziom-stats-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ziom-space-1);
  margin-top: var(--ziom-space-2);
  padding-top: var(--ziom-space-2);
  border-top: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-stats-quick-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px var(--ziom-space-2);
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-secondary);
  background: transparent;
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-sm);
  text-decoration: none;
  transition: all var(--ziom-transition-fast);
  white-space: nowrap;
}

.ziom-stats-quick-btn:hover {
  background: var(--ziom-primary-light);
  border-color: var(--ziom-primary);
  color: var(--ziom-primary);
}

.ziom-stats-quick-btn-secondary {
  color: var(--ziom-text-tertiary);
}

.ziom-stats-quick-btn-secondary:hover {
  background: var(--ziom-gray-100);
  border-color: var(--ziom-gray-300);
  color: var(--ziom-text-secondary);
}

/* ========================================
 * SUMMARY CARDS
 * ======================================== */

.ziom-stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--ziom-space-3);
  margin-bottom: var(--ziom-space-4);
}

.ziom-stats-summary-card {
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border-radius: var(--ziom-radius-md);
  border: 1px solid var(--ziom-glass-border-subtle);
  padding: var(--ziom-space-3);
}

.ziom-stats-summary-label {
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--ziom-tracking-wide);
  margin-bottom: var(--ziom-space-1);
}

.ziom-stats-summary-value {
  font-size: var(--ziom-text-2xl);
  font-weight: var(--ziom-font-bold);
  color: var(--ziom-text-primary);
  line-height: 1;
}

.ziom-stats-summary-detail {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-tertiary);
  margin-top: var(--ziom-space-1);
}

.ziom-stats-summary-detail span {
  display: inline-block;
  margin-right: var(--ziom-space-2);
}

/* ========================================
 * TABS NAVIGATION
 * ======================================== */

.ziom-stats-tabs {
  display: flex;
  gap: var(--ziom-space-1);
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border-radius: var(--ziom-radius-lg);
  border: 1px solid var(--ziom-glass-border-subtle);
  padding: var(--ziom-space-1);
  margin-bottom: var(--ziom-space-3);
}

.ziom-stats-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--ziom-space-2) var(--ziom-space-3);
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--ziom-radius-md);
  text-decoration: none;
  transition: all var(--ziom-transition-fast);
  cursor: pointer;
}

.ziom-stats-tab:hover {
  background: var(--ziom-gray-100);
  color: var(--ziom-text-primary);
}

.ziom-stats-tab.active {
  background: var(--ziom-bg-elevated);
  color: var(--ziom-text-primary);
  box-shadow: var(--ziom-shadow-sm);
}

/* ========================================
 * COMPACT DATA TABLE
 * ======================================== */

.ziom-stats-table-card {
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border-radius: var(--ziom-radius-lg);
  border: 1px solid var(--ziom-glass-border-subtle);
  overflow: hidden;
}

.ziom-stats-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ziom-space-3) var(--ziom-space-4);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-stats-table-title {
  font-size: var(--ziom-text-base);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin: 0;
}

.ziom-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--ziom-text-sm);
}

.ziom-stats-table th {
  padding: var(--ziom-space-2) var(--ziom-space-3);
  font-size: var(--ziom-text-xs);
  font-weight: var(--ziom-font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ziom-tracking-wide);
  color: var(--ziom-text-tertiary);
  background: rgba(0, 0, 0, 0.02);
  text-align: left;
  white-space: nowrap;
}

.ziom-stats-table th.numeric {
  text-align: right;
}

.ziom-stats-table td {
  padding: var(--ziom-space-2) var(--ziom-space-3);
  color: var(--ziom-text-primary);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-stats-table td.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

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

.ziom-stats-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.ziom-stats-table tbody tr.clickable {
  cursor: pointer;
}

.ziom-stats-table tbody tr.clickable:hover {
  background: var(--ziom-primary-light);
}

.ziom-stats-table tfoot td {
  font-weight: var(--ziom-font-semibold);
  background: rgba(0, 0, 0, 0.03);
  border-top: 1px solid var(--ziom-glass-border-subtle);
}

/* Collapsible nested table */
.ziom-stats-nested-table {
  font-size: var(--ziom-text-xs);
  background: var(--ziom-gray-50);
}

.ziom-stats-nested-table td {
  padding: var(--ziom-space-1) var(--ziom-space-3) var(--ziom-space-1) var(--ziom-space-6);
  color: var(--ziom-text-secondary);
  border-bottom: 1px solid var(--ziom-glass-border-subtle);
}

.ziom-stats-nested-table td:first-child {
  border-left: 2px solid var(--ziom-primary-light);
}

/* ========================================
 * CHARTS SECTION
 * ======================================== */

.ziom-stats-chart-card {
  background: var(--ziom-glass-bg);
  backdrop-filter: var(--ziom-glass-blur);
  -webkit-backdrop-filter: var(--ziom-glass-blur);
  border-radius: var(--ziom-radius-lg);
  border: 1px solid var(--ziom-glass-border-subtle);
  padding: var(--ziom-space-4);
  margin-bottom: var(--ziom-space-3);
}

.ziom-stats-chart-title {
  font-size: var(--ziom-text-base);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin: 0 0 var(--ziom-space-3) 0;
}

.ziom-stats-chart-container {
  min-height: 200px;
}

/* ========================================
 * AGENT STATS
 * ======================================== */

.ziom-stats-agent-table th {
  text-align: center;
}

.ziom-stats-agent-table th.group-header {
  border-bottom: none;
  padding-bottom: 0;
}

.ziom-stats-agent-table th.sub-header {
  padding-top: var(--ziom-space-1);
  font-size: 10px;
}

.ziom-stats-agent-link {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  color: var(--ziom-text-primary);
  text-decoration: none;
}

.ziom-stats-agent-link:hover {
  color: var(--ziom-primary);
}

.ziom-stats-agent-name {
  font-weight: var(--ziom-font-medium);
}

.ziom-stats-agent-email {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
}

.ziom-stats-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--ziom-text-tertiary);
  border-radius: var(--ziom-radius-sm);
  transition: all var(--ziom-transition-fast);
}

.ziom-stats-view-btn:hover {
  background: var(--ziom-primary-light);
  color: var(--ziom-primary);
}

/* ========================================
 * BACK BUTTON
 * ======================================== */

.ziom-stats-back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--ziom-space-2);
  padding: var(--ziom-space-2) var(--ziom-space-3);
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-text-secondary);
  background: var(--ziom-glass-bg);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-md);
  text-decoration: none;
  transition: all var(--ziom-transition-fast);
  margin-bottom: var(--ziom-space-3);
}

.ziom-stats-back-btn:hover {
  background: var(--ziom-glass-bg-hover);
  color: var(--ziom-text-primary);
}

/* ========================================
 * RESPONSE TIME DISPLAY
 * ======================================== */

.ziom-stats-time-display {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
}

.ziom-stats-time-icon {
  color: var(--ziom-text-tertiary);
}

.ziom-stats-time-value {
  font-variant-numeric: tabular-nums;
}

/* ========================================
 * TIME PERIOD TABLE
 * ======================================== */

.ziom-stats-period-table td:first-child {
  font-weight: var(--ziom-font-medium);
}

/* ========================================
 * DARK MODE OVERRIDES
 * ======================================== */

[data-theme="dark"] .ziom-stats-table th {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .ziom-stats-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .ziom-stats-table tfoot td {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .ziom-stats-nested-table {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .ziom-stats-tab:hover {
  background: var(--ziom-gray-200);
}

[data-theme="dark"] .ziom-stats-quick-btn-secondary:hover {
  background: var(--ziom-gray-200);
}

/* ========================================
 * RESPONSIVE
 * ======================================== */

@media (max-width: 768px) {
  .ziom-stats-page {
    padding: var(--ziom-space-3);
  }
  
  .ziom-stats-filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .ziom-stats-filter-group {
    width: 100%;
  }
  
  .ziom-stats-filter-input,
  .ziom-stats-filter-select {
    flex: 1;
  }
  
  .ziom-stats-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ziom-stats-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .ziom-stats-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .ziom-stats-summary {
    grid-template-columns: 1fr;
  }
}
/* Impersonation Banner Styles */
.impersonation-banner {
  background-color: rgba(239, 68, 68, 0.15);
  color: #f87171;
  padding: 4px 12px;
  text-align: center;
  z-index: 1000;
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.impersonation-banner .btn {
  background-color: transparent;
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.5);
  padding: 2px 8px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.impersonation-banner .btn:hover {
  background-color: rgba(239, 68, 68, 0.2);
  border-color: #f87171;
}
/* Applicants Pages Styles - OTP, Lease Invitations */

/* OTP Page Styles */
.applicants-otp-page .min-vh-100 {
  min-height: 100vh;
}

.applicants-otp-page .card {
  transition: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.applicants-otp-page .card:hover {
  transform: none;
}

.applicants-otp-page .btn:hover {
  background: #175EA3 !important;
}

.applicants-otp-page .form-control:focus {
  border-color: #1D78D1;
  box-shadow: 0 0 0 0.2rem rgba(29, 120, 209, 0.25);
}

.applicants-otp-page .btn-link:hover {
  color: #175EA3 !important;
}

.applicants-otp-page .btn-link.btn-link-black:hover {
  color: #121212 !important;
  background: none !important;
}

/* Auto-format OTP input */
.applicants-otp-page #otp_code {
  text-transform: none;
}

/* Prevent zoom on mobile when focusing input */
@media screen and (-webkit-min-device-pixel-ratio:0) {
  .applicants-otp-page select,
  .applicants-otp-page textarea,
  .applicants-otp-page input[type="text"],
  .applicants-otp-page input[type="password"],
  .applicants-otp-page input[type="datetime"],
  .applicants-otp-page input[type="datetime-local"],
  .applicants-otp-page input[type="date"],
  .applicants-otp-page input[type="month"],
  .applicants-otp-page input[type="time"],
  .applicants-otp-page input[type="week"],
  .applicants-otp-page input[type="number"],
  .applicants-otp-page input[type="email"],
  .applicants-otp-page input[type="url"] {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .applicants-otp-page .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .applicants-otp-page .card-body {
    padding: 1.5rem !important;
  }
  
  .applicants-otp-page #otp_code {
    font-size: 18px !important;
    letter-spacing: 2px !important;
  }
}

/* Lease Invitation Confirmation Page */
.lease-invitation-page .min-vh-100 {
  min-height: 100vh;
}

.lease-invitation-page .card {
  transition: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.lease-invitation-page .card:hover {
  transform: none;
}

.lease-invitation-page .btn:hover {
  background: #175EA3 !important;
}

.lease-invitation-page .form-control:focus {
  border-color: #1D78D1;
  box-shadow: 0 0 0 0.2rem rgba(29, 120, 209, 0.25);
}

@media (max-width: 768px) {
  .lease-invitation-page .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .lease-invitation-page .card-body {
    padding: 1.5rem !important;
  }
}

/* Lease Invitation Failure Page */
.lease-failure-page .min-vh-100 {
  min-height: 100vh;
}

.lease-failure-page .card {
  transition: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.lease-failure-page .card:hover {
  transform: none;
}

.lease-failure-page .btn:hover {
  background: #175EA3 !important;
}

@media (max-width: 768px) {
  .lease-failure-page .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .lease-failure-page .card-body {
    padding: 1.5rem !important;
  }
}

/* Google Places Autocomplete */
.pac-container.pac-logo {
  z-index: 10000;
}
/* Email Thread Timeline Styles */
.timeline-container {
  position: relative;
  padding: 20px 0;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #dee2e6;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-badge {
  position: absolute;
  left: -22px;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #007bff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.timeline-panel {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin-left: 20px;
  position: relative;
}

.timeline-panel::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 15px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid #dee2e6;
}

.timeline-panel::after {
  content: '';
  position: absolute;
  left: -7px;
  top: 15px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid #f8f9fa;
}

.timeline-title {
  color: #495057;
  margin-bottom: 5px;
}

.email-preview {
  background: white;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #e9ecef;
  font-size: 14px;
  line-height: 1.5;
}

.badge-sm {
  font-size: 0.75em;
}
/* Legal Pages Styles - Terms, Privacy, Cookie Policy */
.tos-container {
  max-width: 600px;
  margin: 48px auto 48px auto;
  padding: 40px 32px;
  background: #fff;
  color: #23272f;
  border-radius: 12px;
  font-family: 'Inter', Arial, sans-serif;
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}

.tos-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5em;
  letter-spacing: -1px;
  color: #1a1a1a;
}

.tos-effective-date {
  font-size: 1.1rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 2.5em;
}

.tos-container section {
  margin-bottom: 2.5em;
}

.tos-container h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.7em;
  color: #23272f;
}

.tos-container h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: #23272f;
}

.tos-container ul {
  list-style-type: disc;
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

.tos-container p, .tos-container ul {
  margin-bottom: 1.2em;
}

.tos-container a {
  color: #2563eb;
  text-decoration: underline;
}
/* Payment Success Page Styles */
.payment-success-container {
  min-height: 80vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.success-animation {
  margin-bottom: 2rem;
  animation: slideInDown 0.8s ease-out;
}

.checkmark-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(45deg, #00c851, #00ff88);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 200, 81, 0.3);
  animation: pulse 2s infinite;
}

.checkmark {
  width: 30px;
  height: 60px;
  border: solid white;
  border-width: 0 6px 6px 0;
  transform: rotate(45deg);
  animation: checkmarkDraw 0.6s ease-in-out 0.3s both;
}

.success-content {
  text-align: center;
  color: white;
  max-width: 600px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.success-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.success-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 3rem;
  font-weight: 300;
}

.action-buttons {
  margin-top: 2rem;
}

.btn-primary-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(45deg, #ffffff, #f8f9fa);
  color: #333;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border: none;
}

.btn-primary-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  color: #333;
  text-decoration: none;
}

.background-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.floating-element {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.element-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.element-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.element-3 {
  width: 60px;
  height: 60px;
  top: 10%;
  right: 20%;
  animation-delay: 4s;
}

.element-4 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 15%;
  animation-delay: 3s;
}

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

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

@keyframes pulse {
  0% {
    box-shadow: 0 20px 40px rgba(0, 200, 81, 0.3);
  }
  50% {
    box-shadow: 0 25px 50px rgba(0, 200, 81, 0.5);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 20px 40px rgba(0, 200, 81, 0.3);
  }
}

@keyframes checkmarkDraw {
  0% {
    height: 0;
  }
  100% {
    height: 60px;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@media (max-width: 768px) {
  .success-title {
    font-size: 2rem;
  }
  
  .payment-success-container {
    padding: 1rem;
  }
}
/* Leads Pages Styles */

/* Leads Index Page */
.leads-page .ziom-link {
  color: var(--ziom-text-primary);
  text-decoration: none;
}

.leads-page .ziom-link:hover {
  color: var(--ziom-primary);
}

.leads-page .ziom-text-secondary {
  color: var(--ziom-text-secondary);
}

.leads-page .ziom-text-tertiary {
  color: var(--ziom-text-tertiary);
}

.leads-page .toast { 
  background-color: white; 
}

/* Website Leads Page */
.website-leads-page .table {
  font-size: 0.95rem;
}

.website-leads-page .table th {
  font-weight: 600;
}

.website-leads-page .table td {
  vertical-align: middle;
}

.website-leads-page .badge {
  padding: 0.5em 0.75em;
  font-weight: 500;
}

.website-leads-page .contact-info {
  line-height: 1.4;
}

.website-leads-page .contact-name {
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.website-leads-page .contact-email, 
.website-leads-page .contact-phone {
  margin-bottom: 0.125rem;
}

/* Agent Filter Indicator Styling */
.website-leads-page .alert-info {
  background-color: #e7f3ff;
  border-color: #b3d9ff;
  color: #0c5460;
}

.website-leads-page .alert-info .btn-outline-secondary {
  border-color: #6c757d;
  color: #6c757d;
}

.website-leads-page .alert-info .btn-outline-secondary:hover {
  background-color: #6c757d;
  border-color: #6c757d;
  color: #fff;
}

/* Spam badge styling */
.website-leads-page .badge.bg-danger {
  font-size: 0.75rem;
  padding: 0.25em 0.5em;
}

/* Leads Navigation Tabs */
.leads-nav-tabs .card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border: 1px solid #e9ecef;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.leads-nav-tabs .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.leads-nav-tabs .card-body {
  padding: 1.25rem;
}

.leads-nav-tabs .text-muted {
  font-size: 0.875rem;
}

.leads-nav-tabs .mb-0 {
  font-size: 1.5rem;
  font-weight: 600;
}
/* Buildings Pages Styles */

/* Building Show Page - Inline Edit Input */
.ziom-inline-edit-input {
  width: auto;
  display: inline;
  padding: var(--ziom-space-2) var(--ziom-space-3);
  font-size: var(--ziom-text-xl);
  font-weight: var(--ziom-font-semibold);
  line-height: 1.3;
  border-radius: var(--ziom-radius-md);
  border: 1px solid var(--ziom-gray-300);
  background: var(--ziom-glass-bg);
  color: var(--ziom-text-primary);
  transition: border-color var(--ziom-transition-fast), box-shadow var(--ziom-transition-fast);
}

.ziom-inline-edit-input:focus {
  outline: none;
  border-color: var(--ziom-primary);
  box-shadow: 0 0 0 3px var(--ziom-primary-light);
}

/* Lead Distribution Section */
.ziom-lead-distribution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ziom-space-4);
}

@media (max-width: 768px) {
  .ziom-lead-distribution-grid {
    grid-template-columns: 1fr;
  }
}

.ziom-lead-source-card {
  display: flex;
  align-items: flex-start;
  gap: var(--ziom-space-3);
  padding: var(--ziom-space-4);
  background: var(--ziom-gray-50);
  border-radius: var(--ziom-radius-md);
  transition: all var(--ziom-transition-fast);
}

.ziom-lead-source-active.ziom-lead-source-primary {
  background: var(--ziom-primary-light);
}

.ziom-lead-source-active.ziom-lead-source-success {
  background: var(--ziom-success-light);
}

.ziom-lead-source-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--ziom-radius-md);
  background: var(--ziom-gray-200);
  color: var(--ziom-text-tertiary);
  flex-shrink: 0;
}

.ziom-lead-source-icon-primary {
  background: var(--ziom-primary);
  color: var(--ziom-text-inverse);
}

.ziom-lead-source-icon-success {
  background: var(--ziom-success);
  color: var(--ziom-text-inverse);
}

.ziom-lead-source-content {
  flex: 1;
  min-width: 0;
}

.ziom-lead-source-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ziom-space-2);
  margin-bottom: var(--ziom-space-1);
}

.ziom-lead-source-title {
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin: 0;
}

.ziom-lead-source-description {
  font-size: var(--ziom-text-xs);
  color: var(--ziom-text-secondary);
  margin: 0;
  line-height: var(--ziom-leading-relaxed);
}

/* Building Nav - Card Grid 5-column variant */
.ziom-card-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1024px) {
  .ziom-card-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ziom-card-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ziom-card-grid-5 {
    grid-template-columns: 1fr;
  }
}

/* Info Card Inner Layout */
.ziom-info-card-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ziom-info-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--ziom-radius-md);
  flex-shrink: 0;
}

.ziom-info-card-icon-primary {
  background: var(--ziom-primary-light);
  color: var(--ziom-primary);
}

.ziom-info-card-icon-success {
  background: var(--ziom-success-light);
  color: var(--ziom-success);
}

.ziom-info-card-icon-warning {
  background: var(--ziom-warning-light);
  color: var(--ziom-warning);
}

.ziom-info-card-icon-info {
  background: var(--ziom-info-light);
  color: var(--ziom-info);
}

.ziom-info-card-icon-secondary {
  background: var(--ziom-gray-100);
  color: var(--ziom-text-secondary);
}

/* Badge Actions */
.ziom-badge-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  margin-left: var(--ziom-space-1);
  background: transparent;
  border: none;
  color: var(--ziom-text-tertiary);
  cursor: pointer;
  border-radius: var(--ziom-radius-xs);
  transition: all var(--ziom-transition-fast);
}

.ziom-badge-action:hover {
  color: var(--ziom-primary);
  background: var(--ziom-primary-light);
}

.ziom-badge-action-text {
  display: inline;
  padding: 0;
  margin-left: var(--ziom-space-1);
  background: transparent;
  border: none;
  color: var(--ziom-text-tertiary);
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
  transition: color var(--ziom-transition-fast);
}

.ziom-badge-action-text:hover {
  color: var(--ziom-primary);
}

/* Copy Badge Hover Effect */
.ziom-copy-badge {
  cursor: pointer;
  transition: all var(--ziom-transition-fast);
}

.ziom-copy-badge:hover {
  background: var(--ziom-gray-200);
}

/* Details/Collapsible */
.ziom-details {
  margin-top: var(--ziom-space-3);
}

.ziom-details-summary {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  padding: var(--ziom-space-2) 0;
  font-size: var(--ziom-text-sm);
  font-weight: var(--ziom-font-medium);
  color: var(--ziom-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.ziom-details-summary::-webkit-details-marker {
  display: none;
}

.ziom-details-summary:hover {
  color: var(--ziom-primary-hover);
}

.ziom-details-icon {
  transition: transform var(--ziom-transition-fast);
}

.ziom-details[open] .ziom-details-icon {
  transform: rotate(90deg);
}

.ziom-details-content {
  padding-top: var(--ziom-space-3);
}

/* Building Header Styles */
.ziom-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ziom-space-4);
  padding: var(--ziom-space-4) 0;
  margin-bottom: var(--ziom-space-4);
}

.ziom-page-header-left {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-3);
  flex-wrap: wrap;
  min-width: 0;
}

.ziom-page-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--ziom-gray-100);
  border-radius: var(--ziom-radius-md);
  color: var(--ziom-text-secondary);
  flex-shrink: 0;
}

.ziom-page-header-image {
  flex-shrink: 0;
}

.ziom-building-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--ziom-radius-md);
  object-fit: cover;
}

.ziom-page-header-icon svg {
  width: 24px;
  height: 24px;
}

.ziom-page-header-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ziom-page-header-title {
  font-size: var(--ziom-text-xl);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin: 0;
  line-height: 1.3;
}

.ziom-page-header-subtitle {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--ziom-space-1);
}

.ziom-page-header-badges {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  flex-wrap: wrap;
}

.ziom-page-header-actions {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-2);
  flex-shrink: 0;
}

.ziom-page-header-actions .ziom-btn svg {
  width: 14px;
  height: 14px;
}

.ziom-dropdown {
  position: relative;
}

.ziom-dropdown-menu {
  min-width: 180px;
  padding: var(--ziom-space-2) 0;
  background: var(--ziom-bg-elevated);
  border: 1px solid var(--ziom-glass-border-subtle);
  border-radius: var(--ziom-radius-lg);
  box-shadow: var(--ziom-shadow-lg);
}

.ziom-dropdown-menu .dropdown-item {
  padding: var(--ziom-space-2) var(--ziom-space-4);
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-primary);
  display: flex;
  align-items: center;
}

.ziom-dropdown-menu .dropdown-item:hover {
  background: var(--ziom-gray-50);
}

.ziom-dropdown-menu .dropdown-item.text-danger {
  color: var(--ziom-danger);
}

.ziom-dropdown-menu .dropdown-item.text-danger:hover {
  background: var(--ziom-danger-light);
}

.ziom-dropdown-menu .dropdown-divider {
  margin: var(--ziom-space-2) 0;
  border-color: var(--ziom-glass-border-subtle);
}

@media (max-width: 768px) {
  .ziom-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--ziom-space-3);
  }
  
  .ziom-page-header-left {
    width: 100%;
  }
  
  .ziom-page-header-title {
    font-size: var(--ziom-text-lg);
  }
  
  .ziom-page-header-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Plausible Analytics Section */
.ziom-analytics-link {
  text-decoration: none;
  display: block;
}

.ziom-analytics-content {
  display: flex;
  align-items: center;
  gap: var(--ziom-space-4);
}

.ziom-analytics-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--ziom-gray-100);
  border-radius: var(--ziom-radius-md);
  color: var(--ziom-text-secondary);
  flex-shrink: 0;
}

.ziom-analytics-text {
  flex: 1;
}

.ziom-analytics-title {
  font-size: var(--ziom-text-base);
  font-weight: var(--ziom-font-semibold);
  color: var(--ziom-text-primary);
  margin: 0 0 var(--ziom-space-1) 0;
}

.ziom-analytics-description {
  font-size: var(--ziom-text-sm);
  color: var(--ziom-text-secondary);
  margin: 0;
}

.ziom-analytics-action {
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .ziom-flex-between {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--ziom-space-3);
  }
  
  .ziom-analytics-action {
    width: 100%;
  }
  
  .ziom-analytics-action .ziom-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Building Email Lists Page */
.building-email-lists-page .table {
  font-size: 0.95rem;
}

.building-email-lists-page .table th {
  font-weight: 600;
}

.building-email-lists-page .table td {
  vertical-align: middle;
}

.building-email-lists-page .remove-email-btn {
  transition: all 0.2s ease-in-out;
  border: 1px solid #dc3545;
}

.building-email-lists-page .remove-email-btn:hover {
  background-color: #bb2d3b;
  border-color: #b02a37;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.building-email-lists-page .remove-email-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(220, 53, 69, 0.2);
}

.building-email-lists-page .remove-email-btn span {
  font-size: 0.875rem;
}

/* Building Form Nav Styles */
.building-form-nav .card {
  border: none;
  border-radius: 0.5rem;
}

.building-form-nav .card-header {
  padding: 0.75rem 1rem;
}

.building-form-nav .list-group-item {
  border: none;
  transition: all 0.2s ease;
}

.building-form-nav .list-group-item-action {
  border-left: 3px solid transparent;
}

.building-form-nav .list-group-item-action:hover {
  background-color: #f8f9fa;
  border-left-color: #dee2e6;
}

.building-form-nav .list-group-item-action.active {
  background-color: #e7f1ff;
  border-left-color: #0d6efd;
  color: #0d6efd;
}

.building-form-nav .list-group-item-action.active .fw-semibold {
  color: #0d6efd;
}

.building-form-nav .list-group-item-action.active small {
  color: #6c757d !important;
}

.building-form-nav .nav-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.building-form-nav .nav-icon-wrapper.active {
  background-color: #e7f1ff;
}

.building-form-nav .list-group-item-action:hover .nav-icon-wrapper:not(.active) {
  background-color: #e9ecef;
}

.building-form-nav .building-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}

.building-form-nav .building-image-placeholder {
  min-height: 150px;
}

.building-form-nav .border-dashed {
  border-style: dashed !important;
  border-color: #dee2e6 !important;
}

.building-form-nav .building-image-container img {
  transition: transform 0.3s ease;
}

.building-form-nav .building-image-container:hover img {
  transform: scale(1.05);
}
/* Public Pages Styles - Home, Contact, About */

/* Home Signed In Page */
.home-signed-in-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.welcome-section {
  text-align: center;
  margin-bottom: 4rem;
}

.welcome-title {
  color: #171717;
  font-size: 34px;
  font-style: normal;
  font-weight: 600;
  line-height: 120%;
  margin-bottom: 24px;
}

.brand-highlight {
  background: linear-gradient(135deg, #1d78d1, #0056b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-subtitle {
  color: #121212;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
}

.welcome-description {
  color: #121212;
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.8;
}

.demo-section {
  background: #f5faff;
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 3rem;
  text-align: center;
}

.demo-title {
  color: #121212;
  font-size: 34px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
  margin-bottom: 16px;
}

.demo-description {
  color: #121212;
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
  margin-bottom: 3rem;
  opacity: 0.8;
}

.demo-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-item {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-item h3 {
  color: #121212;
  font-size: 28px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
  margin-bottom: 12px;
}

.feature-item p {
  color: #121212;
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
  opacity: 0.8;
}

.cta-section {
  margin-top: 2rem;
}

.schedule-demo-btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 56px;
  border-radius: 200px;
  background-color: #1d78d1;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.schedule-demo-btn:hover {
  background-color: #1565c0;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 120, 209, 0.3);
}

.cta-note {
  margin-top: 1rem;
  color: #121212;
  font-size: 14px;
  font-weight: 400;
  opacity: 0.6;
}

.info-section {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.info-content h3 {
  color: #121212;
  font-size: 28px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
  margin-bottom: 1rem;
}

.expectations-list {
  list-style: none;
  padding: 0;
}

.expectations-list li {
  padding: 0.5rem 0;
  color: #121212;
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
  position: relative;
  padding-left: 1.5rem;
  opacity: 0.8;
}

.expectations-list li:before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #1d78d1;
  font-weight: bold;
}

@media (max-width: 768px) {
  .home-signed-in-container {
    padding: 1rem;
  }
  
  .welcome-title {
    font-size: 28px;
  }
  
  .demo-title {
    font-size: 28px;
  }
  
  .demo-section {
    padding: 2rem 1rem;
  }
  
  .demo-features {
    grid-template-columns: 1fr;
  }
  
  .feature-item h3 {
    font-size: 24px;
  }
  
  .info-content h3 {
    font-size: 24px;
  }
}

/* Contact Page */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 80vh;
}

.contact-hero {
  text-align: center;
  margin-bottom: 4rem;
  padding-top: 2rem;
}

.contact-title {
  color: #171717;
  font-size: 34px;
  font-style: normal;
  font-weight: 600;
  line-height: 120%;
  margin-bottom: 24px;
}

.contact-subtitle {
  color: #121212;
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
  max-width: 500px;
  margin: 0 auto;
  opacity: 0.8;
}

.contact-main {
  display: flex;
  justify-content: center;
}

.contact-card {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.contact-icon {
  color: #1d78d1;
  font-size: 2.5rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.contact-details h2 {
  color: #171717;
  font-size: 28px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
  margin-bottom: 12px;
}

.contact-details p {
  color: #121212;
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.contact-email-btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 32px;
  border-radius: 200px;
  background-color: #1d78d1;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-email-btn:hover {
  background-color: #1565c0;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 120, 209, 0.3);
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-info h3 {
  color: #171717;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
  margin-bottom: 1rem;
}

.help-topics {
  list-style: none;
  padding: 0;
}

.help-topics li {
  padding: 0.5rem 0;
  color: #121212;
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
  position: relative;
  padding-left: 1.5rem;
  opacity: 0.8;
}

.help-topics li:before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: #1d78d1;
  font-weight: bold;
  font-size: 1.2rem;
}

.contact-note {
  background: #f5faff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.contact-note p {
  color: #121212;
  font-size: 14px;
  font-weight: 400;
  line-height: 130%;
  margin: 0;
  opacity: 0.8;
}

.contact-note strong {
  color: #171717;
  font-weight: 500;
}

@media (max-width: 768px) {
  .contact-container {
    padding: 1rem;
  }
  
  .contact-title {
    font-size: 28px;
  }
  
  .contact-card {
    padding: 2rem 1.5rem;
  }
  
  .contact-method {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .contact-details h2 {
    font-size: 24px;
  }
}

/* About Page */
.about-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 80vh;
}

.about-hero {
  text-align: center;
  margin-bottom: 4rem;
  padding-top: 2rem;
}

.about-title {
  color: #171717;
  font-size: 34px;
  font-style: normal;
  font-weight: 600;
  line-height: 120%;
  margin-bottom: 24px;
}

.about-subtitle {
  color: #121212;
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.8;
}

.about-main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-section {
  display: flex;
  justify-content: center;
}

.about-card {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  width: 100%;
}

.about-card h2 {
  color: #171717;
  font-size: 28px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
  margin-bottom: 1.5rem;
}

.about-description {
  color: #121212;
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.about-description a {
  color: #1d78d1;
  text-decoration: none;
  font-weight: 500;
}

.about-description a:hover {
  text-decoration: underline;
}

.values-section {
  margin-top: 2rem;
}

.values-section h3 {
  color: #171717;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
  margin-bottom: 1.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.value-item {
  background: #f5faff;
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.value-item:hover {
  transform: translateY(-2px);
}

.value-item h4 {
  color: #171717;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.value-item p {
  color: #121212;
  font-size: 14px;
  font-weight: 400;
  line-height: 130%;
  opacity: 0.8;
  margin: 0;
}

.mission-text {
  color: #121212;
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.mission-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.mission-feature {
  text-align: center;
  padding: 1.5rem;
}

.mission-feature .feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.mission-feature h4 {
  color: #171717;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.mission-feature p {
  color: #121212;
  font-size: 14px;
  font-weight: 400;
  line-height: 130%;
  opacity: 0.8;
  margin: 0;
}

.contact-text {
  color: #121212;
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
  margin-bottom: 2rem;
  opacity: 0.8;
  text-align: center;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-btn, .demo-btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 32px;
  border-radius: 200px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-btn {
  background-color: #1d78d1;
  color: #fff;
}

.contact-btn:hover {
  background-color: #1565c0;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 120, 209, 0.3);
}

.demo-btn {
  background-color: transparent;
  color: #1d78d1;
  border: 2px solid #1d78d1;
}

.demo-btn:hover {
  background-color: #1d78d1;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 120, 209, 0.3);
}

@media (max-width: 768px) {
  .about-container {
    padding: 1rem;
  }
  
  .about-title {
    font-size: 28px;
  }
  
  .about-card {
    padding: 2rem 1.5rem;
  }
  
  .about-card h2 {
    font-size: 24px;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .mission-features {
    grid-template-columns: 1fr;
  }
  
  .contact-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-btn, .demo-btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
}

/* Help Pages */
.help-guide-card {
  background: #f8f9fa;
  transition: background 0.2s ease;
}

.help-guide-card:hover {
  background: #e9ecef;
  text-decoration: none;
}

.help-guide-icon {
  background: #1d78d1;
}

.help-guide-title {
  color: #171717;
  font-weight: 500;
}

.help-guide-description {
  color: #6c757d;
}

.help-table {
  border: 1px solid #dee2e6;
}

.help-table th {
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}

.help-table td {
  border-bottom: 1px solid #dee2e6;
}

.help-code-block {
  background: #f8f9fa;
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
}

.help-tip-box {
  background: #f8f9fa;
}

.help-tip-box h3 {
  color: #171717;
  font-weight: 500;
}

.help-tip-box p {
  color: #6c757d;
}

code {
  background: #f1f3f5;
  color: #e83e8c;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
  font-size: 0.875em;
}
/* Billing Page Styles */
.billing-page .card.numb {
  transform: none;
  transition: none;
}

.billing-page .card.numb:hover {
  transform: none;
  transition: none;
}

.billing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 0 2rem;
}

.billing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 1px solid #e5e7eb;
}

.billing-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.billing-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  margin: 0;
}

/* Loading Animation Styles */
.subscription-loading {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}

.loading-text {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 1rem;
  font-weight: 500;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Skeleton Loading Cards */
.skeleton-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  width: 100%;
  height: 300px;
}

.skeleton-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skeleton-header {
  height: 24px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  margin-bottom: 1rem;
  width: 60%;
}

.skeleton-line {
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.skeleton-line.short {
  width: 75%;
}

.skeleton-button {
  height: 36px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
  margin-top: 1rem;
  width: 120px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .skeleton-cards {
    grid-template-columns: 1fr;
  }
  
  .subscription-loading {
    padding: 2rem 0.5rem;
    min-height: 300px;
  }
}
/*
 * Ziom Theme - Dark Mode Third-Party Overrides
 * Bootstrap, Tom Select, and other library fixes
 * 
 * Note: Core Ziom components (alerts, tooltips, progress, avatars, tabs,
 * accordion, lists, grid) have dark mode styles built into their own files.
 * This file is specifically for third-party library overrides.
 */

/* ========================================
 * BODY BACKGROUND - Deep Black
 * Must override all other body styles
 * ======================================== */

[data-theme="dark"] body,
html[data-theme="dark"] body {
  background: #000000 !important;
  background-color: #000000 !important;
  color: var(--ziom-text-primary);
}

/* ========================================
 * BOOTSTRAP ALERTS
 * ======================================== */

[data-theme="dark"] .alert {
  background: var(--ziom-glass-bg);
  border-color: var(--ziom-glass-border-subtle);
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .alert-primary {
  background: var(--ziom-primary-light);
  border-color: var(--ziom-primary);
  color: var(--ziom-primary);
}

[data-theme="dark"] .alert-success {
  background: var(--ziom-success-light);
  border-color: var(--ziom-success);
  color: var(--ziom-success);
}

[data-theme="dark"] .alert-warning {
  background: var(--ziom-warning-light);
  border-color: var(--ziom-warning);
  color: var(--ziom-warning);
}

[data-theme="dark"] .alert-danger {
  background: var(--ziom-danger-light);
  border-color: var(--ziom-danger);
  color: var(--ziom-danger);
}

[data-theme="dark"] .alert-info {
  background: var(--ziom-info-light);
  border-color: var(--ziom-info);
  color: var(--ziom-info);
}

/* ========================================
 * BOOTSTRAP TABLES
 * ======================================== */

[data-theme="dark"] .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--ziom-text-primary);
  --bs-table-border-color: var(--ziom-glass-border-subtle);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .table > thead {
  background: rgba(255, 255, 255, 0.03);
}

/* ========================================
 * BOOTSTRAP MODALS
 * ======================================== */

[data-theme="dark"] .modal-content {
  background: var(--ziom-bg-elevated);
  border-color: var(--ziom-glass-border-subtle);
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .modal-header {
  border-color: var(--ziom-glass-border-subtle);
}

[data-theme="dark"] .modal-footer {
  border-color: var(--ziom-glass-border-subtle);
  background: var(--ziom-gray-50);
}

[data-theme="dark"] .btn-close {
  filter: invert(1);
}

/* ========================================
 * BOOTSTRAP CARDS
 * ======================================== */

[data-theme="dark"] .card {
  background: var(--ziom-bg-elevated);
  border-color: var(--ziom-glass-border-subtle);
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .card-header {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--ziom-glass-border-subtle);
}

[data-theme="dark"] .card-footer {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--ziom-glass-border-subtle);
}

/* Cards with bg-light should use slightly darker background */
[data-theme="dark"] .card.bg-light {
  background-color: var(--ziom-gray-100) !important;
}

/* ========================================
 * BOOTSTRAP ACCORDION
 * ======================================== */

[data-theme="dark"] .accordion {
  --bs-accordion-bg: var(--ziom-bg-elevated);
  --bs-accordion-color: var(--ziom-text-primary);
  --bs-accordion-border-color: var(--ziom-glass-border-subtle);
  --bs-accordion-btn-bg: var(--ziom-bg-elevated);
  --bs-accordion-btn-color: var(--ziom-text-primary);
  --bs-accordion-active-bg: var(--ziom-gray-100);
  --bs-accordion-active-color: var(--ziom-text-primary);
}

[data-theme="dark"] .accordion-item {
  background: var(--ziom-bg-elevated);
  border-color: var(--ziom-glass-border-subtle);
}

[data-theme="dark"] .accordion-button {
  background: var(--ziom-bg-elevated);
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
  background: var(--ziom-gray-100);
  color: var(--ziom-text-primary);
  box-shadow: none;
}

[data-theme="dark"] .accordion-button::after {
  filter: invert(1);
}

[data-theme="dark"] .accordion-button:focus {
  box-shadow: none;
  border-color: var(--ziom-glass-border-subtle);
}

[data-theme="dark"] .accordion-body {
  background: var(--ziom-bg-elevated);
}

/* ========================================
 * BOOTSTRAP DROPDOWNS
 * ======================================== */

[data-theme="dark"] .dropdown-menu {
  background: var(--ziom-bg-elevated);
  border-color: var(--ziom-glass-border-subtle);
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .dropdown-item {
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
  background: var(--ziom-gray-100);
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .dropdown-divider {
  border-color: var(--ziom-glass-border-subtle);
}

/* ========================================
 * BOOTSTRAP FORMS
 * ======================================== */

[data-theme="dark"] .form-control {
  background: var(--ziom-bg-elevated);
  border-color: var(--ziom-glass-border-subtle);
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .form-control:focus {
  background: var(--ziom-bg-elevated);
  border-color: var(--ziom-primary);
  color: var(--ziom-text-primary);
  box-shadow: 0 0 0 0.25rem var(--ziom-primary-light);
}

[data-theme="dark"] .form-control::placeholder {
  color: var(--ziom-text-tertiary);
}

[data-theme="dark"] .form-select {
  background-color: var(--ziom-bg-elevated);
  border-color: var(--ziom-glass-border-subtle);
  color: var(--ziom-text-primary);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238E8E93' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

[data-theme="dark"] .form-check-input {
  background-color: var(--ziom-bg-elevated);
  border-color: var(--ziom-gray-400);
}

[data-theme="dark"] .form-check-input:checked {
  background-color: var(--ziom-primary);
  border-color: var(--ziom-primary);
}

[data-theme="dark"] .input-group-text {
  background: var(--ziom-gray-100);
  border-color: var(--ziom-glass-border-subtle);
  color: var(--ziom-text-secondary);
}

/* ========================================
 * TOM SELECT
 * ======================================== */

[data-theme="dark"] .ts-control,
[data-theme="dark"] .ts-wrapper.single .ts-control {
  background: var(--ziom-bg-elevated);
  color: var(--ziom-text-primary);
  border-color: var(--ziom-glass-border-subtle);
}

[data-theme="dark"] .ts-control input {
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .ts-control input::placeholder {
  color: var(--ziom-text-tertiary);
}

[data-theme="dark"] .ts-dropdown {
  background: var(--ziom-bg-elevated);
  color: var(--ziom-text-primary);
  border-color: var(--ziom-glass-border-subtle);
}

[data-theme="dark"] .ts-dropdown .option {
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .ts-dropdown .option:hover,
[data-theme="dark"] .ts-dropdown .option.active {
  background: var(--ziom-gray-100);
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .ts-dropdown .optgroup-header {
  color: var(--ziom-text-secondary);
  background: var(--ziom-gray-50);
}

[data-theme="dark"] .ts-wrapper.multi .ts-control > div {
  background: var(--ziom-gray-200);
  color: var(--ziom-text-primary);
}

/* ========================================
 * LINKS
 * ======================================== */

[data-theme="dark"] a {
  color: #0A84FF;
}

[data-theme="dark"] a:hover {
  color: #409CFF;
}

/* Preserve inverse text color for link buttons */
[data-theme="dark"] a.ziom-btn-primary,
[data-theme="dark"] a.ziom-btn-success,
[data-theme="dark"] a.ziom-btn-warning,
[data-theme="dark"] a.ziom-btn-danger,
[data-theme="dark"] .ziom-btn-primary a,
[data-theme="dark"] .ziom-badge-solid a {
  color: var(--ziom-text-inverse);
}

/* Navigation links should use text-primary, not link blue */
[data-theme="dark"] .ziom-nav-link,
[data-theme="dark"] .ziom-nav-dropdown-toggle,
[data-theme="dark"] .ziom-nav-dropdown-item,
[data-theme="dark"] .ziom-admin-bar-link,
[data-theme="dark"] .ziom-admin-bar-dropdown-toggle,
[data-theme="dark"] .ziom-admin-bar-dropdown-item {
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .ziom-nav-link:hover,
[data-theme="dark"] .ziom-nav-dropdown-toggle:hover,
[data-theme="dark"] .ziom-nav-dropdown-item:hover,
[data-theme="dark"] .ziom-admin-bar-link:hover,
[data-theme="dark"] .ziom-admin-bar-dropdown-toggle:hover,
[data-theme="dark"] .ziom-admin-bar-dropdown-item:hover {
  color: var(--ziom-text-primary);
}

/* Active nav link should use primary color */
[data-theme="dark"] .ziom-nav-link.active {
  color: var(--ziom-primary);
}

/* ========================================
 * PAGINATION
 * ======================================== */

[data-theme="dark"] .pagination .page-item a,
[data-theme="dark"] .pagination .page-item span {
  background-color: var(--ziom-bg-elevated);
  border-color: var(--ziom-glass-border-subtle);
  color: var(--ziom-primary);
}

[data-theme="dark"] .pagination .page-item a:hover,
[data-theme="dark"] .pagination .page-item a:focus {
  background-color: var(--ziom-gray-100);
  border-color: var(--ziom-glass-border-subtle);
  color: var(--ziom-primary);
}

[data-theme="dark"] .pagination .page-item.active a,
[data-theme="dark"] .pagination .page-item.active span {
  background-color: var(--ziom-primary);
  border-color: var(--ziom-primary);
  color: white;
}

[data-theme="dark"] .pagination .page-item.disabled a,
[data-theme="dark"] .pagination .page-item.disabled span {
  background-color: var(--ziom-gray-100);
  border-color: var(--ziom-glass-border-subtle);
  color: var(--ziom-text-tertiary);
}

/* ========================================
 * BOOTSTRAP BUTTONS
 * ======================================== */

[data-theme="dark"] .btn-outline-primary {
  color: var(--ziom-primary);
  border-color: var(--ziom-primary);
}

[data-theme="dark"] .btn-outline-primary:hover {
  background: var(--ziom-primary);
  color: white;
}

[data-theme="dark"] .btn-outline-secondary {
  color: var(--ziom-text-secondary);
  border-color: var(--ziom-gray-400);
}

[data-theme="dark"] .btn-outline-secondary:hover {
  background: var(--ziom-gray-200);
  color: var(--ziom-text-primary);
  border-color: var(--ziom-gray-400);
}

/* ========================================
 * BOOTSTRAP BADGE
 * ======================================== */

[data-theme="dark"] .badge.bg-light {
  background: var(--ziom-gray-200) !important;
  color: var(--ziom-text-primary) !important;
}

[data-theme="dark"] .badge.bg-secondary {
  background: var(--ziom-gray-300) !important;
}

/* ========================================
 * BOOTSTRAP LIST GROUP
 * ======================================== */

[data-theme="dark"] .list-group-item {
  background: var(--ziom-bg-elevated);
  border-color: var(--ziom-glass-border-subtle);
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .list-group-item:hover {
  background: var(--ziom-gray-100);
}

[data-theme="dark"] .list-group-item.active {
  background: var(--ziom-primary);
  border-color: var(--ziom-primary);
}

/* ========================================
 * BOOTSTRAP NAV/TABS
 * ======================================== */

/* General nav-link - should not be blue */
[data-theme="dark"] .nav-link {
  color: var(--ziom-text-secondary);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link:focus {
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .nav-link.active {
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .nav-link.disabled {
  color: var(--ziom-text-tertiary);
}

/* Nav tabs specific */
[data-theme="dark"] .nav-tabs {
  border-color: var(--ziom-glass-border-subtle);
}

[data-theme="dark"] .nav-tabs .nav-link {
  color: var(--ziom-text-secondary);
}

[data-theme="dark"] .nav-tabs .nav-link:hover {
  border-color: var(--ziom-gray-200) var(--ziom-gray-200) var(--ziom-glass-border-subtle);
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .nav-tabs .nav-link.active {
  background: var(--ziom-bg-elevated);
  border-color: var(--ziom-glass-border-subtle) var(--ziom-glass-border-subtle) var(--ziom-bg-elevated);
  color: var(--ziom-text-primary);
}

/* Nav pills */
[data-theme="dark"] .nav-pills .nav-link {
  color: var(--ziom-text-secondary);
}

[data-theme="dark"] .nav-pills .nav-link:hover {
  background: var(--ziom-gray-100);
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .nav-pills .nav-link.active {
  background: var(--ziom-primary);
  color: white;
}

/* ========================================
 * TEXT UTILITIES
 * ======================================== */

[data-theme="dark"] .text-muted {
  color: var(--ziom-text-secondary) !important;
}

[data-theme="dark"] .text-dark {
  color: var(--ziom-text-primary) !important;
}

[data-theme="dark"] .text-body {
  color: var(--ziom-text-primary) !important;
}

/* ========================================
 * BACKGROUND UTILITIES
 * ======================================== */

[data-theme="dark"] .bg-white {
  background-color: var(--ziom-bg-elevated) !important;
}

[data-theme="dark"] .bg-light {
  background-color: var(--ziom-gray-100) !important;
}

/* Containers should be transparent to show body background */
[data-theme="dark"] .container,
[data-theme="dark"] .container-fluid,
[data-theme="dark"] .container-sm,
[data-theme="dark"] .container-md,
[data-theme="dark"] .container-lg,
[data-theme="dark"] .container-xl,
[data-theme="dark"] .container-xxl {
  background: transparent;
}

/* Footer */
[data-theme="dark"] footer.bg-light,
[data-theme="dark"] .footer.bg-light {
  background-color: var(--ziom-gray-50) !important;
}

/* ========================================
 * BORDER UTILITIES
 * ======================================== */

[data-theme="dark"] .border {
  border-color: var(--ziom-glass-border-subtle) !important;
}

[data-theme="dark"] .border-top,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-start,
[data-theme="dark"] .border-end {
  border-color: var(--ziom-glass-border-subtle) !important;
}

/* ========================================
 * FLASH MESSAGES
 * ======================================== */

[data-theme="dark"] #flash-messages .alert {
  background: var(--ziom-glass-bg);
  border-color: var(--ziom-glass-border-subtle);
  color: var(--ziom-text-primary);
}

/* ========================================
 * BOOTSTRAP TABLE (via bootstrap-table)
 * ======================================== */

[data-theme="dark"] .bootstrap-table .fixed-table-container {
  background: var(--ziom-bg-elevated);
  border-color: var(--ziom-glass-border-subtle);
}

[data-theme="dark"] .bootstrap-table .fixed-table-body {
  background: transparent;
}

[data-theme="dark"] .bootstrap-table .fixed-table-toolbar .btn {
  background: var(--ziom-bg-elevated);
  border-color: var(--ziom-glass-border-subtle);
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .bootstrap-table .fixed-table-toolbar .btn:hover {
  background: var(--ziom-gray-100);
}

/* ========================================
 * PUBLIC PAGES (Contact, About, Help)
 * ======================================== */

[data-theme="dark"] .contact-title,
[data-theme="dark"] .about-title,
[data-theme="dark"] .welcome-title {
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .contact-subtitle,
[data-theme="dark"] .about-subtitle,
[data-theme="dark"] .welcome-subtitle,
[data-theme="dark"] .welcome-description {
  color: var(--ziom-text-secondary);
}

[data-theme="dark"] .contact-card,
[data-theme="dark"] .about-card {
  background: var(--ziom-bg-elevated);
  box-shadow: var(--ziom-shadow-lg);
}

[data-theme="dark"] .contact-method {
  border-bottom-color: var(--ziom-glass-border-subtle);
}

[data-theme="dark"] .contact-details h2,
[data-theme="dark"] .about-card h2,
[data-theme="dark"] .contact-info h3 {
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .contact-details p,
[data-theme="dark"] .about-description,
[data-theme="dark"] .mission-text,
[data-theme="dark"] .contact-text {
  color: var(--ziom-text-secondary);
}

[data-theme="dark"] .help-topics li {
  color: var(--ziom-text-secondary);
}

[data-theme="dark"] .contact-note {
  background: var(--ziom-gray-100);
}

[data-theme="dark"] .contact-note p,
[data-theme="dark"] .contact-note strong {
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .value-item {
  background: var(--ziom-gray-100);
}

[data-theme="dark"] .value-item h4,
[data-theme="dark"] .mission-feature h4 {
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .value-item p,
[data-theme="dark"] .mission-feature p {
  color: var(--ziom-text-secondary);
}

[data-theme="dark"] .demo-section {
  background: var(--ziom-gray-100);
}

[data-theme="dark"] .demo-title,
[data-theme="dark"] .demo-description {
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .feature-item {
  background: var(--ziom-bg-elevated);
  box-shadow: var(--ziom-shadow-md);
}

[data-theme="dark"] .feature-item h3,
[data-theme="dark"] .info-content h3 {
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .feature-item p,
[data-theme="dark"] .expectations-list li,
[data-theme="dark"] .cta-note {
  color: var(--ziom-text-secondary);
}

[data-theme="dark"] .info-section {
  background: var(--ziom-bg-elevated);
  box-shadow: var(--ziom-shadow-md);
}

/* Help page specific */
[data-theme="dark"] .help-guide-card {
  background: var(--ziom-gray-100);
}

[data-theme="dark"] .help-guide-card:hover {
  background: var(--ziom-gray-200);
}

[data-theme="dark"] .help-guide-icon {
  background: var(--ziom-primary);
}

[data-theme="dark"] .help-guide-title {
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .help-guide-description {
  color: var(--ziom-text-secondary);
}

[data-theme="dark"] .help-table {
  border-color: var(--ziom-glass-border-subtle);
}

[data-theme="dark"] .help-table th {
  background: var(--ziom-gray-100);
  color: var(--ziom-text-primary);
  border-color: var(--ziom-glass-border-subtle);
}

[data-theme="dark"] .help-table td {
  color: var(--ziom-text-primary);
  border-color: var(--ziom-glass-border-subtle);
}

[data-theme="dark"] .help-code-block {
  background: var(--ziom-gray-100);
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .help-tip-box {
  background: var(--ziom-gray-100);
}

[data-theme="dark"] .help-tip-box h3 {
  color: var(--ziom-text-primary);
}

[data-theme="dark"] .help-tip-box p {
  color: var(--ziom-text-secondary);
}

[data-theme="dark"] code {
  background: var(--ziom-gray-200);
  color: var(--ziom-danger);
}
/*
 * ============================================
 * ZIOM THEME
 * ============================================
 * 
 * Apple iOS Liquid Glass Inspired Design System
 * 
 * A modern, minimal CSS theme featuring:
 * - Frosted glass effects (backdrop-filter: blur)
 * - Soft, translucent backgrounds
 * - Generous rounded corners
 * - Ambient shadows
 * - Clean typography
 * 
 * Usage:
 *   Add class "ziom" to your body element or wrap content
 *   in a container with "ziom" class to apply theme styles.
 *   
 *   All components use the .ziom-* prefix to avoid conflicts
 *   with other CSS frameworks like Bootstrap.
 * 
 * Components:
 *   - .ziom-card        - Glass-effect cards
 *   - .ziom-table       - Clean minimal tables
 *   - .ziom-btn         - Themed buttons
 *   - .ziom-input       - Pill-shaped inputs
 *   - .ziom-search      - Compact search bar
 *   - .ziom-badge       - Status badges/pills
 *   - .ziom-pagination  - Pagination controls
 *   - .ziom-modal       - Modal dialogs
 *   - .ziom-alert       - Alerts, toasts, banners
 *   - .ziom-tooltip     - Tooltips and popovers
 *   - .ziom-progress    - Progress bars and spinners
 *   - .ziom-avatar      - User avatars
 *   - .ziom-tabs        - Tab navigation
 *   - .ziom-accordion   - Collapsible sections
 *   - .ziom-list        - Styled lists
 *   - .ziom-grid        - Grid layout system
 * 
 * ============================================
 *
 * Design Tokens

 *
 * Base Styles

 *
 * Core Components
















 *
 * Application Components















 *
 * Page-specific styles









 *
 * Dark Mode - Third-Party Overrides (must be last)

 */
