.pdfobject-container { 
  height: 30rem; 
}

.academy-player-card .pdfobject-container { 
    height: 100%; 
}

#cbar{
  overflow: auto;
  background-color: #d1d1d1;
  width: 100%;
  height:31px;
  color: white;
  text-align: right;
  vertical-align: center;
  border-radius: .2rem;
}
#cbarline{
  height: 31px;
  background-color: #28a745;
  border-radius: .2rem;
}
#content_controls{
  text-align: center;
}

#modulo_box input[type=text],
input[type=number],
input[type=datetime-local],
select{
  border: 0;
  border-bottom: 1px solid lightgray;
  margin: 2px;
  height: 37px;
}
#moduli_list{
  padding-right: 20px;
}
.drag{
  float: left;
  overflow: auto;
  width: 250px;
  height: 125px;
  margin: 0 5px 5px 0;
  border-radius: 10px;
  border: 1px solid rgb(204, 204, 204);
  padding: 10px;
  overflow: auto;
  font-size: small;
}
.drag:hover{
  cursor:pointer;
}
.dropzone {
  min-height: 100px;
  z-index: 0;
  overflow:auto;
  clear:both;
  padding: 10px 0;
}

.lezione{
  background-color: #ededed;
  padding: 5px;
  margin: 5px 0 5px 0; 
}

#moduli_list .active {
  outline: 1px solid red;
}

.hover {
  outline: 1px solid blue;
}

.drop-item {
  cursor: pointer;
  margin-bottom: 10px;
  background-color: rgb(255, 255, 255);
  padding: 10px;
  border-radius: 3px;
  border: 1px solid rgb(204, 204, 204);
  position: relative;
  float: left;
  overflow: hidden;
  width: 250px;
  height: 125px;
  margin: 0 5px 5px 0;
  border-radius: 10px;
  font-size: small;  
}

.drop-item .remove {
  position: absolute;
  top: 4px;
  right: 4px;
}











/* --- COURSE HEADER CARD --- */
.course-header-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Ombra morbida */
    display: flex;
    align-items: center;
    border-left: 6px solid var(--main-orange-600); /* Accento laterale Arancione */
    transition: transform 0.2s ease;
}

.course-header-card:hover {
    transform: translateY(-2px); /* Leggero sollevamento al mouse */
}

/* Icona Grande a sinistra */
.course-header-icon {
    width: 60px;
    height: 60px;
    background-color: var(--main-blue-50);
    color: var(--main-blue-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-right: 20px;
    flex-shrink: 0;
}

/* Contenitore Testi */
.course-header-text {
    flex-grow: 1;
}

/* Percorso (Breadcrumb) piccolo sopra */
.course-path {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--main-blue-400);
    font-weight: 600;
    margin-bottom: 5px;
}

.course-path a {
    color: var(--main-blue-600);
    text-decoration: none;
}

/* Titolo H1 Principale */
.course-title {
    margin: 0;
    font-size: 1.8rem; /* Grande e leggibile */
    font-weight: 800; /* Molto grassetto */
    color: var(--main-blue-900);
    line-height: 1.2;
}

/* Responsive: testo più piccolo su mobile */
@media (max-width: 768px) {
    .course-header-card {
        padding: 15px;
    }
    .course-header-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
        margin-right: 15px;
    }
    .course-title {
        font-size: 1.3rem;
    }
}

