/* BLOOM LIMS Modern Design System */
/* Inspired by Marvain/Zebra Day - Adapted for BLOOM LIMS */

/* ==================== CSS Variables ==================== */
:root {
  /* Primary colors */
  --color-primary: #1a1a2e;
  --color-secondary: #16213e;
  --color-accent: #0f3460;
  --color-highlight: #6366f1;
  
  /* Status colors - critical for LIMS status indicators */
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;
  
  /* Gray scale */
  --color-gray-900: #0a0a0a;
  --color-gray-800: #141414;
  --color-gray-700: #1f1f1f;
  --color-gray-600: #2d2d2d;
  --color-gray-500: #4a4a4a;
  --color-gray-400: #6b6b6b;
  --color-gray-300: #a3a3a3;
  --color-gray-200: #d4d4d4;
  --color-white: #fafafa;
  
  /* BLOOM-specific additions */
  --color-euid: #818cf8;
  --color-template: #a78bfa;
  --color-instance: #34d399;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  
  /* Fonts */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* ==================== Light Theme Override ==================== */
/* Prevent flash of wrong theme on page load */
html.theme-light-loading body {
  --color-primary: #f8fafc;
  --color-secondary: #e2e8f0;
  --color-gray-900: #f8fafc;
  --color-gray-800: #f1f5f9;
  --color-gray-700: #e2e8f0;
  --color-gray-200: #334155;
  --color-white: #0f172a;
}

body.theme-light {
  /* Primary colors - light variants */
  --color-primary: #f8fafc;
  --color-secondary: #e2e8f0;
  --color-accent: #cbd5e1;
  --color-highlight: #4f46e5;

  /* Gray scale - inverted for light theme */
  --color-gray-900: #f8fafc;
  --color-gray-800: #f1f5f9;
  --color-gray-700: #e2e8f0;
  --color-gray-600: #cbd5e1;
  --color-gray-500: #94a3b8;
  --color-gray-400: #64748b;
  --color-gray-300: #475569;
  --color-gray-200: #334155;
  --color-white: #0f172a;

  /* BLOOM-specific - darker for visibility on light bg */
  --color-euid: #4f46e5;
  --color-template: #7c3aed;
  --color-instance: #059669;

  /* Shadows - lighter for light theme */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

html {
  font-size: 16px;
  line-height: 1.5;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  background-color: var(--color-gray-900);
  color: var(--color-gray-200);
  min-height: 100vh;
}

/* Accent stripe bar at top */
.bloom-stripe-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-highlight), var(--color-info), var(--color-highlight));
  z-index: 9999;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--color-white);
  margin: 0 0 var(--spacing-md) 0;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p { margin: 0 0 var(--spacing-md) 0; }

a {
  color: var(--color-highlight);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: #818cf8;
  text-decoration: underline;
}

code, pre, .mono {
  font-family: var(--font-mono);
}

code {
  background: var(--color-gray-700);
  padding: 0.1em 0.3em;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

pre {
  background: var(--color-gray-800);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 0.875rem;
}

/* EUID styling */
.euid {
  font-family: var(--font-mono);
  color: var(--color-euid);
  font-weight: 500;
}

/* ==================== Layout ==================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.main-content {
  padding-top: calc(4px + 60px + var(--spacing-lg));
  padding-bottom: var(--spacing-2xl);
  min-height: 100vh;
}

/* ==================== Header ==================== */
.header {
  position: fixed;
  top: 4px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-primary);
  border-bottom: 1px solid var(--color-gray-600);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 var(--spacing-lg);
}

.header-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
}

.header-logo:hover {
  color: var(--color-white);
  text-decoration: none;
}

.header-logo img {
  height: 32px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-left: var(--spacing-xl);
}

.header-nav a {
  color: var(--color-gray-300);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--color-white);
  background: var(--color-secondary);
  text-decoration: none;
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  color: var(--color-gray-300);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  cursor: pointer;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
  color: var(--color-white);
  background: var(--color-secondary);
  text-decoration: none;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-gray-800);
  border: 1px solid var(--color-gray-600);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 100;
  margin-top: var(--spacing-xs);
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--color-gray-300);
  transition: all var(--transition-fast);
}

.nav-dropdown-menu a:hover {
  color: var(--color-white);
  background: var(--color-gray-700);
  text-decoration: none;
}

.nav-dropdown-menu a:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.nav-dropdown-menu a:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-gray-300);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-sm);
}

