@import url('colors.css');

.swap-window {
  background-color: var(--window-bg);
  border-radius: 12px;
  padding: 20px;
  max-width: var(--max-width);
	width: 95%;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--input-border)
}

.swap-window .custom-select {
	background-color: var(--window-bg);
}

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

.swap-window .modal-header h3 {
  color: var(--text-color2);
  font-size: 1.2rem;
  margin: 0;
}

.swap-window .settings-icon {
  color: var(--text-color2);
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s ease;
}

.swap-window .settings-icon:hover {
  color: var(--text-color-balance);
}

.swap-window .button-container {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.swap-window .custom-btn {
  width: 100%;
  padding: 12px 24px;
}


.swap-window .swap-info {
  margin-top: 16px;
  padding: 12px;
  background-color: var(--input-bg);
  border-radius: 8px;
  font-size: 14px;
}

.swap-window .info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.swap-window .info-row:last-child {
  margin-bottom: 0;
}

.swap-window .info-label {
  color: var(--text-color-balance);
}

.swap-window .info-value {
  color: var(--text-color2);
  font-weight: 500;
}





.swap-window .rate-timer-container {
	display: flex;
	align-items: center;
	gap: 8px;
}

.swap-window .rate-timer {
	font-size: 12px;
	color: var(--text-color-balance);
	background-color: var(--input-bg);
	padding: 4px 8px;
	border-radius: 12px;
}

.swap-window .swap-route {
  margin: 20px auto 0;
  padding: 12px 16px;
  background-color: var(--input-bg);
  border-radius: 16px;
  max-width: fit-content;

  opacity: 1;
  transform: scale(1) translateY(0);
  max-height: 200px;
  transition: 
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.swap-window .swap-route.hidden {
  opacity: 0;
  transform: scale(0.95) translateY(-10px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  
  transition: 
    opacity 0.2s cubic-bezier(0.4, 0, 1, 1),
    transform 0.2s cubic-bezier(0.4, 0, 1, 1),
    max-height 0.3s cubic-bezier(0.4, 0, 1, 1),
    padding 0.2s cubic-bezier(0.4, 0, 1, 1),
    margin 0.2s cubic-bezier(0.4, 0, 1, 1);
}

@keyframes bounceIn {
  0% { transform: scale(0.95) translateY(10px); }
  50% { transform: scale(1.03) translateY(-2px); }
  100% { transform: scale(1) translateY(0); }
}

.swap-window .swap-route.animate-in {
  animation: bounceIn 0.5s cubic-bezier(0.2, 0.8, 0.4, 1.2) forwards;
}

.swap-window .swap-route-path {
	display: flex;
	align-items: center;
	gap: 8px;
}

.swap-window .swap-route-token {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.swap-window .swap-route-token-icon {
	width: 24px;
	height: 24px;
	border-radius: 8px;
  background-color: var(--window-bg);
  object-fit: contain;
}

.swap-window .swap-route-token-name {
	font-size: 12px;
	color: var(--text-color2);
}

.swap-window .swap-route-arrow {
	color: var(--text-color-balance);
	margin: 0 4px;
	align-self: center;
}