/* Animazione della freccia nella header card */
.course-header-chevron i {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

/* Quando l'elemento ha aria-expanded="true" (aperto da Bootstrap) */
.course-header-card[aria-expanded="true"] .course-header-chevron i {
    transform: rotate(180deg);
    color: var(--main-orange-600) !important; /* Diventa arancione quando aperto */
}

/* Hover effect per far capire che è cliccabile */
.course-header-card:hover {
    background-color: #fcfcfc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}








/* =========================================
  COMPONENT: ACADEMY PLAYLIST INDEX
  Class: .academy-playlist
  Requires: --main-blue-* and --main-orange-* variables
   ========================================= */

/* --- 1. WRAPPER & SCROLLBAR --- */
.academy-playlist {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 60px;
    background-color: #fff;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Scrollbar a tema Blue */
.academy-playlist::-webkit-scrollbar { width: 6px; }
.academy-playlist::-webkit-scrollbar-track { background: var(--main-blue-50); }
.academy-playlist::-webkit-scrollbar-thumb { background: var(--main-blue-200); border-radius: 10px; }
.academy-playlist::-webkit-scrollbar-thumb:hover { background: var(--main-blue-400); }

/* --- 2. STRUTTURA ITEMS (FIX SOVRAPPOSIZIONI) --- */
.academy-playlist .nav-item,
.academy-playlist .nav-link {
    /* CRUCIALE: Assicura che gli elementi si adattino al contenuto */
    height: auto !important; 
    min-height: 0;
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* --- 3. STILE LINK (FLEXBOX & LOOK) --- */
.academy-playlist .nav-link {
    display: flex !important;
    align-items: center;
    padding: 14px 18px; /* Spaziatura comoda */
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid var(--main-blue-50); /* Separatore sottile blu */
    background-color: #fff;
    /* Transizione morbida per tutto */
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Hover generico */
.academy-playlist .nav-link:hover {
    background-color: var(--main-blue-50);
    color: var(--main-blue-900);
}

/* --- 4. CONTENUTO TESTO E FRECCIA --- */
.academy-playlist .nav-link p {
    margin: 0;
    flex-grow: 1; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    font-size: 0.95rem;
    line-height: 1.4;
    padding-left: 12px;
}

/* Icona a sinistra */
.academy-playlist .nav-link .nav-icon {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--main-blue-300); /* Icona default tenue */
    flex-shrink: 0; 
}

/* Freccia a destra (Toggle) */
.academy-playlist .nav-link p .right {
    font-size: 0.8rem;
    color: var(--main-blue-300);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    margin-left: 10px;
}

/* Rotazione e Colore Freccia quando aperto */
.academy-playlist .menu-open > .nav-link p .right,
.academy-playlist .menu-is-opening > .nav-link p .right {
    transform: rotate(-90deg);
    color: var(--main-orange-600); /* Diventa arancione quando aperto */
}

/* --- 5. GESTIONE SOTTOMENU (ANIMAZIONI) --- */
.academy-playlist .nav-treeview {
    display: none; /* Fondamentale per jQuery slideDown */
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- 6. GERARCHIA VISIVA (Colori e Livelli) --- */

/* LIVELLO 1: MODULO (Intestazione Blu) */
.academy-playlist > .nav-item > .nav-link {
    background-color: var(--main-blue-50);
    font-weight: 700;
    color: var(--main-blue-900);
    border-left: 4px solid var(--main-blue-200); /* Bordo decorativo */
    margin-bottom: 0 !important;
}

.academy-playlist > .nav-item > .nav-link:hover {
    background-color: var(--main-blue-100);
}

.academy-playlist > .nav-item > .nav-link .nav-icon {
    color: var(--main-blue-600);
}

/* LIVELLO 2: LEZIONE (Bianco pulito) */
.academy-playlist .nav-treeview > .nav-item > .nav-link {
    padding-left: 35px; /* Indentazione */
    background-color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--main-blue-800);
    margin-bottom: 0;
}

/* LIVELLO 3: CONTENUTO (Foglia) */
.academy-playlist .nav-treeview .nav-treeview > .nav-item > .nav-link {
    padding-left: 60px; /* Indentazione massima */
    background-color: #fff;
    font-size: 0.85rem;
    color: #666;
    border-left: 4px solid transparent; /* Prepara per hover/active */
    font-weight: 400;
    margin-bottom: 0;
}

.academy-playlist .nav-treeview .nav-treeview > .nav-item > .nav-link .nav-icon {
    font-size: 0.9rem;
    color: #adb5bd;
}

/* --- 7. HOVER SPECIFICO SUI CONTENUTI (Tocco Arancione) --- */
.academy-playlist .nav-treeview .nav-treeview > .nav-item > .nav-link:hover {
    background-color: var(--main-orange-50);
    color: var(--main-orange-900);
    border-left-color: var(--main-orange-300);
}

/* --- 8. STATI ATTIVI E COMPLETATI --- */

/* Elemento Attivo (Sto guardando questo) */
.academy-playlist .nav-link.active-content {
    background-color: var(--main-blue-100) !important;
    color: var(--main-blue-900) !important;
    border-left: 4px solid var(--main-orange-600) !important; /* Accento Arancione */
    font-weight: 700;
}

.academy-playlist .nav-link.active-content .nav-icon {
    color: var(--main-orange-600) !important; /* Icona diventa arancione */
}

/* Elemento Completato (Verde) */
.academy-playlist .nav-link.completed-content .nav-icon {
    color: #28a745 !important;
}




















/* =========================================
   COMPONENT: ACADEMY PLAYER CARD
   ID: #card_play_content
   ========================================= */

/* --- 1. CARD PRINCIPALE --- */
.academy-player-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Ombra profonda */
    background-color: #fff;
    overflow: hidden;
    margin-bottom: 20px;
}

.academy-player-card-test {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background-color: #f4f6f9;
}

/* --- 2. HEADER DELLA CARD --- */
.academy-player-header {
    background-color: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid var(--main-blue-50);
}

.academy-player-header h5 {
    color: var(--main-blue-900);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.academy-player-header-test {
    margin-bottom: 1rem;
    border-radius: 12px;
}

/* --- 3. CORPO DEL CONTENUTO (Video/PDF) --- */
#content_body {
    min-height: 400px;         /* Altezza minima aumentata per desktop */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Se c'è un video, vogliamo lo sfondo nero per focus */
#content_body:has(video) {
    min-height: 0px;
    background-color: #000;
}

/* Se c'è un pdf, vogliamo lo sfondo nero per focus */
#content_body:has(iframe) {
    min-height: 0px;
    background-color: #000;
}

.academy-player-body-test {
    background-color: #f4f6f9;
}

/* Spinner di caricamento personalizzato */
.academy-loader {
    width: 3rem;
    height: 3rem;
    color: var(--main-blue-400);
}

/* --- 4. FOOTER E CONTROLLI --- */
.academy-player-footer {
    background-color: #fff;
    padding: 20px;
}

.academy-player-footer-test {
    border: 0;
    margin-top: 1rem;
    border-radius: 12px;
}

/* --- 5. PROGRESS BAR CUSTOM --- */
.progress-track {
    height: 8px;
    background-color: var(--main-blue-50);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.progress-fill {
    height: 100%;
    /* Gradiente moderno verde (successo) */
    background: linear-gradient(90deg, #28a745, #34ce57); 
    width: 0%;
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@keyframes shimmer {
    100% { transform: skewX(-20deg) translateX(200%); }
}

/* --- 6. PULSANTI --- */
.btn-action-primary {
    background-color: var(--main-orange-color);
    border-color: var(--main-orange-color);
    color: #fff;
    padding: 8px 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.btn-action-primary:hover {
    background-color: var(--main-orange-hover);
    transform: translateY(-1px);
    color: #fff;
}

.btn-action-secondary {
    color: var(--main-blue-color);
    border: 1px solid var(--main-blue-color);
    background-color: transparent;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-action-secondary:hover {
    background-color: var(--main-blue-hover);
    color: #fff;
    border-color: var(--main-blue-hover);
}

/* --- 7. ALERTS --- */
.academy-alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.academy-alert-info {
    background-color: #fff;
    color: var(--main-blue-900);
    border-left: 4px solid var(--main-blue-500);
}

.academy-alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}


















#check_test_qa {
    display: flex;
    flex-direction: column;
    gap: 15px;
}




/* --- STILE CARD (Altezza automatica) --- */
.question-card {
    background: #fff;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Ombra leggera elegante */
    overflow: hidden;
    position: relative;
    /* Nessuna altezza fissa qui, si adatta al contenuto */
}

/* --- HEADER DELLA DOMANDA --- */
.question-header {
    background: var(--main-blue-color);
    padding: 20px 25px;
    border-bottom: 1px solid #edf2f7;
}

.question-badge {
    background: var(--main-orange-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

/* --- CORPO DOMANDA E RISPOSTE --- */
.question-body {
    padding: 25px;
}

.question-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* --- BOTTONI RISPOSTA (Copiati dallo step precedente ma rifiniti) --- */
.answer-input { display: none; } /* Nasconde la checkbox vera */

.answer-option {
    display: flex;
    align-items: center; /* Centra testo verticalmente */
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 12px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    color: #4a5568;
    font-size: 0.95rem;
}

.answer-option:hover {
    border-color: #cbd5e0;
    background: #f8fafc;
}

/* Stato Selezionato */
.answer-input:checked + .answer-option {
    border-color: #007bff;
    background-color: #eff6ff;
    color: #0056b3;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.1);
}

/* Icona spunta quando selezionato */
.answer-input:checked + .answer-option::after {
    content: '\f00c'; /* Codice icona check FontAwesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: auto;
    font-size: 1.1rem;
}








.border-left-success { border-left: 4px solid var(--success) !important; }

.timeline-module-header {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid var(--main-blue-300);
}










.academy-pdf-scroll-container {
    height: 85vh;
    overflow-y: auto;
    background-color: #525659;
    border-radius: 4px;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
}

.academy-pdf-canvas-container {
    min-height: 100%;
}

.academy-pdf-canvas {
    display: block;
    max-width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5)
}

@media (max-width: 768px) {
    .academy-pdf-scroll-container {
        height: 60vh;
    }
}

@media (max-width: 480px) {
    .academy-pdf-scroll-container {
        height: 50vh;
    }
}