/* Stili personalizzati verranno inseriti qui */
body {
    font-family: 'Arial', sans-serif;
    color:#D7DCDF;
}

.offcanvas-start {
    width: 280px;
}


.tile {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: .25rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

body {
    font-family: "Inter", sans-serif; /* Un font moderno e pulito */
    background-color: #f4f7fc; /* Sfondo generale più chiaro e moderno */
    color: #525f7f; /* Colore testo base */
}


/* Stili Sidebar */
#sidebar {
    width: 280px; /* Leggermente più stretto */
    transition: all 0.3s;
    z-index: 1030; 
    background-color: #006694!important; /* Blu scuro per la sidebar */
}

.bg-blue-utenti {
    background-color: #006694 !important; /* Blu scuro per la sidebar */
}
.btn-blue-utenti {
    background-color: #006694 !important; /* Blu scuro per la sidebar */
    color:#fff;
}

.btn-blue-utenti:hover {
    background-color: #81131C !important; /* Blu scuro per la sidebar */
    color:#fff;
}

.text-blue-utenti {
    color: #006694 !important; /* Blu scuro per la sidebar */
}

#sidebar-nutris {
    width: 280px; /* Leggermente più stretto */
    transition: all 0.3s;
    z-index: 1030; 
    background-color: #9CBE0A !important; /* Verde per la sidebar */
}


.bg-green-nutris {
    background-color: #9CBE0A !important; /* Verde per la sidebar */
}
.btn-green-nutris {
    background-color: #9CBE0A !important; /* Verde per la sidebar */
    color:#fff;
}
.text-green-nutris {
    color: #9CBE0A !important; /* Verde per la sidebar */
}



#sidebar > ul {
    padding: 0 10px; /* Più padding verticale */
}

#main-content {
    margin-left: 260px;
    transition: margin-left 0.3s;
    width: calc(100% - 260px);
    /* padding-top: 0.5rem;  Più spazio in alto */
}

@media (max-width: 991.98px) { /* breakpoint lg di Bootstrap */
    #sidebar {
        display: none; 
    }
    #main-content {
        margin-left: 0;
        width: 100%;
        padding-top: 60px; /* Spazio per il pulsante hamburger fisso */
    }
}

#sidebar .nav-link {
    font-size: 0.9rem; /* Leggermente più piccolo per più voci */
    padding: 0.65rem 1rem;
    border-radius: .375rem;
    margin-bottom: 0.1rem;
    color: #fff !important;
    transition: all 0.2s ease-in-out;
}

#sidebar .nav-link i.bi {
    font-size: 1rem; /* Dimensione icone */
    margin-right: 0.8rem !important;
}


#sidebar .nav-link.active {
    background-color: #227C1B !important; /* Blu scuro per la sidebar */
    color: #fff; /* Testo link più chiaro */
    font-weight: 500;
}

#sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #000; /* Testo link più chiaro */
}

#sidebar .sidebar-header h3 {
    font-weight: 600; /* Più bold per il titolo */
    color: #810707; /* Testo link più chiaro */
    letter-spacing: 0.5px;
}

#sidebar hr {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.chat-box {
    background-color: #f8f9fa; /* Sfondo leggermente diverso per la chat */
}

/* Miglioramento stile card e tabelle */
.card {
    border: 1px solid #e9ecef; /* Bordo sottile per le card */
    border-radius: .5rem; 
    box-shadow: 0 0 30px 0 rgba(82,63,105,.05); /* Ombra leggera e moderna */
}
.card-header {
    /* background-color: #fff; */
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.25rem;
    font-weight: 500;
}

.table {
    margin-bottom: 0; 
}


.table th {
    font-weight: bold;
    background-color: #016594;

    color: #ffffff; /* Colore più chiaro per header tabella */
    border-bottom-width: 1px !important;
    border-top-width: 0;
}
.table td {
    color: #525f7f;
    vertical-align: middle;
}
.table-hover tbody tr:hover {
    background-color: #f5f9fc;
}

