/* Retro Terminal Theme */
:root {
  --terminal-bg: #1a1a1a;
  --terminal-text: #e78338;
  --terminal-bright: #ff9649;
  --terminal-dim: #8b4513;
  --terminal-green: #2da329;
  --terminal-red: #cc3232;
  --terminal-border: #e78338;
  --terminal-orange: #e78338;
}

/* Add this to enhance the phosphor effect */
* {
  text-shadow: 0 0 2px rgba(231, 131, 56, 0.4);
}

@font-face {
  font-family: "DOS";
  src: url("https://cdn.jsdelivr.net/npm/ibm-plex-mono@6.0.0/fonts/complete/woff2/IBMPlexMono-Regular.woff2");
}

/* Base Styles */
body {
  font-family: "DOS", "Courier New", monospace;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 80%;
  padding: 0;
  background-color: var(--terminal-bg);
  color: var(--terminal-text);
  text-shadow: 0 0 2px var(--terminal-text);
  animation: textShadow 1.6s infinite;
  background-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

/* Layout */
.page-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2px;
  padding: 10px;
}

.main-content,
.side-panel {
  border: 1px solid var(--terminal-text);
  padding: 10px;
  box-shadow: inset 0 0 10px rgba(231, 131, 56, 0.3),
    0 0 2px rgba(231, 131, 56, 0.2);
  position: relative;
  overflow: hidden;
}

.main-content {
  flex: 1;
  position: relative;
  overflow: auto;
  height: calc(100vh - 20px);
}

.side-panel {
  width: 250px;
}

/* Tabs */
.tabs {
  display: flex;
  border: 1px solid var(--terminal-text);
  margin-bottom: 20px;
}

.tab {
  padding: 5px 15px;
  color: var(--terminal-dim);
  cursor: pointer;
  border-right: 1px solid var(--terminal-text);
  text-transform: uppercase;
}

.tab:last-child {
  border-right: none;
}

.tab:hover {
  background: var(--terminal-text);
  color: var(--terminal-bg);
}

.tab.active {
  background: var(--terminal-text);
  color: var(--terminal-bg);
  font-weight: bold;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Tables */
table {
  width: 100%;
  border: 1px solid var(--terminal-text);
  border-collapse: collapse;
  margin-bottom: 20px;
}

th,
td {
  padding: 8px;
  border: 1px solid var(--terminal-text);
  text-align: left;
}

th {
  background: var(--terminal-text);
  color: var(--terminal-bg);
  font-weight: normal;
  text-transform: uppercase;
}

tr:hover {
  background: rgba(255, 179, 71, 0.1);
}

/* Forms */
input,
select,
textarea {
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-text);
  color: var(--terminal-text);
  padding: 5px;
  font-family: "DOS", "Courier New", monospace;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 5px var(--terminal-bright);
}

/* Buttons */
button {
  background: var(--terminal-bg);
  color: var(--terminal-text);
  border: 1px solid var(--terminal-text);
  padding: 5px 10px;
  cursor: pointer;
  text-transform: uppercase;
  font-family: "DOS", "Courier New", monospace;
}

button:hover {
  background: var(--terminal-text);
  color: var(--terminal-bg);
}

button:active {
  transform: translateY(1px);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Strategy Editor Section */
.strategies-container {
  display: flex;
  gap: 20px;
  height: calc(100vh - 200px);
  min-height: 400px;
}

.strategy-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--terminal-text);
  background: var(--terminal-bg);
  min-width: 0;
  box-shadow: inset 0 0 10px rgba(231, 131, 56, 0.3);
}

.strategy-editor h2 {
  margin: 0;
  padding: 15px 15px 5px 15px;
  white-space: nowrap;
}

#strategyName {
  margin: 5px 15px;
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-text);
  color: var(--terminal-text);
  padding: 8px;
  width: calc(100% - 30px);
  box-sizing: border-box;
}

#strategyTextArea {
  margin: 5px 15px 15px 15px;
  flex: 1;
  background: var(--terminal-bg);
  color: var(--terminal-text);
  border: 1px solid var(--terminal-text);
  padding: 10px;
  font-family: "DOS", "Courier New", monospace;
  resize: none;
  width: calc(100% - 30px);
  min-height: 300px;
  box-sizing: border-box;
  white-space: pre;
  overflow-x: auto;
}

/* Strategy Content Layout */
.strategy-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 5px;
}

.strategy-name {
  flex: 1;
  color: var(--terminal-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 10px;
}

/* Saved Strategies */
.saved-strategies {
  width: 250px;
  border: 1px solid var(--terminal-text);
  background: var(--terminal-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 10px rgba(231, 131, 56, 0.3);
}

.saved-strategies h2 {
  margin: 0;
  padding: 15px 15px 5px 15px;
  white-space: nowrap;
}

.strategies-list {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  margin: 5px 0;
}

.strategy-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 15px;
  border: 1px solid var(--terminal-text);
  margin: 5px 15px;
  cursor: pointer;
  min-width: 0;
  box-sizing: border-box;
  background: rgba(231, 131, 56, 0.05);
}

.strategy-item:hover {
  background: rgba(231, 131, 56, 0.1);
}

.strategy-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  margin-right: 10px;
}

