.light-theme {
  --bg-color: #ffffff;
  --text-color: #333333;
  --text-secondary-color: gray;
  --border-color: #cccccc;
  --hover-bg-color: #e6edf7;
  --link-color: #0066cc;
  --badge-bg: #adc9f5;
}


.dark-theme {
  --bg-color: rgb(29, 27, 28);
  --text-color: #cbc4c8;
  --border-color: #332e30;
  --hover-bg-color: #333333;
  --text-secondary-color: gray;
  --link-color: #4a90e2;
  --badge-bg: #193052;
}


/* main styles */

.connect-modal-overlay *{
  font-family: GT-America,system-ui,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
}

.connect-modal-overlay {
  font-family: GT-America,system-ui,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}


.hidden-scroll {
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hidden-scroll::-webkit-scrollbar {
  display: none;
}

.connect-modal-container {
  background: var(--bg-color);
  color: var(--text-color);
  width: 90%;
  max-width: 728px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.connect-modal-content {
  display: flex;
  max-height: 500px;
}


.wallet-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  overflow-y: auto;
  max-height: 400px;
  width: 100%;
}

.wallet-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-radius: 8px;
}

.wallet-item img {
  height: 30px;
  width: 30px;
  border-radius: 8px;
  
}

.wallet-item:hover {
  background: var(--hover-bg-color);
}

/* left section */
.connect-modal-left {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  width: 40%;
  border-right: 1px solid var(--border-color);
}

.connect-modal-title {
  margin: 0;
  font-size: 18px;
  padding: 0 8px;
  font-weight: 600;
  color: var(--text-color);
  padding-bottom: 30px;
}


.wallet-label {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.2;
}

.all-wallets-badge {
  background-color: var(--badge-bg);
  padding: 0px 6px;
  text-align: center;
  border-radius: 4px;
  font-weight: 600;
}

.installed-label {
  font-size: 12px;
  font-weight: 500;
  color:var(--text-secondary-color);
}

.connect-modal-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.terms-link {
  color: var(--link-color);
  text-decoration: none;
}

.terms-link:hover {
  text-decoration: underline;
}





/* right section */
.connect-modal-right {
  display: flex;
  flex-direction: column;
  width: 60%;
  padding: 24px;
}

.connect-modal-right-wallet-list {
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 335px;
}
.connect-modal-right-all-wallets {
  max-height: 400px;
  position: relative;
}

.connect-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}


/* right empty section */
.connect-modal-right-empty {
  display: flex;
  align-self: center;
  justify-self: center;
  flex-direction: column;
  gap: 24px;
}

.connect-modal-right-empty .wallet-item {
  justify-content: center;
}

.empty-wallet-title {
  display: flex;
  justify-content: center;
  color: var(--text-color);
  font-size: 16px;
  font-weight: 600;
}

.empty-wallet-subtitle {
  display: flex;
  justify-content: center;
  color: var(--text-secondary-color);
  font-size: 16px;
  font-weight: 600;
}

@keyframes animation-earth {
  0% {
    transform: translateY(4px);
  }

  100% {
    transform: translateY(-4px);
  }
}

.animation-earth {
  display: flex;
  justify-content: center;

  color: rgb(51, 133, 255);
  filter: drop-shadow(rgb(51, 133, 255) 0px 6px 10px);
  animation: 2s ease 0s infinite alternate none running animation-earth;
}

/* close section */
.close-section {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding-bottom: 24px;
}

.close-section-title {
  color: var(--text-color);
  font-size: 18px;
  font-weight: 600;
}

.connect-modal-close {
  font-size: 30px;
  line-height: 0.70;
}

.connect-modal-back {
  background-color: transparent;
  border: none;
  color: var(--text-color)
}

button {
  cursor: pointer;
}

.connect-modal-icon {
  fill: var(--text-color);
}

/* search input */
.css-1d4s0we {
  color: inherit;
  margin-bottom: 20px;
}
.css-9m5hja {
  color: rgb(131, 117, 125);
  position: absolute;
  left: 12px;
}
.css-7ijt4d:not([type="password"]) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.css-7ijt4d {
  font-size: 16px;
  font-family: inherit;
  display: block;
  padding: 14px;
  box-sizing: border-box;
  width: 100%;
  outline: none;
  border: none;
  border-radius: 8px;
  color: var(--text-color);
  appearance: none;
  background: transparent;
  box-shadow: rgb(38, 40, 48) 0px 0px 0px 1.5px;
}

.css-7ijt4d:focus {
  box-shadow: rgb(51, 133, 255) 0px 0px 0px 2px;
}

/* modal right connecting */
.logo-animated {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 100px 0 40px 0;
}

.logo-animated-container {
  position: relative;
}

.logo-animated svg {
  position: absolute;
  left: -5px;
  top: -5px;
  width: 90px;
  height: 90px;
  animation: 400ms ease 0s 1 normal none running animation-plwpox;
}
@keyframes animation-1fdn7aw {
  0% {
    stroke-dashoffset: 0px;
}
}
.logo-animated rect {
  animation: 1.2s linear 0s infinite normal none running animation-1fdn7aw;
  stroke: rgb(51, 133, 255);
}

.connect-modal-right-connecting-label {
  display: flex;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 20px;
}

.connect-modal-right-connecting-sublabel {
  display: flex;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary-color)
}
