/* Trydon Radius™ System Styles - Tactile, High-Contrast, Anti-Slop */
:root {
  --bg-primary: #0a0d12;
  --bg-surface: #11151c;
  --bg-surface-elevated: #161c24;
  --border-muted: #242c38;
  --border-accent: #334155;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --accent-amber: #d97706;
  --accent-amber-glow: rgba(217, 119, 6, 0.15);
  --accent-emerald: #059669;
  --accent-emerald-light: #10b981;
  --accent-blue: #2563eb;
  --accent-rose: #e11d48;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Monospace microcopy */
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Micro typography */
.label-micro {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Structural Crisp Borders */
.tactile-border {
  border: 1px solid var(--border-muted);
}

.tactile-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-muted);
  border-radius: 4px;
}

.tactile-card-elevated {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-muted);
  border-radius: 4px;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.6);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  font-size: 0.72rem;
  font-family: ui-monospace, monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}

.badge-active {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-expired {
  background: rgba(225, 29, 72, 0.12);
  color: #fb7185;
  border-color: rgba(225, 29, 72, 0.3);
}

.badge-paused {
  background: rgba(217, 119, 6, 0.12);
  color: #fbbf24;
  border-color: rgba(217, 119, 6, 0.3);
}

.badge-neutral {
  background: #1e293b;
  color: #cbd5e1;
  border-color: #334155;
}

/* Tactile Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.8125rem;
  padding: 0.45rem 0.875rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.1s ease, border-color 0.1s ease, transform 0.05s ease;
  user-select: none;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--accent-amber);
  color: #000;
  border: 1px solid #b45309;
  font-weight: 600;
}
.btn-primary:hover {
  background-color: #f59e0b;
}

.btn-emerald {
  background-color: var(--accent-emerald);
  color: #fff;
  border: 1px solid #047857;
  font-weight: 600;
}
.btn-emerald:hover {
  background-color: #10b981;
}

.btn-secondary {
  background-color: #1e293b;
  color: #f1f5f9;
  border: 1px solid var(--border-muted);
}
.btn-secondary:hover {
  background-color: #334155;
  border-color: var(--border-accent);
}

.btn-danger {
  background-color: rgba(225, 29, 72, 0.15);
  color: #fda4af;
  border: 1px solid rgba(225, 29, 72, 0.4);
}
.btn-danger:hover {
  background-color: rgba(225, 29, 72, 0.3);
}

/* Inputs */
.input-tactile {
  background-color: #0d1117;
  border: 1px solid var(--border-muted);
  color: var(--text-main);
  border-radius: 3px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
  width: 100%;
}
.input-tactile:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 1px var(--accent-amber);
}

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

table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8125rem;
}

table.data-table th {
  background-color: #141a23;
  padding: 0.65rem 0.875rem;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-muted);
  white-space: nowrap;
}

table.data-table td {
  padding: 0.65rem 0.875rem;
  border-bottom: 1px solid #1a222d;
  color: var(--text-main);
}

table.data-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

/* Printable Voucher Styles */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .no-print {
    display: none !important;
  }
  .voucher-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    padding: 0 !important;
  }
  .voucher-ticket {
    background: #fff !important;
    border: 2px dashed #333 !important;
    padding: 12px !important;
    page-break-inside: avoid;
    color: #000 !important;
  }
}
