	:root {
	  --sidebar-width: 260px;
	  --primary-color: #2c3e50;
	  --accent-color: #3498db;
	  --header-height: 60px;
	  --transition-speed: 0.3s;
	}

	html, body { height: 100%; margin: 0; overflow-x: hidden; }
	body { display: flex; flex-direction: column; font-family: 'Segoe UI', sans-serif; background: #f4f7f6; }
	#menu-toggle, .sub-toggle { display: none; }

header {
	height: var(--header-height);
	background: white;
	/*display: flex;*/
	align-items: center;
	padding: 10px 20px 0px 20px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	position: sticky;
	top: 0;
	z-index: 1000; /* Deve stare sopra la sidebar per essere cliccabile */
}

	header .logo {
	  margin-left: 0; /* Il margine è gestito dal gap dell'hamburger */
	  font-weight: bold;
	  color: var(--primary-color);
	}

	header .logo img {
			max-width: 150px; /* Impedisce al logo di essere troppo grande */
			height: auto; /* Mantiene le proporzioni */
		}

/* --- LOGICA MOBILE (< 934px) --- */
@media (max-width: 934px) {
	header #benvenuto {
		display: none;
	}

	header #logo_azienda {
		display: none;
	}
}


	.hamburger {
	  cursor: pointer;
	  display: flex;
	  flex-direction:column;
	  justify-content:center;
	  gap: 5px;
	  width: 30px;
	  height: 30px;
	  margin-right: 15px;
	  z-index: 1001; /* Sopra l'header */
	}

	.hamburger span {
	  display: block;
	  width: 25px;
	  height: 3px;
	  background: #2c3e50; /* Colore scuro per vederlo su sfondo bianco */
	  transition: 0.3s;
	  border-radius: 2px;
	}

	/* Cambiamo il colore delle linee quando il menu è aperto*/
	#menu-toggle:checked ~ header .hamburger span {
	  background: var(--primary-color); /* Resta scuro o cambia colore */
	}



    /* --- SIDEBAR --- */
    .sidebar {
      position: fixed; top: 0; left: calc(-1 * var(--sidebar-width));
      width: var(--sidebar-width); height: 100%;
      background: var(--primary-color); color: white;
      transition: var(--transition-speed) ease;
      z-index: 99; padding-top: 60px; overflow-y: auto;
    }
    /* --- LOGICA APERTURA (MOBILE E DESKTOP) --- */
    #menu-toggle:checked ~ .sidebar { left: 0; }

    /* Stili Menu (Icone e Sottolivelli) */
    .sidebar ul { list-style: none; padding: 0; }
    .sidebar li a, .sidebar li label {
      display: flex; align-items: center; padding: 15px 20px;
      color: #ecf0f1; text-decoration: none; cursor: pointer;
    }
    .sidebar li i:first-child { width: 25px; margin-right: 15px; color: var(--accent-color); }
    .submenu { max-height: 0; overflow: hidden; background: #1a252f; transition: max-height 0.3s; }
    .sub-toggle:checked ~ .submenu { max-height: 200px; }
    .arrow { margin-left: auto; transition: 0.3s; }
    .sub-toggle:checked ~ label .arrow { transform: rotate(180deg); }
	
    /* Animazione Hamburger */
	/* Quando il checkbox è selezionato, trova l'header e poi l'hamburger al suo interno */
	#menu-toggle:checked ~ header .hamburger span:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}

	#menu-toggle:checked ~ header .hamburger span:nth-child(2) {
	  opacity: 0;
	}

	#menu-toggle:checked ~ header .hamburger span:nth-child(3) {
	  transform: translateY(-8px) rotate(-45deg);
	}



    /* --- CONTENUTO E FOOTER --- */
    main, footer {
      flex: 1; transition: margin-left var(--transition-speed);
      padding: 0px 20px 0px 20px;
    }
    footer { flex: 0; 	flex-shrink: 0; background: white; border-top: 1px solid #eee; }
	

	/* Stili specifici per i contenuti interni */
	.stat { font-weight: bold; display: flex; align-items: center; gap: 10px; }
	.stat i { color: var(--accent-color); font-size: 1.2rem; }

	.placeholder-graphic {
	  height: 150px;
	  background: linear-gradient(45deg, #eee 25%, #f9f9f9 50%, #eee 75%);
	  border-radius: 5px;
	}

	.simple-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
	.simple-table td { padding: 8px 0; border-bottom: 1px solid #eee; font-size: 0.9em; }




/**********************************************************/
/*PULSANTI AZIONE */
/**********************************************************/
/* Singoli elementi del menu */
/* Contenitore dropdown */
.dropdown {
	position: relative;
	display: inline-block;
}

/* Menu nascosto di default */
.dropdown-menu {
	display: none;
	position: absolute;
	right: 0;
	top: 40px;
	background-color: none;
	min-width: 60px;
	box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
	z-index: 100;
	border-radius: 8px;
	border: none;
}

	/* Classe per mostrare il menu */
	.dropdown-menu.show {
		display: flex;
		flex-direction: column;
	}

/* Singoli elementi del menu */
.dropdown-item {
	padding: 10px 15px;
	text-align: left;
	background: none;
	border: none;
	width: 100%;
	cursor: pointer;
	font-size: 14px;
}

	.dropdown-item:hover {
		background-color: #f5f5f5;
	}

	.dropdown-item.delete {
		color: #d32f2f;
	}

hr {
	border: 0;
	border-top: 1px solid #eee;
	margin: 5px 0;
}
/**********************************************************/
/**********************************************************/
/**********************************************************/


/**********************************************************/
/*GRAFICI A BARRE */
/**********************************************************/
	.chart-container {
	  display: flex;
	  align-items: flex-end; /* Allinea le barre alla base */
	  justify-content: space-between;
	  height: 200px;
	  padding-top: 20px;
	  margin-top: 10px;
	  border-bottom: 2px solid #eee;
	}

	.bar {
	  width: 12%;
	  background: var(--accent-color);
	  border-radius: 4px 4px 0 0;
	  position: relative;
	  /* L'altezza viene calcolata moltiplicando la variabile per 100% */
	  height: calc(var(--size) * 100%);
	  transition: height 0.6s ease-out;
	}

	.bar:hover {
	  background: var(--primary-color);
	}

	/* Etichette sotto le barre (Giorni) */
	.bar::after {
	  content: attr(data-label);
	  position: absolute;
	  bottom: -25px;
	  left: 50%;
	  transform: translateX(-50%);
	  font-size: 0.75rem;
	  color: #666;
	}

	/* Tooltip con valore (opzionale) */
	.bar:hover::before {
	  content: calc(var(--size) * 100) "%";
	  position: absolute;
	  top: -25px;
	  left: 50%;
	  transform: translateX(-50%);
	  background: #333;
	  color: white;
	  padding: 2px 6px;
	  border-radius: 4px;
	  font-size: 0.7rem;
	}
/**********************************************************/
/**********************************************************/
/**********************************************************/

/**********************************************************/
/* Lista Record */
/**********************************************************/
	.responsive-list 
	{
	  width: 100%;
	  margin-top: 15px;
	}
	.list-header, .list-row {
	  display: grid;
	  /* Definisci le larghezze delle 5 colonne */
	  grid-template-columns: 2fr 1fr 1fr 1fr 80px;
	  padding: 12px 15px;
	  align-items: center;
	}

	.list-header {
	  background: #f8f9fa;
	  font-weight: bold;
	  color: var(--primary-color);
	  border-radius: 8px;
	  margin-bottom: 5px;
	}

	.list-row {
	  border-bottom: 1px solid #eee;
	  transition: background 0.2s;
	}

	.list-row:hover { background: #fdfdfd; }

.list-controls {
	display: flex;
	justify-content: flex-start;
	align-items: end;
	gap: 5px;
	margin-bottom: 0px;
	flex-wrap: wrap; /* Fondamentale per il responsive */
	padding : 15px;
	border: 1px solid #ddd;
	border-radius: 10px;
	background: white;
	box-shadow: 0 4px 6px rgba(0,0,0,0.05);
	border-left: 4px solid var(--accent-color); /* Un tocco di design */

}

.list-buttons {
	display: flex;
	justify-content: left;
	align-items: center;
	gap: 5px;
	margin-bottom: 0px;
	flex-wrap: wrap; /* Fondamentale per il responsive */
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 10px;
	background: white;
	box-shadow: 0 4px 6px rgba(0,0,0,0.05);
	border-left: 4px solid var(--accent-color); /* Un tocco di design */
}
	
	/* --- LOGICA MOBILE (< 768px) --- */
@media (max-width: 768px) {
	.list-header {
		display: none;
	}
	/* Nascondi intestazione tabellare */

	.list-row {
		display: block; /* Trasforma la riga in un blocco */
		padding: 15px;
		border: 1px solid #eee;
		border-radius: 10px;
		margin-bottom: 15px;
	}

		.list-row div {
			display: flex;
			justify-content: space-between;
			padding: 8px 0;
			border-bottom: 1px dashed #eee;
		}

			.list-row div:last-child {
				border-bottom: none;
			}

			/* Inserisce il nome della colonna preso da data-label */
			.list-row div::before {
				content: attr(data-label);
				font-weight: bold;
				color: #888;
				margin-right: 10px;
			}
	}
/**********************************************************/
/**********************************************************/
/**********************************************************/

/**********************************************************/
/* TABELLE DINAMICHE */
/**********************************************************/

.table-wrapper {
	width: 100%;
	overflow-x: auto;
	background: white;
	border-radius: 8px;
}

.dynamic-table {
	/* Se hai molte colonne, aumenta questo valore per attivare lo scroll */
	min-width: 900px;
	display: block;
}

.d-row {
	display: grid;
	/* La magia: usa la variabile definita nell'HTML o 1 di default */
	grid-template-columns: repeat(var(--cols, 1), 1fr);
	width: 100%;
	border-bottom: 1px solid #eee;
}

	.d-row.header {
		background: #f8f9fa;
		font-weight: bold;
		border-bottom: 2px solid #ddd;
		position: sticky;
		top: 0;
	}

.d-cell {
	text-align: center;
	padding: 5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.a-cell {
	text-align:center;
	padding: 5px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* --- RESPONSIVE PER DATI DINAMICI --- */
@media (max-width: 900px) {

	@media (max-width: 900px) {
		.table-wrapper {
			overflow-x: visible;
		}

		.dynamic-table {
			min-width: 0;
		}

		.d-row.header {
			display: none; /* Nascondiamo l'header tabellare */
		}

		.d-row {
			display: block; /* La riga diventa una card */
			margin-bottom: 15px;
			border: 1px solid #eee;
			padding: 10px;
		}

		.d-cell {
			display: flex;
			justify-content: space-between;
			padding: 8px 0;
			border-bottom: 1px dashed #eee;
		}

			.d-cell::before {
				content: attr(data-label);
				font-weight: bold;
				color: #888;
			}
	}

}
/**********************************************************/
/**********************************************************/
/**********************************************************/

/**********************************************************/
/* Badge e Bottoni */
/**********************************************************/
	.badge {
	  padding: 4px 8px;
	  border-radius: 12px;
	  font-size: 0.75rem;
	  font-weight: bold;
	}
	.online { background: #e8f5e9; color: #2e7d32; }
	.offline { background: #ffebee; color: #c62828; }

	.btn-edit {
	  background: none; border: 1px solid #ddd;
	  padding: 5px 10px; border-radius: 4px; cursor: pointer;
	  color: var(--primary-color);
	}

.btn-link {
	display: inline-block;
	padding: 10px 10px 10px 10px;
	margin-left: 5px;
	background-color: #007bff;
	color: white;
	text-decoration: none; /* Rimuove la sottolineatura del link */
	border-radius: 5px;
	font-weight: bold;
	text-align: center;
	font-size: small;
}

		.btn-link:hover {
			background-color: #0056b3;


			.action-buttons {
				display: flex;
				gap: 10px;
			}

			.btn-filter, .btn-add {
				padding: 10px 18px;
				border-radius: 8px;
				cursor: pointer;
				font-weight: 600;
				display: flex;
				align-items: center;
				gap: 8px;
				transition: 0.3s;
				font-size: 0.9rem;
			}

			.btn-filter {
				background: white;
				border: 1px solid #ddd;
				color: #555;
			}

				.btn-filter:hover {
					background: #f8f9fa;
				}

			.btn-add {
				background: var(--accent-color);
				border: none;
				color: white;
			}

				.btn-add:hover {
					background: #2980b9;
				}

			.btn-secondary {
				background: #eee;
				border: none;
				padding: 10px 20px;
				border-radius: 6px;
				cursor: pointer;
			}

			.btn-primary {
				background: var(--accent-color);
				color: white;
				border: none;
				padding: 10px 20px;
				border-radius: 6px;
				cursor: pointer;
			}
		}

/**********************************************************/
/**********************************************************/
/**********************************************************/

/**********************************************************/
/* BOX ricerca */
/**********************************************************/
	.search-box {
	  position: relative;
	  /*flex: 1;*/
	  min-width: 250px;
	}

	.search-box i {
	  position: absolute;
	  left: 15px;
	  top: 50%;
	  transform: translateY(-50%);
	  color: #888;
	}

		.search-box input, .search-box select {
			width: 100%;
			padding: 5px 5px 5px 5px;
			border: 1px solid #ddd;
			border-radius: 8px;
			font-size: 0.95rem;
			transition: border-color 0.3s, box-shadow 0.3s;
			box-sizing: border-box;
		}

			.search-box input:focus, .search-box select:focus {
				outline: none;
				border-color: var(--accent-color);
				box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
			}
	
	@media (max-width: 600px) 
	{
	  .search-box, .action-buttons {
		width: 100%;
	  }
	  .btn-filter, .btn-add {
		flex: 1;
		justify-content: center;
	  }
	}
/**********************************************************/
/**********************************************************/
/**********************************************************/



/**********************************************************/
/* Notifiche */
/**********************************************************/
.notification-container {
  position: fixed;
  top: 80px; /* Sotto l'header */
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification {
  display: flex;
  align-items: center;
  min-width: 300px;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-left: 5px solid;
  animation: slideIn 0.5s ease-out forwards;
}

/* Tipi di notification */
.notification.success { border-left-color: #2ecc71; }
.notification.success i { color: #2ecc71; }

.notification.error { border-left-color: #e74c3c; }
.notification.error i { color: #e74c3c; }

.notification i { font-size: 1.5rem; margin-right: 15px; }

.notification-content strong { display: block; font-size: 0.9rem; }
.notification-content p { margin: 0; font-size: 0.8rem; color: #666; }

/* Logica di chiusura */
.notification-check { display: none; }
.notification-check:checked + .notification {
  display: none;
}

.notification-close {
  margin-left: auto;
  cursor: pointer;
  font-size: 1.2rem;
  color: #ccc;
}

/* Animazione di entrata */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.notification::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(0,0,0,0.1);
  animation: progress 5s linear forwards;
}

@keyframes progress {
  from { width: 100%; }
  to { width: 0%; }
}
/**********************************************************/
/**********************************************************/
/**********************************************************/


/**********************************************************/
/* Gestione INPUT */
/**********************************************************/
.responsive-form {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: grid;
  gap: 20px;
}

.pulsanti {
	padding: 12px;
	background-color: #007bff;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-weight: bold;
	transition: background 0.3s;
}

	.pulsanti:hover {
		background-color: #0056b3;
	}

	/* Container generico per ogni riga */
.row {
	display: grid;
	gap: 5px;
	margin-bottom: 20px;
}

/*container per form di input */
.row-form {
	display: grid;
	gap: 5px;
	margin-bottom: 20px;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

	/* Riga a 4 colonne: ideale per statistiche brevi */
	.row-4 {
	  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}

	/* Riga a 2 colonne: ideale per contenuti complessi (tabelle/grafici) */
	.row-2 {
	  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	}

	/* Riga a 3 colonne: bilanciata */
	.row-3 {
	  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	}

	/* Stile comune per i riquadri */
	.card {
	  background: white;
	  padding: 20px;
	  border-radius: 10px;
	  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
	  border-left: 4px solid var(--accent-color); /* Un tocco di design */
	}

/* Stile dei gruppi di input */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: 10px;
	margin-bottom: 10px;
}
.form-group-row
{
	display: flex;
	flex-direction: row;
	gap: 2px;
	margin-right: 10px;
	margin-bottom: 10px;
}

.form-group label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--primary-color);
}

.form-group input, 
.form-group textarea,
.form-group select,
.form-group checkbox
{
  padding: 5px 6px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Pulsanti in fondo */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

/* --- RESPONSIVE FORM (< 768px) --- */
@media (max-width: 768px) {
 
  .form-actions {
    flex-direction: column-reverse; /* Pulsante Salva sopra Annulla su mobile */
  }
  
  .form-actions button {
    width: 100%;
  }
}

/****************************************************/
/* PAGINAZIONE*/
/****************************************************/
.pagination-container {
	margin-top: 20px;
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
}

	.pagination-container button {
		padding: 8px 14px;
		border: 1px solid #007bff;
		background-color: white;
		color: #007bff;
		border-radius: 4px;
		cursor: pointer;
		font-weight: 500;
		transition: all 0.2s;
	}

		.pagination-container button:hover {
			background-color: #f0f7ff;
		}

		.pagination-container button.active {
			background-color: #007bff;
			color: white;
			cursor: default;
		}

.page-info {
	margin-right: 15px;
	font-size: 0.9em;
	color: #666;
}
/****************************************************/
/****************************************************/
/****************************************************/

   /* --- MEDIA QUERY DESKTOP: SPOSTAMENTO CONTENUTO --- */
    @media (min-width: 992px) 
	{
      /* Se il menù è aperto su desktop, sposta tutto a destra */
      #menu-toggle:checked ~ header,
      #menu-toggle:checked ~ main,
      #menu-toggle:checked ~ footer {
        margin-left: var(--sidebar-width);
      }
      /* Rimuoviamo l'overlay su desktop perché vogliamo interagire col contenuto anche a menù aperto */
      .overlay { display: none; }
    }

    /* --- MEDIA QUERY MOBILE: OVERLAY --- */
    @media (max-width: 991px) 
	{
      .overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.4); backdrop-filter: blur(3px);
        visibility: hidden; opacity: 0; transition: var(--transition-speed); z-index: 90;
      }
      #menu-toggle:checked ~ .overlay { visibility: visible; opacity: 1; }
    }
	
	@media (max-width: 600px) 
	{
	  .simple-table thead {
		display: none; /* Nascondi l'intestazione su mobile */
	  }
	  
	  .simple-table tr {
		display: block;
		margin-bottom: 10px;
		border: 1px solid #eee;
		padding: 10px;
		border-radius: 8px;
	  }
	  
	  .simple-table td {
		display: flex;
		justify-content: space-between;
		border: none;
		padding: 5px 0;
	  }

	  /* Aggiungi un'etichetta prima del dato su mobile */
	  .simple-table td::before {
		content: attr(data-label);
		font-weight: bold;
		color: var(--primary-color);
	  }
	}


/****************************************************/
/* Contenitore dei messaggi */
/****************************************************/
#toast-container {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 9999;
}

.toast {
	min-width: 250px;
	background-color: #333;
	color: #fff;
	padding: 16px;
	border-radius: 8px;
	margin-top: 10px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	display: flex;
	justify-content: space-between;
	align-items: center;
	animation: slideIn 0.4s ease-out;
}

	.toast.success {
		background-color: #4CAF50;
	}

	.toast.error {
		background-color: #f44336;
	}

	.toast.info {
		background-color: #2196F3;
	}

@keyframes slideIn {
	from {
		transform: translateX(100%);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.toast-fade-out {
	animation: slideOut 0.4s ease-in forwards;
}

@keyframes slideOut {
	from {
		transform: translateX(0);
		opacity: 1;
	}

	to {
		transform: translateX(100%);
		opacity: 0;
	}
}
/****************************************************/
/****************************************************/
/****************************************************/


/****************************************************/
/********* LOGIN *********/
/****************************************************/


/* Centra la form nella pagina */
.login-wrapper {
	position: fixed; /* Blocca il contenitore sullo schermo */
	top: 50%; /* Sposta il bordo superiore al 50% dell'altezza */
	left: 50%; /* Sposta il bordo sinistro al 50% della larghezza */
	transform: translate(-50%, -50%); /* Corregge la posizione centrando l'elemento sul suo stesso asse */
	width: 100%;
	max-width: 400px; /* La larghezza massima del tuo box */
	z-index: 9999; /* Lo tiene sopra qualsiasi altro elemento della pagina */
}

.login-container {
	background-color: #ffffff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	width: 100%;
	max-width: 400px;
	/*
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	background-color: #f0f2f5;
		*/
}

	.login-container h2 {
		margin-bottom: 20px;
		color: #333;
		text-align: center;


	}


.form-group-login {
	margin-bottom: 15px;
}

	.form-group-login label {
		display: block;
		margin-bottom: 5px;
		color: #666;
		font-size: 14px;
	}

	.form-group-login input {
		width: 100%;
		padding: 10px;
		border: 1px solid #ccc;
		border-radius: 4px;
		font-size: 16px;
		outline: none;
		transition: border-color 0.3s;
	}

		.form-group-login input:focus {
			border-color: #007BFF;
		}

.btn-login {
	width: 100%;
	padding: 12px;
	background-color: #007BFF;
	border: none;
	border-radius: 4px;
	color: white;
	font-size: 16px;
	cursor: pointer;
	font-weight: bold;
	transition: background-color 0.3s;
}

	.btn-login:hover {
		background-color: #0056b3;
	}

.options-login {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 15px;
	font-size: 14px;
}

	.options-login a {
		color: #007BFF;
		text-decoration: none;
	}

		.options-login a:hover {
			text-decoration: underline;
		}

/****************************************************/
/****************************************************/
/****************************************************/



/*
.login-form {
	display: grid;
	grid-template-columns: 1fr;
	gap: 15px; 
	width: 100%;
	max-width: 400px;
	padding: 30px;
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}*/

h2 {
	text-align: center;
	margin-bottom: 10px;
	font-family: sans-serif;
}

label {
	font-family: sans-serif;
	font-weight: bold;
	font-size: 0.9rem;
}

input {
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 1rem;
}

button {
	padding: 12px;
	background-color: #007bff;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-weight: bold;
	transition: background 0.3s;
}

	button:hover {
		background-color: #0056b3;
	}


/* Modale */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); }
.modal-content { position:relative;background: white; margin: 5% auto; padding: 25px; border-radius: 12px; width: 90%; max-width: 90%; }
/* Il contenitore che ospita l'iframe */
.container-iframe {
	width: 100%; /* Prende la larghezza della colonna in cui si trova */
	/*max-width: 1200px;*/ /* O la larghezza della tua maschera */
	margin: 0 auto;
	overflow: hidden; /* Evita che l'iframe "sbordi" prima del ridimensionamento */
	border: 1px solid #ccc; /* Opzionale, per vedere dove finisce */
}

#IframeData, #IframeLista {
	width: 100%;
	border: none;
	display: block; /* Toglie lo spazio bianco sotto l'iframe */
	aspect-ratio: 16/9;
}

.close-btn {
    position: absolute;
    top: -9px;
    right: 0px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    line-height: 1;
}

.close-btn:hover {
	color: red; /* Feedback visivo al passaggio del mouse */
}


/**********LOADER *********/
/* Il contenitore che copre tutto lo schermo */
#loader-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #ffffff; /* Sfondo bianco */
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	z-index: 9999; /* Assicura che sia sopra ogni elemento */
	transition: opacity 0.5s ease;
}

/* Lo spinner vero e proprio */
.loader {
	border: 8px solid #f3f3f3;
	border-top: 8px solid #3498db; /* Colore del caricamento */
	border-radius: 50%;
	width: 60px;
	height: 60px;
	animation: spin 1s linear infinite;
}

/* Animazione di rotazione */
@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}