/* ==========================================================================
   BioTools - Component Styles (components.css)
   All reusable UI component styles: buttons, cards, badges, inputs, etc.
   ========================================================================== */

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  height: 44px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: all var(--transition-normal);
  -webkit-user-select: none;
  user-select: none;
  text-decoration: none;
  letter-spacing: var(--letter-spacing-tight);
}

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

/* --- Primary --- */
.btn--primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(var(--shadow-color), 0.15);
}

.btn--primary:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.3);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(var(--primary-rgb), 0.2);
}

/* --- Secondary --- */
.btn--secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color-strong);
}

.btn--secondary:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
  color: var(--primary-light);
}

.btn--secondary:active {
  background: var(--bg-active);
}

/* --- Danger --- */
.btn--danger {
  background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
  color: #fff;
  border-color: var(--danger-dark);
  box-shadow: 0 2px 8px rgba(var(--danger-rgb), 0.3);
}

.btn--danger:hover {
  background: linear-gradient(135deg, var(--danger-light) 0%, var(--danger) 100%);
  box-shadow: 0 4px 16px rgba(var(--danger-rgb), 0.4);
  transform: translateY(-1px);
}

.btn--danger:active {
  transform: translateY(0);
}

/* --- Ghost --- */
.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.btn--ghost:hover {
  background: var(--bg-hover);
  color: var(--primary-light);
  border-color: var(--primary);
}

.btn--ghost:active {
  background: var(--bg-active);
}

/* --- Icon Only --- */
.btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn--icon svg {
  width: 18px;
  height: 18px;
}

/* --- Sizes --- */
.btn--sm {
  height: 32px;
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-xs);
  border-radius: var(--radius-sm);
}

.btn--sm.btn--icon {
  width: 32px;
  height: 32px;
}

.btn--lg {
  height: 48px;
  padding: var(--space-3) var(--space-8);
  font-size: var(--font-size-md);
  border-radius: var(--radius-md);
}

.btn--lg.btn--icon {
  width: 48px;
  height: 48px;
}

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

/* --- Loading --- */
.btn--loading {
  color: transparent !important;
  pointer-events: none;
}

.btn--loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* --- Full Width --- */
.btn--block {
  width: 100%;
}

/* ==========================================================================
   CARDS (Glassmorphism)
   ========================================================================== */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow-md);
}

.card--interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-8);
  border-bottom: 1px solid var(--border-color);
}

.card__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: var(--letter-spacing-tight);
}

.card__subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.card__body {
  padding: var(--space-8);
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-8);
  border-top: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}

/* ==========================================================================
   BADGES
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  white-space: nowrap;
  line-height: 1.5;
}

.badge--primary {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary-light);
}

.badge--success {
  background: rgba(var(--success-rgb), 0.12);
  color: var(--success-light);
}

.badge--warning {
  background: rgba(var(--warning-rgb), 0.12);
  color: var(--warning-light);
}

.badge--danger {
  background: rgba(var(--danger-rgb), 0.12);
  color: var(--danger-light);
}

.badge--info {
  background: rgba(var(--info-rgb), 0.12);
  color: var(--info-light);
}

.badge--neutral {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

/* ==========================================================================
   INPUTS
   ========================================================================== */
.input {
  width: 100%;
  height: 48px;
  padding: 0 var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

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

.input:hover {
  border-color: var(--border-color-strong);
}

.input:focus {
  border-color: var(--input-focus-border);
  box-shadow: var(--input-focus-glow);
  background: var(--input-bg);
  outline: none;
}

.input--error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 4px rgba(var(--danger-rgb), 0.15) !important;
}

.input--lg {
  height: 48px;
  padding: 0 var(--space-5);
  font-size: var(--font-size-base);
}

textarea.input {
  height: auto;
  min-height: 100px;
  padding: var(--space-3) var(--space-4);
  resize: vertical;
  line-height: var(--line-height-relaxed);
}

/* --- Input Group --- */
.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.input-group__label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.input-group__required {
  color: var(--danger);
  font-weight: var(--font-weight-bold);
}

