/* General Styles */
html, body {
  height: 100%;
  width: 100%;
  background-color: #dedede;
  color: black;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  transition: background-color 0.5s ease, color 0.5s ease;
}

header {
  width: 100%;
  height: 100px;
  padding: 10px 0;
  background-color: #c8c8c8;
  position: fixed;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.5s ease, color 0.5s ease;
}
.header-divider {
  width: 100%;
  height: 2px;
  background-color: #7d7d7d;
  position: fixed;
  top: 100px;
  z-index: 9;
}
.link {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.5s ease, color 0.5s ease;
}

main {
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

main .content {
  width: 100%;
  max-width: 800px;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Common & Simple Styles */
.orbitron {
  font-family: 'Orbitron', sans-serif;
}
.press-start {
  font-family: 'Press Start 2P', cursive;
}
.hidden {
  display: none;
}
.center {
  align-self: center;
  text-align: center;
  align-items: center;
  vertical-align: middle;
}
.rounded {
  border-radius: 20px;
}
.scrollable {
  overflow-y: auto;
}
.divider {
  width: 100%;
  height: 2px;
  background-color: #7d7d7d;
  margin: 30px 0;
}

/* Dark Mode Styles */
html.dark-mode, body.dark-mode {
  background-color: #1e1e1e;
  color: white;
}

header.dark-mode {
  background-color: #282828;
  color: white;
}

main .content.dark-mode {
  background-color: #323232;
  color: white;
}

.header-divider.dark-mode {
  background-color: #afafaf;
}

.divider.dark-mode {
  background-color: #afafaf;
}


/* Input row: input + button side by side */
.input-row {
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-width: 300px;
  max-width: 860px;
  gap: 8px;
  margin-bottom: 16px;
}

/* ============================================================
   Main math input container (NOT contenteditable)
   ============================================================ */
.main-input {
  flex: 1;
  outline: rgb(255, 90, 0) solid 2px;
  border-radius: 10px;
  color: white;
  background-color: #282828;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.8;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  cursor: text;
  box-sizing: border-box;
  /* Must be focusable but not contenteditable */
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  /* Ensure inline-flex children align to baseline */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

/* Placeholder shown when data-empty attribute is present */
.main-input[data-empty="1"]::before {
  content: attr(data-placeholder);
  color: #888;
  pointer-events: none;
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

/* Focus ring is always on (orange outline) */
.main-input:focus {
  outline: rgb(255, 90, 0) solid 2px;
}

/* ============================================================
   Blinking cursor
   ============================================================ */
.math-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background-color: rgb(255, 90, 0);
  vertical-align: text-bottom;
  margin: 0 -1px;
  border-radius: 1px;
  pointer-events: none;
  position: relative;
  top: 0.1em;
}

@keyframes math-cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ============================================================
   Slot boxes - the outlined regions the user can click on
   ============================================================ */
.math-slot-box {
  display: inline-block;
  min-width: 0.9em;
  min-height: 1.1em;
  padding: 1px 3px;
  border-radius: 3px;
  box-sizing: border-box;
  /* Visible slot outline */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  transition: box-shadow 0.12s ease, background-color 0.12s ease;
  cursor: text;
  vertical-align: middle;
}

.math-slot-box:hover {
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Focused slot: orange outline + subtle tint */
.math-slot-box.focused {
  box-shadow: 0 0 0 1.5px rgb(255, 90, 0);
  background-color: rgba(255, 140, 0, 0.12);
}

/* Placeholder inside an empty unfocused slot */
.math-slot-placeholder {
  display: inline-block;
  width: 0.5em;
  pointer-events: none;
  color: transparent;
}

/* ============================================================
   Fraction
   ============================================================ */
.math-frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  margin: 0 3px;
  font-size: 0.9em;
  line-height: 1.2;
  cursor: default;
}

.math-frac-num {
  text-align: center;
  border-radius: 3px 3px 0 0;
  padding-bottom: 2px;
  /* Override slot-box shadow to show only top edge when unfocused */
  box-shadow: 0 -3px 0 1.5px rgba(255, 90, 0, 0.5);
}

.math-frac-den {
  text-align: center;
  border-radius: 0 0 3px 3px;
  padding-top: 2px;
  box-shadow: 0 3px 0 1.5px rgba(255, 90, 0, 0.5);
}

.math-frac-num.focused,
.math-frac-den.focused {
  box-shadow: 0 0 0 1.5px rgb(255, 90, 0);
  border-radius: 3px;
}

.math-frac-line {
  display: block;
  width: 100%;
  min-width: 1.2em;
  height: 1.5px;
  background-color: currentColor;
  pointer-events: none;
}

/* ============================================================
   Power
   ============================================================ */
.math-power {
  display: inline-flex;
  align-items: baseline;
  margin: 0 1px;
  cursor: default;
}

.math-power-base {
  font-size: 1em;
}

.math-power-exp {
  font-size: 0.65em;
  vertical-align: super;
  line-height: 0;
  padding: 1px 2px;
  /* Slightly smaller min-width for exponent */
  min-width: 0.6em;
}

/* ============================================================
   Root (sqrt, cbrt, nth root)
   ============================================================ */
.math-root {
  display: inline-flex;
  align-items: baseline;
  vertical-align: middle;
  margin: 0 3px;
  cursor: default;
}

/* Index slot: small superscript to the left of the radical symbol */
.math-root-index {
  font-size: 0.6em;
  vertical-align: super;
  line-height: 0;
  padding: 1px 2px;
  min-width: 0.6em;
  align-self: flex-start;
  margin-right: 0;
}

/* Hidden index for sqrt */
.root-index-hidden {
  display: none !important;
}

/* The Unicode radical symbol */
.math-root-symbol {
  display: inline-block;
  font-size: 1.4em;
  line-height: 1;
  vertical-align: middle;
  pointer-events: none;
  user-select: none;
  position: relative;
  top: -0.05em;
  margin: 0 1px 0 0;
}

/* Radicand slot: overline via border-top */
.math-root-radicand {
  display: inline-block;
  border-top: 1.5px solid currentColor;
  padding: 1px 4px 1px 2px;
  min-width: 1em;
  min-height: 1em;
  vertical-align: middle;
  /* No box-shadow - the overline is the visual indicator */
  box-shadow: none !important;
  border-radius: 0;
}

.math-root-radicand.focused {
  border-top-color: rgb(255, 90, 0);
  background-color: rgba(255, 140, 0, 0.12);
  box-shadow: none !important;
}

/* ============================================================
   Selection highlight
   ============================================================ */

/* Inline character selection highlight */
.math-selected {
  background-color: rgba(100, 160, 255, 0.35);
  border-radius: 2px;
  color: inherit;
  display: inline;
}

/* Construct (frac/power/root) selection wrapper */
.math-selected-wrap {
  display: inline;
  background-color: rgba(100, 160, 255, 0.25);
  border-radius: 4px;
  outline: 1.5px solid rgba(100, 160, 255, 0.55);
  outline-offset: 1px;
}

/* ============================================================
   Small rounded-square calculate button
   ============================================================ */
.calc-btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background-color: rgb(255, 90, 0) !important;
  color: white;
  border: none;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  padding: 0;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  position: relative;
}

.calc-btn:hover {
  background-color: #c62828 !important;
}

.calc-btn:active {
  transform: scale(0.93);
  background-color: #b71c1c !important;
}

.calc-btn:disabled {
  background-color: #888 !important;
  cursor: not-allowed;
  box-shadow: none;
}

.clear-btn {
  background-color: #555 !important;
}

.clear-btn:hover {
  background-color: #444 !important;
}

.clear-btn:active {
  background-color: #333 !important;
}

.plain-text-btn {
  background-color: #444 !important;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: -0.5px;
}

.plain-text-btn:hover {
  background-color: #555 !important;
}

.plain-text-btn:active {
  background-color: #333 !important;
}

.plain-text-btn.plain-text-active {
  background-color: rgb(255, 90, 0) !important;
  color: white;
}

.plain-text-btn.plain-text-active:hover {
  background-color: rgb(220, 70, 0) !important;
}

/* Clear button: hidden by default, shown via JS when input has content */
#clear-all {
  display: none;
}

/* Instant tooltips for calc buttons */
.calc-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #111;
  color: #fff;
  font-size: 12px;
  font-weight: normal;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0s;
  z-index: 100;
}