.delete-strategy-btn {
  background: transparent;
  border: none;
  color: var(--terminal-text);
  padding: 4px;
  flex-shrink: 0;
}

.delete-strategy-btn:hover {
  color: var(--terminal-bright);
}

/* Save Strategy Button */
#saveStrategy {
  margin: 0 15px 15px 15px;
  background: var(--terminal-bg);
  color: var(--terminal-text);
  border: 1px solid var(--terminal-text);
  width: fit-content;
  padding: 8px 15px;
  box-shadow: 0 0 5px rgba(231, 131, 56, 0.2);
}

#saveStrategy:hover {
  background: var(--terminal-text);
  color: var(--terminal-bg);
  text-shadow: none;
}

/* Special Elements */
.profit {
  color: var(--terminal-green);
}

.loss {
  color: var(--terminal-red);
}

/* Status Indicators */
.run-status i {
  font-size: 14px;
}

.status-btn.completed i {
  color: var(--terminal-green);
}

.status-btn.running i {
  color: var(--terminal-bright);
}

.status-btn.error i {
  color: var(--terminal-red);
}

/* Date Inputs */
.date-inputs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid var(--terminal-text);
}

.date-input {
  display: flex;
  align-items: center;
}

.date-input label {
  margin-right: 10px;
  text-transform: uppercase;
}

/* CRT Effects */
@keyframes textShadow {
  0% {
    text-shadow: 0.4389924193300864px 0 1px rgba(231, 131, 56, 0.1),
      -0.4389924193300864px 0 1px rgba(231, 131, 56, 0.1), 0 0 3px;
  }
  5% {
    text-shadow: 2.7928974010788217px 0 1px rgba(231, 131, 56, 0.1),
      -2.7928974010788217px 0 1px rgba(231, 131, 56, 0.1), 0 0 3px;
  }
  10% {
    text-shadow: 0.02956275843481219px 0 1px rgba(231, 131, 56, 0.1),
      -0.02956275843481219px 0 1px rgba(231, 131, 56, 0.1), 0 0 3px;
  }
  15% {
    text-shadow: 0.40218538552878136px 0 1px rgba(231, 131, 56, 0.1),
      -0.40218538552878136px 0 1px rgba(231, 131, 56, 0.1), 0 0 3px;
  }
  20% {
    text-shadow: 3.4794037899852017px 0 1px rgba(231, 131, 56, 0.1),
      -3.4794037899852017px 0 1px rgba(231, 131, 56, 0.1), 0 0 3px;
  }
  25% {
    text-shadow: 1.6125630401149584px 0 1px rgba(231, 131, 56, 0.1),
      -1.6125630401149584px 0 1px rgba(231, 131, 56, 0.1), 0 0 3px;
  }
  30% {
    text-shadow: 0.7015590085143956px 0 1px rgba(231, 131, 56, 0.1),
      -0.7015590085143956px 0 1px rgba(231, 131, 56, 0.1), 0 0 3px;
  }
  35% {
    text-shadow: 3.896914047650351px 0 1px rgba(231, 131, 56, 0.1),
      -3.896914047650351px 0 1px rgba(231, 131, 56, 0.1), 0 0 3px;
  }
  40% {
    text-shadow: 3.870905614848819px 0 1px rgba(231, 131, 56, 0.1),
      -3.870905614848819px 0 1px rgba(231, 131, 56, 0.1), 0 0 3px;
  }
  45% {
    text-shadow: 2.231056963361899px 0 1px rgba(231, 131, 56, 0.1),
      -2.231056963361899px 0 1px rgba(231, 131, 56, 0.1), 0 0 3px;
  }
  50% {
    text-shadow: 0.08084290417898504px 0 1px rgba(231, 131, 56, 0.1),
      -0.08084290417898504px 0 1px rgba(231, 131, 56, 0.1), 0 0 3px;
  }
  55% {
    text-shadow: 2.3758461067427543px 0 1px rgba(231, 131, 56, 0.1),
      -2.3758461067427543px 0 1px rgba(231, 131, 56, 0.1), 0 0 3px;
  }
  60% {
    text-shadow: 2.202193051050636px 0 1px rgba(231, 131, 56, 0.1),
      -2.202193051050636px 0 1px rgba(231, 131, 56, 0.1), 0 0 3px;
  }
  65% {
    text-shadow: 2.8638780614874975px 0 1px rgba(231, 131, 56, 0.1),
      -2.8638780614874975px 0 1px rgba(231, 131, 56, 0.1), 0 0 3px;
  }
  70% {
    text-shadow: 0.48874025155497314px 0 1px rgba(231, 131, 56, 0.1),
      -0.48874025155497314px 0 1px rgba(231, 131, 56, 0.1), 0 0 3px;
  }
  75% {
    text-shadow: 1.8948491305757957px 0 1px rgba(231, 131, 56, 0.1),
      -1.8948491305757957px 0 1px rgba(231, 131, 56, 0.1), 0 0 3px;
  }
  80% {
    text-shadow: 0.0833037308038857px 0 1px rgba(231, 131, 56, 0.1),
      -0.0833037308038857px 0 1px rgba(231, 131, 56, 0.1), 0 0 3px;
  }
  85% {
    text-shadow: 0.09769827255241735px 0 1px rgba(231, 131, 56, 0.1),
      -0.09769827255241735px 0 1px rgba(231, 131, 56, 0.1), 0 0 3px;
  }
  90% {
    text-shadow: 3.443339761481782px 0 1px rgba(231, 131, 56, 0.1),
      -3.443339761481782px 0 1px rgba(231, 131, 56, 0.1), 0 0 3px;
  }
  95% {
    text-shadow: 2.1841838852799786px 0 1px rgba(231, 131, 56, 0.1),
      -2.1841838852799786px 0 1px rgba(231, 131, 56, 0.1), 0 0 3px;
  }
  100% {
    text-shadow: 2.6208764473832513px 0 1px rgba(231, 131, 56, 0.1),
      -2.6208764473832513px 0 1px rgba(231, 131, 56, 0.1), 0 0 3px;
  }
}