.input-group__helper {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.input-group__error {
  font-size: var(--font-size-xs);
  color: var(--danger);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* --- Input with icon --- */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper .input {
  padding-left: 40px;
}

.input-wrapper__icon {
  position: absolute;
  left: var(--space-3);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.input-wrapper__icon svg {
  width: 18px;
  height: 18px;
}

.input-wrapper__action {
  position: absolute;
  right: var(--space-1);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.input-wrapper__action:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   SELECT (Custom)
   ========================================================================== */
.select {
  width: 100%;
  height: 42px;
  padding: 0 var(--space-10) 0 var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  background: var(--input-bg);
  border: var(--border-width) solid var(--input-border);
  border-radius: var(--radius-md);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.select:focus {
  border-color: var(--input-focus-border);
  box-shadow: var(--input-focus-glow);
}

/* ==========================================================================
   CHECKBOX & RADIO (Custom)
   ========================================================================== */
.checkbox,
.radio {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  -webkit-user-select: none;
  user-select: none;
}

.checkbox input,
.radio input {
  display: none;
}

.checkbox__mark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--input-border);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.checkbox input:checked + .checkbox__mark {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox input:checked + .checkbox__mark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
}

.radio__mark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--input-border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.radio input:checked + .radio__mark {
  border-color: var(--primary);
}

.radio input:checked + .radio__mark::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   TOGGLE SWITCH
   ========================================================================== */
.toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.toggle input {
  display: none;
}

.toggle__track {
  width: 44px;
  height: 24px;
  background: var(--input-border);
  border-radius: var(--radius-full);
  position: relative;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.toggle input:checked + .toggle__track {
  background: var(--primary);
}

.toggle input:checked + .toggle__track .toggle__thumb {
  transform: translateX(20px);
}

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

/* ==========================================================================
   AVATAR
   ========================================================================== */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  overflow: hidden;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar--sm {
  width: 28px;
  height: 28px;
  font-size: var(--font-size-xs);
  border-width: 1px;
}

.avatar--lg {
  width: 56px;
  height: 56px;
  font-size: var(--font-size-lg);
  border-width: 3px;
}

.avatar--xl {
  width: 72px;
  height: 72px;
  font-size: var(--font-size-xl);
  border-width: 3px;
}

.avatar-group {
  display: flex;
}

.avatar-group .avatar {
  margin-left: -8px;
  border: 2px solid var(--bg-secondary);
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}

/* ==========================================================================
   TAGS
   ========================================================================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.tag--removable {
  padding-right: var(--space-1);
}

.tag__remove {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.tag__remove:hover {
  background: rgba(var(--danger-rgb), 0.15);
  color: var(--danger);
}

/* ==========================================================================
   TOOLTIP
   ========================================================================== */
.tooltip {
  position: relative;
}

.tooltip__content {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.92);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: var(--z-tooltip);
}

.tooltip__content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--bg-elevated);
}

.tooltip:hover .tooltip__content {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ==========================================================================
   PROGRESS BAR
   ========================================================================== */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar--lg {
  height: 10px;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.progress-bar__fill--success { background: linear-gradient(90deg, var(--success), var(--success-light)); }
.progress-bar__fill--warning { background: linear-gradient(90deg, var(--warning), var(--warning-light)); }
.progress-bar__fill--danger  { background: linear-gradient(90deg, var(--danger), var(--danger-light)); }

/* ==========================================================================
   SKELETON LOADING
   ========================================================================== */
.skeleton {
  background: linear-gradient(90deg,
    var(--bg-tertiary) 25%,
    var(--bg-elevated, rgba(255, 255, 255, 0.06)) 50%,
    var(--bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s linear infinite;
  border-radius: var(--radius-sm);
}

.skeleton--text {
  height: 14px;
  margin-bottom: var(--space-2);
}

.skeleton--text:last-child {
  width: 60%;
}

.skeleton--title {
  height: 24px;
  width: 50%;
  margin-bottom: var(--space-4);
}

.skeleton--circle {
  border-radius: var(--radius-full);
}

.skeleton--card {
  height: 160px;
  border-radius: var(--radius-lg);
}

.skeleton--avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-8);
  text-align: center;
}

.empty-state__icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.empty-state__icon svg {
  width: 32px;
  height: 32px;
}

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

.empty-state__text {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  max-width: 360px;
  margin-bottom: var(--space-6);
}

/* ==========================================================================
   STATUS DOT
   ========================================================================== */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.status-dot--online,
.status-dot--active,
.status-dot--success {
  background: var(--success);
  box-shadow: 0 0 6px rgba(var(--success-rgb), 0.5);
}

.status-dot--away,
.status-dot--warning {
  background: var(--warning);
  box-shadow: 0 0 6px rgba(var(--warning-rgb), 0.5);
}

.status-dot--offline,
.status-dot--danger {
  background: var(--danger);
  box-shadow: 0 0 6px rgba(var(--danger-rgb), 0.5);
}

.status-dot--idle {
  background: var(--text-muted);
}

.status-dot--pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ==========================================================================
   DIVIDER
   ========================================================================== */
.divider {
  border: none;
  height: var(--border-width);
  background: var(--border-color);
  margin: var(--space-4) 0;
}

.divider--thick {
  height: 2px;
}

.divider--vertical {
  width: var(--border-width);
  height: 24px;
  margin: 0 var(--space-3);
}

.divider--with-text {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  height: auto;
  background: transparent;
}

.divider--with-text::before,
.divider--with-text::after {
  content: '';
  flex: 1;
  height: var(--border-width);
  background: var(--border-color);
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-sm);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.breadcrumb__separator {
  color: var(--text-muted);
  margin: 0 var(--space-1);
}

.breadcrumb__item--active {
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  pointer-events: none;
}

/* ==========================================================================
   TABS
   ========================================================================== */
.tab-group {
  display: flex;
  border-bottom: var(--border-width) solid var(--border-color);
  gap: 0;
  overflow-x: auto;
}

.tab {
  position: relative;
  padding: var(--space-3) var(--space-5);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition-fast);
  border: none;
  background: none;
}

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

.tab--active {
  color: var(--primary-light);
  font-weight: var(--font-weight-semibold);
}

.tab--active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
}

/* ==========================================================================
   SEARCH INPUT
   ========================================================================== */
.search-input {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input__icon {
  position: absolute;
  left: var(--space-3);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input__icon svg {
  width: 18px;
  height: 18px;
}

.search-input .input {
  padding-left: 40px;
  padding-right: 36px;
}

.search-input__clear {
  position: absolute;
  right: var(--space-2);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transition: all var(--transition-fast);
}

.search-input__clear--visible {
  opacity: 1;
}

.search-input__clear:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* ==========================================================================
   CHIPS
   ========================================================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: var(--border-width) solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.chip:hover {
  background: var(--bg-hover);
  color: var(--primary-light);
}

.chip--selected {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary-light);
  border-color: rgba(var(--primary-rgb), 0.3);
}

/* ==========================================================================
   FILE UPLOAD
   ========================================================================== */
.file-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-10) var(--space-8);
  border: 2px dashed var(--border-color-strong);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.file-upload:hover,
.file-upload--dragover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.04);
}

