:root{
	--lgray: #ccc;
	--vtif: #33c581;
}

a{
	color: var(--vtif);
	font-weight: 600;
}

a:link {
  text-decoration: none!important;
}

a:visited {
  text-decoration: none!important;
}

a:hover {
  text-decoration: none!important;
}

a:active {
  text-decoration: none!important;
}

.pointer{
	cursor: pointer;
}

input, select {
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid var(--lgray);
	background: #fff;
	height: 40px;
}


input[type=checkbox], input[type=radio] {
    height: auto;
}

.content{
	color: var(--gray);
}

.btn{
	height: 40px;
    border-radius: 0.75em!important;
	font-weight: 600!important;
}

.content.page .btn{
	background: var(--vtif);
	color: #fff;
	border: 1px solid var(--vtif);
}

.content.page .btn.btn-spec{
	color: var(--vtif);
	background: #fff;
	border: 1px solid var(--vtif);
}

.content.page .btn:hover{
	background: var(--vtif);
	color: #fff;
}

.content.page .btn.btn-spec:hover{
	background: #fff;
	color: var(--vtif);
}

.content.page .btn.dropdown-toggle{
	background: transparent;
	color: #000;
	border: 1px solid var(--lgray);
}

.ui-autocomplete {
    z-index: 9999!important;
}

/***LOADING ALERT AND MSG****/

.loading {
	display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.4);
    z-index: 999;
}

.loading img{
	width: 50px;
	margin: auto;
}

.alert-avviso, .msg-avviso{
	height: 100vh!important;
    width: 100vw;
	background: rgba(255,255,255,0.6);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

.alert-avviso, .msg-avviso{
	background: rgba(255, 255, 255, 0.9);
}

.alert-avviso .container, .msg-avviso .container{
	position: relative;
    display: table;
}

.alert-avviso .content, .msg-avviso .content{
    display: table-cell;
    vertical-align: middle;
    height: 100vh;
	text-align: center;
}

.alert-avviso .content a, .msg-avviso .content a{
    cursor: pointer;
}

.alert-avviso .txt-content, .msg-avviso .txt-content{
	font-size: 20px;
    text-align: center;
    font-weight: bold;
	display: inline-block;
}

.alert-avviso .txt-content{
    color: #dc3545;
}

.msg-avviso .txt-content{
    color: #28a745;
}

/***TYPO***/
.typo-1{
	font-size: 18px;
	font-weight: 600;
	color: var(--vtif);
}

/***TOP**/
.topbar {
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0px 0px 4px 0px rgb(0 0 0 / 28%);
    background-color: var(--vtif);
    min-height: 40px;
    padding: 0.5rem 1rem;
	z-index: 9999;
}

.topbar .title {
    text-align: center;
	color: #fff;
}

.topbar .backlink {
    position: absolute;
    left: 1em;
	top: 0.65em;
}

.topbar i {
    font-size: 20px;
	color: #fff;
}

/***NAV***/

nav.navbar.navbar-mobile{
	position: fixed;
    bottom: 0;
    width: 100%;
	box-shadow: 0px 0px 4px 0px rgb(0 0 0 / 28%);
	background-color: #fff;
	z-index: 9999;
}

nav.navbar.navbar-mobile i {
    font-size: 28px;
	color: var(--vtif);
}

.logo-hero{
	width: 100px;
}

.icons-lg {
    font-size: 4em;
	color: var(--vtif);
}

.icons-md {
    font-size: 3em;
	color: var(--vtif);
}

/***REGISTRA UTENTE***/

.termini-condizioni span{
	font-size: 12px;
}

/****MAPPA UTENTE ****/

#mappa{
	height: 300px;
}


/****MAPPA OPERATORE****/

#mappa-segnalazioni{
	height: 250px;
}

#mappa-segnalazione{
	height: 300px;
}


