* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1e1e2e, #2d2d44);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.container {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 1200px;
    animation: fadeIn 0.5s ease-out;
}

h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 600;
}

.swap-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.token-input {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.token-input:hover {
    background: rgba(255, 255, 255, 0.08);
}

.token-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 1rem 2.5rem 1rem 3rem; 
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    appearance: none;
    min-width: 250px;

    background-repeat: no-repeat;   
    background-position: 10px center;
    background-size: 22px;
}

.token-select option {
    background-color: #1e1e2e;
    color: white;
}

.token-select:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

input[type="number"] {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    width: 100%;
    padding: 0.5rem;
    -moz-appearance: textfield;
}

input[type="number"]:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

input[type="number"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#swapButton {
    align-self: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    margin: 1rem 0;
}

#swapButton:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

#swapButton svg {
    transform: rotate(90deg);
    width: 28px;
    height: 28px;
}

.result {
    font-size: 2rem;
    color: white;
    padding: 0.5rem;
    width: 100%;
}

.footer {
    text-align: center;
    padding: 15px 10px;
    color: #aaa;
    font-size: 14px;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .token-input {
        padding: 1.5rem;
        flex-direction: column;
        align-items: stretch;
    }

    .token-select {
        width: 100%;
        min-width: unset;
    }

    input[type="number"],
    .result {
        font-size: 1.5rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

