/* Swap Container */
.swap-container {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 3rem;
}

.swap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.swap-header h1 {
    font-size: 2rem;
    color: var(--text-color);
    margin: 0;
}

.swap-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 8px;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.tab-btn.active {
    background: var(--accent-color);
    color: var(--background-color);
}

/* Swap Section */
.swap-section {
    display: none;
}

.swap-section.active {
    display: block;
}

/* Swap Card */
.swap-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 2.2rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.swap-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 153, 0, 0.3);
    box-shadow: 0 12px 40px rgba(255, 153, 0, 0.1);
}

.swap-input {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.token-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.token-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.token-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--background-color);
    transition: transform 0.3s ease;
}

.token-info span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

.amount-input {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    text-align: right;
    width: 200px;
    font-weight: 600;
}

.amount-input:focus {
    outline: none;
}

.balance-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: right;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-top: 0.6rem;
}

.swap-arrow {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.swap-arrow svg {
    width: 32px;
    height: 32px;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.swap-arrow:hover svg {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.swap-details {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item span:first-child {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.8px;
}

.detail-item span:last-child {
    color: var(--text-color);
    font-weight: 600;
    background: linear-gradient(45deg, var(--accent-color), #00b8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.swap-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(45deg, var(--accent-color), #ff7b00);
    color: var(--background-color);
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.swap-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, #ff7b00, var(--accent-color));
    box-shadow: 0 4px 20px rgba(255, 153, 0, 0.3);
}

/* Pool Section */
.pool-section {
    display: none;
}

.pool-section.active {
    display: block;
}

.pool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
    align-items: start;
}

.pool-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 2.2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pool-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 153, 0, 0.3);
    box-shadow: 0 12px 40px rgba(255, 153, 0, 0.1);
}

.pool-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pool-tokens {
    display: flex;
    position: relative;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.pool-tokens .token-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--background-color);
    transition: transform 0.3s ease;
}

.pool-tokens .token-icon:last-child {
    margin-left: -16px;
}

.pool-card:hover .token-icon {
    transform: scale(1.1);
}

.pool-header h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.pool-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: auto 0 2.2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
    text-align: center;
}

.stat-item span:first-child {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.stat-item span:last-child {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 600;
    background: linear-gradient(45deg, var(--accent-color), #00b8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pool-actions {
    display: flex;
    gap: 1.2rem;
    margin-top: auto;
}

.add-liquidity-btn,
.remove-liquidity-btn {
    flex: 1;
    padding: 0.9rem;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.add-liquidity-btn {
    background: linear-gradient(45deg, var(--accent-color), #ff7b00);
    color: var(--background-color);
}

.remove-liquidity-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.add-liquidity-btn:hover,
.remove-liquidity-btn:hover {
    transform: translateY(-2px);
}

.add-liquidity-btn:hover {
    background: linear-gradient(45deg, #ff7b00, var(--accent-color));
    box-shadow: 0 4px 20px rgba(255, 153, 0, 0.3);
}

.remove-liquidity-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
}

/* Liquidity Modal */
.liquidity-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.liquidity-modal.active {
    display: flex;
}

.liquidity-modal .modal-content {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--text-color);
}

.token-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.token-input {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
}

.token-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.token-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.token-info span {
    font-weight: 500;
}

.amount-input {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    text-align: right;
    width: 200px;
}

.amount-input:focus {
    outline: none;
}

.balance-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: right;
}

.price-info {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.price-ratio,
.share-of-pool {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.price-ratio:last-child,
.share-of-pool:last-child {
    margin-bottom: 0;
}

.approve-btn,
.supply-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.approve-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.supply-btn {
    background: var(--accent-color);
    color: var(--background-color);
}

.approve-btn:hover,
.supply-btn:hover {
    transform: translateY(-2px);
}

.supply-btn:hover {
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

/* Toast Message */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--card-background);
    color: var(--text-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: toastFadeIn 0.3s ease;
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .pool-grid {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    }
}

@media (max-width: 768px) {
    .swap-container {
        padding: 0 1.5rem;
        margin: 2rem auto;
    }

    .pool-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pool-card {
        padding: 1.8rem;
    }

    .pool-tokens .token-icon {
        width: 36px;
        height: 36px;
    }

    .pool-stats {
        padding: 1.2rem;
        gap: 1.2rem;
    }

    .swap-card {
        padding: 1.8rem;
        margin: 1rem;
    }

    .swap-input {
        padding: 1.2rem;
    }

    .token-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .swap-container {
        padding: 0 1rem;
        margin: 1.5rem auto;
    }

    .pool-card {
        padding: 1.5rem;
    }

    .pool-header {
        gap: 1rem;
        margin-bottom: 1.8rem;
    }

    .pool-tokens .token-icon {
        width: 32px;
        height: 32px;
    }

    .pool-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem;
        gap: 1rem;
    }

    .pool-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .swap-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .swap-input {
        padding: 1rem;
    }

    .token-icon {
        width: 32px;
        height: 32px;
    }

    .amount-input {
        font-size: 1.3rem;
    }

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

/* Pool Details Modal */
.pool-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: modalFadeIn 0.3s ease;
}

.pool-details-modal.active {
    display: flex;
}

.pool-details-modal .modal-content {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 2.2rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header .pool-tokens {
    display: flex;
    position: relative;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.modal-header .pool-tokens .token-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--background-color);
    transition: transform 0.3s ease;
}

.modal-header .pool-tokens .token-icon:last-child {
    margin-left: -16px;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 600;
    background: linear-gradient(45deg, var(--accent-color), #00b8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    transform: rotate(90deg);
}

.modal-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-tab {
    padding: 0.9rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    flex: 1;
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.modal-tab.active {
    background: linear-gradient(45deg, var(--accent-color), #ff7b00);
    color: var(--background-color);
    font-weight: 600;
}

.modal-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.modal-body {
    padding: 1rem 0;
}

.modal-swap-section,
.modal-pool-section {
    display: none;
    animation: sectionFadeIn 0.3s ease;
}

.modal-swap-section.active,
.modal-pool-section.active {
    display: block;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-body .pool-stats {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 1.8rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.modal-body .stat-item {
    text-align: center;
}

.modal-body .stat-item span:first-child {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 0.5rem;
}

.modal-body .stat-item span:last-child {
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(45deg, var(--accent-color), #00b8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.liquidity-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.input-group {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.input-group .token-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.input-group .amount-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    text-align: right;
    font-weight: 600;
}

.input-group .balance-info {
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Price Ticker */
.price-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0;
    z-index: 100;
}

.ticker-container {
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.ticker-track {
    display: flex;
    animation: ticker 20s linear infinite;
    gap: 3rem;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 180px;
    transition: all 0.3s ease;
}

.ticker-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
}

.ticker-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--background-color);
}

.ticker-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ticker-symbol {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

.ticker-price {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: linear-gradient(45deg, var(--accent-color), #00b8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* Ajuste do margin-bottom do main para acomodar o ticker */
main {
    margin-bottom: 80px;
} 