.calc-btn:hover::after {
  opacity: 1;
  transition: opacity 0s;
}

/* ============================================================
   Result area
   ============================================================ */
.result-area {
  width: 100%;
  max-width: 860px;
  background-color: #282828;
  color: #fff;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 18px;
  margin-bottom: 10px;
  border-left: 4px solid rgb(255, 90, 0);
  box-sizing: border-box;
  word-break: break-word;
  position: relative;
}

/* Hide button inside result area */
.result-hide-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.result-hide-btn:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.result-area.error {
  border-left-color: #e53935;
  color: #ff8a80;
}

/* Multiple-answer rows inside result area */
.result-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 3px 0;
}

.result-row + .result-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4px;
  padding-top: 6px;
}

.result-label {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.45);
  min-width: 30px;
  flex-shrink: 0;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.03em;
}

.result-value {
  font-size: 18px;
  color: #fff;
  word-break: break-all;
}

/* First row (the main = answer) gets a slightly larger value */
.result-row:first-of-type .result-label {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.45);
  min-width: 28px;
}

.result-row:first-of-type .result-value {
  font-size: 22px;
}

/* ============================================================
   On-screen keyboard
   ============================================================ */
.osk-container {
  width: 100%;
  max-width: 860px;
  margin-bottom: 10px;
}