/* CRT screen effect */
body::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    to bottom,
    rgba(18, 16, 16, 0) 50%,
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  z-index: 2;
  pointer-events: none;
  animation: flickerAnimation 0.15s infinite;
}

/* Phosphor persistence effect */
body::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(18, 16, 16, 0.1);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  animation: fadeInOut 6s infinite;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 0.15;
  }
  60% {
    opacity: 0.15;
  }
  100% {
    opacity: 0;
  }
}

/* Phosphor glow effect */
.main-content::before,
.side-panel::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  right: -10%;
  bottom: -10%;
  background: radial-gradient(
    ellipse at center,
    rgba(231, 131, 56, 0.15) 0%,
    rgba(231, 131, 56, 0) 70%
  );
  pointer-events: none;
  z-index: -1;
}

/* Terminal startup effect */
@keyframes startup {
  0% {
    clip-path: inset(0 0 100% 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

.container {
  animation: startup 1s steps(30) 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--terminal-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--terminal-text);
  border: 2px solid var(--terminal-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--terminal-bright);
}

/* Text Selection */
::selection {
  background: var(--terminal-text);
  color: var(--terminal-bg);
  text-shadow: none;
}

/* Monospace everywhere */
* {
  font-variant-numeric: tabular-nums;
}

/* Strategy Select Styling */
.strategy-select {
  flex: 1;
  padding: 5px;
  background: var(--terminal-bg);
  color: var(--terminal-text);
  border: 1px solid var(--terminal-text);
  margin-right: 10px;
}

.strategy-select:focus {
  outline: none;
  box-shadow: 0 0 5px var(--terminal-bright);
}

.strategy-config-row {
  background: var(--terminal-bg);
}

.strategy-config-cell {
  padding: 20px;
  border: 1px solid var(--terminal-text);
}

.strategy-config-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.strategy-config-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.strategy-config-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.strategy-config-field label {
  color: var(--terminal-text);
  font-size: 0.9em;
}

.strategy-config-field input {
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-text);
  color: var(--terminal-text);
  padding: 5px;
  font-family: inherit;
}

.strategy-config-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Actions cell container */
.actions-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Reset button styling */
.reset-btn i {
  font-size: 14px;
  text-shadow: 0 0 2px rgba(231, 131, 56, 0.4);
}

.reset-btn:hover i {
  text-shadow: none;
}

/* Style the reset confirmation dialog input */
.reset-dialog input {
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-text);
  color: var(--terminal-text);
  padding: 5px;
  font-family: "DOS", "Courier New", monospace;
  margin: 10px 0;
  width: 100%;
}

.reset-dialog input:focus {
  outline: none;
  box-shadow: 0 0 5px var(--terminal-bright);
}

.edit-strategy-btn,
.config-strategy-btn,
.reset-btn,
.delete-btn {
  padding: 5px 10px;
  min-width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--terminal-text);
  background: var(--terminal-bg);
  color: var(--terminal-text);
  cursor: pointer;
  box-shadow: 0 0 5px rgba(231, 131, 56, 0.2);
  transition: all 0.2s ease;
}

.edit-strategy-btn:hover,
.config-strategy-btn:hover,
.reset-btn:hover,
.delete-btn:hover {
  background: var(--terminal-text);
  color: var(--terminal-bg);
  text-shadow: none;
}

.edit-strategy-btn:active,
.config-strategy-btn:active,
.reset-btn:active,
.delete-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.position-refresh-btn {
  padding: 5px 10px;
  min-width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--terminal-text);
  background: var(--terminal-bg);
  color: var(--terminal-text);
  cursor: pointer;
  box-shadow: 0 0 5px rgba(231, 131, 56, 0.2);
  transition: all 0.2s ease;
  margin-left: 10px;
  margin-bottom: 10px;
}

.position-refresh-btn:hover {
  background: var(--terminal-text);
  color: var(--terminal-bg);
  text-shadow: none;
}

.position-refresh-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.position-refresh-btn i {
  font-size: 14px;
  text-shadow: 0 0 2px rgba(231, 131, 56, 0.4);
}

.position-refresh-btn:hover i {
  text-shadow: none;
}

/* Add spinning animation for refresh */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.position-refresh-btn.refreshing i {
  animation: spin 1s linear infinite;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--terminal-bg);
  border: 1px solid var(--terminal-text);
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terminal-text);
  font-size: 12px;
  text-transform: uppercase;
}

