.center-header {
    text-align: center;
    margin-bottom: 40px;
}

.grid-qr-tool {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 32px;
    grid-auto-rows: 1fr;
    align-items: stretch;
}

.form-card,
.qr-preview-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.form-card {
    background: var(--surface);
    padding: 32px;
    border-radius: 18px;
    border: 1px solid rgba(28, 72, 172, 0.08);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.input-icon input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-icon input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(28, 72, 172, 0.1);
}

.hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--muted);
}

.full-width {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.colors-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 12px;
    background: var(--color-light);
    border-radius: 8px;
}

.colors-wrapper label {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

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

input[type="color"] {
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    background: none;
}

.qr-preview-card {
    background: linear-gradient(180deg, #ffffff, #fcfdff);
    padding: 32px;
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    border: 1px solid rgba(28, 72, 172, 0.08);
}

.qr-placeholder {
    text-align: center;
    color: #cbd5e1;
}

.qr-placeholder i {
    font-size: 4rem;
    margin-bottom: 12px;
}

.qrcode-output canvas,
.qrcode-output img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.download-actions {
    margin-top: 24px;
    width: 100%;
    text-align: center;
}

.stats-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.stat-item {
    background: var(--color-light-secondary);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px dashed var(--accent);
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feedback-box {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.feedback-box.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.feedback-box.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 850px) {
    .grid-qr-tool {
        grid-template-columns: 1fr;
        margin: 15px;
    }

    .qr-preview-card {
        order: -1;
        min-height: auto;
    }
}