.osk-toggle-btn {
  background: #333;
  color: #ccc;
  border: 1px solid #555;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  margin-bottom: 6px;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.02em;
}

.osk-toggle-btn:hover {
  background: #444;
  color: #fff;
}

.osk-toggle-btn:active {
  background: #222;
}

.osk-panel {
  background: #1e1e1e;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
}

/* Tab bar */
.osk-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.osk-tab {
  background: #2e2e2e;
  color: #aaa;
  border: 1px solid #555;
  border-radius: 6px 6px 0 0;
  padding: 5px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  font-family: 'Roboto', sans-serif;
  border-bottom: 2px solid transparent;
}

.osk-tab:hover {
  background: #3a3a3a;
  color: #ddd;
}

.osk-tab.active {
  background: #282828;
  color: rgb(255, 90, 0);
  border-bottom: 2px solid rgb(255, 90, 0);
}

/* Pages */
.osk-page {
  display: none;
}

.osk-page.active {
  display: block;
}

/* Button grids */
.osk-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

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

.osk-grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

/* Base button */
.osk-btn {
  background: #2e2e2e;
  color: #e0e0e0;
  border: 1px solid #4a4a4a;
  border-radius: 6px;
  padding: 8px 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.1s ease, transform 0.08s ease;
  font-family: 'Roboto', sans-serif;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.osk-btn:hover {
  background: #3d3d3d;
  color: #fff;
}

.osk-btn:active {
  transform: scale(0.93);
  background: #222;
}

/* Operator buttons (slightly tinted) */
.osk-btn.osk-op {
  background: #2a2a3a;
  color: #b0b8ff;
  border-color: #4a4a6a;
}

.osk-btn.osk-op:hover {
  background: #35354a;
  color: #d0d8ff;
}

/* Function buttons */
.osk-btn.osk-fn {
  background: #1e2a1e;
  color: #80e080;
  border-color: #3a5a3a;
  font-size: 12px;
}

.osk-btn.osk-fn:hover {
  background: #253525;
  color: #a0f0a0;
}

/* Alphabet buttons */
.osk-btn.osk-alpha {
  background: #1e2430;
  color: #80c8ff;
  border-color: #3a5070;
  font-size: 13px;
  font-weight: bold;
}

.osk-btn.osk-alpha:hover {
  background: #253040;
  color: #a8dcff;
}

.osk-btn.osk-alpha.osk-alpha-upper {
  background: #1e2a20;
  color: #80e8a0;
  border-color: #3a5a40;
}

.osk-btn.osk-alpha.osk-alpha-upper:hover {
  background: #253530;
  color: #a8f0b8;
}

/* Constant buttons */
.osk-btn.osk-const {
  background: #2a1e2a;
  color: #e080e0;
  border-color: #5a3a5a;
  font-size: 13px;
}

.osk-btn.osk-const:hover {
  background: #352535;
  color: #f0a0f0;
}

/* Action buttons (backspace etc.) */
.osk-btn.osk-action {
  background: #3a2020;
  color: #ff8080;
  border-color: #6a3a3a;
}

.osk-btn.osk-action:hover {
  background: #4a2828;
  color: #ffaaaa;
}

/* Navigation arrow row - always at the bottom of the panel */
.osk-nav-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #333;
}

.osk-nav-spacer {
  flex: 1;
}

.osk-nav-arrows {
  display: flex;
  align-items: center;
  gap: 4px;
}

.osk-nav-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.osk-btn.osk-nav-btn {
  background: #252535;
  color: #9090e0;
  border-color: #4a4a7a;
  width: 38px;
  height: 38px;
  font-size: 13px;
  padding: 0;
  flex-shrink: 0;
}

.osk-nav-col .osk-btn.osk-nav-btn {
  height: 17px;
  min-height: 17px;
  font-size: 11px;
}

.osk-btn.osk-nav-btn:hover {
  background: #303050;
  color: #b0b0ff;
}

/* Back button in the persistent nav row */
.osk-nav-back-btn {
  margin-right: 8px;
  font-size: 13px;
  padding: 0 12px;
  height: 38px;
  min-height: 38px;
  flex-shrink: 0;
}

