/* ============================================================
   JB SACCO Management System — Components
   ============================================================ */

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  text-decoration: none;
  line-height: 1;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--border-light);
}

.btn-success {
  background: var(--success);
  color: white;
}
.btn-success:hover:not(:disabled) {
  background: var(--success-dark);
  box-shadow: 0 4px 16px var(--success-glow);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover:not(:disabled) {
  background: var(--danger-dark);
  box-shadow: 0 4px 16px var(--danger-glow);
  transform: translateY(-1px);
}

.btn-warning {
  background: var(--warning);
  color: hsl(222, 20%, 8%);
}
.btn-warning:hover:not(:disabled) {
  background: var(--warning-dark);
  box-shadow: 0 4px 16px var(--warning-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }
.btn-icon.btn-sm { padding: 5px; }

.btn.loading { pointer-events: none; }
.btn.loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 4px;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-label .required { color: var(--danger); margin-left: 3px; }

.form-control,
.form-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23667799' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--surface-3);
}

.form-control::placeholder { color: var(--text-dim); }
.form-control:disabled, .form-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-control.error, .form-select.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-glow);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 5px;
}
.form-hint.error { color: var(--danger); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.form-section {
  padding: 20px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.form-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Autocomplete dropdown */
.autocomplete-wrapper { position: relative; }
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 200;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}
.autocomplete-dropdown.open { display: block; }
.autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}
.autocomplete-item:hover, .autocomplete-item.selected {
  background: var(--surface-2);
  color: var(--primary-light);
}
.autocomplete-item-name { font-weight: 500; }
.autocomplete-item-sub { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================================
   TABLES
   ============================================================ */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

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

.data-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table th {
  padding: 12px 14px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  cursor: default;
}

.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { color: var(--text); }
.data-table th .sort-icon { margin-left: 4px; opacity: 0.5; }
.data-table th.sort-asc .sort-icon::after { content: ' ↑'; opacity: 1; }
.data-table th.sort-desc .sort-icon::after { content: ' ↓'; opacity: 1; }

.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: var(--transition-fast);
}

.data-table tbody tr:hover { background: var(--surface-2); }
.data-table tbody tr:last-child { border-bottom: none; }

.data-table td {
  padding: 11px 14px;
  vertical-align: middle;
}

.data-table .col-actions {
  text-align: right;
  white-space: nowrap;
}

.data-table .col-amount {
  text-align: right;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

.data-table .col-number { text-align: center; }

.data-table tfoot td {
  padding: 12px 14px;
  background: var(--surface-2);
  font-weight: 700;
  border-top: 2px solid var(--border-light);
}

.table-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  gap: 12px;
  flex-wrap: wrap;
}

/* Report table (print optimized) */
.report-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.report-table th, .report-table td { padding: 10px 12px; border: 1px solid var(--border); }
.report-table th { background: var(--surface-2); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; }
.report-table tfoot td { font-weight: 700; background: var(--surface-3); }

/* ============================================================
   BADGES / STATUS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.badge-active    { background: hsla(130,60%,45%,0.15); color: hsl(130,60%,55%); border: 1px solid hsla(130,60%,45%,0.3); }
.badge-suspended { background: hsla(0,80%,58%,0.12); color: hsl(0,80%,65%); border: 1px solid hsla(0,80%,58%,0.25); }
.badge-exited    { background: hsla(220,10%,55%,0.12); color: var(--text-muted); border: 1px solid var(--border); }
.badge-pending   { background: hsla(38,95%,55%,0.15); color: hsl(38,95%,60%); border: 1px solid hsla(38,95%,55%,0.3); }
.badge-approved  { background: hsla(130,60%,45%,0.15); color: hsl(130,60%,55%); border: 1px solid hsla(130,60%,45%,0.3); }
.badge-rejected  { background: hsla(0,80%,58%,0.12); color: hsl(0,80%,65%); border: 1px solid hsla(0,80%,58%,0.25); }
.badge-disbursed { background: hsla(220,90%,56%,0.15); color: hsl(220,90%,70%); border: 1px solid hsla(220,90%,56%,0.3); }
.badge-closed    { background: hsla(220,10%,55%,0.12); color: var(--text-muted); border: 1px solid var(--border); }
.badge-overdue   { background: hsla(0,80%,58%,0.12); color: hsl(0,80%,65%); border: 1px solid hsla(0,80%,58%,0.25); }
.badge-paid      { background: hsla(130,60%,45%,0.15); color: hsl(130,60%,55%); border: 1px solid hsla(130,60%,45%,0.3); }
.badge-partial   { background: hsla(38,95%,55%,0.15); color: hsl(38,95%,60%); border: 1px solid hsla(38,95%,55%,0.3); }
.badge-scheduled { background: hsla(220,90%,56%,0.15); color: hsl(220,90%,70%); border: 1px solid hsla(220,90%,56%,0.3); }
.badge-deposit   { background: hsla(130,60%,45%,0.15); color: hsl(130,60%,55%); border: 1px solid hsla(130,60%,45%,0.3); }
.badge-withdrawal{ background: hsla(0,80%,58%,0.12); color: hsl(0,80%,65%); border: 1px solid hsla(0,80%,58%,0.25); }
.badge-receipt   { background: hsla(130,60%,45%,0.15); color: hsl(130,60%,55%); border: 1px solid hsla(130,60%,45%,0.3); }
.badge-payment   { background: hsla(0,80%,58%,0.12); color: hsl(0,80%,65%); border: 1px solid hsla(0,80%,58%,0.25); }
.badge-info      { background: hsla(200,80%,50%,0.15); color: hsl(200,80%,60%); border: 1px solid hsla(200,80%,50%,0.3); }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content.modal-lg { max-width: 900px; }
.modal-content.modal-xl { max-width: 1100px; }
.modal-content.modal-sm { max-width: 480px; }

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-fast);
  flex-shrink: 0;
}
.modal-close:hover { color: var(--text); background: var(--surface-3); border-color: var(--border-light); }

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  background: var(--surface-2);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
  position: fixed;
  top: calc(var(--topbar-height) + 12px);
  right: 16px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  min-width: 280px;
  max-width: 380px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  pointer-events: all;
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: var(--transition);
}

.toast.hiding {
  opacity: 0;
  transform: translateX(20px);
}

.toast-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.toast-body { flex: 1; }
.toast-title { font-weight: 600; font-size: 0.875rem; margin-bottom: 2px; }
.toast-message { font-size: 0.8rem; color: var(--text-muted); }

.toast-dismiss {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px;
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.toast-dismiss:hover { color: var(--text); }

.toast.toast-success { border-left: 3px solid var(--success); }
.toast.toast-error   { border-left: 3px solid var(--danger); }
.toast.toast-warning { border-left: 3px solid var(--warning); }
.toast.toast-info    { border-left: 3px solid var(--primary); }

/* ============================================================
   TABS
   ============================================================ */
.tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 10px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text); background: var(--surface-2); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.tab-btn.active { color: var(--primary-light); border-bottom-color: var(--primary); }

.tab-panel { display: none; animation: fadeIn 0.2s ease; }
.tab-panel.active { display: block; }

/* ============================================================
   FILTER / SEARCH BAR
   ============================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.9rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 9px 14px 9px 34px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
  transition: var(--transition);
}
.search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.search-input::placeholder { color: var(--text-dim); }

.filter-select {
  padding: 9px 32px 9px 12px;
  background: var(--surface-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23667799' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: var(--transition);
}
.filter-select:focus { outline: none; border-color: var(--primary); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px;
  flex-wrap: wrap;
}

.page-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 8px;
}

.page-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.page-btn:hover:not(:disabled) { background: var(--surface-3); color: var(--text); border-color: var(--border-light); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-dim);
}

.empty-state-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state-title { font-size: 1rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.empty-state-text { font-size: 0.875rem; max-width: 320px; line-height: 1.5; }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
  height: 8px;
  background: var(--surface-3);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

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

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.alert-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.alert-body { flex: 1; }
.alert-title { font-weight: 600; margin-bottom: 3px; }

.alert-info    { background: hsla(220,90%,56%,0.12); border: 1px solid hsla(220,90%,56%,0.25); color: hsl(220,80%,75%); }
.alert-warning { background: hsla(38,95%,55%,0.12); border: 1px solid hsla(38,95%,55%,0.25); color: hsl(38,90%,70%); }
.alert-danger  { background: hsla(0,80%,58%,0.12); border: 1px solid hsla(0,80%,58%,0.25); color: hsl(0,70%,75%); }
.alert-success { background: hsla(130,60%,45%,0.12); border: 1px solid hsla(130,60%,45%,0.25); color: hsl(130,50%,65%); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg);
}

.timeline-time { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.timeline-title { font-size: 0.875rem; font-weight: 600; }
.timeline-desc { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   REPORT HEADER
   ============================================================ */
.report-header {
  text-align: center;
  padding: 20px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.report-header h2 { font-size: 1.4rem; font-family: 'Outfit', sans-serif; }
.report-header h3 { font-size: 1rem; color: var(--text-muted); margin-top: 4px; }
.report-meta { font-size: 0.8rem; color: var(--text-dim); margin-top: 8px; }

/* ============================================================
   AMOUNTS / FINANCIAL
   ============================================================ */
.amount { font-family: 'Outfit', sans-serif; font-weight: 700; }
.amount-positive { color: var(--success); }
.amount-negative { color: var(--danger); }
.amount-neutral { color: var(--text); }

/* ============================================================
   SYNC STATUS
   ============================================================ */
.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
}
.sync-status .sync-icon { animation: spin 1.2s linear infinite; }

/* ============================================================
   DETAIL ROW (Key-value display)
   ============================================================ */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-item {}
.detail-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); margin-bottom: 3px; }
.detail-value { font-size: 0.9rem; color: var(--text); }

/* ============================================================
   RECEIPT DISPLAY
   ============================================================ */
.receipt-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.receipt-number { font-family: 'Outfit', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--primary-light); }
.receipt-amount { font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 800; margin: 8px 0; }
.receipt-divider { border: none; border-top: 1px dashed var(--border-light); margin: 16px 0; }

/* ============================================================
   SUMMARY TILES
   ============================================================ */
.summary-tiles {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.summary-tile {
  flex: 1;
  min-width: 130px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: center;
}
.summary-tile-value { font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 800; }
.summary-tile-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   INFO PANEL (sidebar-style details)
   ============================================================ */
.info-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.info-panel-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.info-row:last-child { border-bottom: none; }
.info-row-label { color: var(--text-muted); }
.info-row-value { font-weight: 600; }

/* Utility classes */
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary-light); }
.font-mono { font-family: 'Courier New', monospace; }
.font-bold { font-weight: 700; }
.font-outfit { font-family: 'Outfit', sans-serif; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.p-4 { padding: 16px; }
.separator { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
