/* NF (PATCH-FS-0001): stili wizard di setup NfCommerce.
   Si somma a css/install/styles.css upstream senza modificarlo. */

/* --- barra vendor NetForges in alto --- */
.nf-vendor-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #0f172a;
    padding: 10px 18px;
    margin: 0 -15px;
}

.nf-vendor-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.nf-vendor-brand:hover {
    text-decoration: none;
}

.nf-vendor-logo {
    height: 26px;
    width: auto;
}

.nf-vendor-name {
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nf-vendor-tagline {
    color: #94a3b8;
    font-size: 13px;
    margin-left: auto;
}

/* --- riga versione/release sotto il logo prodotto --- */
.nf-version-line {
    color: #e0f0fa;
    font-size: 13px;
    text-align: center;
    margin-top: 8px;
}

/* --- combo lingua della pagina di setup (compatta, nel box del logo) --- */
.nf-setupin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.nf-setupin-label {
    color: #e0f0fa;
    font-size: 12px;
    margin-bottom: 0;
    white-space: nowrap;
}

.nf-setupin-select {
    width: auto;
    max-width: 190px;
    font-size: 12px;
    padding: 2px 6px;
    height: 28px;
    border-radius: 3px;
    border: 1px solid #64748b;
    background-color: #f8fafc;
    color: #0f172a;
}

/* --- upload pacchetto lingua aggiuntivo --- */
.nf-langpack-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nf-langpack-culture {
    max-width: 190px;
}

.nf-btn-langpack {
    background-color: #0369a1;
    color: #ffffff;
    white-space: nowrap;
}

.nf-btn-langpack:hover:not(:disabled) {
    background-color: #075985;
    color: #ffffff;
}

.nf-langpack-result {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* --- hint sotto i campi --- */
.nf-hint {
    display: block;
    font-size: 12px;
    color: #8a949e;
    margin-top: 3px;
    line-height: 1.4;
}

/* --- barra auto-compilazione locale (solo localhost) --- */
.nf-localfill-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px dashed #94a3b8;
    border-radius: 4px;
    background: #f1f5f9;
    padding: 8px 12px;
    margin-bottom: 5px;
}

.nf-btn-localfill {
    background-color: #0369a1;
    color: #ffffff;
    white-space: nowrap;
}

.nf-btn-localfill:hover {
    background-color: #075985;
    color: #ffffff;
}

/* --- esempi connection string: selezione con un click, copia pulita --- */
.nf-conn-example {
    display: block;
    user-select: all;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    padding: 2px 6px;
    margin: 2px 0 6px;
    font-size: 11.5px;
    color: #334155;
    word-break: break-all;
}

/* --- pannello pre-check --- */
.nf-btn-precheck {
    padding: 6px 25px;
    font-size: 18px;
    background-color: #0f172a;
    color: #ffffff;
    margin-right: 10px;
}

.nf-btn-precheck:hover:not(:disabled) {
    background-color: #1e293b;
    color: #ffffff;
}

.nf-precheck-panel {
    border: 1px solid #d8dee5;
    border-radius: 4px;
    background: #f8fafc;
    padding: 15px 20px;
    margin-top: 20px;
}

.nf-precheck-panel h4 {
    font-size: 17px;
    margin-bottom: 10px;
    color: #0f172a;
}

.nf-precheck-summary {
    font-weight: 600;
    margin-bottom: 10px;
}

.nf-precheck-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.nf-precheck-list li {
    padding: 4px 0;
    font-size: 13.5px;
    line-height: 1.45;
}

.nf-check-icon {
    display: inline-block;
    width: 20px;
    font-weight: 700;
}

.nf-check-ok { color: #15803d; }
.nf-check-warn { color: #b45309; }
.nf-check-fail { color: #b91c1c; }
.nf-check-info { color: #1d4ed8; }

/* --- clessidra brand NetForges (throbber) --- */
.nf-throbber {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 20px auto 0;
}

.nf-throbber-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%);
    animation: nf-throbber-pulse 1.6s ease-in-out infinite;
}

.nf-throbber-ring {
    position: absolute;
    inset: 0;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: nf-throbber-spin 1.1s linear infinite;
}

@keyframes nf-throbber-spin {
    to { transform: rotate(360deg); }
}

@keyframes nf-throbber-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}
