/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

/* Header Styles */
header.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    color: #000;
    padding: 10px 20px;
    position: relative;
    min-height: 80px;
    height: auto;
    overflow: visible;
}

/* Logo a sinistra */
.admin-header .logo img {
    max-width: 250px;
    height: auto;
    object-fit: contain;
}

/* Immagine centrale */
.admin-header .center-image {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: 100%;
    height: auto;
}

.admin-header .center-image img {
    width: 250px;
    height: auto;
    object-fit: contain;
}

/* Area logout a destra */
.admin-header .header-right {
    display: flex;
    align-items: center;
}

.admin-header .header-right .logout-btn {
    background-color: #e74c3c;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.admin-header .header-right .logout-btn:hover {
    background-color: #c0392b;
}

/* Barra informativa sotto l'header */
.admin-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #34495e;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
}

/* Top Image */
.top-image {
    width: auto;
    height: auto;
    margin: 20px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px;
    text-align: center; /* Center content */
}


h1.page-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
    text-align: center; /* Center the title */
}

.alert {
    margin: 20px auto;
    padding: 15px;
    color: #ffffff;
    background-color: #28a745;
    border-radius: 8px;
    width: 80%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    text-align: center;
}

/* Statistics Container */
.statistiche-container {
    display: flex;
    justify-content: center; /* Centra le card orizzontalmente */
    padding: 20px;
    gap: 20px;
}

/* Individual Statistics Card */
.statistiche-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 30%; /* Set each card to occupy 30% of the container width */
    box-sizing: border-box; /* Include padding and border in width */
    text-align: left; /* Align text to the left */
}

/* Statistics Table */
.statistiche-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.statistiche-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
    color: #333;
}

.statistiche-table td:last-child {
    font-weight: bold;
    text-align: right; /* Align the values to the right */
}

.statistiche-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    text-transform: uppercase;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .statistiche-container {
        flex-direction: column; /* Stack cards vertically on smaller screens */
        align-items: center;
    }

    .statistiche-card {
        width: 100%; /* Full width for each card */
        margin-bottom: 20px;
    }
}
 .admin-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: #2c3e50;
            color: white;
            padding: 10px 20px;
            position: relative;
        }

        .admin-header .logo img {
            height: 50px;
        }

        .admin-header .center-image {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
        }

        .admin-header .center-image img {
             width: 300px;
			height: auto;
        }

        .admin-header .header-right {
            display: flex;
            align-items: center;
        }

        .admin-header .header-right .logout-btn {
            background-color: #e74c3c;
            color: white;
            padding: 5px 15px;
            text-decoration: none;
            border-radius: 5px;
            font-size: 14px;
        }

        .admin-header .header-right .logout-btn:hover {
            background-color: #c0392b;
        }

        .admin-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: #34495e;
            color: white;
            padding: 10px 20px;
            font-size: 14px;
        }


.btn {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}
.btn-primary {
    background-color: #007bff; /* Colore blu brillante */
    color: white; /* Testo bianco */
    padding: 10px 20px; /* Spaziatura interna */
    border: none; /* Rimuove il bordo */
    border-radius: 5px; /* Angoli arrotondati */
    cursor: pointer; /* Mostra il cursore a forma di mano */
    font-weight: bold; /* Testo in grassetto */
    font-size: 16px; /* Dimensione del testo */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Aggiunge un'ombra */
}

.btn-primary:hover {
    background-color: #0056b3; /* Colore più scuro quando il mouse è sopra */
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #a71d2a;
}
.task-run-btn svg {
    vertical-align: middle;
    margin-right: 6px;
}
.data-table tbody tr {
    border-bottom: 1px solid #ddd; /* Riga di separazione grigia */
}

.data-table tbody tr:last-child {
    border-bottom: none; /* Rimuove il bordo sotto l'ultima riga */
}

.data-table {
    border-collapse: collapse; /* Rimuove gli spazi tra i bordi delle celle */
    width: 100%; /* Assicura che la tabella occupi l'intero spazio disponibile */
}

