/* FAD SaaS - integrazioni grafiche minime sopra il tema (app/assets). */
:root { --fad-primary: var(--bs-primary, #4f46e5); }

.fad-avatar { background: var(--fad-primary); color: #fff; font-weight: 600; font-size: 14px; }
.fad-logo { max-width: 160px; width: auto; object-fit: contain; }
.fad-app-name { max-width: 150px; font-size: 1.15rem; }
.fad-footer { border-top: 1px solid var(--bs-border-color, #e9ebec); }

/* Select2 nel tema */
.select2-container--bootstrap-5 .select2-selection { min-height: calc(1.5em + .75rem + 2px); }
.select2-container--bootstrap-5.select2-container--focus .select2-selection { border-color: var(--fad-primary); }
.modal .select2-container { z-index: 1; }
.select2-container--open { z-index: 2000; }

/* DataTables */
table.dataTable td, table.dataTable th { vertical-align: middle; }
div.dt-processing { z-index: 5; }

/* Statistiche dashboard */
.fad-stat { transition: transform .15s ease, box-shadow .15s ease; color: inherit; }
.fad-stat:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.06); }
.fad-stat-icon { width: 36px; height: 36px; }

/* Branding preview */
.fad-brand-preview { width: 120px; height: 64px; border: 1px dashed var(--bs-border-color, #ccc); border-radius: 6px; display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; flex-shrink: 0; }
.fad-brand-preview.dark { background: #1e2235; }
.fad-brand-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Step wizard (installer, import) */
.fad-steps { display: flex; gap: .5rem; list-style: none; padding: 0; counter-reset: s; flex-wrap: wrap; }
.fad-steps li { counter-increment: s; padding: .35rem .8rem .35rem .45rem; border-radius: 99px; background: var(--bs-light, #f3f3f9); color: var(--bs-secondary-color, #6c757d); font-size: .875rem; }
.fad-steps li::before { content: counter(s); display: inline-flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; margin-right: .4rem; background: #fff; font-weight: 600; font-size: .75rem; }
.fad-steps li.active { background: var(--fad-primary); color: #fff; }
.fad-steps li.active::before { color: var(--fad-primary); }
.fad-steps li.done { background: rgba(25,135,84,.12); color: #198754; }

/* Login */
.fad-auth { background: var(--bs-tertiary-bg, #f5f6fa); }
.fad-auth-logo { max-height: 56px; max-width: 220px; object-fit: contain; }
.fad-install { background: var(--bs-tertiary-bg, #f5f6fa); }

/* Frontend pubblico */
.fad-public .fad-hero { background: linear-gradient(135deg, var(--fad-primary), #1e2235); color: #fff; padding: 5rem 0 4rem; }
.fad-public .fad-hero h1 { font-weight: 700; }
.fad-public .fad-course { transition: transform .15s ease; }
.fad-public .fad-course:hover { transform: translateY(-3px); }
.fad-public .navbar-brand img { max-height: 40px; }
