/* Стили для блока торговли */
.block3 {
  flex: 2;
  background-color: #000;
  display: flex;
  flex-direction: column;
  padding: 0;
  font-size: 1rem;
  border-radius: 2px;
  overflow: hidden;
  height: 600px;
}

.block3-header {
  background-color: #111;
  padding: 12px 15px;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: left;
  border-bottom: 1px solid #333;
}

.block3-content {
  padding: 15px;
  overflow-y: visible;
  height: auto;
}

/* Кнопки покупки/продажи */
.trade-buttons {
  display: flex;
  gap: 6px;
  width: 100%;
}

.trade-button {
  flex: 1;
  padding: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: white;
  transition: background-color 0.2s;
}

.buy-button {
  background-color: #02b97d;
}

.buy-button:hover {
  background-color: #01a16c;
}

.sell-button {
  background-color: #f13c54;
}

.sell-button:hover {
  background-color: #d82e47;
}

/* Типы ордеров */
.order-type-buttons {
  display: flex;
  width: 100%;
  margin-top: 15px;
  margin-bottom: 0;
  border-bottom: 1px solid #333;
}

.order-type-button {
  padding: 10px 15px;
  font-size: 0.9rem;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.order-type-button.active {
  color: white;
  border-bottom-color: #f90;
}

.order-type-button:hover:not(.active) {
  color: #ddd;
}

/* Баланс и торговая форма */
.available-balance {
  width: 100%;
  text-align: left;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #333;
  font-size: 0.9rem;
  color: #999;
}

.trading-form {
  margin-top: 20px;
}

.form-group {
  margin-bottom: 10px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 4px;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  background-color: #131313;
  border: 1px solid #333;
  color: white;
  padding: 8px;
  font-size: 1rem;
  border-radius: 4px;
}

.input-suffix {
  position: absolute;
  right: 12px;
  color: white;
  font-weight: bold;
}

/* Слайдер */
.slider-container {
  margin: 10px 0;
}

.slider {
  width: 100%;
  height: 2px;
  background-color: #333;
  position: relative;
  margin: 10px 0;
}

.slider-dots {
  display: flex;
  justify-content: space-between;
  position: relative;
  top: -5px;
}

.slider-dot {
  width: 6px;
  height: 6px;
  background-color: #333;
  border-radius: 50%;
}

.slider-dot:first-child {
  width: 12px;
  height: 12px;
  background-color: white;
  border: 2px solid #333;
  margin-top: -3px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #999;
  margin-top: 5px;
}

/* Дополнительные элементы формы */
.dropdown-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #131313;
  border: 1px solid #333;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 5px;
  width: fit-content;
  font-size: 0.9rem;
}

.dropdown-selector:after {
  content: "▼";
  font-size: 0.7rem;
  margin-left: 5px;
}

.action-button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  color: white;
  background-color: #02b97d;
  cursor: pointer;
  margin: 10px 0;
}

.trade-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.max-amount {
  color: #999;
  font-size: 0.9rem;
}

.fees-button {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  background-color: #1a1a1a;
  border-radius: 20px;
  color: #999;
  font-size: 0.9rem;
}

.fees-button .icon {
  margin-right: 5px;
  font-size: 1rem;
  color: #999;
} 