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

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: #000000;
  font-family: 'Courier New', Courier, monospace;
  color: #ffffff;
}

.terminal-container {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  background-color: #000000;
  position: relative;
}

.terminal-header {
  background-color: #000000;
  border-bottom: 2px solid #ffffff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.terminal-prompt {
  color: #ff0000;
  font-weight: bold;
  animation: blink 1.5s infinite;
}

.terminal-title {
  flex: 1;
  text-align: center;
  color: #ffffff;
  font-weight: bold;
}

.terminal-status {
  color: #ffffff;
  font-weight: bold;
}

.terminal-status::before {
  color: #00ff00;
  content: '● ';
  animation: pulse 2s infinite;
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0.3;
  }
}

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

.gdp-chart-container {
  width: 100%;
  height: calc(100vh - 50px - 40px);
  display: flex;
  flex-direction: column;
  background-color: #000000;
  flex: 1;
  padding: 0;
}

.chart-title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  font-family: 'Courier New', Courier, monospace;
  padding: 10px 0 5px 0;
  letter-spacing: 1px;
}

.chart-subtitle {
  text-align: center;
  font-size: 14px;
  color: #ffffff;
  font-family: 'Courier New', Courier, monospace;
  padding: 0 20px 10px 20px;
  line-height: 1.3;
}

.gdp-chart {
  width: 100%;
  flex: 1;
  background-color: #000000;
  overflow: hidden;
  position: relative;
  cursor: crosshair;
}

.gdp-chart svg {
  width: 100%;
  height: 100%;
  background-color: #000000;
}

.gdp-chart svg text {
  fill: #ffffff;
  font-family: 'Courier New', Courier, monospace;
}

.gdp-chart svg line,
.gdp-chart svg path {
  stroke: #ffffff;
}

.chart-footer {
  display: flex;
  justify-content: space-between;
  padding: 5px 60px;
  font-size: 12px;
  color: #ffffff;
  font-family: 'Courier New', Courier, monospace;
}

.chart-current {
  text-align: left;
}

.chart-range {
  text-align: right;
}

.chart-tooltip {
  background-color: #000000;
  border: 1px solid #ffffff;
  padding: 8px 12px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  color: #ffffff;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.tooltip-date {
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.tooltip-value {
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
}

.terminal-footer {
  background-color: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
  flex-shrink: 0;
  font-family: 'Courier New', Courier, monospace;
}

.terminal-loading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 50px);
  background-color: #000000;
}

.loading-text {
  font-size: 20px;
  color: #ffffff;
  letter-spacing: 4px;
  margin-bottom: 20px;
  animation: blink 1s infinite;
}

.loading-bar {
  width: 300px;
  height: 20px;
  border: 2px solid #ffffff;
  position: relative;
  overflow: hidden;
}

.loading-progress {
  height: 100%;
  background-color: #ffffff;
  animation: loading 2s infinite;
}

@keyframes loading {
  0% {
    width: 0%;
  }
  50% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}

.terminal-error {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 50px);
  background-color: #000000;
  color: #ff0000;
  font-size: 20px;
  letter-spacing: 2px;
  animation: blink 1s infinite;
}

@media (max-width: 768px) {
  .terminal-header {
    flex-direction: column;
    gap: 5px;
    padding: 8px 10px;
    font-size: 10px;
  }

  .terminal-title {
    font-size: 10px;
  }

  .terminal-prompt,
  .terminal-status {
    font-size: 10px;
  }

  .loading-text {
    font-size: 14px;
  }

  .loading-bar {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .terminal-header {
    font-size: 8px;
    padding: 6px 8px;
  }

  .terminal-title {
    font-size: 8px;
  }

  .terminal-prompt,
  .terminal-status {
    font-size: 8px;
  }
}

@media (min-width: 769px) {
  .terminal-header {
    /* gap: 20px; */
  }

  .terminal-title {
    justify-content: left;
    display: flex;
  }
  .terminal-status {
    display:fixed;
    right: 0;
  }
}

@media (min-width: 1920px) {
  .terminal-header {
    font-size: 16px;
    padding: 15px 30px;
  }
}
