/* ==========================================
   QR CODE GENERATOR
========================================== */

.qr-generator-page .tool-page-title {
    font-size: 2.25rem;
    font-weight: 700;
}

.qr-generator-page .tool-page-description {
    font-size: 1.075rem;
    color: var(--gray-color, #6b7280);
    max-width: 760px;
    margin: 0 auto;
}

/* ---------- Type grid ---------- */
.qr-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.qr-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: var(--dark-color, #1f2937);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.qr-type-btn i {
    font-size: 1.3rem;
    color: var(--primary-color, #2563eb);
}

.qr-type-btn span {
    font-size: 0.78rem;
    font-weight: 600;
}

.qr-type-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light, #60a5fa);
}

.qr-type-btn.active {
    border-color: var(--primary-color, #2563eb);
    background: rgba(37, 99, 235, 0.06);
}

/* ---------- Output ---------- */
.qr-output-card {
    position: sticky;
    top: 90px;
}

.qr-canvas-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

#qrCanvas {
    width: 280px;
    height: 280px;
    max-width: 100%;
    image-rendering: pixelated;
    border-radius: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .qr-generator-page .tool-page-title {
        font-size: 1.75rem;
    }

    .qr-output-card {
        position: static;
    }
}

@media (max-width: 400px) {
    .qr-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
