/* Swap Container */
.swap-container {
    max-width: 480px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #1E1E1E;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Token Selection */
.token-selector {
    position: relative;
    margin-bottom: 1rem;
}

.token-select {
    width: 100%;
    padding: 0.75rem;
    background: #2A2A2A;
    border: 1px solid #3A3A3A;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.token-select:focus {
    outline: none;
    border-color: #4A90E2;
}

/* Token Input */
.token-input-container {
    position: relative;
    margin-bottom: 1rem;
}

.token-input {
    width: 100%;
    padding: 1rem;
    background: #2A2A2A;
    border: 1px solid #3A3A3A;
    border-radius: 8px;
    color: #fff;
    font-size: 1.25rem;
    text-align: right;
}

.token-input:focus {
    outline: none;
    border-color: #4A90E2;
}

.token-input::placeholder {
    color: #666;
}

.token-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    color: #888;
    font-size: 0.9rem;
}

.token-balance {
    cursor: pointer;
}

.token-balance:hover {
    color: #4A90E2;
}

/* Swap Button */
.swap-button {
    width: 100%;
    padding: 1rem;
    background: #4A90E2;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.swap-button:hover {
    background: #357ABD;
}

.swap-button:disabled {
    background: #666;
    cursor: not-allowed;
}

/* Swap Info */
.swap-info {
    margin-top: 1rem;
    padding: 1rem;
    background: #2A2A2A;
    border-radius: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #888;
    font-size: 0.9rem;
}

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

/* Token Logo */
.token-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-content {
    background: #1E1E1E;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #fff;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #2A2A2A;
    border-top: 4px solid #4A90E2;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Messages */
.error-toast,
.success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    animation: slideIn 0.3s ease-out;
}

.error-content,
.success-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
}

.error-content {
    background: #DC3545;
}

.success-content {
    background: #28A745;
}

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

/* Responsive Design */
@media (max-width: 480px) {
    .swap-container {
        margin: 1rem;
        padding: 1rem;
    }

    .token-input {
        font-size: 1.1rem;
        padding: 0.75rem;
    }

    .swap-button {
        padding: 0.75rem;
        font-size: 1rem;
    }
}

/* Custom Token Modal */
.custom-token-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.custom-token-content {
    background: #1E1E1E;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    padding: 20px;
}

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

.custom-token-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.2rem;
}

.custom-token-input {
    width: 100%;
    padding: 12px;
    background: #2A2A2A;
    border: 1px solid #3A3A3A;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
}

.custom-token-input:focus {
    outline: none;
    border-color: #4A90E2;
}

.custom-token-button {
    width: 100%;
    padding: 12px;
    background: #4A90E2;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.custom-token-button:hover {
    background: #357ABD;
}

/* Token List Modal */
.token-list-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.token-list-content {
    background: #1E1E1E;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
}

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

.token-list-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.2rem;
}

.token-search {
    width: 100%;
    padding: 12px;
    background: #2A2A2A;
    border: 1px solid #3A3A3A;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
}

.token-search:focus {
    outline: none;
    border-color: #4A90E2;
}

.token-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.token-item {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.token-item:hover {
    background: #2A2A2A;
}

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

.token-item-info {
    flex: 1;
}

.token-item-symbol {
    color: #fff;
    font-weight: 600;
    margin-bottom: 4px;
}

.token-item-name {
    color: #888;
    font-size: 0.9rem;
}

/* Swap Card */
.swap-card {
    background: rgba(39, 38, 44, 0.7);
    border-radius: 24px;
    padding: 1rem;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 8px;
}

/* Swap Navigation */
.swap-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.swap-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-button {
    background: transparent;
    border: none;
    color: #B8ADD2;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-button.active {
    background: #353547;
    color: #F4EEFF;
}

.settings-button {
    background: transparent;
    border: none;
    color: #B8ADD2;
    font-size: 1.25rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-button:hover {
    color: #F4EEFF;
}

/* Token Input Container */
.token-input-container {
    background: #353547;
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.token-input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #B8ADD2;
    font-size: 0.875rem;
}

.balance-max {
    background: transparent;
    border: none;
    color: #1FC7D4;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
}

.token-input-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.token-amount-input {
    background: transparent;
    border: none;
    color: #F4EEFF;
    font-size: 1.25rem;
    font-weight: 600;
    width: 50%;
    outline: none;
}

.token-amount-input::placeholder {
    color: #6C6B7E;
}

.token-select-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #27262C;
    border: none;
    border-radius: 16px;
    padding: 0.5rem 0.75rem;
    color: #F4EEFF;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.token-select-button:hover {
    background: #353547;
}

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

.chain-badge {
    background: #383241;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #B8ADD2;
}

.token-input-footer {
    margin-top: 0.5rem;
    color: #6C6B7E;
    font-size: 0.875rem;
}

/* Swap Direction Button */
.swap-direction-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #27262C;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    margin: -0.5rem auto;
    position: relative;
    z-index: 2;
    color: #1FC7D4;
    cursor: pointer;
    transition: all 0.2s;
}

.swap-direction-button:hover {
    background: #353547;
    transform: rotate(180deg);
}

/* Tab Content */
.swap-content {
    position: relative;
}

.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

/* Coming Soon */
.coming-soon {
    text-align: center;
    padding: 3rem 1rem;
    color: #B8ADD2;
}

.coming-soon i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #1FC7D4;
}

.coming-soon h3 {
    color: #F4EEFF;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.coming-soon p {
    margin: 0;
    font-size: 1rem;
    color: #B8ADD2;
} 