body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 100%;
    margin: 2rem;
}

.qr-generator-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: flex-start;
}

.qr-config {
    max-width: 450px;
}

.qr-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.qr-header h1 {
    font-size: 2rem;
    font-weight: 500;
}

.qr-config p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.qr-url-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}

.advanced-settings-link {
    color: #000;
    text-decoration: none;
    border-bottom: 1px dotted #000;
    cursor: pointer;
    font-size: 0.9rem;
}

.advanced-settings-container {
    margin-top: 1.5rem;
}

.advanced-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.advanced-settings-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

#hide-advanced-settings {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
}

.tabs {
    display: flex;
    background-color: #f0f2f5;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 1.5rem;
}

.tab-button {
    flex: 1;
    padding: 0.6rem;
    border: none;
    background-color: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    transition: background-color 0.2s, color 0.2s;
}

.tab-button.active {
    background-color: #fff;
    color: #000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tab-content {
    display: none;
}

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

.image-uploader {
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    background-color: #fff;
    margin-bottom: 0.5rem;
}

.image-uploader p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
}

.upload-label {
    background-color: #f0f2f5;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    color: #333;
    margin-left: 0.5rem;
}

.uploader-caption {
    font-size: 0.8rem;
    color: #aaa;
    text-align: center;
}

.color-settings {
    display: flex;
    gap: 2rem;
}

.color-input-group {
    display: flex;
    flex-direction: column;
}

.color-input-group label {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.75rem;
}

.color-picker-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.color-picker-container input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    background-color: transparent;
}

.color-picker-container input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-container input[type="color"]::-webkit-color-swatch {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.color-picker-container span {
    font-family: monospace;
    font-size: 1rem;
    color: #333;
}

.qr-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code-display {
    background-color: #fff;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    width: 256px;
    height: 256px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#qr-code-placeholder {
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='256' height='256' viewBox='0 0 256 256' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='256' height='256' rx='16' fill='white'/%3E%3Crect x='40' y='40' width='64' height='64' rx='8' fill='%23f0f2f5'/%3E%3Crect x='152' y='40' width='64' height='64' rx='8' fill='%23f0f2f5'/%3E%3Crect x='40' y='152' width='64' height='64' rx='8' fill='%23f0f2f5'/%3E%3Crect x='120' y='120' width='16' height='16' rx='4' fill='%23f0f2f5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#qr-code-canvas {
    display: none;
}

.export-buttons {
    gap: 0.5rem;
    align-items: center;
}

.export-button {
    background-color: #f0f2f5;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.export-button:hover {
    background-color: #e2e6ea;
}

.form-group {
    margin-bottom: 1rem;
}
