:root {
  --black: #000;
  --white: #ffffff;
  --lightgrey: #f1f1f1;
  --darkblue: #0d102c;
  --primarycolor: #3d51f2;
  --secondarycolor: #5670ef;
  --lightDark: #080A25;
  --darkText: #8388B4;
}

.cryptoMarket table {
  width: 90%;
}

.crypto-market {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.header h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--white);
  text-align: center;
}

.search-box {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.search-box input {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  background-color: var(--darkblue);
  color: var(--white);
  border: 1px solid var(--secondarycolor);
  border-radius: 5px;
  font-size: 1rem;
}

.table-container {
  overflow-x: auto;
  max-height: 70vh;
  border: 1px solid var(--darkText);
  border-radius: 10px;
  background-color: var(--darkblue);
  scrollbar-color: var(--secondarycolor) transparent;
  scrollbar-width: thin;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
  font-size: 0.95rem;
}

thead {
  background-color: var(--primarycolor);
  position: sticky;
  top: 0;
  z-index: 10;
}

thead th {
  padding: 14px;
  text-align: left;
  color: var(--white);
}

tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--lightgrey);
}

tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.positive {
  color: #16c784;
}

.negative {
  color: #f44336;
}

.crypto-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 50%;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .cryptoMarket table {
    width: 90%;
  }

  .table-container {
    border: none;
    border-radius: 0;
    max-height: 60vh;
  }

  table {
    font-size: 0.85rem;
  }

  thead th,
  tbody td {
    min-width: 120px;
    padding: 10px;
  }

  .search-box input {
    max-width: 100%;
  }
}