* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1b1d28;
    color: #ccced2;
    font-family: __inter_d4e0c8, __inter_Fallback_d4e0c8, Helvetica, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 0px;
}

/* Navbar styles */
.navbar {   
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0px;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0px;
    margin-right: 20px;
}

.logo img {
    max-height: 25px;
    width: auto;
}

.beta-tag {
    max-height: 15px;
    margin-right: 45px;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-link {
    background: transparent;
    border: none;
    color: #ccced2;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 5px 0;
}

.nav-link:hover {
    color: #87efac;
}

.connect-small {
    background: transparent;
    border: none;
    color: #ccced2;
    font-family: inherit;
    cursor: pointer;
    font-size: 0.95rem;
    padding-right: 10px;
}

.connect-small:hover {
    color: #87efac;
}

/* Main content styles */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Swap container styles */
.swap-container {
    width: 460px;
    height: 460px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.settings-button {
    position: absolute;
    top: 0;
    right: 0;
    width: 25px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    margin-right: 20px;
}

.swap-boxes {
    width: 430px;
    height: 250px;
    position: relative;
    margin-top: 35px;
    margin-bottom: 20px;
}

.swap-box {
    width: 430px;
    height: 124px;
    border: 1px solid #374151;
    border-radius: 15px;
}

.focused-box {
    background: transparent;
}

.unfocused-box {
    position: absolute;
    bottom: 0;
    background-color: #111827;
    border: none;
}

.swap-arrow-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background-color: #1f2937;
    border: none;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
}

.swap-arrow-button i {
    color: #878e9a;
    font-size: 16px;
}

.connect-wallet {
    width: 430px;
    height: 56px;
    background-color: #87efac;
    color: #000;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.connect-wallet:hover {
    opacity: 0.9;
}

/* Footer styles */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    color: #949aa6;
    font-size: 0.9rem;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-link {
    background: transparent;
    border: none;
    color: #949aa6;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}

.footer-link:hover {
    color: #87efac;
}

.separator {
    color: #949aa6;
}

/* Update the nav-link for [swap] to show it's selected */
.nav-link.active {
    color: #87efac;
}

/* Swap box content styles */
.swap-box-content {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    height: 100%;
}

.swap-box-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.swap-label {
    color: #878e9a;
    font-size: 1rem;
    margin-bottom: 5px;
}

.amount-input {
    background: transparent;
    border: none;
    color: #878e9a;
    font-size: 1.9rem;
    font-weight: 400;
    width: 100%;
    outline: none;
    padding: 0;
    font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif;
    font-feature-settings: 'tnum' on, 'lnum' on, 'case' on;
    letter-spacing: -0.1em;
}

.amount-input:focus {
    color: #ffffff;
}

.usd-value {
    color: #878e9a;
    font-size: 0.9rem;
}

.swap-box-right {
    display: flex;
    align-items: center;
}

.token-select-button {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid #374151;
    border-radius: 20px;
    padding: 8px 12px;
    cursor: pointer;
    color: #ccced2;
}

.token-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
}

.token-ticker {
    font-size: 1rem;
    font-weight: 500;
    margin-right: 8px;
}

.token-select-button i {
    font-size: 0.8rem;
    color: #878e9a;
}

/* Token selection popup styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.token-popup-container {
    width: 448px;
    height: 624px;
    background-color: #1c2530;
    border-radius: 16px;
    border: 1px solid #374151;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.token-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.token-popup-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.token-popup-close {
    background: transparent;
    border: none;
    color: #878e9a;
    cursor: pointer;
    font-size: 1rem;
}

.token-popup-close:hover {
    color: #ffffff;
}

.token-popup-search {
    display: flex;
    padding: 0 20px 15px 20px;
    gap: 10px;
}

.search-bar-container {
    position: relative;
    width: 330px;
    height: 42px;
    background-color: #111827;
    border-radius: 8px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    transition: border-color 0.2s ease;
}

.search-icon {
    color: #878e9a;
    margin-left: 12px;
    font-size: 0.9rem;
}

.token-search-input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.9rem;
    width: 100%;
    height: 100%;
    padding: 0 12px;
    outline: none;
}

.token-search-input::placeholder {
    color: #878e9a;
}

.token-search-button {
    width: 78px;
    height: 40px;
    background-color: #87efac;
    color: #17232e;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.token-search-button:hover {
    opacity: 0.9;
}

.token-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 0 15px;
}

.token-item {
    width: 414px;
    height: 60px;
    background-color: #101827;
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.token-item:hover {
    background-color: #1a2536;
}

.token-item-left {
    display: flex;
    align-items: center;
}

.token-item-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
}

.token-item-info {
    display: flex;
    flex-direction: column;
}

.token-item-ticker {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
}

.token-item-name {
    color: #878e9a;
    font-size: 0.85rem;
}

.token-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.token-explorer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.token-explorer-link:hover {
    color: #87efac;
}

.token-short-address {
    color: #878e9a;
    font-size: 0.8rem;
}

/* Add focus style for the search bar */
.token-search-input:focus + .search-bar-container,
.search-bar-container:focus-within {
    border-color: #87efac;
}

/* Loading and error message styles */
.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    color: #878e9a;
    font-size: 0.9rem;
}

.error-message {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    color: #ff6b6b;
    font-size: 0.9rem;
}

.no-results {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    color: #878e9a;
    font-size: 0.9rem;
}

/* Fix for the search bar focus state */
.search-bar-container:focus-within {
    border-color: #87efac;
}

/* Token placeholder styles */
.select-placeholder {
    padding: 8px 12px;
}

.select-placeholder .token-ticker {
    color: #ffffff;
    white-space: nowrap;
}

/* Wallet connection popup styles */
.wallet-popup-container {
    width: 520px;
    height: 370px;
    background-color: #1b1d28;
    border: 1px solid #ffffff;
    border-radius: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.popup-header {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.close-button {
    background: transparent;
    border: none;
    color: #ccced2;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
}

.close-button:hover {
    color: #87efac;
}

.wallet-logo-section {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 30px;
}

.wallet-logo {
    max-height: 60px;
    width: auto;
}

.wallet-content-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 40px;
}

.wallet-instruction {
    color: #ffffff;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 20px;
}

.mnemonic-input {
    width: 100%;
    background-color: #111827;
    border: 1px solid #374151;
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    padding: 12px;
    margin-bottom: 20px;
    resize: none;
}

.mnemonic-input:focus {
    border-color: #87efac;
    outline: none;
}

.wallet-connect-button {
    width: 100%;
    height: 56px;
    background-color: #87efac;
    color: #000;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wallet-connect-button:hover {
    opacity: 0.9;
}

/* Connected state styles */
.connect-small.connected {
    color: #87efac;
}

.swap-button {
    background-color: #87efac;
}

/* Custom Alert styles */
.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #1c2530;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 15px;
    z-index: 2000;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slide-in 0.3s ease-out;
}

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

.alert-icon {
    color: #ff6b6b;
    font-size: 1.5rem;
    margin-right: 12px;
}

.alert-message {
    color: #ffffff;
    font-size: 0.95rem;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
} 