.toggle-switch label::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: var(--terminal-text);
  transition: 0.3s;
  box-shadow: 0 0 5px rgba(231, 131, 56, 0.3);
}

.toggle-switch input:checked + label {
  background-color: var(--terminal-bg);
  border-color: var(--terminal-green);
  color: var(--terminal-green);
}

.toggle-switch input:checked + label::before {
  transform: translateX(30px);
  background-color: var(--terminal-green);
}

.toggle-switch.success label {
  box-shadow: 0 0 10px var(--terminal-green);
  transition: box-shadow 0.3s ease-in-out;
}

/* Add phosphor effect to toggle */
.toggle-switch label::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: radial-gradient(
    ellipse at center,
    rgba(231, 131, 56, 0.15) 0%,
    rgba(231, 131, 56, 0) 70%
  );
  pointer-events: none;
  z-index: -1;
}

.account-checkbox {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--terminal-text);
  background: var(--terminal-bg);
  cursor: pointer;
  position: relative;
  margin: 0;
  display: inline-block;
  vertical-align: middle;
}

.account-checkbox:hover {
  box-shadow: 0 0 5px rgba(231, 131, 56, 0.3);
}

.account-checkbox:checked {
  background: var(--terminal-bg);
}

.account-checkbox:checked::before {
  content: "×";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: var(--terminal-text);
  font-family: "DOS", monospace;
  line-height: 1;
}

.account-checkbox:focus {
  outline: none;
  border-color: var(--terminal-bright);
}

/* Add phosphor effect to checkbox */
.account-checkbox::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: radial-gradient(
    ellipse at center,
    rgba(231, 131, 56, 0.15) 0%,
    rgba(231, 131, 56, 0) 70%
  );
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.account-checkbox:hover::after {
  opacity: 1;
}

.chart-btn {
  padding: 5px 10px;
  min-width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--terminal-text);
  background: var(--terminal-bg);
  color: var(--terminal-text);
  cursor: pointer;
  box-shadow: 0 0 5px rgba(231, 131, 56, 0.2);
  transition: all 0.2s ease;
}

.chart-btn:hover {
  background: var(--terminal-text);
  color: var(--terminal-bg);
  text-shadow: none;
}

.chart-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.chart-btn i {
  font-size: 14px;
  text-shadow: 0 0 2px rgba(231, 131, 56, 0.4);
}

.chart-btn:hover i {
  text-shadow: none;
}

/* Chart Styles */
.performance-row {
  background: var(--terminal-bg);
  transition: all 0.3s ease;
}

.performance-row td {
  padding: 20px;
  border: 1px solid var(--terminal-text);
  box-shadow: inset 0 0 10px rgba(231, 131, 56, 0.3);
}

.chart-container {
  max-width: 100%;
  height: 400px;
  position: relative;
  padding: 20px;
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-text);
  box-shadow: inset 0 0 10px rgba(231, 131, 56, 0.3);
  margin-bottom: 20px;
  overflow: hidden;
  z-index: 3;
}

.chart-btn.active {
  background: var(--terminal-text);
  color: var(--terminal-bg);
}

.chart-btn.active i {
  text-shadow: none;
}

/* Chart.js Custom Theme */
.chart-js-render {
  font-family: "DOS", "Courier New", monospace !important;
  background: var(--terminal-bg);
  padding: 20px;
  border: 1px solid var(--terminal-text);
  box-shadow: inset 0 0 10px rgba(231, 131, 56, 0.3);
  height: 400px;
  margin-bottom: 20px;
}

.chart-js-render canvas {
  background-color: var(--terminal-bg) !important;
  position: relative;
  z-index: 3;
}

/* Chart Tooltips */
.chartjs-tooltip {
  background: var(--terminal-bg) !important;
  border: 1px solid var(--terminal-text) !important;
  color: var(--terminal-text) !important;
  font-family: "DOS", "Courier New", monospace !important;
  padding: 10px !important;
}

/* Chart Grid Lines */
.chartjs-grid-line {
  stroke: rgba(231, 131, 56, 0.1) !important;
}

/* Chart Axis Lines */
.chartjs-axis-line {
  stroke: var(--terminal-text) !important;
}

/* Chart Ticks */
.chartjs-tick {
  color: var(--terminal-text) !important;
  font-family: "DOS", "Courier New", monospace !important;
}

/* Trade Info Panel */
.trade-info {
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-text);
  padding: 20px;
  margin-top: 20px;
  box-shadow: inset 0 0 10px rgba(231, 131, 56, 0.3);
}

.trade-info h3 {
  margin: 0 0 15px 0;
  color: var(--terminal-text);
  text-transform: uppercase;
  font-size: 14px;
  border-bottom: 1px solid var(--terminal-text);
  padding-bottom: 5px;
}

.trade-info table {
  width: 100%;
  border-collapse: collapse;
  font-family: "DOS", monospace;
}

.trade-info th,
.trade-info td {
  padding: 8px;
  border: 1px solid var(--terminal-text);
  color: var(--terminal-text);
  font-size: 12px;
}

.trade-info th {
  text-align: right;
  width: 120px;
  background: rgba(231, 131, 56, 0.1);
  text-transform: uppercase;
}

.trade-info td {
  text-align: left;
  background: var(--terminal-bg);
}

