/* Reset and base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f9fafb;
  color: #1e293b;
  line-height: 1.6;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.header {
  background: #75038b;
  padding: 1rem 0;
  color: white;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  background-color: #2563eb;
  color: white;
}

.login-link {
  background-color: #2563eb;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}

/* Exchange section */
.exchange-section {
  background: white;
  padding: 2rem;
  margin: 3rem auto;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(149 157 165 / 0.2);
  max-width: 480px;
}

.exchange-section h2 {
  margin-bottom: 1.5rem;
  color: #0f172a;
  font-weight: 700;
  font-size: 1.75rem;
  text-align: center;
}

.exchange-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.label {
  font-weight: 600;
  color: #334155;
}

/* Inputs and select styling */
input[type="number"],
select {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline-offset: 2px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Inter', sans-serif;
  appearance: none;
  background-color: white;
  cursor: pointer;
}

input[type="number"]:focus,
select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Remove default select arrow and add custom */
select {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%232563EB' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  padding-right: 2.5rem;
}

/* Button */
.btn-primary {
  background-color: #2563eb;
  color: white;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

/* Result text */
.exchange-result {
  margin-top: 1.25rem;
  font-weight: 700;
  color: #059669;
  text-align: center;
}

/* Footer */
.footer {
  background: #0f172a;
  color: #94a3b8;
  text-align: center;
  padding: 1rem 0;
  margin-top: 4rem;
  font-size: 0.9rem;
}

/* Login page */

.login-container {
  max-width: 400px;
  background: white;
  margin: 4rem auto;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(149 157 165 / 0.2);
}

.login-container h2 {
  margin-bottom: 1.5rem;
  color: #0f172a;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline-offset: 2px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.login-form button {
  margin-top: 1rem;
  background-color: #2563eb;
  color: white;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.login-form button:hover {
  background-color: #1d4ed8;
}

/* Wallet page */

.wallet-container {
  max-width: 600px;
  background: white;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(149 157 165 / 0.2);
}

.wallet-container h2 {
  margin-bottom: 1.5rem;
  color: #0f172a;
  text-align: center;
}

.wallet-balance {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
}

.wallet-balance:last-child {
  border-bottom: none;
}

.withdraw-section {
  margin-top: 2rem;
}

.withdraw-section label {
  font-weight: 600;
  color: #334155;
  display: block;
  margin-bottom: 0.5rem;
}

.withdraw-section select,
.withdraw-section input {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline-offset: 2px;
  width: 100%;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.withdraw-section select:focus,
.withdraw-section input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.withdraw-section button {
  background-color: #2563eb;
  color: white;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  width: 100%;
}

.withdraw-section button:hover {
  background-color: #1d4ed8;
}

/* Market page */

.market-container {
  max-width: 900px;
  background: white;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(149 157 165 / 0.2);
}

.market-container h2 {
  margin-bottom: 1rem;
  color: #0f172a;
  text-align: center;
}

.market-select {
  margin-bottom: 1rem;
  width: 200px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline-offset: 2px;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.market-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.chart-wrapper {
  margin-top: 1rem;
  height: 500px;
}

#currencySelector.small-currency {
  font-size: 0.65rem;
  padding: 2px 4px;
  height: 22px;
  line-height: 1;
  border-radius: 4px;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  margin-left: 8px;
  vertical-align: middle;
  width: auto;
}


