body {
  background-color: #111827;
  margin: 0;
  padding: 20px;
}

input,
output {
  font-size: 1.2em;
  margin-top: 10px;
}

.result {
  margin-top: 20px;
}

#chart-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid #374151;
  border-radius: 8px;
  overflow: hidden;
}

#chart {
  width: 100%;
  height: 500px;
}

#live-price {
  position: absolute;
  top: -20px;
  right: 10px;
  padding: 3px 7px;
  color: white;
  border-radius: 6px;
  font-weight: medium;
  font-size: 10px;
  transition: color 0.3s, top 0.3s;
  z-index: 10;
  border: 1px solid #4b5563;
}

.price-up {
  background-color: #10b981;
}

.price-down {
  background-color: #ef4444;
}

.color-price-up {
  color: #10b981;
}

.color-price-down {
  color: #ef4444;
}

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

.header h1 {
  margin: 0;
  font-size: 24px;
}

.status {
  display: flex;
  align-items: center;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #10b981;
  margin-right: 8px;
}

/* Thêm loading indicator */
.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 4px solid #10b981;
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}