body{
	background-color: #f0f4f8;
	margin: 0;
	padding: 0;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	color: #334155;
}

.topcont{
	width:100%;
	height:40px;
	margin-bottom: 20px;
}

.destra{ 
	float: right;  
	display:flex;
	align-items: center;
	background-color: #e0f2fe;
	height:40px;
	border-bottom: 1px solid #bae6fd;
}

.sinistra{
	float: left;  
	display:flex;
	align-items: center;
	background-color: #e0f2fe;
	height:40px;
	border-bottom: 1px solid #bae6fd;
}
	
.centro{
	text-align:center;
}

input, img {
    vertical-align: middle;
} 

.login{
	background-color: #e0f2fe;
	border: 1px solid #bae6fd;
	color: #0c4a6e;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.2s;
}

.login:hover {
	background-color: #bae6fd;
}

/* Form di aggiunta */
.divadd{
	background: rgba(30, 20, 60, 0.4);
	backdrop-filter: blur(10px);
	border-radius: 12px;
	padding: 20px;
	margin: 20px auto;
	width: 80%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.divadd form {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.divadd label {
	color: #cbd5e1;
	font-weight: 500;
	font-size: 14px;
	min-width: 80px;
}

.divadd input[type="text"] {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	padding: 8px 12px;
	color: #cbd5e1;
	font-size: 14px;
	flex: 1;
	min-width: 150px;
}

.divadd input[type="text"]:focus {
	outline: none;
	border-color: rgba(139, 92, 246, 0.5);
	background: rgba(255, 255, 255, 0.15);
}

.divadd input[type="submit"] {
	background-color: #6366f1;
	border: none;
	border-radius: 6px;
	padding: 8px 20px;
	color: white;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s;
	font-size: 14px;
	height: 38px;
}

.divadd input[type="submit"]:hover {
	background-color: #4f46e5;
}

/* Container di login */
.login-container {
	background: white;
	border-radius: 8px;
	padding: 40px;
	margin: 100px auto;
	max-width: 400px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	border: 1px solid #e2e8f0;
}

.login-container h2 {
	color: #1e293b;
	text-align: center;
	margin-bottom: 30px;
	font-size: 24px;
	font-weight: 600;
}

.login-container label {
	display: block;
	color: #475569;
	font-weight: 500;
	margin-bottom: 6px;
	font-size: 14px;
}

.login-container input[type="text"],
.login-container input[type="password"] {
	width: 100%;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 10px 14px;
	color: #334155;
	font-size: 15px;
	margin-bottom: 16px;
	box-sizing: border-box;
	transition: border-color 0.2s;
}

.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
	outline: none;
	border-color: #6366f1;
	background: white;
}

.login-container button {
	width: 100%;
	background-color: #6366f1;
	border: none;
	border-radius: 6px;
	padding: 12px;
	color: white;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s;
	font-size: 15px;
}

.login-container button:hover {
	background-color: #4f46e5;
}

/* Pulsante Indietro */
input[type="submit"][value="Indietro"] {
	background-color: #e0f2fe;
	border: 1px solid #bae6fd;
	border-radius: 0;
	padding: 0 16px;
	color: #0c4a6e;
	font-weight: 500;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.2s;
	height: 40px;
	margin: 0;
}

input[type="submit"][value="Indietro"]:hover {
	background-color: #bae6fd;
}

.tabellaBella{
	width:80%;
	margin: 20px auto;
}

/* Stile moderno per tabella scura blu/viola translucida */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(30, 20, 60, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

thead {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.6), rgba(59, 130, 246, 0.6));
  backdrop-filter: blur(8px);
}

th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #e0e7ff;
  border-bottom: 2px solid rgba(139, 92, 246, 0.3);
}

tbody tr {
  transition: all 0.3s ease;
  background: rgba(17, 24, 39, 0.3);
}

tbody tr:nth-child(even) {
  background: rgba(30, 41, 59, 0.3);
}

tbody tr:hover {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
  transform: translateX(4px);
  box-shadow: inset 3px 0 0 rgba(139, 92, 246, 0.8);
}

td {
  padding: 14px 20px;
  color: #cbd5e1;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Effetto glow sui bordi */
table::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(45deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Icone */
input[type="image"] {
	transition: opacity 0.2s;
	opacity: 0.7;
}

input[type="image"]:hover {
	opacity: 1;
}