<?php
require_once("header.php");
require_once("left_sidebar.php");
?>
<link rel="stylesheet" href="vendors/datatables.net-bs4/dataTables.bootstrap4.css">
<link rel="stylesheet" href="vendors/jquery-toast-plugin/jquery.toast.min.css">
<style>/* Stili di base per la pagina */
.content-wrapper {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Stili per la card principale */
.card {
    background: #0c161c !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.card-title {
    color: #00ffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px !important;
}

/* Stili per la tabella */
.table {
    color: #ffffff !important;
    background: #0c161c !important;
}

.table thead th {
    background: #000000 !important;
    color: #00ffff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.table td, .table th {
    border-color: rgba(255, 255, 255, 0.1) !important;
    padding: 12px !important;
}

/* Stili per i badge di stato */
.badge-outline-success {
    color: #00ffaa !important;
    border: 1px solid #00ffaa !important;
}

.badge-outline-warning {
    color: #ffaa00 !important;
    border: 1px solid #ffaa00 !important;
}

.badge-outline-danger {
    color: #ff3366 !important;
    border: 1px solid #ff3366 !important;
}

/* Stili per i modali */
.modal-content {
    background: #0c161c !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Stili per i form */
.form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.form-control:disabled {
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Stili per i bottoni */
.btn-danger, .btn-success, .btn-primary, .btn-warning, .btn-info {
    background: linear-gradient(90deg, #00ffff, #ff00ff) !important;
    background-size: 200% 100% !important;
    border: none !important;
    color: white !important;
    font-weight: bold !important;
    animation: gradientAnimation 3s ease infinite !important;
    transition: all 0.3s ease !important;
}

.btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5) !important;
}

/* Stili per DataTables */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: #ffffff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #ffffff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(90deg, #00ffff, #ff00ff) !important;
    border: none !important;
    color: white !important;
}

/* Stili per le notifiche toast */
.jq-toast-wrap {
    background: #0c161c !important;
    color: #ffffff !important;
}

/* Animazione gradiente */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
/* Stile per la sidebar sinistra */
.sidebar {
    background: black !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Stile per i link della sidebar */
.sidebar .nav-item .nav-link {
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

.sidebar .nav-item .nav-link:hover {
    background: rgba(0, 255, 255, 0.1) !important;
    color: #00ffff !important;
}

/* Stile per l'icona e il testo del logo */
.sidebar .navbar-brand {
    background: #0c161c !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Stile per le divisioni tra i menu */
.sidebar .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Stile per le icone nella sidebar */
.sidebar .nav-link i {
    color: #00ffff !important;
}

/* Stile per l'item attivo */
.sidebar .nav-item.active .nav-link {
    background: linear-gradient(90deg, #00ffff20, transparent) !important;
    color: #00ffff !important;
}

/* Stile per il testo del menu */
.nav-link span {
    color: #ffffff !important;
}

/* Hover effect per i link */
.nav-link:hover span {
    color: #00ffff !important;
}

/* Stile per il separatore */
.sidebar-divider {
    border-color: rgba(255, 255, 255, 0.1) !important;
}
.navbar .navbar-brand-wrapper {
    border-right: 0px solid #000000;
}
</style>    
<div class="content-wrapper" style="background-color:#0c161c;">
	<div class="row">
        <div class="col-lg-12 stretch-card">
			<div class="card">
				<div class="card-body">
					<h4 class="card-title">IMPOSTAZIONI</h4>
					<div class="col-2">
						<form class="forms-sample " name="impostazioni_f" id="impostazioni_f">	
							<input type="hidden" name="azione" value="impostazioni">
							<div class="form-group">
								<label for="exampleFormControlSelect2">Test Abilitati:</label>
								<select class="form-control" id="abilita_test" name="abilita_test">
									<option value="0">NO</option>
									<option value="1">SI</option>											  
								</select>
							</div>
							<button type="submit" class="btn btn-success">CONFERMA</button>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script>
$( document ).ready(function() {	

	$( "#impostazioni_f" ).submit(function( e ) {   
		e.preventDefault();	
		var formData = new FormData($('#impostazioni_f')[0]);
		$.ajax({
			url: 'operazioni_aj.php', 
			type: 'POST',
			data: formData,
				success: function(data) {
					if (data =="OK") {
						NotificaSuccesso("Successo", "Impostazioni correttamente settate");
					} else {
						NotificaErrore("Attenzione Errori", data);
					}				
				},
				error: function(data) {
					NotificaScriptNonDisponibile();
				},
			cache: false,
			
			contentType: false,
			processData: false
		});
	});
});
</script>
<script src="vendors/jquery-toast-plugin/jquery.toast.min.js"></script>
<script src="js/notifiche.js"></script>
<script src="vendors/datatables.net/jquery.dataTables.js"></script>
<script src="vendors/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="vendors/progressbar.js/progressbar.min.js"></script>
<script src="js/progress-bar.js"></script>
<?php
require_once("footer.php");
?>
