:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #ff0080;
    --text-color: #fff;
    --bg-color: #0f0c29;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --input-bg: rgba(255, 255, 255, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Animated Background Blobs */
.background-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    animation: move 10s infinite alternate;
}

.blob-1 {
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.blob-2 {
    bottom: 20%;
    right: 10%;
    width: 350px;
    height: 350px;
    background: var(--secondary-color);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-duration: 12s;
}

.blob-3 {
    top: 40%;
    left: 50%;
    width: 250px;
    height: 250px;
    background: var(--accent-color);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-duration: 8s;
}

@keyframes move {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(30px, 50px) rotate(20deg);
    }
}

/* Glassmorphism Card */
.container {
    padding: 20px;
    width: 100%;
    max-width: 450px;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

header p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

/* Language Selector */
.language-selector {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.language-selector select {
    width: auto;
    padding: 5px 10px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.language-selector select option {
    background-color: #24243e;
    color: white;
}

/* Inputs and Selects */
.input-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-wrapper:focus-within {
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(37, 117, 252, 0.4);
}

input[type="number"] {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    padding: 12px 15px;
    width: 50%;
    outline: none;
    font-family: 'Outfit', sans-serif;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

select {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    padding: 12px 15px;
    width: 50%;
    outline: none;
    cursor: pointer;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

select option {
    background-color: #24243e;
    /* Solid background for dropdown options */
    color: white;
}

/* Swap Button */
.swap-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-swap {
    background: var(--primary-color);
    background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-swap:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 6px 20px rgba(37, 117, 252, 0.5);
}

.rate {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    background: rgba(37, 117, 252, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(37, 117, 252, 0.3);
}

/* Footer info */
.last-updated {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 500px) {
    h1 {
        font-size: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }
}
/* Github Link */
.github-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s, transform 0.3s;
    z-index: 100;
}

.github-link:hover {
    color: #fff;
    transform: scale(1.1);
}