.table-custom-green {
    background-color: #9CBE0A;
}
.btn {
    border-radius: .375rem; /* Stesso radius dei form */
    font-weight: 500;
    padding: 0.5rem 1rem;
}
.btn-primary {
    background-color: #5e72e4; /* Un viola/blu per il primario */
    border-color: #5e72e4;
}
.btn-primary:hover {
    background-color: #485cc4;
    border-color: #4153b3;
}
.btn-success {
    background-color: #9CBE0A;
    border-color: #9CBE0A;
    color:#000;
}
.btn-success:hover{
    background-color: #24a46d;
    border-color: #219362;
    color:#fff;

}
.btn-info {
    background-color: #11cdef;
    border-color: #11cdef;
}
.btn-info:hover {
    background-color: #0da5c0;
    border-color: #0c95ae;
}
.btn-warning {
    background-color: #fb6340;
    border-color: #fb6340;
    color: #fff;
}
.btn-warning:hover {
    background-color: #fa3a0e;
    border-color: #f93306;
    color: #fff;
}


/* Stile per i form, ispirato a quello fornito */
.form-label {
    font-weight: bold;
    margin-top: 1rem; /* Più spazio sotto la label */
    font-size: 1rem; 
    color: #333;
}

.form-control, .form-select {
    border-radius: .375rem; 
    font-size: 0.9rem;
    border: 1px solid #cad1d7;
}
.form-control:focus, .form-select:focus {
    border-color: #5e72e4; /* Colore primario per focus */
    box-shadow: 0 0 0 0.2rem rgba(94, 114, 228, 0.25);
}

/* Validazione form più moderna */
.was-validated .form-control:invalid, .form-control.is-invalid {
    border-color: #fb6340; /* Arancione/Rosso per errore */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23fb6340'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23fb6340' stroke='none'/%3e%3c/svg%3e");
}
.was-validated .form-control:valid, .form-control.is-valid {
    border-color: #2dce89; /* Verde per successo */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%232dce89' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8L3.4 4.93c.4.4 1 .5 1.4.1L6.7 2.7c.2-.2.5-.1.7.1.3.2.3.5.1.7L2.3 6.73z'/%3e%3c/svg%3e");
}
.invalid-feedback {
    font-size: .8em;
    color: #fb6340;
}
.valid-feedback {
     font-size: .8em;
    color: #2dce89;
}


.accordion-button:not(.collapsed) {
    color: #5e72e4; /* Colore primario per accordion attivo */
    background-color: #e6e9f9;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(94, 114, 228, 0.25);
}
.accordion-item {
    border: 1px solid #e9ecef;
}

/* Stili specifici per table-diet-planner */
.table-diet-planner th, .table-diet-planner td {
    vertical-align: top;
    min-width: 140px; 
}
.table-diet-planner thead th {
    background-color: #f8f9fe; /* Grigio chiaro per header tabella */
    border-bottom-width: 1px;
    font-size: 0.85rem; /* Leggermente più piccolo per header tabella dieta */
    padding: 0.6rem 0.5rem;
}
.meal-slot {
    min-height: 120px; 
    border: 1px solid #e9ecef; 
    border-radius: .375rem; 
    position: relative; 
    background-color: #fff; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    padding: 0.5rem;
}
.meal-slot .food-list {
    font-size: 0.8rem; 
    padding-left: 0;
    margin-bottom: 0.5rem; 
    flex-grow: 1; 
}
.meal-slot .food-list li {
    padding: .2rem .4rem; 
    border-bottom: 1px dotted #e9ecef; /* Bordo più chiaro */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.meal-slot .food-list li:last-child {
    border-bottom: none;
}
.btn-add-food {
    font-size: 0.75rem; 
    padding: .25rem .5rem;
}
.btn-remove-food {
    padding: 0 .25rem;
    line-height: 1;
    font-size: 0.7rem;
}

/* Stili per i badge */
.badge {
    font-size: 0.75em;
    font-weight: 500;
}

/* Stili per i dropdown menu della sidebar */
#sidebar .dropdown-menu {
    font-size: 0.9rem;
}
#sidebar .dropdown-item {
    padding: .5rem 1rem;
}
#sidebar .dropdown-item:hover {
    background-color: rgba(255,255,255,.15);
}


/* Commenti per sezioni specifiche verranno aggiunti durante l'implementazione */

/* Stili per l'autenticazione Google */
.divider {
    position: relative;
    text-align: center;
    margin: 1rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-google {
    border: 1px solid #dadce0;
    color: #3c4043;
    transition: all 0.2s;
}

.btn-google:hover {
    box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
    background-color: #940806;
    border-color: #dadce0;
}

.btn-info {
    background-color: #016594 !important;
}

