body {
    font-family: 'Verdana', sans-serif;
}

/* Stili specifici per il layout della pagina di login */
.login-container {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 450px;
    text-align: center;
}
.login-container h1 {
    font-weight: 400;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}
.btn-magic {
    background-color: #1cc88a;
    border-color: #1cc88a;
}
.btn-magic:hover {
    background-color: #17a673;
    border-color: #17a673;
}

/* Stili per i Wizard */
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn 0.5s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.step-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4e73df;
    border-bottom: 2px solid #4e73df;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.progress-bar { transition: width .6s ease; }

/* Stili per condizioni_commerciali/index.php */
.card-group { margin-bottom: 20px; }
.commission-hidden .commission { display: none; }

/* Anagrafica Clienti - Mobile Card View */
.mobile-card-view .card-title {
    font-size: 1.1rem;
}

.mobile-card-view .card-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.mobile-card-view .card-text strong {
    color: #5a5c69;
}

.mobile-card-view .btn {
    margin-right: 5px;
}

/* Stili per budget/index.php */
.saving-indicator {
    display: none;
    margin-left: 10px;
    color: #1cc88a; /* Verde successo di SB Admin 2 */
}
.budget-input.is-valid {
    border-color: #1cc88a;
}

/* Stili Globali per Uniformità Grafica */

/* Miglioramento delle Card */
.card {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.3rem 2.5rem 0 rgba(58, 59, 69, 0.2) !important;
}

/* Miglioramento dei Bottoni */
.btn {
    box-shadow: 0 2px 4px 0 rgba(58, 59, 69, 0.15);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px 0 rgba(58, 59, 69, 0.2);
}

/* Stile per i Form */
.form-control {
    box-shadow: inset 0 1px 2px rgba(0,0,0,.075);
}

.form-control:focus {
    box-shadow: inset 0 1px 2px rgba(0,0,0,.075), 0 0 8px rgba(78, 115, 223, 0.6);
}

/* Uniformità per la tabella DataTables */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.3em 0.8em;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #4e73df !important;
    color: white !important;
    border-color: #4e73df !important;
}

/* Make header sticky on mobile */
@media (max-width: 767.98px) {
    #content-wrapper .navbar.topbar {
        position: -webkit-sticky; /* For Safari */
        position: sticky;
        top: 0;
        z-index: 1030; /* z-index for navbars in Bootstrap is typically around here */
    }

    /* The body needs a background color, otherwise the content underneath is visible during scroll */
    body {
        background-color: #f8f9fc; /* Default SB Admin 2 body background */
    }

    /* In dark mode, the body background needs to match */
    .dark-mode body {
        background-color: #212529;
    }

    /* Nasconde la sidebar originale su mobile */
    #wrapper > #accordionSidebar {
        display: none;
    }

    .container-fluid {
        padding-left: 0.3rem;
        padding-right: 0.3rem;
    }
}

@media (min-width: 768px) {
    /* Mostra la sidebar originale su desktop */
    #wrapper > #accordionSidebar {
        display: block;
    }

}

/* Stili per la modale del menu mobile */
#mobileMenuModal .modal-dialog {
    margin: 0;
    width: 100%;
    height: 100%;
    max-width: none;
}

#mobileMenuModal .modal-content {
    height: 100%;
    border-radius: 0;
    border: none;
}

#mobileMenuModal .modal-body {
    overflow-y: auto;
    padding: 1rem;
}

/* Stili per il menu mobile touch-friendly */
.mobile-menu .list-group-item {
    background-color: #f8f9fc;
    color: #3a3b45;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    border: none;
    border-bottom: 1px solid #e3e6f0;
}

.mobile-menu .list-group-item:hover {
    background-color: #e3e6f0;
}

.mobile-menu .list-group-item[data-toggle="collapse"] {
    font-weight: bold;
    color: #4e73df;
}

.mobile-menu .list-group-item[data-toggle="collapse"] .fa-chevron-down {
    transition: transform 0.3s ease;
}

.mobile-menu .list-group-item[data-toggle="collapse"][aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.mobile-menu .collapse .list-group-item {
    background-color: #fff;
    font-size: 1rem;
}

.mobile-menu .list-group-header {
    font-weight: bold;
    color: #858796;
    background-color: #f8f9fc;
}