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

.container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 550px;
    box-sizing: border-box;
}

h1 {
    color: #2c3e50;
    margin-bottom: 35px;
    font-size: 2.2em;
    font-weight: 600;
}

.form {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.form-group {
    width: 100%;
    margin-bottom: 15px;
}

#url {
    width: calc(100% - 24px);
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#url:focus {
    border-color: #6a82fb;
    box-shadow: 0 0 8px rgba(106, 130, 251, 0.3);
    outline: none;
}

#size, #color, #error-correction, #background-color, #download-format {
    flex: 1;
    min-width: 120px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    background-color: #f9f9f9;
    font-size: 0.95em;
    appearance: none; /* Remove default select arrow */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2C114.7L159.7%2C242c-3.2%2C3.2-8.3%2C3.2-11.5%2C0L5.4%2C114.7c-3.2-3.2-3.2-8.3%2C0-11.5l11.5-11.5c3.2-3.2%2C8.3-3.2%2C11.5%2C0l115.5%2C115.5l115.5-115.5c3.2-3.2%2C8.3-3.2%2C11.5%2C0l11.5%2C11.5C290.2%2C106.4%2C290.2%2C111.5%2C287%2C114.7z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px; /* Make space for the arrow */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#size:focus, #color:focus, #error-correction:focus, #background-color:focus, #download-format:focus {
    border-color: #6a82fb;
    box-shadow: 0 0 8px rgba(106, 130, 251, 0.3);
    outline: none;
}

#color, #background-color {
    padding: 8px; /* Adjust padding for color inputs */
    height: 45px; /* Ensure consistent height */
    box-sizing: border-box;
}

#download {
    background: linear-gradient(45deg, #6a82fb 0%, #fc5c7d 100%);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    width: 100%;
}

#download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

#qrcode {
    margin-top: 40px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    display: inline-block;
    background-color: #fdfdfd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#qrcode img, #qrcode canvas {
    display: block;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 1.8em;
    }

    .form {
        flex-direction: column;
        gap: 10px;
    }

    #url, #size, #color, #error-correction, #background-color, #download-format, #download {
        width: 100%;
        margin-left: 0;
    }

    #download {
        padding: 12px 20px;
        font-size: 1em;
    }
}
