html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* pushes footer to the bottom */
    align-items: center;
    background-color: #f4f6f8;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.container {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    margin-top: 80px;
}

footer {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    background-color: #f4f6f8;
    color: #555;
    font-size: 0.95rem;
    border-top: 1px solid #ddd;
    margin-top: auto; /* ensures it's pinned at bottom */
}

footer a {
    color: #007BFF;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

.inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

/* each input gets its own positioning context */
.input-group {
    position: relative;
}

input {
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 200px;
    font-size: 1rem;
}

button {
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

button:hover {
    background-color: #0056b3;
}

button:active {
    transform: scale(0.98);
}

#result {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #444;
}

/* suggestions fixed */
.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 4px;
    z-index: 1000;
    display: none; /* 🔹 hidden by default */
}
.suggestions.active {
    display: block; /* 🔹 visible only when active */
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}

#result div:first-child {
    background-color: #f9fafb;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 10px;
    font-style: italic;
}
#swap-btn {
    background-color: #007bff;   /* Bright blue to match your main button */
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    line-height: 1;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#swap-btn:hover {
    background-color: #0056b3;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

#swap-btn:active {
    transform: scale(0.95);
}

.inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

