/* ==========================================================================
   1. ACADEMY PLAYER (Progress Bar & Video/PDF Container)
   ========================================================================== */
.pdfobject-container { 
    height: 30rem; 
}
.academy-player-card .pdfobject-container { 
    height: 100%; 
}

#cbar {
    overflow: hidden;
    background-color: #e9ecef;
    width: 100%;
    height: 12px;
    border-radius: 10px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

#cbarline {
    height: 100%;
    background-color: #28a745;
    border-radius: 10px;
    transition: width 0.4s ease;
}

#content_controls {
    text-align: center;
}

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

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

.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;
}

#content_body {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#content_body:has(video),
#content_body:has(iframe) {
    min-height: 0;
    background-color: #000;
}

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

.academy-loader {
    width: 3rem;
    height: 3rem;
    color: var(--main-blue-400);
}

.academy-player-footer {
    background-color: #fff;
    padding: 20px;
}

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

/* Custom Progress Bar */
.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%;
    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%); }
}

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

.course-header-card:hover {
    background-color: #fcfcfc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.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;
}

.course-header-text {
    flex-grow: 1;
}

.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;
}

.course-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--main-blue-900);
    line-height: 1.2;
}

.course-header-chevron i {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.course-header-card[aria-expanded="true"] .course-header-chevron i {
    transform: rotate(180deg);
    color: var(--main-orange-600) !important;
}

@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; }
}

/* ==========================================================================
   3. ACADEMY PLAYLIST INDEX (Menu Laterale)
   ========================================================================== */
.academy-playlist {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 60px;
    background-color: #fff;
    list-style: none;
    margin: 0;
    padding: 0;
}

.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); }

.academy-playlist .nav-item,
.academy-playlist .nav-link {
    height: auto !important; 
    min-height: 0;
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.academy-playlist .nav-link {
    display: flex !important;
    align-items: center;
    padding: 14px 18px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid var(--main-blue-50);
    background-color: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
}

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

.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;
}

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

.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;
}

.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);
}

.academy-playlist .nav-treeview {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Livelli Navigazione */
.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);
    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); }

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

.academy-playlist .nav-treeview .nav-treeview > .nav-item > .nav-link {
    padding-left: 60px;
    background-color: #fff;
    font-size: 0.85rem;
    color: #666;
    border-left: 4px solid transparent;
    font-weight: 400;
    margin-bottom: 0;
}

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

.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);
}

/* Stati Playlist */
.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;
    font-weight: 700;
}
.academy-playlist .nav-link.active-content .nav-icon { color: var(--main-orange-600) !important; }
.academy-playlist .nav-link.completed-content .nav-icon { color: #28a745 !important; }

/* ==========================================================================
   4. CHECK TEST QA (Domande e Risposte)
   ========================================================================== */
#check_test_qa {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.question-card {
    background: #fff;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
}

.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;
}

.question-body { padding: 25px; }

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

.answer-input { display: none; }

.answer-option {
    display: flex;
    align-items: center;
    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;
}

.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);
}

.answer-input:checked + .answer-option::after {
    content: '\f00c';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: auto;
    font-size: 1.1rem;
}

/* ==========================================================================
   5. ACADEMY BUILDER (Drag & Drop, Moduli, Repository)
   ========================================================================== */
.repodoc-container {
    display: flex;
    flex-wrap: nowrap; 
    overflow-x: auto;
    padding: 10px 5px 20px 5px;
    gap: 15px;
    -webkit-overflow-scrolling: touch;
}

.ca_item_box {
    flex: 0 0 240px; 
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: grab;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ca_item_box:hover {
    border-color: var(--main-blue-400);
    box-shadow: 0 4px 8px rgba(0,4,69,0.15);
    transform: translateY(-2px);
}
.ca_item_box:active { cursor: grabbing; }

#moduli_list { padding-right: 15px; }

/* Area Dropzone unificata e ottimizzata */
.dropzone {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 90px;
    padding: 15px;
    margin-top: 15px;
    border: 2px dashed var(--main-orange-color);
    border-radius: 8px;
    background-color: var(--main-orange-100);
    transition: all 0.2s ease-in-out;
}

.dropzone:empty::before {
    content: '\f019  Trascina qui i contenuti (Video, PDF, Test...)';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: block;
    text-align: center;
    color: var(--main-orange-color);
    opacity: 0.6;
    margin: 15px auto;
    font-size: 1.1rem;
}

.dropzone.active {
    border-color: var(--main-blue-color);
    background-color: var(--main-blue-100);
    color: var(--main-blue-color) !important;
}

.dropzone.hover {
    border-color: var(--main-green-color);
    background-color: var(--main-green-100);
    color: var(--main-green-color) !important;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.2);
    transform: scale(1.01);
}