/* Add a glow effect on hover */
.trade-info tr:hover td,
.trade-info tr:hover th {
  text-shadow: 0 0 5px var(--terminal-text);
}

/* Performance Row */
.performance-row td {
  padding: 20px;
}

/* Remove any default Chart.js styling that might conflict */
.chart-js-render {
  font-family: "DOS", "Courier New", monospace !important;
}

/* Ensure our colors aren't being overridden */
.chart-js-render canvas {
  background-color: var(--terminal-bg) !important;
}

/* Chart Tooltips */
.chartjs-tooltip {
  background: var(--terminal-bg) !important;
  border: 1px solid var(--terminal-text) !important;
  color: var(--terminal-text) !important;
  font-family: "DOS", "Courier New", monospace !important;
  padding: 10px !important;
}

/* Chart Grid Lines */
.chartjs-grid-line {
  stroke: rgba(231, 131, 56, 0.1) !important;
}

/* Chart Axis Lines */
.chartjs-axis-line {
  stroke: var(--terminal-text) !important;
}

/* Chart Ticks */
.chartjs-tick {
  color: var(--terminal-text) !important;
  font-family: "DOS", "Courier New", monospace !important;
}

.reset-zoom-btn {
  background: var(--terminal-bg);
  color: var(--terminal-text);
  border: 1px solid var(--terminal-text);
  padding: 5px 10px;
  cursor: pointer;
  font-family: "DOS", "Courier New", monospace;
}

.reset-zoom-btn:hover {
  background: var(--terminal-text);
  color: var(--terminal-bg);
}

/* Backtest Controls Section */
.backtest-controls {
  border: 1px solid var(--terminal-text);
  margin-bottom: 20px;
  box-shadow: inset 0 0 10px rgba(231, 131, 56, 0.3);
}

.backtest-header {
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  background: rgba(231, 131, 56, 0.1);
}

