@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

.wallet-adapter-button {
    background-color: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-family: 'DM Sans', 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    height: 48px;
    line-height: 48px;
    padding: 0 24px;
    border-radius: 4px;
}

.wallet-adapter-button-trigger {
    background-color: #1253fa;
}

.wallet-adapter-button:not([disabled]):focus-visible {
    outline-color: white;
}

.wallet-adapter-button:not([disabled]):hover {
    background-color: #0c359c;
}

.wallet-adapter-button[disabled] {
    background: #404144;
    color: #999;
    cursor: not-allowed;
}

.wallet-adapter-button-end-icon,
.wallet-adapter-button-start-icon,
.wallet-adapter-button-end-icon img,
.wallet-adapter-button-start-icon img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.wallet-adapter-button-end-icon {
    margin-left: 12px;
}

.wallet-adapter-button-start-icon {
    margin-right: 12px;
}

.wallet-adapter-collapse {
    width: 100%;
}

.wallet-adapter-dropdown {
    position: relative;
    display: inline-block;
}

.wallet-adapter-dropdown-list {
    position: absolute;
    z-index: 99;
    display: grid;
    grid-template-rows: 1fr;
    grid-row-gap: 10px;
    padding: 10px;
    top: 100%;
    right: 0;
    margin: 0;
    list-style: none;
    background: #2c2d30;
    border-radius: 10px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
    font-family: 'DM Sans', 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.wallet-adapter-dropdown-list-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.wallet-adapter-dropdown-list-item {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border: none;
    outline: none;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    padding: 0 20px;
    width: 100%;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    height: 37px;
    color: #fff;
}

.wallet-adapter-dropdown-list-item:not([disabled]):hover {
    background-color: #0c359c;
}

.wallet-adapter-modal-collapse-button svg {
    align-self: center;
    fill: #999;
}

.wallet-adapter-modal-collapse-button.wallet-adapter-modal-collapse-button-active svg {
    transform: rotate(180deg);
    transition: transform ease-in 150ms;
}

.wallet-adapter-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity linear 150ms;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    overflow-y: auto;
}

.wallet-adapter-modal.wallet-adapter-modal-fade-in {
    opacity: 1;
}

.wallet-adapter-modal-button-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 12px;
    cursor: pointer;
    background: #1a1f2e;
    border: none;
    border-radius: 50%;
}

.wallet-adapter-modal-button-close:focus-visible {
    outline-color: white;
}

.wallet-adapter-modal-button-close svg {
    fill: #777;
    transition: fill 200ms ease 0s;
}

.wallet-adapter-modal-button-close:hover svg {
    fill: #fff;
}