.drag { width: 100%; height: auto; }

.drop-item {
    width: 100%; 
    height: auto !important; 
    float: none !important; 
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-left: 4px solid var(--main-blue-500);
    border-radius: 6px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin: 0 !important; 
    cursor: move;
}

.drop-item .remove {
    opacity: 0.7;
    transition: opacity 0.2s;
}
.drop-item:hover .remove { opacity: 1; }

details.builder-accordion {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

details.builder-accordion > summary {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--main-yellow-100);
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    list-style: none; 
}

details.builder-accordion > summary::-webkit-details-marker { display: none; }
details.builder-accordion[open] > summary { border-radius: 8px 8px 0 0; }

.builder-accordion-body {
    padding: 15px;
    background: #fff!important;
}

.builder-input {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.9rem;
    width: 100%;
    transition: border-color 0.2s;
    background-color: #fff;
}

.builder-input:focus {
    outline: none;
    border-color: var(--main-blue-400);
}

.sortable-ghost {
    opacity: 0.4;
    background-color: #f8f9fa;
    border: 2px dashed var(--main-blue-400);
}

/* ==========================================================================
   6. MISCELLANEOUS (Bottoni, Utilities, Alerts, Timeline, PDF Canvas)
   ========================================================================== */
.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);
}

.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;
}

.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);
}

/* PDF Scroll Container */
.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; }
}



























/* ==========================================================================
   ACADEMY BUILDER - STICKY LIBRARY E CARD COMPATTE
   ========================================================================== */
.sticky-library {
    position: -webkit-sticky; 
    position: sticky;
    /* 57px è l'altezza standard della top navbar di AdminLTE. 
       Se vedi ancora un millimetro di spazio, prova a mettere 56px o 50px */
    top: 20px; 
    z-index: 1020; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px;
    background-color: #fff; 
}

/* Comprimiamo la barra di ricerca per salvare spazio verticale */
.sticky-library .card-body.border-bottom {
    padding: 0.5rem 1.25rem !important;
}

/* Rendiamo il contenitore a scorrimento più compatto */
.repodoc-container {
    display: flex;
    flex-wrap: nowrap; 
    overflow-x: auto;
    padding: 10px 5px 10px 5px; /* Padding inferiore ridotto */
    gap: 10px; /* Spazio tra le card ridotto */
    -webkit-overflow-scrolling: touch;
}

/* Rimpiccioliamo le singole card per occupare meno altezza */
.ca_item_box {
    flex: 0 0 210px; /* Leggermente più strette (da 240 a 210) */
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px; /* Padding interno ridotto da 15px a 10px */
    text-align: center;
    cursor: grab;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ca_item_box:hover {
    border-color: var(--main-blue-400);
    box-shadow: 0 4px 8px rgba(0,4,69,0.15);
    transform: translateY(-2px);
}
.ca_item_box:active { cursor: grabbing; }

/* Testi e Icone più piccoli nelle card della libreria */
.ca_item_box h6 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem !important;
}
.ca_item_box .fa-2x {
    font-size: 1.5em; /* Rimpicciolisce le icone principali */
}

/* OTTIMIZZAZIONE ESTREMA PER LA CARD "TEST/QUIZ" 
   (Essendo la più alta, schiacciamo i margini degli input al suo interno) */
.ca_item_box[acdoc="test"] .mb-1 {
    margin-bottom: 3px !important;
}
.ca_item_box[acdoc="test"] .mb-3 {
    margin-bottom: 8px !important;
}
.ca_item_box[acdoc="test"] .builder-input {
    padding: 2px 5px;
    height: 26px; /* Altezza input ridotta */
    font-size: 0.8rem;
}
.ca_item_box[acdoc="test"] .custom-select-sm {
    height: 26px;
    padding-top: 2px;
    padding-bottom: 2px;
    font-size: 0.8rem;
}
/* ==========================================================================
   7. ACADEMY DASHBOARD (Monitoraggio Corsi)
   ========================================================================== */

.icon-box-main {
    background: var(--main-orange-color);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(var(--main-orange-rgb), 0.2);
}

.pulse-dot {
    height: 8px;
    width: 8px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.search-wrapper-modern input {
    width: 100%;
    max-width: 350px;
    padding: 6px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: #fff;
    transition: all 0.2s;
}

.search-wrapper-modern input::placeholder { color: rgba(255,255,255,0.7); }
.search-wrapper-modern input:focus {
    background: #fff;
    color: var(--main-grey-900);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.2);
}

/* Course Card */
.course-wrapper {
    transition: transform 0.2s;
}

