/* MDK dark mode + portadas — generado */
/* Dark mode OBLIGATORIO: siempre activo (no depende del ajuste del SO). */
:root{color-scheme:dark;}
  body,#page,#page-wrapper,.main-inner,#region-main,[role=main]{background:#15171c!important;color:#e6e8ec!important;}
  h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,legend,dt{color:#f2f4f8!important;}
  a,.nav-link{color:#7db3ff!important;}
  a:hover{color:#a9ccff!important;}
  .card,.box,.generalbox,.block,.block_myoverview,.modal-content,.list-group-item,.dropdown-menu,
  .card-body,.forumpost,.that,.coursebox,.activity-item,.section .activity,
  .activity-header,.activity-information,.activityinstance,.contentwithoutlink{background:#1b1e25!important;color:#e6e8ec!important;border-color:#2a2e37!important;}
  .navbar,.fixed-top,#page-header,.secondary-navigation,.drawer,[data-region=drawer],
  [data-region=blocks-column],#nav-drawer,.drawercontent{background:#1b1e25!important;color:#e6e8ec!important;}
  .navbar .nav-link,.navbar a,.secondary-navigation a{color:#e6e8ec!important;}
  .nav-link.active,.navbar .nav-link.active,.nav-tabs .nav-link.active{background:transparent!important;color:#fff!important;}
  input,textarea,select,.form-control,.custom-select{background:#22262e!important;color:#e6e8ec!important;border-color:#3a3f4a!important;}
  .table,table{color:#e6e8ec!important;}
  .table td,.table th,td,th,.table-bordered{border-color:#2a2e37!important;}
  .table-striped>tbody>tr:nth-of-type(odd){background:#1e2128!important;}
  hr{border-color:#2a2e37!important;}
  pre,code,.commands{background:#0f1115!important;color:#d6dae0!important;}
  blockquote,blockquote p,.blockquote,figcaption,cite,.text-body-secondary{color:#cbd2db!important;}
  blockquote,.blockquote{background:#1b1e25!important;border-left-color:#820000!important;}
  .bg-white,.bg-light{background:#1b1e25!important;}
  .text-dark,.text-muted{color:#aab2bd!important;}
  .breadcrumb,.page-context-header{background:transparent!important;color:#e6e8ec!important;}
  .btn-secondary,.btn-outline-secondary{background:#2a2e37!important;color:#e6e8ec!important;border-color:#3a3f4a!important;}
  /* course index (drawer) + cabeceras de sección del tema eadtraining (fondos claros/rosa) */
  .courseindex,.courseindex-section,.courseindex-sectioncontent,.course-section-header,
  .section-collapsemenu,.sectionname,.section .card-header,.courseindex-tab{background:#1b1e25!important;color:#e6e8ec!important;border-color:#2a2e37!important;}
  .courseindex-item{background:transparent!important;color:#dfe3ea!important;}
  .courseindex-item.pageitem,.courseindex-item:hover{background:#2a2e37!important;}
  .courseindex-item a,.courseindex-link,.courseindex-name,.course-section-header a,
  .course-section-header,.sectionname a,.sectionname{color:#dfe3ea!important;}
  .courseindex-item.pageitem a,.courseindex-item.pageitem .courseindex-name{color:#fff!important;}
  /* cualquier texto oscuro residual sobre fondo oscuro */
  .text-dark,.text-body,.text-black,[class*="text-gray-9"],[class*="text-gray-8"]{color:#e6e8ec!important;}
  .text-secondary,.text-muted,small,.small{color:#aab2bd!important;}
  /* barra de filtros (dashboard/mis cursos): bordes y fondo claros -> oscuro */
  .simplesearchform{background:#1b1e25!important;border-color:#2a2e37!important;box-shadow:none!important;}
  .simplesearchform .dropdown,.simplesearchform .input-group,.simplesearchform .form-control,.simplesearchform select,
  .dropdown-toggle,.input-group,.input-group-text,.custom-select,.form-select,.searchbar{background-color:transparent!important;border-color:#2a2e37!important;color:#e6e8ec!important;}
  /* el CAMPO de búsqueda SÍ debe verse (fondo/borde), no transparente; placeholder legible */
  .simplesearchform input,.searchbar input,.block-myoverview input[type=text],.block_myoverview input[type=text],
  input.form-control,input[type=search],input[type=text].form-control{background-color:#22262e!important;border:1px solid #3a3f4a!important;color:#e6e8ec!important;}
  input::placeholder,.form-control::placeholder,textarea::placeholder{color:#9aa3af!important;opacity:1!important;}
  /* títulos de curso en tarjetas (venían casi negros #030000) */
  .coursename{color:#e6e8ec!important;} a.coursename,.aalink.coursename{color:#7db3ff!important;}
  /* badges secundarios / con texto oscuro -> legibles */
  .badge.bg-secondary,.badge.badge-secondary,.badge.text-dark{background:#3a3f4a!important;color:#e6e8ec!important;}
  /* ayuda de formularios + enlaces de pie */
  .form-text,small.text-muted,.text-muted small{color:#9aa3af!important;} #page-footer a,footer a{color:#8fb3ff!important;}
  /* list-group activo / hover / foco legible (menú lateral de perfil, etc.) */
  .list-group-item.active,.list-group-item-action:hover,.list-group-item-action:focus,
  .list-group-item.active:hover,.list-group-item:hover{background:#2a2e37!important;color:#fff!important;border-color:#2a2e37!important;}
  .list-group-item.active a,.list-group-item-action:hover a{color:#fff!important;}
  /* badge de completado con buen contraste */
  .badge.bg-success,.badge.badge-success,.rounded-pill.bg-success{background:#157347!important;color:#fff!important;}
  /* toggle SWITCH: la bola (thumb) visible sobre la pista oscura */
  .form-switch .form-check-input{background-color:#3a3f4a!important;border-color:#5a6270!important;
    background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23e6e8ec'/%3e%3c/svg%3e")!important;}
  .form-switch .form-check-input:checked{background-color:#820000!important;border-color:#820000!important;
    background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e")!important;}
  /* cabeceras de TABLA (notas/participantes) con fondo claro -> oscuro */
  .table th,thead th,th.header,th.courseitem,.catlevel1,.gradereport-grader th,.user-grade th,
  table.generaltable th,.flexible th{background:#1b1e25!important;color:#e6e8ec!important;border-color:#2a2e37!important;}
  .gradeitemheader,.gradeitemheader a,.gradeitemheader span{color:#e6e8ec!important;}
  /* progreso de curso (myoverview) */
  .progress-text,.progress-text *,[data-region=course-progress] *{color:#dfe3ea!important;}
  /* filtro myoverview (All/Sort/Card): botones con fondo claro */
  .block_myoverview .dropdown-toggle,.block_myoverview button,button.dropdown-toggle,
  [data-region=courses-view] button{background-color:transparent!important;color:#e6e8ec!important;border-color:#2a2e37!important;}
  /* barra de filtros del bloque "Mis cursos": contenedor con fondo BLANCO -> oscuro */
  .block-myoverview .d-flex.align-items-center,.block_myoverview .d-flex.align-items-center,
  [data-region=courses-view] .d-flex.align-items-center{background-color:transparent!important;}
  /* editor TinyMCE: chrome oscuro */
  .tox-tinymce,.tox .tox-toolbar__primary,.tox .tox-toolbar-overlord,.tox .tox-statusbar,.tox .tox-menubar,
  .tox .tox-edit-area,.tox-editor-header{background:#1b1e25!important;border-color:#2a2e37!important;}
  .tox .tox-statusbar a,.tox-statusbar__text-container,.tox .tox-tbtn{color:#cbd2db!important;}
  /* badges "lighten" + badge de progreso del drawer (Completado 100%) legibles */
  [class*=badge][class*=lighten]{color:#c5cffb!important;}
  .drawerheader span,.drawerheader .badge{color:#dfe3ea!important;}
  /* editor TinyMCE wordcount + ayuda de filemanager */
  .tox-statusbar__wordcount,.tox .tox-statusbar__wordcount{background:transparent!important;color:#cbd2db!important;}
  .filemanager .mt-1,.form-filemanager .text-muted,.fp-restrictions,.filemanager-restrictions,.fitem .text-muted{color:#9aa3af!important;}
  span.text-muted,.form-text,.muted,.dimmed_text,.text-muted.small{color:#9aa3af!important;}
  /* preservar marca MDK */
  .btn-primary,.badge-primary,.bg-primary{background:#820000!important;border-color:#820000!important;color:#fff!important;}
  .btn-outline-secondary,.btn-outline-primary,.btn-outline-secondary.dropdown-toggle{background-color:transparent!important;color:#e6e8ec!important;border-color:#5a6270!important;}
  .btn-outline-secondary span,.btn-outline-secondary:hover{color:#fff!important;}
  .btn-outline-secondary:hover{background-color:#2a2e37!important;}
  img,video{opacity:.94;}

/* portadas */
.course-card[data-course-id="74"] .background-image,.course-card[data-course-id="74"] .card-img-top{background-image:url('https://academia.starcitizen.es/cover_74_navegacion.jpg')!important;background-size:cover!important;background-position:center!important;}
.course-card[data-course-id="75"] .background-image,.course-card[data-course-id="75"] .card-img-top{background-image:url('https://academia.starcitizen.es/cover_75_flota_hercules.jpg')!important;background-size:cover!important;background-position:center!important;}
.course-card[data-course-id="76"] .background-image,.course-card[data-course-id="76"] .card-img-top{background-image:url('https://academia.starcitizen.es/cover_76_interfaz.jpg')!important;background-size:cover!important;background-position:center!important;}
