* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.input-wrapper {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 1rem;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.options-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.option {
    flex: 1;
    min-width: 150px;
}

.option label {
    margin-bottom: 0.5rem;
}

select, input[type="color"], input[type="text"], input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.logo-option {
    display: flex;
    flex-direction: column;
}

.small-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    margin-top: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    align-self: flex-start;
}

.small-button:hover {
    background-color: #c0392b;
}

.logo-size-option {
    display: flex;
    flex-direction: column;
}

#logo-size {
    width: 100%;
    margin-bottom: 5px;
}

#logo-size-value {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.slider-container {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-label:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch:checked + .toggle-label {
    background-color: #2ecc71;
}

.toggle-switch:checked + .toggle-label:before {
    transform: translateX(30px);
}

#qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#qr-result {
    min-height: 256px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
    position: relative;
}

#qr-text-display {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0;
    color: #333;
    min-height: 24px;
}

.result-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

#download-link {
    background-color: #2ecc71;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

#download-link:hover {
    background-color: #27ae60;
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .options-wrapper {
        flex-direction: column;
    }
    
    .option {
        width: 100%;
    }
}