/*** INTERVENTI OPERATORE****/
.intervento, .segnalazione {
    padding: 0.5em 0.5em;
    border-radius: 0.5em;
    margin: 1em 0;
	box-shadow: 0px 0px 4px 0px rgb(0 0 0 / 25%);
	background-color: #fff;
}



.stato-1, .stato-3 {
    color: #f00;
}

.stato-2{
	color: var(--orange);
}

.stato-5{
	color: var(--purple);
}

.priorita-2{
	border: 2px solid #ffaa00;
    box-shadow: 0px 0px 4px 0px rgb(255 115 0 / 50%);
}

.priorita-3{
	border: 2px solid #f00;
    box-shadow: 0px 0px 4px 0px rgb(255 0 0 / 50%);
}


.segnalazione .custom-control-label {
	color: var(--lgray);
}

.custom-control-input:checked~.custom-control-label::before {
    color: #fff;
    border-color: var(--vtif)!important;
    background-color: var(--vtif)!important;
}

.custom-control-input:checked~.custom-control-label{
	color: var(--vtif);
}

.intervento{
	color: var(--vtif);
}

.intervento .row, .segnalazione .row{
	min-height: 80px;
}

.icona-intervento, .icona-segnalazione {
    font-size: 2em;
}

.dispositivo-intervento,  .dispositivo-segnalazione{
    font-size: 1.2em;
	font-weight: 600;
}

.comune-guasto, .dispositivo-guasto, .descrizione-intervento, .tipo-guasto {
    font-size: 0.8em;
}

.data-intervento, .data-segnalazione {
    font-size: 0.8em;
}

/***CLIENTE DISPOSITIVI***/
.dispositivo-container{
	display: none;
}


/***SUPERVISOR***/
.valori-consistenza-container, .supervisor-dispositivo .parent-container{
	display: none;
}



/***GSC***/
a.btn.btn-scelta.h-100.w-100.py-4 i {
    font-size: 2.5em;
    margin-bottom: 0.4em;
}

a.btn.btn-scelta.h-100.w-100.py-4 {
    min-height: 120px;
}

.bg-illuminazione{
	background-color: var(--vtif);
	border-color: var(--vtif);
}

.bg-idrico{
	background-color: #3396c5!important;
	border-color: #3396c5!important;
}

.bg-metano{
	background-color: #ffc107!important;
	border-color: #ffc107!important;
}

.bg-differenziata{
	background-color: #276e2b!important;
	border-color: #276e2b!important;
}

.bg-strada{
	background-color: #ccc!important;
	border-color: #ccc!important;
}

.bg-altro{
	background-color: #0346f4!important;
	border-color: #0346f4!important;
}

.bg-segnalazioni{
	background-color: #b346f4!important;
	border-color: #b346f4!important;
}

.bg-gray{
	background-color: var(--lgray);
	border-color: var(--lgray);
}

.content.page .btn.btn-lavorazione {
    color: #fff;
    background-color: #ffc107;
    border-color: #ffc107;
}

.content.page .btn.btn-contatta {
    color: var(--vtif);
    background-color: #fff;
    border-color: var(--vtif);
}

#chatbox { 
    width: 100%; 
    height: calc(100vh - 300px); 
    overflow-y: auto; 
    border: 1px solid #ccc; 
    padding: 10px; 
    background: #f9f9f9;
}

.user { color: blue; font-weight: 100; }

.assistant { color: green; font-weight: 100; }

.cliente-chatbot input {     
	width: calc(100% - 60px);
    padding: 5px;
    border-radius: 0px; 
}

.cliente-chatbot button { padding: 5px 10px; }

/* Stile del pannello */
#loading-panel-ai {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* semi-trasparente */
  color: white;
  font-size: 2em;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}

/* Stile animazione puntini */
.dots::after {
  content: '';
  display: inline-block;
  animation: dots 1.5s infinite steps(3);
}

@keyframes dots {
  0%   { content: ''; }
  33%  { content: '.'; }
  66%  { content: '..'; }
  100% { content: '...'; }
}