.course-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--main-grey-200);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.course-card:hover {
    border-color: var(--main-orange-400);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.course-icon-circle {
    width: 44px;
    height: 44px;
    background: var(--main-orange-50);
    color: var(--main-orange-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.badge-id {
    font-size: 11px;
    color: var(--main-blue-600);
    background: var(--main-blue-50);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    border: 1px solid var(--main-blue-100);
}

/* Stats Pill */
.stat-pill {
    text-align: center;
    min-width: 85px;
    padding: 6px 10px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-pill .num {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

.stat-pill .txt {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    opacity: 0.8;
}

.sp-red { color: var(--main-red-color); background: var(--main-red-50); border: 1px solid var(--main-red-100); }
.sp-orange { color: var(--main-orange-color); background: var(--main-orange-50); border: 1px solid var(--main-orange-100); }
.sp-green { color: var(--main-green-color); background: var(--main-green-50); border: 1px solid var(--main-green-100); }
.sp-blue { color: var(--main-blue-color); background: var(--main-blue-50); border: 1px solid var(--main-blue-100); }

/* Details Section */
.course-details {
    background: var(--main-grey-50);
    border: 1px solid var(--main-grey-200);
    border-top: none;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.filter-bar-modern {
    background: #fff;
    border-bottom: 1px solid var(--main-grey-200);
    padding: 12px 20px;
}

.select-modern {
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--main-grey-300);
    font-weight: 600;
    font-size: 0.85rem;
    background: #fff;
    color: var(--main-grey-800);
}

/* Participants Grid */
.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.participant-mini-card {
    background: #fff;
    border: 1px solid var(--main-grey-200);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.2s;
}

.participant-mini-card:hover {
    border-color: var(--main-blue-300);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.avatar-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
}

.avatar-placeholder.p-red { background: var(--main-red-color); }
.avatar-placeholder.p-orange { background: var(--main-orange-color); }
.avatar-placeholder.p-green { background: var(--main-green-color); }
.avatar-placeholder.p-blue { background: var(--main-blue-color); }

.p-name {
    font-weight: 700;
    color: var(--main-grey-800);
    font-size: 15px;
    line-height: 1.2;
}

.status-label {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.status-label.p-red { background: var(--main-red-100); color: var(--main-red-800); }
.status-label.p-orange { background: var(--main-orange-100); color: var(--main-orange-800); }
.status-label.p-green { background: var(--main-green-100); color: var(--main-green-800); }
.status-label.p-blue { background: var(--main-blue-100); color: var(--main-blue-800); }

.progress-modern {
    height: 6px;
    background: var(--main-grey-200);
    border-radius: 10px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-bar-modern {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-bar-modern.p-red { background: var(--main-red-color); }
.progress-bar-modern.p-orange { background: var(--main-orange-color); }
.progress-bar-modern.p-green { background: var(--main-green-color); }
.progress-bar-modern.p-blue { background: var(--main-blue-color); }

.arrow-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--main-grey-100);
    color: var(--main-grey-500);
    transition: all 0.3s;
}

.rotate {
    transform: rotate(180deg);
    background: var(--main-orange-100);
    color: var(--main-orange-color);
}

/* Academy Dashboard Header and Layout */
.academy-dashboard-header-title {
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.academy-dashboard-header-icon {
    font-size: 1.4rem;
}

.academy-btn-group-rounded {
    border-radius: 20px;
    overflow: hidden;
}

.academy-btn-excel {
    height: 38px;
    font-weight: 600;
    border-radius: 20px 0 0 20px;
    border: none;
    white-space: nowrap;
}

.academy-btn-pdf {
    height: 38px;
    font-weight: 600;
    border-radius: 0 20px 20px 0;
    border: 1px solid var(--main-red-color);
    border-left: none;
    white-space: nowrap;
}

/* Academy Global Search Wrapper styling clean up */
.search-wrapper-modern {
    flex-grow: 1;
    max-width: 250px;
    position: relative;
}

.search-wrapper-modern .fa-search {
    color: rgba(255,255,255,0.6);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-wrapper-modern input.form-control {
    padding-left: 35px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 20px;
}

/* Academy Office Filter Styles */
.academy-office-filter-wrapper-modern {
    flex-grow: 1;
    max-width: 200px;
    position: relative;
}

.academy-office-filter-wrapper-modern .fa-map-marker-alt {
    color: rgba(255,255,255,0.6);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.academy-office-filter-select {
    padding-left: 35px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 20px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 10px auto;
}

.academy-office-filter-select option {
    color: #333;
}

/* Academy Dynamic Elements */
.academy-course-title {
    color: var(--main-grey-900);
    font-size: 1.15rem;
}

.academy-details-hidden {
    display: none;
}

.academy-participant-office {
    font-size: 11px;
}

.academy-participant-percentage {
    font-size: 13px;
    color: var(--main-grey-700);
}

/* Inactive Employee Badge */
.academy-inactive-badge {
    font-size: 10px;
}