body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.container {
    margin-top: 20px;
}

h1 {
    color: #333;
}

input {
    padding: 10px;
    width: 80%;
    font-size: 16px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

#qrcode {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    position: relative;
}

#qrcode canvas {
    max-width: 100%;
}

.error {
    color: red;
    margin-top: 10px;
}

.controls {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.control-group {
    margin-bottom: 15px;
}

label {
    margin-right: 10px;
}

select, input[type="color"] {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.tabs {
    justify-content: center;
    display: flex;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid #ddd;
    background-color: #f1f1f1;
    margin: 0 5px;
    border-radius: 4px 4px 0 0;
}

.tab.active {
    background-color: #fff;
    border-bottom: 1px solid #fff;
}

.tab-content {
    display: none;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 0 0 4px 4px;
}

.tab-content.active {
    display: block;
}

#fileUpload {
    display: none;
}

.file-upload-label {
    display: inline-block;
    background-color: #6c757d;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.file-upload-label:hover {
    background-color: #5a6268;
}

.preview-container {
    margin-top: 15px;
}

#imagePreview {
    max-width: 100px;
    max-height: 100px;
    display: none;
    margin: 10px auto;
    border: 1px solid #ddd;
}

.download-btn {
    margin-top: 20px;
    background-color: #007bff;
}

.download-btn:hover {
    background-color: #0069d9;
}

#qrCanvas {
    display: none;
}

.custom-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.option-card {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    width: 30%;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .option-card {
        width: 100%;
    }

    .controls {
        flex-direction: column;
        align-items: center;
    }
}

/* Remove Logo Button */
#removeLogo {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    transition: background-color 0.3s;
}

#removeLogo:hover {
    background-color: #c82333;
}

/* Make color picker inputs taller */
input[type="color"] {
    width: 50px;
    height: 40px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    vertical-align: middle;
}

/* Add some space around the color picker inputs */
.control-group label[for="foregroundColor"],
.control-group label[for="backgroundColor"] {
    display: block;
    margin-bottom: 5px;
}

/* Align the color picker controls better */
#styleOptions .control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}