/* Shortcuts tab action buttons */
.osk-btn.osk-action[data-action="osk-copy"],
.osk-btn.osk-action[data-action="osk-cut"],
.osk-btn.osk-action[data-action="osk-paste"] {
  background: #1e2a3a;
  color: #80c0ff;
  border-color: #3a5a7a;
  font-size: 13px;
  text-align: left;
  justify-content: flex-start;
  padding: 0 14px;
}

.osk-btn.osk-action[data-action="osk-copy"]:hover,
.osk-btn.osk-action[data-action="osk-cut"]:hover,
.osk-btn.osk-action[data-action="osk-paste"]:hover {
  background: #253545;
  color: #a0d8ff;
}

/* ============================================================
   Step-by-step panel
   ============================================================ */

.steps-toggle-btn {
  display: inline-block;
  margin-top: 10px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  padding: 3px 0;
  letter-spacing: 0.03em;
  transition: color 0.15s ease;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.2);
}

.steps-toggle-btn:hover {
  color: rgba(255, 255, 255, 0.75);
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.steps-toggle-btn:focus {
  background-color: rgba(255, 255, 255, 0.1);
}

.steps-toggle-btn.steps-toggle-open {
  color: rgb(255, 90, 0);
  text-decoration-color: rgba(255, 90, 0, 0.5);
}

.steps-panel {
  margin-top: 8px;
  padding: 10px 12px;
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: 7px;
  border-left: 3px solid rgba(255, 90, 0, 0.4);
}

.step-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  flex-wrap: wrap;
}

.step-row + .step-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.step-num {
  color: rgba(255, 90, 0, 0.7);
  font-size: 12px;
  min-width: 18px;
  flex-shrink: 0;
  font-weight: bold;
}

.step-body {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.step-desc {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  flex-shrink: 0;
}

.step-sub {
  color: #fff;
  font-family: 'Roboto Mono', 'Courier New', monospace;
  font-size: 13px;
}

.step-arrow {
  color: rgba(255, 90, 0, 0.7);
  font-size: 13px;
  flex-shrink: 0;
}

.step-val {
  color: rgb(255, 90, 0);
  font-size: 13px;
  font-weight: bold;
}

.step-remain {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  font-family: 'Roboto Mono', 'Courier New', monospace;
  margin-left: 4px;
}

/* Separator between multiple solutions in the result area */
.result-separator {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 8px 0;
}

/* ============================================================
   Graph toggle button and panel
   ============================================================ */

.graph-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.graph-toggle-btn::before {
  content: '\25B6';
  font-size: 9px;
  transition: transform 0.2s;
  display: inline-block;
}

.graph-toggle-btn.graph-toggle-open::before {
  transform: rotate(90deg);
}

.graph-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.95);
}

.graph-toggle-btn:focus {
  background-color: rgba(255, 255, 255, 0.1);
}

.graph-panel {
  margin-top: 8px;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.graph-panel.hidden {
  display: none;
}

.graph-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px 8px 0 0;
}

.graph-hint {
  padding: 5px 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  background: #111;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-family: 'Roboto', sans-serif;
}

/* ============================================================
   Graph table toggle button and panel
   ============================================================ */

.table-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.table-toggle-btn::before {
  content: '\25B6';
  font-size: 9px;
  transition: transform 0.2s;
  display: inline-block;
}

.table-toggle-btn.table-toggle-open::before {
  transform: rotate(90deg);
}

.table-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.95);
}

.table-panel {
  margin-top: 6px;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-panel.hidden {
  display: none;
}

.table-controls {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
}

.table-more-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.65);
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.table-more-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.95);
}

.table-more-btn:active {
  background: rgba(255, 255, 255, 0.05);
}

.table-more-btn:focus {
  background-color: rgba(255, 255, 255, 0.1);
}

.table-scroll {
  overflow-x: auto;
  max-height: 320px;
  overflow-y: auto;
}

.graph-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Roboto Mono', 'Courier New', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.graph-table thead th {
  position: sticky;
  top: 0;
  background: #1a1a1a;
  color: rgb(255, 90, 0);
  font-weight: bold;
  padding: 6px 14px;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  z-index: 1;
}

.graph-table thead th:first-child {
  text-align: center;
}

.graph-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.graph-table tbody tr:hover {
  background: rgba(255, 90, 0, 0.08);
}

.graph-table td {
  padding: 4px 14px;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.graph-table td:first-child {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
}

.graph-table td.table-x {
  color: rgba(255, 255, 255, 0.55);
  text-align: right;
}

.graph-table td.table-y {
  color: #fff;
}

.graph-table td.table-undef {
  color: rgba(255, 255, 255, 0.25);
  font-style: italic;
}