.wallet-adapter-modal-overlay {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.wallet-adapter-modal-container {
    display: flex;
    margin: 3rem;
    min-height: calc(100vh - 6rem); /* 100vh - 2 * margin */
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .wallet-adapter-modal-container {
        margin: 1rem;
        min-height: calc(100vh - 2rem); /* 100vh - 2 * margin */
    }
}

.wallet-adapter-modal-wrapper {
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    z-index: 1050;
    max-width: 400px;
    border-radius: 10px;
    background: #10141f;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.6);
    font-family: 'DM Sans', 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    flex: 1;
}

.wallet-adapter-modal-wrapper .wallet-adapter-button {
    width: 100%;
}

.wallet-adapter-modal-title {
    font-weight: 500;
    font-size: 24px;
    line-height: 36px;
    margin: 0;
    padding: 64px 48px 48px 48px;
    text-align: center;
    color: #fff;
}

@media (max-width: 374px) {
    .wallet-adapter-modal-title {
        font-size: 18px;
    }
}

.wallet-adapter-modal-list {
    margin: 0 0 12px 0;
    padding: 0;
    width: 100%;
    list-style: none;
}

.wallet-adapter-modal-list .wallet-adapter-button {
    font-weight: 400;
    border-radius: 0;
    font-size: 18px;
}

.wallet-adapter-modal-list .wallet-adapter-button-end-icon,
.wallet-adapter-modal-list .wallet-adapter-button-start-icon,
.wallet-adapter-modal-list .wallet-adapter-button-end-icon img,
.wallet-adapter-modal-list .wallet-adapter-button-start-icon img {
    width: 28px;
    height: 28px;
}

.wallet-adapter-modal-list .wallet-adapter-button span {
    margin-left: auto;
    font-size: 14px;
    opacity: .6;
}

.wallet-adapter-modal-list-more {
    cursor: pointer;
    border: none;
    padding: 12px 24px 24px 12px;
    align-self: flex-end;
    display: flex;
    align-items: center;
    background-color: transparent;
    color: #fff;
}

.wallet-adapter-modal-list-more svg {
    transition: all 0.1s ease;
    fill: rgba(255, 255, 255, 1);
    margin-left: 0.5rem;
}

.wallet-adapter-modal-list-more-icon-rotate {
    transform: rotate(180deg);
}

.wallet-adapter-modal-middle {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px 24px 24px;
    box-sizing: border-box;
}

.wallet-adapter-modal-middle-button {
    display: block;
    cursor: pointer;
    margin-top: 48px;
    width: 100%;
    background-color: #1253fa;
    padding: 12px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    color: #fff;
}

/* Base Styles */
.page_main__nw1Wk {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
    Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}

.page_description__lvaOp {
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
}

.page_title__po7na {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #333;
}

.page_subtitle__YBgxm {
  font-size: 1.125rem;
  color: #666;
}

.page_center__NcdcW {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 2rem;
}

.page_logo__ikIZE {
  position: relative;
}

/* Wallet Button Styles */
.page_walletButtonContainer__mIT3O {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.page_connectWalletPrompt__X7m_u {
  width: 100%;
  text-align: center;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

/* Card Styles */
.page_card__Cf__u {
  width: 100%;
  padding: 1.5rem;
  border-radius: 8px;
  background-color: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.page_accountInfo__N1TPq {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.page_accountField__oZzok {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.page_ellipsis__5G9Sx {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
  background-color: #eee;
  padding: 0.3rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

.page_warning__wzo3a {
  margin-top: 1rem;
  padding: 0.5rem;
  background-color: #fff3cd;
  border-radius: 4px;
  color: #856404;
  font-size: 0.875rem;
}

/* Button Styles */
.page_button__52WaL {
  background-color: #0070f3;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
  margin-top: 0.5rem;
}

.page_button__52WaL:hover {
  background-color: #0051b3;
}

.page_button__52WaL:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Main Content */
.page_mainContent__TeHAh {
  width: 100%;
  margin-bottom: 2rem;
}

/* Tabs */
.page_tabs__h2eeT {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 1.5rem;
}

.page_tabButton__uB6Ae {
  padding: 0.8rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  color: #666;
}

.page_activeTab__imdC0 {
  color: #0070f3;
  font-weight: 600;
}

.page_activeTab__imdC0::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #0070f3;
}

.page_tabContent__SValm {
  padding: 1rem 0;
}

/* Form Styles */
.page_formGroup__SWXkg {
  margin-bottom: 1.2rem;
}

.page_formGroup__SWXkg label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.page_select__FkvQ2, .page_input__lx_gt {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  background-color: white;
}

.page_select__FkvQ2:disabled, .page_input__lx_gt:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

/* Position Card Styles */
.page_positionsList___sBjl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.page_positionCard__Aimqo {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.2rem;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.page_positionHeader__5bnS7 {
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid #eee;
  font-size: 0.875rem;
}

.page_positionDetails__mIK07 {
  margin-bottom: 1rem;
}

.page_positionDetails__mIK07 div {
  margin-bottom: 0.5rem;
}

.page_positionActions__gUhg8 {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.page_actionButton__uvBDn {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.page_actionButton__uvBDn:hover:not(:disabled) {
  background-color: #f5f5f5;
  border-color: #ccc;
}

.page_actionButton__uvBDn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.page_refreshButton__YZR_p {
  padding: 0.5rem 1rem;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.page_refreshButton__YZR_p:hover:not(:disabled) {
  background-color: #e9ecef;
}

.page_refreshButton__YZR_p:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Logs Section */
.page_logsSection__0svyC {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page_logs__0VcWn {
  max-height: 200px;
  overflow-y: auto;
  font-family: monospace;
  background-color: #282c34;
  color: #abb2bf;
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

.page_logEntry__3p4FM {
  margin-bottom: 0.5rem;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Wallet components */
.page_walletButtonWrapper__1Ifgp .wallet-button {
  background-color: #0070f3 !important;
  color: white !important;
  border: none !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  font-size: 1rem !important;
  transition: background-color 0.2s !important;
}

.page_walletButtonWrapper__1Ifgp .wallet-button:hover {
  background-color: #0051b3 !important;
}

.page_walletButtonWrapper__1Ifgp .wallet-adapter-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page_walletButtonWrapper__1Ifgp .wallet-adapter-modal-container {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page_walletButtonWrapper__1Ifgp .wallet-adapter-button {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  width: 100%;
}

.page_walletButtonWrapper__1Ifgp .wallet-adapter-dropdown {
  position: relative;
  display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page_positionsList___sBjl {
    grid-template-columns: 1fr;
  }
  
  .page_main__nw1Wk {
    padding: 1rem;
  }
  
  .page_title__po7na {
    font-size: 1.5rem;
  }
  
  .page_walletButtonContainer__mIT3O {
    position: static;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
  }
}

@media (prefers-color-scheme: dark) {
  .page_logo__ikIZE {
    filter: invert(1) drop-shadow(0 0 0.3rem #ffffff70);
  }
}

@keyframes page_rotate__xIioM {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

/* ANS (Aleo Name Service) Styles */
.page_addressDisplay__jX9E6 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page_avatarContainer___r0gX {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page_avatar__TRVZZ {
  border-radius: 50%;
  object-fit: cover;
}

.page_addressText__OnPVS {
  font-family: var(--font-mono);
  word-break: break-all;
}

.page_ansName__1IRg_ {
  font-weight: 600;
  color: #0070f3;
}

.page_addressValue__7R6xO {
  font-family: monospace;
  color: #666;
}

.page_loading__4WMny {
  color: #999;
  font-size: 0.875rem;
}

/* ANS Lookup Styles */
.page_ansLookupContainer__JN3bN {
  width: 100%;
  padding: 1.5rem;
  border-radius: 8px;
  background-color: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.page_lookupControls___BkLm {
  margin-top: 1rem;
}

.page_lookupTypeToggle__Qj8m_ {
  display: flex;
  margin-bottom: 1rem;
  border-radius: 4px;
  overflow: hidden;
  width: fit-content;
}

.page_lookupTypeButton__QPPXM {
  flex: 1;
  padding: 0.5rem 1rem;
  background: #f0f0f0;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: all 0.2s;
}

.page_lookupTypeButton__QPPXM.page_activeButton__CJDz9 {
  background: #0070f3;
  color: white;
  border-color: #0070f3;
}

.page_lookupInputGroup__mOH4e {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.page_lookupError__2_mvj {
  color: #d32f2f;
  margin: 0.5rem 0;
  font-size: 0.875rem;
}

.page_lookupResult___73ox {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #e3f2fd;
  border-radius: 4px;
}

.page_resultValue__UT9pW {
  font-family: monospace;
  word-break: break-all;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: white;
  border-radius: 4px;
  border: 1px solid #ddd;
}