.data-table td,
.data-table th {
    padding: 10px; /* Spaziatura interna */
    text-align: left; /* Allinea il contenuto a sinistra */
}

.pdf-link-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.pdf-link-icon--leasys {
    filter: none;
    background-color: #2e9f44;
    border-radius: 3px;
    padding: 1px;
    box-shadow: 0 0 0 1px #1f6f30 inset;
}

.form-group-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

/* Footer Styles */
footer {
    background-color: #2c3e50; /* Dark gray background */
    color: white; /* White text color */
    text-align: center; /* Center the text */
    padding: 20px; /* Add some padding */
    font-size: 14px; /* Slightly smaller font size */
    box-shadow: 0px -2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow on top */
    border-top: 2px solid #e0e0e0; /* Optional border on top */
}

footer p {
    margin: 0; /* Remove default margin */
    line-height: 1.5; /* Better spacing for text */
}

footer a {
    color: #007bff; /* Link color */
    text-decoration: none; /* Remove underline */
}

footer a:hover {
    color: #0056b3; /* Darker blue on hover */
    text-decoration: underline; /* Add underline on hover */
}





/* Stili generali per tutti i form */
/* Form Styles */
form {
	align-content: center;
    margin: 0; /* Remove centering margin */
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Stili specifici per il Form 1: Inserisci Bolla */
#form-bolla {
    max-width: 800px; /* Larghezza massima del form */
    background-color: #f8f9fa; /* Sfondo grigio chiaro */
    border: 2px solid #007bff; /* Bordo blu */
    border-radius: 8px; /* Angoli arrotondati */
    padding: 20px; /* Spazi interni */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombra */
    margin: 20px auto; /* Centra il form orizzontalmente e aggiunge margine sopra/sotto */
    display: flex;
    flex-direction: column; /* Posiziona gli elementi del form in verticale */
    align-items: center; /* Centra gli elementi all'interno */
    justify-content: center; /* Centra gli elementi verticalmente */
    text-align: center; /* Centra il testo */
    box-sizing: border-box; /* Include il padding nel calcolo della larghezza */
}

#form-bolla .form-group label {
    color: #007bff; /* Testo blu */
    font-weight: bold;
}

#form-bolla button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

#form-bolla button:hover {
    background-color: #0056b3;
}

/* Stile specifico per il form Anagrafica */
#form-anagrafica {
    width: 100%; /* Occupa il 100% del contenitore */
    margin: 20px auto; /* Centra il form orizzontalmente */
    padding: 20px; /* Aggiungi spazi interni */
    background-color: #ffffff; /* Sfondo bianco */
    border-radius: 8px; /* Angoli arrotondati */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombra */
    border: 1px solid #ddd; /* Bordo sottile */
    box-sizing: border-box; /* Include padding e bordo nel calcolo della larghezza */
    overflow: hidden; /* Evita lo sbordamento */
}

#form-anagrafica label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

#form-anagrafica input[type="text"],
#form-anagrafica input[type="email"],
#form-anagrafica textarea {
    width: 100%; /* Occupa il 100% della larghezza del form */
    padding: 10px;
    margin-bottom: 10px; /* Spazio tra gli input */
    border: 1px solid #ddd; /* Bordo sottile */
    border-radius: 4px; /* Angoli arrotondati */
    font-size: 16px;
    background: #f9f9f9; /* Sfondo leggero */
    box-sizing: border-box; /* Evita lo sbordamento */
}

#form-anagrafica input:focus,
#form-anagrafica textarea:focus {
    border-color: #007bff; /* Evidenzia l'input al focus */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3); /* Ombra al focus */
    outline: none;
}

#form-anagrafica button {
    margin-top: 20px; /* Spazio sopra il pulsante */
    padding: 10px 20px;
    background-color: #007bff; /* Colore pulsante */
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%; /* Larghezza pulsante uguale al form */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Aggiungi ombra */
    text-transform: uppercase;
}

#form-anagrafica button:hover {
    background-color: #0056b3; /* Colore hover */
}

/* General Wrapper for Login */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

