.main-container {
  display: flex;
  justify-content: flex-end;
  height: 100vh;
  width: 100vw;
  background-color: #16171a;
}

.exchange-container {
  width: 320px;
  padding: 20px;
  background-color: #16171a;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: white;
  font-family: Arial, sans-serif;
}

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

.toggle-buttons button {
  background-color: transparent !important;
  color: #87909f !important;
  border: none;
  font-size: 16px;
  position: relative;
}

.toggle-buttons button:hover {
  color: #fff !important;
}

.toggle-buttons .active-tab {
  color: #fff !important;
}

.toggle-buttons .active-tab::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #4281ff !important;
}

.leverage-section {
  display: flex;
  gap: 10px;
}

.leverage-button {
  background-color: transparent !important;
  border: 1px solid white !important;
  color: white !important;
}

.market-type {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  border-bottom: 1px solid #ccc;
}

.market-type button {
  background-color: transparent !important;
  color: #87909f !important;
  border: none;
  position: relative;
}

.market-type button:hover {
  color: #fff !important;
}

.market-type .active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #4281ff !important;
}

.market-type .active {
  color: #fff !important;
}

.available-balance {
  font-size: 14px;
  margin-bottom: 10px;
}

.buy-sell-info,
.positions-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mtl-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.separator-line {
  width: auto;
  height: 1px;
  background-color: #333;
  margin: 10px 0;
  align-self: flex-start;
}

.tp-sl-checkboxes {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.tp-sl-checkboxes label {
  display: flex;
  align-items: center;
  color: #87909f;
}

.tp-sl-checkboxes input[type="checkbox"] {
  margin-right: 5px;
}

.tp-sl-checkboxes input[type="checkbox"]:hover {
  cursor: pointer;
}

.action-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.long-button {
  background-color: #4CAF50;
  border: none;
  color: white;
  width: 48%;
}

.short-button {
  background-color: #f44336;
  border: none;
  color: white;
  width: 48%;
}

.margin-info,
.fee-info {
  margin-top: 10px;
  font-size: 12px;
}

.fee-info div:nth-child(2) {
  color: #74b9ff;
  cursor: pointer;
}

.amount-input {
  margin-bottom: 10px;
}

.amount-input label {
  font-size: 14px;
  color: #87909f;
}

.amount-input input {
  width: 100%;
  padding: 10px;
  background-color: #2d2f36;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  margin-top: 5px;
}

.slider-section {
  margin-top: 10px;
  position: relative;
}

.slider-bar {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  background-color: #333;
  outline: none;
  border-radius: 5px;
  overflow: hidden;
}

.slider-bar::-webkit-slider-runnable-track {
  background-color: #333;
}

.slider-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  background-color: #4281ff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 10;
}

.slider-bar::before,
.slider-bar::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: #555;
  border-radius: 50%;
}

.slider-bar::before {
  left: 0;
}

.slider-bar::after {
  right: 0;
}

.slider-bar::before,
.slider-bar::after,
.slider-bar::nth-of-type(2),
.slider-bar::nth-of-type(3),
.slider-bar::nth-of-type(4) {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: #555;
  border-radius: 50%;
}

.slider-bar::nth-of-type(2) {
  left: 25%;
}

.slider-bar::nth-of-type(3) {
  left: 50%;
}

.slider-bar::nth-of-type(4) {
  left: 75%;
}
