/* Retro-styled Trade Modal for Drug Wars */

.trade-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.trade-modal {
  background-color: #1a1a2e;
  border: 3px solid #ffc107;
  border-radius: 8px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.3), 0 0 40px rgba(0, 0, 0, 0.4);
  color: #f8f9fa;
  font-family: 'Press Start 2P', cursive;
  position: relative;
  animation: modal-appear 0.3s ease-out;
}

@keyframes modal-appear {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.trade-modal-header {
  background-color: #16213e;
  padding: 15px;
  border-bottom: 2px solid #ffc107;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trade-modal-title {
  color: #ffc107;
  font-size: 1.2rem;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.trade-modal-close {
  background: none;
  border: none;
  color: #f8f9fa;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
}

.trade-modal-close:hover {
  color: #ffc107;
}

.trade-modal-description {
  color: #8d99ae;
  font-size: 0.7rem;
  margin-top: 5px;
}

.trade-modal-body {
  padding: 20px;
}

.trade-modal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trade-modal-row:last-child {
  border-bottom: none;
}

.trade-modal-label {
  font-size: 0.8rem;
  color: #8d99ae;
}

.trade-modal-value {
  font-size: 0.9rem;
  color: #fff;
  text-align: right;
}

.trade-modal-slider-container {
  width: 100%;
  padding: 5px 0;
}

.trade-modal-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  background: #16213e;
  border: 2px solid rgba(255, 193, 7, 0.5);
  border-radius: 5px;
  cursor: pointer;
}

.trade-modal-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #ffc107;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

.trade-modal-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #ffc107;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

.trade-quantity {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 5px 0;
  font-size: 0.8rem;
}

.trade-modal-info {
  background-color: rgba(22, 33, 62, 0.5);
  border-left: 3px solid #4361ee;
  padding: 12px;
  margin-top: 15px;
  font-size: 0.7rem;
  line-height: 1.4;
  color: #8d99ae;
}

.trade-modal-info-icon {
  color: #4361ee;
  margin-right: 5px;
}

.trade-modal-footer {
  padding: 15px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 2px solid rgba(255, 193, 7, 0.2);
  background-color: rgba(22, 33, 62, 0.3);
}

.trade-modal-btn {
  padding: 8px 15px;
  border-radius: 5px;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid;
}

.trade-modal-btn-cancel {
  background-color: #16213e;
  color: #8d99ae;
  border-color: #8d99ae;
}

.trade-modal-btn-cancel:hover {
  background-color: #1f2b49;
}

.trade-modal-btn-action {
  background-color: #ffc107;
  color: #16213e;
  border-color: #ffc107;
  display: flex;
  align-items: center;
  gap: 5px;
}

.trade-modal-btn-action:hover {
  background-color: #ffce3a;
}

.btn-action-buy {
  background-color: #4cc9f0;
  border-color: #4cc9f0;
}

.btn-action-buy:hover {
  background-color: #73d5f3;
}

.btn-action-sell {
  background-color: #f72585;
  border-color: #f72585;
}

.btn-action-sell:hover {
  background-color: #f84d9a;
}

.trade-modal-total {
  background-color: rgba(22, 33, 62, 0.7);
  padding: 15px;
  border-radius: 5px;
  margin-top: 15px;
}

.trade-modal-cash-info {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.7rem;
  color: #8d99ae;
}

@media (max-width: 576px) {
  .trade-modal {
    width: 95%;
  }
  
  .trade-modal-title {
    font-size: 1rem;
  }
  
  .trade-modal-body {
    padding: 15px;
  }
}