.backtest-header i {
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.backtest-header.collapsed i {
  transform: rotate(-90deg);
}

.backtest-content {
  padding: 15px;
  display: none;
}

.backtest-content.visible {
  display: block;
}

.date-controls {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.account-selection {
  margin-bottom: 15px;
}

.account-checkbox {
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  padding: 5px;
}

.account-checkbox.warning {
  border: 1px solid var(--terminal-red);
  background: rgba(204, 50, 50, 0.1);
}

.warning-icon {
  color: var(--terminal-red);
  margin-left: 5px;
}

.warning-message {
  color: var(--terminal-red);
  font-size: 0.9em;
  margin-top: 5px;
}

.active-backtests {
  margin-top: 15px;
}

.backtest-task {
  margin-bottom: 15px;
  padding: 15px;
  border: 1px solid var(--terminal-text);
  background: rgba(231, 131, 56, 0.05);
}

.backtest-task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.task-id {
  font-family: "DOS", monospace;
  font-weight: bold;
}

.task-status {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

.status-running {
  color: var(--terminal-bright);
  border: 1px solid var(--terminal-bright);
}

.status-completed {
  color: var(--terminal-green);
  border: 1px solid var(--terminal-green);
}

.status-failed {
  color: var(--terminal-red);
  border: 1px solid var(--terminal-red);
}

.task-details {
  font-size: 0.9em;
  margin-bottom: 10px;
}

.task-details > div {
  margin: 3px 0;
}

.progress-bar {
  position: relative;
  height: 15px;
  background: var(--terminal-dim);
  margin: 10px 0;
}

.progress-bar-fill {
  height: 100%;
  background: var(--terminal-text);
  transition: width 0.3s ease;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--terminal-bg);
  font-size: 0.8em;
  font-weight: bold;
}

.task-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.cancel-btn,
.analyze-btn {
  padding: 5px 10px;
  border: 1px solid var(--terminal-text);
  background: transparent;
  color: var(--terminal-text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-btn:hover {
  background: var(--terminal-red);
  border-color: var(--terminal-red);
  color: var(--terminal-bg);
}

.analyze-btn:hover {
  background: var(--terminal-green);
  border-color: var(--terminal-green);
  color: var(--terminal-bg);
}

.error-message {
  margin-top: 10px;
  color: var(--terminal-red);
  font-size: 0.9em;
}

/* Add styles for disabled buttons and backtest indicator */
.actions-cell button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: var(--terminal-dim);
  color: var(--terminal-dim);
}

.backtest-indicator {
  display: inline-block;
  margin-right: 10px;
  color: var(--terminal-bright);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

/* Add a visual indicator to the whole row */
tr[data-account-id].backtesting {
  background: rgba(231, 131, 56, 0.1);
}

.sandbox-container {
  padding: 20px;
  animation: startup 0.5s steps(20) 1;
}

.terminal-section {
  margin-bottom: 30px;
  border: 1px solid var(--terminal-text);
  padding: 20px;
  box-shadow: inset 0 0 10px rgba(231, 131, 56, 0.3);
}

.terminal-section h3 {
  margin: 0 0 20px 0;
  color: var(--terminal-text);
  font-weight: normal;
  text-align: center;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.metric-item {
  border: 1px solid var(--terminal-text);
  padding: 10px;
}

.metric-label {
  display: block;
  color: var(--terminal-dim);
  margin-bottom: 5px;
}

.metric-value {
  font-size: 1.2em;
  font-family: "DOS", monospace;
}

.profit .metric-value {
  color: var(--terminal-green);
}

.loss .metric-value {
  color: var(--terminal-red);
}

.terminal-section h4 {
  margin: 20px 0 10px 0;
  color: var(--terminal-text);
  font-weight: normal;
}

.order-status-canceled {
  color: var(--terminal-dim);
}

.order-status-filled {
  color: var(--terminal-green);
}

.order-status-rejected {
  color: var(--terminal-red);
}

.terminal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  position: relative;
  font-family: "DOS", monospace;
}

.terminal-table th {
  color: var(--terminal-text);
  border: 1px solid var(--terminal-text);
  padding: 8px;
  text-align: left;
  background: var(--terminal-bg);
}

.terminal-table td {
  border: 1px solid var(--terminal-dim);
  padding: 8px;
}

.terminal-table tr:hover {
  background: rgba(231, 131, 56, 0.05);
}

.num-cell {
  text-align: right;
  font-family: "DOS", monospace;
}

.success {
  color: var(--terminal-green);
}

/* Loading animation styles */
.loading-cell {
  text-align: center;
  padding: 40px !important;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loading-text {
  font-family: "DOS", monospace;
  color: var(--terminal-text);
  animation: loadingText 1s infinite step-end;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--terminal-text);
  border-right-color: transparent;
  animation: rotate 1s infinite linear;
}

@keyframes loadingText {
  0% {
    content: "LOADING DATA";
  }
  25% {
    content: "LOADING DATA.";
  }
  50% {
    content: "LOADING DATA..";
  }
  75% {
    content: "LOADING DATA...";
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Alternative retro loading animation */
.loading-text::after {
  content: "";
  animation: loadingDots 1s infinite step-end;
}

@keyframes loadingDots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
}

/* Raw JSON Display Styles */
.json-display {
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-text);
  padding: 15px;
  overflow-x: auto;
  white-space: pre;
  font-family: "DOS", monospace;
  color: var(--terminal-text);
  margin: 0;
  box-shadow: inset 0 0 10px rgba(231, 131, 56, 0.3);
  max-height: 500px;
  overflow-y: auto;
}

.json-display::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.json-display::-webkit-scrollbar-track {
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-text);
}

.json-display::-webkit-scrollbar-thumb {
  background: var(--terminal-text);
}

.json-display::-webkit-scrollbar-thumb:hover {
  background: var(--terminal-bright);
}

/* Error message styling */
.error-message {
  color: var(--terminal-red);
  padding: 15px;
  border: 1px solid var(--terminal-red);
  background: rgba(204, 50, 50, 0.1);
}

.account-number {
  font-family: "DOS", monospace;
  margin: 15px 0;
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.compact-table {
  width: auto;
  min-width: 300px;
}

.compact-table td:first-child {
  width: 150px;
}

.compact-table td {
  padding: 4px 8px;
}

.expand-btn {
  background: none;
  border: 1px solid var(--terminal-text);
  color: var(--terminal-text);
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-family: "DOS", monospace;
  padding: 0;
  line-height: 1;
}

.expand-btn:hover {
  background: var(--terminal-text);
  color: var(--terminal-bg);
}

.order-details-content {
  padding: 10px 20px;
  border-left: 1px solid var(--terminal-text);
  margin: 5px 0;
}

.details-table {
  width: 100%;
  border: none;
}

.details-table td {
  padding: 2px 10px;
  border: none;
}

.details-table td:nth-child(odd) {
  color: var(--terminal-dim);
}

.strategy-config-container {
  padding: 1rem;
}

.strategy-config-group {
  margin-bottom: 1.5rem;
}

.strategy-config-group h4 {
  color: var(--terminal-text);
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--terminal-dim);
  padding-bottom: 0.25rem;
}

.strategy-config-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.strategy-config-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.strategy-config-field label {
  color: var(--terminal-text);
  font-size: 0.9em;
}

.strategy-config-field input {
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-dim);
  color: var(--terminal-text);
  padding: 0.25rem 0.5rem;
  font-family: inherit;
}

.strategy-config-buttons {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.strategy-config-buttons button {
  padding: 0.5rem 1rem;
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-text);
  color: var(--terminal-text);
  cursor: pointer;
}

.strategy-config-buttons button:hover {
  background: var(--terminal-dim);
}

/* User Settings */

.user-settings-container {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid var(--terminal-text);
  background: var(--terminal-bg);
  box-shadow: inset 0 0 10px rgba(231, 131, 56, 0.3);
}

.user-settings-form-group {
  margin-bottom: 15px;
}

.user-settings-form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--terminal-text);
  font-family: "DOS", monospace;
}

.user-settings-form-group input {
  width: 98%;
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-text);
  color: var(--terminal-text);
  font-family: "DOS", monospace;
}

.user-settings-form-group input:focus {
  outline: none;
  border-color: var(--terminal-bright);
  box-shadow: 0 0 5px rgba(231, 131, 56, 0.5);
}

.user-settings-submit-btn {
  padding: 8px 16px;
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-text);
  color: var(--terminal-text);
  cursor: pointer;
  font-family: "DOS", monospace;
  transition: all 0.3s ease;
}