/* ==================== Cards ==================== */
.card {
  background: var(--color-gray-800);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-600);
  overflow: hidden;
}

.card-header {
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid var(--color-gray-600);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-white);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.card-title i {
  color: var(--color-highlight);
}

.card-body {
  padding: var(--spacing-lg);
}

/* Stat cards for dashboard */
.stat-card {
  background: var(--color-gray-800);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-600);
  padding: var(--spacing-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  color: inherit;
}

.stat-card:hover {
  border-color: var(--color-highlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.card-icon.success { background: rgba(34, 197, 94, 0.15); color: var(--color-success); }
.card-icon.warning { background: rgba(245, 158, 11, 0.15); color: var(--color-warning); }
.card-icon.error { background: rgba(239, 68, 68, 0.15); color: var(--color-error); }
.card-icon.info { background: rgba(59, 130, 246, 0.15); color: var(--color-info); }
.card-icon.highlight { background: rgba(99, 102, 241, 0.15); color: var(--color-highlight); }

.stat-content { flex: 1; }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--color-white); }
.stat-label { font-size: 0.875rem; color: var(--color-gray-400); margin-top: 2px; }

/* ==================== Grid System ==================== */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .header-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-gray-600);
  }
  .menu-toggle { display: block; }
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-primary);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--color-highlight);
  color: var(--color-white);
  border-color: var(--color-highlight);
}
.btn-primary:hover:not(:disabled) {
  background: #818cf8;
  border-color: #818cf8;
}

.btn-outline {
  background: transparent;
  color: var(--color-gray-300);
  border-color: var(--color-gray-600);
}
.btn-outline:hover:not(:disabled) {
  background: var(--color-gray-700);
  color: var(--color-white);
  border-color: var(--color-gray-500);
}

.btn-success {
  background: var(--color-success);
  color: var(--color-white);
  border-color: var(--color-success);
}
.btn-success:hover:not(:disabled) { background: #16a34a; border-color: #16a34a; }

.btn-error {
  background: var(--color-error);
  color: var(--color-white);
  border-color: var(--color-error);
}
.btn-error:hover:not(:disabled) { background: #dc2626; border-color: #dc2626; }

.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.75rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }

/* ==================== Badges ==================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.2em 0.6em;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-success { background: rgba(34, 197, 94, 0.15); color: var(--color-success); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--color-warning); }
.badge-error { background: rgba(239, 68, 68, 0.15); color: var(--color-error); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: var(--color-info); }
.badge-highlight { background: rgba(99, 102, 241, 0.15); color: var(--color-highlight); }
.badge-muted { background: var(--color-gray-700); color: var(--color-gray-400); }

/* EUID badge */
.badge-euid {
  font-family: var(--font-mono);
  background: rgba(129, 140, 248, 0.15);
  color: var(--color-euid);
}

/* ==================== Tables ==================== */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-600);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th,
.table td {
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: left;
  border-bottom: 1px solid var(--color-gray-700);
}

.table th {
  background: var(--color-gray-800);
  font-weight: 600;
  color: var(--color-gray-300);
  position: sticky;
  top: 0;
}

.table tbody tr:hover {
  background: var(--color-gray-800);
}

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

/* Sortable columns */
.table th.sortable {
  cursor: pointer;
  user-select: none;
}
.table th.sortable:hover { color: var(--color-white); }
.table th.sortable::after { content: ' ↕'; opacity: 0.4; }
.table th.sortable.asc::after { content: ' ↑'; opacity: 1; }
.table th.sortable.desc::after { content: ' ↓'; opacity: 1; }

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-300);
  margin-bottom: var(--spacing-xs);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.875rem;
  font-family: var(--font-primary);
  background: var(--color-gray-700);
  border: 1px solid var(--color-gray-600);
  border-radius: var(--radius-sm);
  color: var(--color-gray-200);
  transition: all var(--transition-normal);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-highlight);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-input::placeholder { color: var(--color-gray-500); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-select { cursor: pointer; }

.form-hint {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  margin-top: var(--spacing-xs);
}

.form-error {
  font-size: 0.75rem;
  color: var(--color-error);
  margin-top: var(--spacing-xs);
}

.form-input.error,
.form-select.error { border-color: var(--color-error); }

/* ==================== Toast Notifications ==================== */
.toast-container {
  position: fixed;
  top: calc(4px + 60px + var(--spacing-md));
  right: var(--spacing-md);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  max-width: 400px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: var(--color-gray-800);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-600);
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.3s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

.toast.toast-out {
  animation: toast-out 0.2s ease forwards;
}

@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}

.toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast-content { flex: 1; }
.toast-title { font-weight: 600; color: var(--color-white); }
.toast-message { font-size: 0.875rem; color: var(--color-gray-300); margin-top: 2px; }

.toast-close {
  background: none;
  border: none;
  color: var(--color-gray-400);
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
}
.toast-close:hover { color: var(--color-white); }

.toast-success .toast-icon { color: var(--color-success); }
.toast-warning .toast-icon { color: var(--color-warning); }
.toast-error .toast-icon { color: var(--color-error); }
.toast-info .toast-icon { color: var(--color-info); }

/* ==================== Loading Overlay ==================== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9500;
  backdrop-filter: blur(4px);
}

.loading-overlay.active { display: flex; }

.loading-content {
  text-align: center;
  color: var(--color-white);
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-gray-600);
  border-top-color: var(--color-highlight);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto var(--spacing-md);
}

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

.loading-text {
  font-size: 0.875rem;
  color: var(--color-gray-300);
}

/* ==================== Modals ==================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 8000;
  padding: var(--spacing-lg);
  backdrop-filter: blur(4px);
}

.modal-backdrop.active { display: flex; }

.modal {
  background: var(--color-gray-800);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-600);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--color-gray-600);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title { font-size: 1.25rem; font-weight: 600; color: var(--color-white); margin: 0; }

.modal-close {
  background: none;
  border: none;
  color: var(--color-gray-400);
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0;
  line-height: 1;
}
.modal-close:hover { color: var(--color-white); }

.modal-body {
  padding: var(--spacing-lg);
  overflow-y: auto;
  max-height: calc(90vh - 140px);
}

.modal-footer {
  padding: var(--spacing-md) var(--spacing-lg);
  border-top: 1px solid var(--color-gray-600);
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-sm);
}

/* ==================== Page Header ==================== */
.page-header {
  margin-bottom: var(--spacing-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.page-title i { color: var(--color-highlight); }

.page-subtitle {
  font-size: 0.875rem;
  color: var(--color-gray-400);
  margin-top: var(--spacing-xs);
}

.page-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* ==================== Filter Bar ==================== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--color-gray-800);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-600);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.filter-bar .form-input,
.filter-bar .form-select {
  width: auto;
  min-width: 150px;
}

.filter-bar .search-input {
  flex: 1;
  min-width: 200px;
}

/* ==================== Empty State ==================== */
.empty-state {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--color-gray-400);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gray-300);
  margin-bottom: var(--spacing-sm);
}

.empty-state-message {
  font-size: 0.875rem;
  margin-bottom: var(--spacing-lg);
}

/* ==================== Footer ==================== */
.footer {
  background: var(--color-primary);
  border-top: 1px solid var(--color-gray-600);
  padding: var(--spacing-lg);
  margin-top: auto;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  font-size: 0.875rem;
  color: var(--color-gray-400);
}

.footer-mainline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.footer-version {
  font-family: var(--font-mono);
  color: var(--color-gray-500);
}

.footer-gitline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.footer-meta-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-gray-500);
}

.footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-link {
  font-size: 0.875rem;
  color: var(--color-gray-400);
}
.footer-link:hover { color: var(--color-highlight); }

/* ==================== Utility Classes ==================== */
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }
.text-info { color: var(--color-info); }
.text-muted { color: var(--color-gray-400); }
.text-white { color: var(--color-white); }

.bg-success { background-color: var(--color-success); }
.bg-warning { background-color: var(--color-warning); }
.bg-error { background-color: var(--color-error); }
.bg-info { background-color: var(--color-info); }

.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

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

/* ==========================================================================
   List Group
   ========================================================================== */

.list-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-gray-700);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background-color var(--transition-fast);
}

.list-item:hover {
  background: var(--color-gray-600);
}

.list-item-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex: 1;
  min-width: 0;
}

.list-item-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   Quick Actions Grid
   ========================================================================== */

.quick-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.quick-actions .btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

/* ==========================================================================
   EUID Badge (special styling for enterprise unique identifiers)
   ========================================================================== */

.badge-euid {
  background-color: rgba(129, 140, 248, 0.15);
  color: var(--color-bloom-euid);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* ==========================================================================
   Accessibility - Screen Reader Only
   ========================================================================== */

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