/* =========================================
   18xx 계산기 - Swiss Modernist Refinement
   ========================================= */

:root {
  /* Color System */
  --color-text-dim: #9AA0A6;
  --accent-color: var(--color-accent);
  --color-border-bright: #333333;

  /* Status Colors */
  --color-ratio: #00D2FF;
  --color-dividend: #FF3E00;
  --color-half: #B066FF;

  /* Shadows */
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  gap: 24px;
}

.container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

/* ========== HEADER ========== */
header {
  width: 100%;
  text-align: center;
}

h3 {
  font-size: 24px;
  font-weight: 950;
  margin: 0;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  cursor: pointer;
}

/* ========== INPUT SECTION ========== */
.input-section {
  width: 100%;
  background: var(--color-surface);
  padding: 20px;
  border: 1px solid var(--color-border);
}

input[type="number"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-border-bright);
  padding: 12px 0;
  font-size: 48px;
  font-weight: 950;
  color: var(--accent-color);
  text-align: center;
  font-family: var(--font-main);
  outline: none;
  transition: border-color 0.2s ease;
  font-variant-numeric: tabular-nums;
  border-radius: 0;
}

input[type="number"]:focus {
  border-color: var(--accent-color);
}

/* Remove Arrows */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  appearance: textfield;
}

/* ========== TABLE ========== */
.table-container {
  width: 100%;
  flex: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow-y: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th {
  position: sticky;
  top: 0;
  background: var(--color-surface);
  padding: 12px;
  font-size: 11px;
  font-weight: 950;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-bottom: 2px solid var(--color-border);
  text-align: center;
  z-index: 10;
}

td {
  padding: 16px 12px;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  font-variant-numeric: tabular-nums;
}

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

/* Column Colors */
td:nth-child(1) {
  color: var(--color-ratio);
}

td:nth-child(2) {
  color: var(--accent-color);
  font-weight: 950;
}

td:nth-child(3) {
  color: var(--color-half);
}

/* ========== SCROLLBAR ========== */
.table-container::-webkit-scrollbar {
  width: 4px;
}

.table-container::-webkit-scrollbar-track {
  background: transparent;
}

.table-container::-webkit-scrollbar-thumb {
  background: var(--color-border-bright);
}