/* Login Box Styling */
.login-box {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Login Logo */
.login-logo {
    width: 100%; /* Adatta al contenitore */
    max-width: 300px; /* Limita la larghezza massima */
    height: auto;
    margin-bottom: 20px;
}

/* Login Title */
.login-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #007bff; /* Bright blue */
}

/* Error Message */
.login-error {
    color: #dc3545; /* Red color */
    background-color: #f8d7da; /* Light red background */
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb; /* Red border */
    border-radius: 4px;
}

/* Login Form Group */
.login-form-group {
    margin-bottom: 15px;
}

/* Login Input Fields */
.login-input,
.login-btn {
    width: 100%; /* Larghezza piena */
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    box-sizing: border-box; /* Assicura il corretto calcolo della larghezza */
}

/* Differenza visiva tra input e pulsante */
.login-input {
    margin-bottom: 10px; /* Spazio tra i campi */
    background-color: #f9f9f9;
}

.login-input:focus {
    border-color: #007bff; /* Colore del bordo al focus */
    outline: none;
}

/* Login Button */
.login-btn {
    background-color: #007bff;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.login-btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-box {
        padding: 20px;
    }

    .login-title {
        font-size: 20px;
    }

    .login-logo {
        max-width: 200px; /* Riduce il logo su schermi piccoli */
    }
}

/* Sidebar */
aside.sidebar {
    width: 260px;
    background: #f8f9fa;
    color: #333;
    padding: 10px;
    border-right: 2px solid #e0e0e0;
    box-sizing: border-box;
}

/* Menu principale */
aside.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

aside.sidebar ul li {
    position: relative;
    transition: background 0.3s, transform 0.3s;
}

/* Stile link del menu principale */
aside.sidebar ul li a {
    display: block;
    padding: 12px 15px;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

/* Effetto Hover */
aside.sidebar ul li a:hover {
    background: #e9ecef;
    color: #000;
}

/* Submenu (inizialmente nascosto) */
.submenu {
    display: none;
    list-style: none;
    padding-left: 20px;
    background: #f1f3f5;
    border-left: 2px solid #dee2e6;
    margin: 0;
}

/* Stile degli elementi del submenu */
.submenu li a {
    font-size: 14px;
    color: #555;
    padding: 10px 15px;
    display: block;
    transition: background 0.3s, color 0.3s;
}

/* Effetto Hover sugli elementi del submenu */
.submenu li a:hover {
    background: #dee2e6;
    color: #333;
}

/* Quando il menu è attivo, mostra il submenu */
li.active > .submenu {
    display: block !important;
}


.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 400px;
    max-width: 90%;
    background: white;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
    display: none; /* Nasconde di default */
    z-index: 1001; /* MAGGIORE DELL'OVERLAY */
    border-radius: 8px;
    opacity: 0; /* Nasconde il modale inizialmente */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Quando il modale è attivo, lo mostriamo */
.modal.active {
    display: block !important;
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* Overlay visibile */
.modal-overlay.active {
    display: block !important;
}

/* Pulsante Depannaggio */
.btn-depannaggio {
    background-color: #28A745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
}

.btn-depannaggio:hover {
    background-color: #218838;
}


/* Responsività: modal più piccolo su schermi piccoli */
@media (max-width: 500px) {
    .modal {
        width: 90%;
        padding: 15px;
    }
}
.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-form input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.search-form button {
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.search-form button:hover {
    background-color: #0056b3;
}

.search-form .btn-secondary {
    background-color: #6c757d;
    padding: 8px 15px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
}

.search-form .btn-secondary:hover {
    background-color: #5a6268;
}
.statistiche-table th {
    background-color: #007BFF !important; /* Colore blu */
    color: white !important; /* Testo bianco */
    font-weight: bold;
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd; /* Bordo sottile */
}
.submenu {
    display: none; /* Inizialmente nascosti */
    list-style: none;
    padding-left: 15px;
    background: #f1f3f5;
    border-left: 2px solid #dee2e6;
    margin: 0;
}

.menu-parent.active .submenu {
    display: block; /* Mostra i sottomenu quando il menu principale è attivo */
}
