.qr-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .qr-layout {
        grid-template-columns: 1fr;
    }
}

.controls-panel {
    display: flex;
    flex-direction: column;
}

/* Beautiful Input Groups */
.input-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--input-bg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(136, 189, 242, 0.2);
}

/* Color Options Layout */
.color-options {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.flex-1 {
    flex: 1;
}

/* Slick Color Pickers */
input[type="color"] {
    width: 100%;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: transparent;
    transition: transform 0.2s;
}

input[type="color"]:hover {
    transform: scale(1.02);
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: 2px solid var(--glass-border);
    border-radius: 12px;
}

/* Preview Panel */
.preview-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.qr-container {
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#qr-element canvas, #qr-element img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
}

.placeholder-text {
    color: #888;
    font-size: 0.95rem;
    text-align: center;
    padding: 2rem;
    font-weight: 500;
}

/* Primary Button */
.primary-btn {
    background: var(--primary-gradient);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--primary-shadow-md);
}

.primary-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--primary-shadow-lg);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    box-shadow: none;
}
