/* ===== Generator QR Code - seotoolpro.ro ===== */

.qrg-app {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Tabs */
.qrg-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
    margin-bottom: 18px;
}
.qrg-tab {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}
.qrg-tab:hover { background: #e5e7eb; }
.qrg-tab.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* Grid */
.qrg-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 22px;
}
@media (max-width: 900px) {
    .qrg-grid { grid-template-columns: 1fr; }
}

/* Editor */
.qrg-editor {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.qrg-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.qrg-field { display: flex; flex-direction: column; gap: 5px; }
.qrg-field label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.qrg-req { color: #dc2626; }
.qrg-field input[type="text"],
.qrg-field input[type="email"],
.qrg-field input[type="tel"],
.qrg-field input[type="url"],
.qrg-field input[type="number"],
.qrg-field select,
.qrg-field textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    transition: border 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.qrg-field input:focus,
.qrg-field select:focus,
.qrg-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.qrg-field input[type="color"] {
    width: 100%;
    height: 40px;
    padding: 3px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
}
.qrg-field input[type="file"] {
    font-size: 13px;
    padding: 6px 0;
}
.qrg-field-check label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}
.qrg-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.qrg-hint {
    font-size: 11px;
    color: #6b7280;
    font-weight: normal;
    margin-top: 2px;
}

/* Section */
.qrg-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 14px;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.qrg-section h4 {
    margin: 0;
    font-size: 14px;
    color: #111827;
    font-weight: 700;
}

/* Presets culori */
.qrg-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.qrg-preset {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s;
}
.qrg-preset:hover { transform: translateY(-1px); }

/* Preview */
.qrg-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.qrg-preview-box {
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 16px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
#qrg-canvas-wrap {
    display: none;
    max-width: 100%;
}
#qrg-canvas {
    max-width: 100%;
    height: auto !important;
    display: block;
}
.qrg-preview-empty {
    text-align: center;
    color: #9ca3af;
}
.qrg-empty-ico {
    font-size: 50px;
    margin-bottom: 8px;
}
.qrg-preview-empty p { margin: 0; font-size: 13px; }

/* Download buttons */
.qrg-download {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.qrg-btn {
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.qrg-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.qrg-btn-primary {
    background: #2563eb;
    color: #fff;
}
.qrg-btn-primary:not(:disabled):hover { background: #1d4ed8; }
.qrg-btn-secondary {
    background: #10b981;
    color: #fff;
}
.qrg-btn-secondary:not(:disabled):hover { background: #059669; }
.qrg-btn-ghost {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}
.qrg-btn-ghost:not(:disabled):hover { background: #e5e7eb; }
.qrg-btn-small {
    padding: 5px 10px;
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 6px;
    align-self: flex-start;
}
.qrg-btn-small:hover { background: #fecaca; }

/* Info box */
.qrg-info {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #78350f;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
}
