html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
}

main.container {
    padding-top: 20px;
    padding-bottom: 20px;
}

footer {
    margin-top: 40px;
    padding: 10px 0;
    border-top: 1px solid #dee2e6;
}
.footer-custom {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    border-top: 1px solid #dee2e6;
    font-size: 0.85rem;
    color: #6c757d;
}

.card-header.bg-primary {
    background-color: #2c3e50 !important;
    font-weight: bold;
}

body {
    background-image: url('/img/sfondo.png');
    background-repeat: repeat;
    background-size: auto; /* oppure 200px 200px se vuoi controllare la dimensione */
    background-position: top left;
    background-attachment: fixed; /* opzionale: fa restare fisso lo sfondo mentre scrolli */
    background-color: #1a1a1a; /* colore di fallback, scuro */
    color: #f0f0f0; /* colore del testo per garantire leggibilità */
}
#wrapper {
    height: 100vh;
    overflow: hidden;
}

#sidebar-wrapper {
    height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    width: 250px;
}

#main-content {
    overflow-y: auto;
    overflow-x: auto;
    height: calc(100vh - 60px); /* 60px è l’altezza della topbar, adatta se diversa */
    padding-bottom: 2rem;
}


#sidebar-wrapper.collapsed {
    width: 60px;
    overflow-x: hidden;
}

    #sidebar-wrapper.collapsed .nav-link {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
        font-size: 0.85rem;
        padding-left: 0.5rem;
    }

        #sidebar-wrapper.collapsed .sidebar-heading,
        #sidebar-wrapper.collapsed .collapse,
        #sidebar-wrapper.collapsed .nav-link span {
            display: none !important;
        }
.ingredienti-scroll {
    max-height: 50vh; /* regola a piacere: 40–70vh */
    overflow: auto;
}

/* Header “appiccicato” quando scrolli */
#ingredientiCollapse thead th {
    position: sticky;
    top: 0;
    background: #fff; /* o var(--bs-body-bg) se usi Bootstrap 5 */
    z-index: 1;
}
