/* QR Generator Pro - Styles */
.qrg-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 480px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    margin: 20px auto;
    box-sizing: border-box;
}

.qrg-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px 0;
    padding: 0;
}

/* Input row */
.qrg-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.qrg-url-input {
    flex: 1 1 220px;
    padding: 11px 16px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #374151;
    outline: none;
    transition: border-color 0.2s;
    min-width: 0;
    background: #f9fafb;
    box-sizing: border-box;
}
.qrg-url-input:focus {
    border-color: #1a8800;
    background: #fff;
}
.qrg-url-input::placeholder { color: #9ca3af; }

/* Buttons */
.qrg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
    line-height: 1;
}
.qrg-btn:active { transform: scale(0.97); }

.qrg-btn-generate {
    background: #1a8800;
    color: #fff;
}
.qrg-btn-generate:hover { background: #156600; }

/* Preview area */
.qrg-preview-area {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.qrg-canvas-wrap {
    background: #f2f8ee;
    border-radius: 18px;
    padding: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(94,163,59,0.1);
}

.qrg-qr-inner canvas {
    display: block;
    border-radius: 12px;
}

/* Download row */
.qrg-download-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.qrg-dl-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.qrg-btn-dl {
    background: #f3f4f6;
    color: #374151;
    padding: 9px 18px;
    font-size: 0.82rem;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
}
.qrg-btn-dl:hover {
    background: #eef6e8;
    border-color: #1a8800;
    color: #1a8800;
}

/* Error */
.qrg-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin: 8px 0 0;
    padding: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .qrg-wrap { padding: 20px 16px; border-radius: 12px; }
    .qrg-input-row { flex-direction: column; }
    .qrg-url-input { width: 100%; }
    .qrg-btn-generate { width: 100%; }
}
