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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

header h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.connect-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.wallet-info {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 15px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wallet-info span {
    color: white;
    font-weight: 500;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 5px;
    backdrop-filter: blur(10px);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 15px 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 150px;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Tab Content */
.tab-content {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

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

.tab-content h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 2rem;
}

/* Token Input */
.token-input {
    margin-bottom: 20px;
}

.token-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.input-group {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.input-group:focus-within {
    border-color: #667eea;
}

.input-group input {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    outline: none;
}

.input-group select {
    padding: 15px;
    border: none;
    background: #e9ecef;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 120px;
}

.balance {
    text-align: right;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #666;
}

/* Swap Arrow */
.swap-arrow {
    text-align: center;
    margin: 20px 0;
}

.swap-arrow button {
    background: #667eea;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.swap-arrow button:hover {
    transform: rotate(180deg);
    background: #5a67d8;
}

/* Plus Sign */
.plus-sign {
    text-align: center;
    font-size: 2rem;
    color: #667eea;
    margin: 20px 0;
    font-weight: bold;
}

/* Info Sections */
.swap-info, .liquidity-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

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

.info-row span:first-child {
    color: #666;
}

.info-row span:last-child {
    font-weight: 600;
    color: #333;
}

/* Action Buttons */
.action-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.action-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.action-btn.secondary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
}

/* Remove Liquidity */
.remove-liquidity {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.remove-liquidity h3 {
    margin-bottom: 20px;
    color: #333;
}

.slider-container {
    margin-bottom: 20px;
}

.slider-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
}

.slider-container input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

/* Pools */
.pools-list {
    display: grid;
    gap: 20px;
}

.pool-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.pool-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pool-info h3 {
    margin-bottom: 10px;
    color: #333;
}

.pool-info p {
    margin-bottom: 5px;
    color: #666;
}

.pool-actions {
    display: flex;
    gap: 10px;
}

.pool-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pool-btn:first-child {
    background: #667eea;
    color: white;
}

.pool-btn.secondary {
    background: #e9ecef;
    color: #333;
}

.pool-btn:hover {
    transform: translateY(-1px);
}

/* Footer */
footer {
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

footer h3 {
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.address-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.address-item label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.address {
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        max-width: none;
    }
    
    .pool-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .address-grid {
        grid-template-columns: 1fr;
    }
    
    .address-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}