.file-upload__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-light);
}

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

.file-upload__hint {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.file-upload input[type='file'] {
  display: none;
}

/* ==========================================================================
   RATING STARS
   ========================================================================== */
.rating-stars {
  display: inline-flex;
  gap: var(--space-1);
}

.rating-stars__star {
  width: 24px;
  height: 24px;
  color: var(--border-color-strong);
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.rating-stars__star:hover {
  transform: scale(1.15);
}

.rating-stars__star--active {
  color: var(--warning);
}

.rating-stars__star--half {
  position: relative;
}

/* ==========================================================================
   TABLE (Styled)
   ========================================================================== */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table thead th {
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  text-align: left;
  border-bottom: var(--border-width) solid var(--border-color);
  background: var(--bg-tertiary);
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: var(--bg-hover);
}

.data-table tbody td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  border-bottom: var(--border-width) solid var(--border-color);
  vertical-align: middle;
}

.data-table--striped tbody tr:nth-child(even) {
  background: rgba(var(--primary-rgb), 0.02);
}

/* ==========================================================================
   DROPDOWN
   ========================================================================== */
.dropdown {
  position: relative;
  display: inline-flex;
}

.dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 180px;
  padding: var(--space-2);
  background: var(--bg-elevated);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--transition-fast);
}

.dropdown__menu--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.dropdown__item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.dropdown__item--danger:hover {
  background: rgba(var(--danger-rgb), 0.1);
  color: var(--danger);
}

.dropdown__divider {
  height: var(--border-width);
  background: var(--border-color);
  margin: var(--space-2) 0;
}
