body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    text-align: center;
}

.converter-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 30px;
    margin-bottom: 30px;
    width: 400px; /* Default width for larger screens */
}

.converter-header {
    color: white;
    margin-bottom: 20px;
}

.converter-header h1 {
    font-weight: 700;
    margin: 0;
    font-size: 28px;
}

.converter-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative; /* Establish positioning context for absolute children */
}

.currency-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 45%;
}

.currency-field label {
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
}

.currency-field input {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 24px;
    width: 100%;
    padding: 15px;
    text-align: center;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
}

.currency-field input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.currency-field input:focus, .currency-field input.active {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.swap-icon-container {
    color: white;
    font-size: 24px;
    cursor: default;
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#keyboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 20px;
}

.key {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 24px;
    padding: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.key:hover {
    background: rgba(255, 255, 255, 0.3);
}

.key:active {
    background: rgba(255, 255, 255, 0.4);
}

.clear-all-key {
    grid-column: span 3; /* Make the clear all button span all 3 columns */
    background: rgba(255, 99, 71, 0.5); /* A distinct color for clear button */
}

.clear-all-key:hover {
    background: rgba(255, 99, 71, 0.7);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .converter-wrapper {
        width: 90%;
        max-width: 350px;
        padding: 20px;
    }

    #keyboard {
        width: 90%;
        max-width: 350px;
        margin: 0 auto;
    }
}