.form-col select, .dynamic-form select {
	padding: 10px 36px 10px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1em;
	background: #f8faff;
	margin-bottom: 4px;
	color: #333;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
	transition: border-color 0.2s;
	background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%231976d2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px 18px;
}

body {
	font-family: Arial, sans-serif;
	background: #f4f4f4;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

#main-layout {
	display: flex;
	min-height: 100vh;
	width: 100vw;
}

#sidebar {
	width: 200px;
	min-width: 200px;
	background: #2c3e50;
	box-shadow: 2px 0 8px rgba(0,0,0,0.2);
	z-index: 1000;
	transition: width 0.2s, min-width 0.2s;
}

#sidebar[style*="display: none"] {
	width: 0 !important;
	min-width: 0 !important;
	padding: 0 !important;
}

#app {
	flex: 1;
	background: #f4f4f4;
	padding: 32px;
	min-height: 100vh;
	box-sizing: border-box;
    margin-left: 200px !important;
}

/* Quando sidebar è rimossa, app prende tutto lo spazio */
#app.full-width {
    margin-left: 0 !important;
	width: 100vw;
	flex: none;
}

.placeholder {
	color: #888;
	text-align: center;
	font-size: 1.2em;
	margin-top: 40px;
}

/* Stili generali per form dinamici */
.dynamic-form {
	width: 100%;
	amax-width: 700px;
	margin: 0 auto;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px #0001;
	padding: 32px 24px 24px 24px;
	box-sizing: border-box;
}
.form-row {
	display: flex;
	gap: 24px;
	margin-bottom: 24px;
}
.form-col {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.form-col label {
	font-weight: bold;
	margin-bottom: 8px;
	color: #1976d2;
}
.form-col input,
.form-col textarea,
.form-col select,
.dynamic-form select {
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1em;
	background: #f8faff;
	margin-bottom: 4px;
	color: #333;
	box-sizing: border-box;
}

.form-col textarea {
	min-height: 2em;
	resize: vertical;
}

.form-col select,
.dynamic-form select {
	padding-right: 36px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
	transition: border-color 0.2s;
	background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%231976d2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px 18px;
}

.form-col select, .dynamic-form select {
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1em;
	abackground: #f8faff;
	margin-bottom: 4px;
	color: #333;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
	transition: border-color 0.2s;
}
.form-col select:focus, .dynamic-form select:focus {
	border-color: #1976d2;
	outline: none;
}
.dynamic-form button {
	background: #1976d2;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 10px 24px;
	font-size: 1em;
	cursor: pointer;
	margin-right: 16px;
	transition: background 0.2s;
}
.dynamic-form button:last-child {
	margin-right: 0;
}
.dynamic-form button:hover {
	background: #1565c0;
}