/* Stili per il sidebar menu */
#sidebar-menu {
    overflow: hidden;
}

.sidebar-section-header {
    font-weight: 600;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #495057;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.sidebar-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.sidebar-item:hover {
    background-color: rgba(13, 110, 253, 0.075);
    color: #0d6efd;
}

.sidebar-item.active {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-left: 3px solid #0d6efd;
    padding-left: calc(1rem - 3px);
}

.sidebar-item.custom-item {
    background-color: rgba(255, 193, 7, 0.1);
    font-weight: 500;
}

.sidebar-item.custom-item:hover, .sidebar-item.custom-item.active {
    background-color: rgba(255, 193, 7, 0.2);
    color: #fd7e14;
    border-left-color: #fd7e14;
}

/* Stili specifici per il form di ricerca nella sidebar */
.query-form-container {
    /* border-top: 1px solid rgba(0, 0, 0, 0.05);
    background-color: rgba(13, 110, 253, 0.03);
    padding-bottom: 0.5rem; */
}

.query-form-container .form-text {
    font-size: 0.75rem;
}

.query-form-container .form-check {
    margin-left: 0.25rem;
}

.query-form-container .input-group {
    margin-bottom: 0.5rem; 
}/* Stili personalizzati per i tab di risposta */
#response-tab.active {
    background-color: #198754;
    color: white;
    font-weight: bold;
}

/* Badge personalizzati quando la risposta è attiva */
#response-tab.active .badge {
    background-color: white !important;
    color: #198754 !important;
}

/* Stile per il contenitore della risposta */
#response {
    background-color: #f8f9fa;
}

/* Stile personalizzato per i pre */
pre {
    border: none;
    border-radius: 0.25rem;
}

/* Migliora l'aspetto dei tab per una migliore leggibilità */
.nav-tabs .nav-link {
    padding: 0.75rem 1rem;
}

/* Stili per la sidebar */
.sidebar-card {
    box-shadow: none;
    border-radius: 0 !important;
    border-right: 1px solid rgba(0, 0, 0, 0.125) !important;
    height: 100%;
}

.sidebar-card .card-header {
   border-radius: 0 !important;
    padding-left: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.sidebar-card .card-body {
    padding: 1.25rem;
}

@media (max-width: 767.98px) {
    .sidebar-card {
        border-right: none !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.125) !important;
    }
}

/* Stilizzazione dell'area introduttiva */
#introContainer .card-header {
    background-color: #0dcaf0;
}

#introContainer ul li, #introContainer ol li {
    margin-bottom: 0.5rem;
}

/* Miglioramenti generali pagina */
h1 {
    color: #0d6efd;
    font-weight: 600;
}

/* Stili responsive */
@media (max-width: 767.98px) {
    .card {
        margin-bottom: 1rem;
    }
}

/* Stili per il layout a schermo intero */
html, body {
    height: 100%;
    overflow-x: hidden;
}

/* Assicurarsi che il contenuto principale possa scrollare se necessario */
@media (min-width: 768px) {
    .col-md-9.py-4.px-4 {
        max-height: 100vh;
        overflow-y: auto;
    }
    
    /* Scrollbar personalizzata per migliorare l'esperienza utente */
    .col-md-9.py-4.px-4::-webkit-scrollbar {
        width: 8px;
    }
    
    .col-md-9.py-4.px-4::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    .col-md-9.py-4.px-4::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }
    
    .col-md-9.py-4.px-4::-webkit-scrollbar-thumb:hover {
        background: #a1a1a1;
    }
}

/* Stili per il sidebar menu */
#sidebar-menu {
    overflow: hidden;
}

.sidebar-section-header {
    font-weight: 600;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #495057;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.sidebar-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.sidebar-item:hover {
    background-color: rgba(13, 110, 253, 0.075);
    color: #0d6efd;
}

.sidebar-item.active {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-left: 3px solid #0d6efd;
    padding-left: calc(1rem - 3px);
}

.sidebar-item.custom-item {
    background-color: rgba(255, 193, 7, 0.1);
    font-weight: 500;
}

.sidebar-item.custom-item:hover, .sidebar-item.custom-item.active {
    background-color: rgba(255, 193, 7, 0.2);
    color: #fd7e14;
    border-left-color: #fd7e14;
}