
/* =========================================================
   Override variabili CSS Bootstrap 5 da [COLOR] in config.ini
   Caricato DOPO bootstrap.min.css quindi sovrascrive.
   Le regole di colore sono scoped a :root:not([data-bs-theme])
   per non interferire con dark/light mode.
   ========================================================= */

/* font: si applica sempre, non è un colore */
:root { --bs-font-sans-serif: georgia,times,serif; }

/* colori del tema: solo in modalità default (nessun data-bs-theme) */
:root:not([data-bs-theme]) {
  --bs-primary:          #000088;
  --bs-secondary:        #646;
  --bs-success:          #202;
  --bs-danger:           #ffaaaa;
  --bs-light:            #84D7FF;
  --bs-dark:             black;
  --bs-body-color:       black;
  --bs-body-bg:          #1680D6;
  --bs-link-color:       #000088;
  --bs-link-hover-color: #000088;
  --bs-border-color:     #90a0a0;
}

/* body: solo in modalità default */
:root:not([data-bs-theme]) body {
  color:            black;
  background-color: #1680D6;
}

/* link: solo in modalità default */
:root:not([data-bs-theme]) a         { color: #000088;        text-decoration: none; }
:root:not([data-bs-theme]) a:visited { color: #0000f0; }
:root:not([data-bs-theme]) a:hover,
:root:not([data-bs-theme]) a:focus   { color: #000088;        text-decoration: underline; }

/* input/select/textarea: solo in modalità default */
:root:not([data-bs-theme]) .form-control,
:root:not([data-bs-theme]) .form-select,
:root:not([data-bs-theme]) textarea {
  background-color: #84D7F0;
}

/* modal background: solo in modalità default */
:root:not([data-bs-theme]) .modal-content {
  background-color: #1680D6;
  color: black;
}

/* ---- tooltip personalizzati ---- */
.tooltip-inner {
  text-align: left;
  background-color: #FFF3CD;
  color: #664D03;
  box-shadow: 0 0 7px #000;
  opacity: 1 !important;
}
.tooltip.bs-tooltip-end    .tooltip-arrow::before { border-right-color:  #FFF3CD !important; }
.tooltip.bs-tooltip-start  .tooltip-arrow::before { border-left-color:   #FFF3CD !important; }
.tooltip.bs-tooltip-bottom .tooltip-arrow::before { border-bottom-color: #FFF3CD !important; }
.tooltip.bs-tooltip-top    .tooltip-arrow::before { border-top-color:    #FFF3CD !important; }
/* alias BS 5.0.x */
.tooltip.bs-tooltip-right .tooltip-arrow::before { border-right-color:  #FFF3CD !important; }
.tooltip.bs-tooltip-left  .tooltip-arrow::before { border-left-color:   #FFF3CD !important; }