.user-settings-submit-btn:hover {
  background: var(--terminal-text);
  color: var(--terminal-bg);
}

.user-settings-error {
  color: var(--terminal-red);
  margin-top: 5px;
  font-size: 0.9em;
  font-family: "DOS", monospace;
}

.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.login-form-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* width: 300px; */
}

.login-form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.login-element {
  width: 100%;
}

.login-button {
  width: 100%;
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-text);
  color: var(--terminal-text);
}

.bulk-actions {
  margin-bottom: 1rem;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--terminal-bg);
}

.bulk-actions.visible {
  max-height: 50px; /* Adjust based on your content height */
}

.bulk-actions-content {
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-text);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bulk-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--terminal-text);
  background: transparent;
  color: var(--terminal-text);
  cursor: pointer;
}

.bulk-action-btn:hover {
  background: var(--terminal-text);
  color: var(--terminal-bg);
}

#selectedCount {
  margin-left: auto;
  color: var(--terminal-text);
}

/* Remove inner borders from table cells */
.terminal-table td {
  border: none;
}

/* Keep the outer border for rows */
.terminal-table tr {
  border: 1px solid var(--terminal-dim);
}

/* Keep header borders if desired */
.terminal-table th {
  border-bottom: 1px solid var(--terminal-text);
}

/* Optional: Add subtle separation between rows */
.terminal-table tr:not(:last-child) {
  border-bottom: 1px solid var(--terminal-dim);
}

.ai-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.ai-input-container {
  background: var(--terminal-bg);
  padding: 20px;
  border: 1px solid var(--terminal-text);
  box-shadow: inset 0 0 10px rgba(231, 131, 56, 0.3);
}

.ai-input-container .input-group {
  margin-bottom: 20px;
}

.ai-input-container .input-group::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 8px;
  color: var(--terminal-text);
  font-family: "DOS", "Courier New", monospace;
  font-size: 0.9em;
  text-transform: uppercase;
}

.ai-input-container .strategy-select {
  width: 95%;
  padding: 8px 12px;
  background: var(--terminal-bg);
  color: var(--terminal-text);
  border: 1px solid var(--terminal-text);
  font-family: "DOS", "Courier New", monospace;
  margin-bottom: 15px;
}

.ai-input-container textarea {
  width: 95%;
  min-height: 200px;
  padding: 12px;
  background: var(--terminal-bg);
  color: var(--terminal-text);
  border: 1px solid var(--terminal-text);
  font-family: "DOS", "Courier New", monospace;
  resize: vertical;
  box-shadow: inset 0 0 5px rgba(231, 131, 56, 0.2);
}

.ai-input-container textarea.output-textarea {
  background: rgba(231, 131, 56, 0.05);
  border-color: var(--terminal-dim);
}

.ai-input-container textarea::placeholder {
  color: var(--terminal-dim);
}

.ai-input-container select:focus,
.ai-input-container textarea:focus {
  outline: none;
  border-color: var(--terminal-bright);
  box-shadow: 0 0 5px rgba(231, 131, 56, 0.3);
}

.strategy-params-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
  border: 1px solid var(--terminal-text);
  margin-bottom: 15px;
  background: var(--terminal-bg);
}

.strategy-params-header i {
  transition: transform 0.3s ease;
}

.strategy-params-content {
  border: 1px solid var(--terminal-dim);
  padding: 15px;
  margin-bottom: 15px;
  background: rgba(231, 131, 56, 0.05);
}

.params-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.param-group {
  border: 1px solid var(--terminal-dim);
  padding: 15px;
  background: rgba(231, 131, 56, 0.05);
}

.param-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  padding: 5px 0;
}

.param-label {
  width: 200px;
  text-align: left;
}

.param-input {
  flex: 1;
  max-width: 300px;
  padding: 5px;
  background: var(--terminal-bg);
  color: var(--terminal-text);
  border: 1px solid var(--terminal-text);
  font-family: "DOS", "Courier New", monospace;
}

/* Add specific styles for different input types */
.param-input[type="number"] {
  -moz-appearance: textfield; /* Firefox */
  width: 150px;
}

/* Remove spinner arrows for number inputs in Chrome/Safari/Edge */
.param-input[type="number"]::-webkit-outer-spin-button,
.param-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.param-input[type="datetime-local"],
.param-input[type="date"] {
  width: 200px;
}

/* Style select dropdowns */
.param-input[list],
select.param-input {
  appearance: none;
  background-image: linear-gradient(
      45deg,
      transparent 50%,
      var(--terminal-text) 50%
    ),
    linear-gradient(135deg, var(--terminal-text) 50%, transparent 50%);
  background-position: calc(100% - 15px) center, calc(100% - 10px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 25px;
}

/* Style boolean/checkbox inputs */
.param-input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  position: relative;
  appearance: none;
}

.param-input[type="checkbox"]:checked::before {
  content: "×";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  color: var(--terminal-text);
}

.radio-group {
  display: flex;
  gap: 15px;
  margin-left: auto;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--terminal-text);
  border-radius: 50%;
  position: relative;
  margin-right: 5px;
}

/* Color the borders based on the type */
.radio-label.include input[type="radio"] {
  border-color: var(--terminal-green);
}

.radio-label.exclude input[type="radio"] {
  border-color: var(--terminal-red);
}

