* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #080d18;
  color: #ffffff;
}

header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #101827;
  border-bottom: 1px solid #263248;
}

h1 {
  margin: 0;
}

header p {
  margin: 5px 0 0;
  color: #8e9bb0;
}

.status {
  padding: 8px 12px;
  border-radius: 20px;
  background: #182b24;
  color: #49d391;
  font-size: 13px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #49d391;
  border-radius: 50%;
  margin-right: 5px;
}

main {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

.card {
  background: #111a2a;
  border: 1px solid #263248;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
}

h2 {
  margin-top: 0;
}

.market-grid,
.order-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

label {
  display: block;
  color: #8e9bb0;
  margin-bottom: 7px;
}

input,
select {
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  border: 1px solid #33415c;
  background: #0b1220;
  color: white;
  font-size: 15px;
}

.price {
  padding: 12px;
  font-size: 20px;
  font-weight: bold;
}

button {
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: 8px;
  background: #315bea;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  opacity: 0.85;
}

.buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}

.buy {
  background: #168c5b;
}

.sell {
  background: #c43b4d;
}

.stop {
  background: #c43b4d;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.stat span {
  color: #8e9bb0;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.table-wrapper {
  overflow-x: auto;
}

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

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #263248;
}

th {
  color: #8e9bb0;
}

.buy {
  color: white;
}

.sell {
  color: white;
}

footer {
  text-align: center;
  padding: 25px;
  color: #68758a;
}

@media (max-width: 700px) {

  .market-grid,
  .order-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  header {
    align-items: flex-start;
    gap: 10px;
  }

  .buttons {
    grid-template-columns: 1fr 1fr;
  }
}