* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 20px;
    background-color: #f5f5f5;
}

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

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.input-section {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 15px;
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

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

.output-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

#qrcode-container {
    padding: 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Checkered background for transparent QR codes */
#qrcode-container.transparent-bg {
    background-image: 
        linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0),
        linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-color: white;
}

#qrcode {
    max-width: 100%;
    height: auto;
}

.download-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    display: none;
}

.download-btn:hover {
    background-color: #0b7dda;
}

/* Add these at the end of your CSS file */
.advanced-section {
    margin-bottom: 15px;
}

.advanced-content {
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

details summary {
    cursor: pointer;
    font-weight: bold;
    padding: 5px 0;
}

details summary:hover {
    color: #2196F3;
}

/* Color customization styles */
.color-section {
    margin-top: 15px;
}

.color-inputs {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.color-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-input-group label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 14px;
}

input[type="color"] {
    width: 50px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

/* Transparency option */
.transparency-option {
    margin-top: 10px;
}

.transparency-option label {
    display: flex;
    align-items: center;
    font-weight: normal;
    font-size: 14px;
    cursor: pointer;
}

.transparency-option input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

/* Style selector */
.style-section {
    margin-top: 15px;
}

/* Logo upload styles */
.logo-section {
    margin-top: 15px;
}

input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
}

.logo-preview {
    margin-top: 10px;
    text-align: center;
}

.logo-preview img {
    max-width: 100px;
    max-height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

.remove-logo-btn {
    margin-top: 10px;
    padding: 5px 15px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.remove-logo-btn:hover {
    background-color: #d32f2f;
}

.logo-info {
    margin-top: 10px;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.logo-info small {
    display: block;
    padding: 8px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
}