.radio-label.neutral input[type="radio"] {
  border-color: var(--terminal-orange);
}

/* Color the center dot based on the type */
.radio-label.include input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--terminal-green);
}

.radio-label.exclude input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--terminal-red);
}

.radio-label.neutral input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--terminal-orange);
}

.radio-label:hover input[type="radio"] {
  opacity: 0.8;
}

.radio-label:active {
  transform: translateY(1px);
}

.permutations-input {
  width: 150px;
  padding: 8px 12px;
  background: var(--terminal-bg);
  color: var(--terminal-text);
  border: 1px solid var(--terminal-text);
  font-family: "DOS", "Courier New", monospace;
}

.submit-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  margin: 15px 0;
  background: var(--terminal-bg);
  color: var(--terminal-text);
  border: 1px solid var(--terminal-text);
  font-family: "DOS", "Courier New", monospace;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-btn:hover {
  background: var(--terminal-text);
  color: var(--terminal-bg);
}

.submit-btn i {
  font-size: 1.1em;
}

.param-group-header {
  margin-bottom: 15px;
}

.param-group-controls {
  display: flex;
  gap: 15px;
  margin-left: auto;
}

.control-btn {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid var(--terminal-text);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.control-btn.include-all {
  background: var(--terminal-green);
  border-color: var(--terminal-green);
}

.control-btn.exclude-all {
  background: var(--terminal-red);
  border-color: var(--terminal-red);
}

.control-btn.neutral-all {
  background: var(--terminal-orange);
  border-color: var(--terminal-orange);
}

.control-btn:hover {
  opacity: 1;
}

.submit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.permutations-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.permutations-group label {
  font-family: "DOS", "Courier New", monospace;
  color: var(--terminal-text);
  font-size: 0.9em;
  white-space: nowrap;
}

.permutations-input {
  width: 60px;
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-text);
  color: var(--terminal-text);
  padding: 5px;
  font-family: "DOS", "Courier New", monospace;
  box-shadow: 0 0 5px rgba(231, 131, 56, 0.2);
}

.permutations-input:focus {
  outline: none;
  border-color: var(--terminal-bright);
  box-shadow: 0 0 5px rgba(231, 131, 56, 0.3);
}

.error-message {
  display: none;
  color: var(--terminal-red);
  font-family: "DOS", "Courier New", monospace;
  margin-left: 10px;
}

.error-message:not(:empty) {
  display: inline;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  padding-bottom: 5px;
}

.header-label {
  font-family: "DOS", "Courier New", monospace;
  color: var(--terminal-text);
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toggle-settings-btn {
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-text);
  padding: 5px 10px;
  cursor: pointer;
  font-family: "DOS", "Courier New", monospace;
  color: var(--terminal-text);
  text-transform: uppercase;
  font-size: 0.9em;
  box-shadow: 0 0 5px rgba(231, 131, 56, 0.2);
}

.toggle-settings-btn:hover {
  background: var(--terminal-text);
  color: var(--terminal-bg);
  text-shadow: none;
}

.toggle-settings-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.toggle-settings-btn i {
  margin-right: 5px;
  text-shadow: 0 0 2px rgba(231, 131, 56, 0.4);
}

.toggle-settings-btn:hover i {
  text-shadow: none;
}

.settings-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 20px;
}

.backtest-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.backtest-name-input {
  flex: 1;
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-text);
  color: var(--terminal-text);
  padding: 5px 10px;
  font-family: "DOS", "Courier New", monospace;
  box-shadow: 0 0 5px rgba(231, 131, 56, 0.2);
}

.backtest-name-input:focus {
  outline: none;
  border-color: var(--terminal-bright);
  box-shadow: 0 0 5px rgba(231, 131, 56, 0.3);
}

.create-backtest-btn {
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-text);
  padding: 5px 10px;
  cursor: pointer;
  font-family: "DOS", "Courier New", monospace;
  color: var(--terminal-text);
  text-transform: uppercase;
  font-size: 0.9em;
  box-shadow: 0 0 5px rgba(231, 131, 56, 0.2);
  white-space: nowrap;
}

.create-backtest-btn:hover {
  background: var(--terminal-text);
  color: var(--terminal-bg);
  text-shadow: none;
}

.create-backtest-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.create-backtest-btn i {
  margin-right: 5px;
  text-shadow: 0 0 2px rgba(231, 131, 56, 0.4);
}

.create-backtest-btn:hover i {
  text-shadow: none;
}

.input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  padding-bottom: 5px;
}

.header-label {
  font-family: "DOS", "Courier New", monospace;
  color: var(--terminal-text);
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balance-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.balance-group label {
  font-family: "DOS", "Courier New", monospace;
  color: var(--terminal-text);
  text-transform: uppercase;
  font-size: 0.9em;
  white-space: nowrap;
}

.balance-input {
  width: 120px;
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-text);
  color: var(--terminal-text);
  padding: 5px 10px;
  font-family: "DOS", "Courier New", monospace;
  box-shadow: 0 0 5px rgba(231, 131, 56, 0.2);
}

.balance-input:focus {
  outline: none;
  border-color: var(--terminal-bright);
  box-shadow: 0 0 5px rgba(231, 131, 56, 0.3);
}
