.btn-turquoise {
  background-color: #00b2a9;
  border-color: #00b2a9;
  color: #fff;
}

.mt-15 {
  margin-top: 15px;
}

.label-color-custom {
  color: #00b2a9;
}

.btn-turquoise:hover {
  background-color: #007f8d;
  border-color: #007f8d;
  color: #fff;
}

body {
  font-family: 'Quicksand', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Orbitron', sans-serif !important;
}

.label-sign-in {
  color: #fff;
}

.borde-redondo {
  border-radius: 12px !important;
}

button {
  border-radius: 24px !important;
}

.headerpanel .logopanel {
  text-align: center;
}


.logocentro {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 230px;
  text-align: center;
}

@media (min-width: 993px) {
  .logocentro {
    display: none;
  }

  #menuToggle {
    display: none;
  }
}

@media (max-width: 993px) {
  .colapsarMovil {
    display: none;
  }
}

@media (min-width: 991px) {
  .colapsarDesktop {
    display: none;
  }
}

.no-separador .btn:not(.btn-default)+.btn:not(.btn-default),
.no-separador .btn:not(.btn-default)+.btn-group,
.no-separador .btn-group+.btn:not(.btn-default),
.no-separador .btn-group+.btn-group {
  margin-left: initial;
  border-left: none;
}

.homeMenu {
  margin: 0 0 0 !important;
}

.pane-he-gpol {
  font-size: 20px;
  font-weight: bold;
  text-transform: none;
}

.panel-video-link {
  text-decoration: none;
  color: inherit;
}

.logo-panel {

  position: relative;
  background-image: url('../images/logos/logo-panel.png');
  background-repeat: no-repeat;
  background-position: right 3px bottom 3px;
  background-size: 60px;
  background-color: #fff;

}

@media (min-width: 1500px) {
  .panel-wrapper {
    max-width: 1500px;
    margin: 0 auto;
  }


}

@media (min-width: 992px) {
  .panel-wrapper .col-md-4:nth-child(3n+1) {
    clear: both;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .panel-wrapper .col-sm-6:nth-child(2n+1) {
    clear: both;
  }
}

.bg-custom {
  background-image: url('../images/fondo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
}


.panel-estadisticas {
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 25px;

}

@media (min-width: 1650px) {
  .panel-estadisticas {

    max-width: 400px;
  }

}


hr {
  border-color: darkgrey;
}

.dataTables_wrapper .dataTables_filter {
  float: right !important;
  text-align: right;
}

.dataTables_wrapper .dataTables_length {
  float: left !important;
  text-align: left;
}

.dataTables_wrapper .dataTables_paginate {
  float: right !important;
  text-align: right;
}


.dataTables_filter .form-control {
  margin-left: 5px;
}

.pane-usuarios {
  font-size: 20px;
  font-weight: bold;
  text-transform: none;
}

.home-dashboard-content {
  padding: 24px 24px 40px;
}

.home-dashboard-surface {
  position: relative;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(145deg, #f6f7fb 0%, #eef4ff 55%, #f9fbff 100%);
  box-shadow: 0 18px 35px rgba(16, 38, 84, 0.08);
  overflow: hidden;
}

.home-dashboard-surface::before,
.home-dashboard-surface::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  pointer-events: none;
}

.home-dashboard-surface::before {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 30% 30%, #6aa7ff, transparent 70%);
  top: -110px;
  right: -80px;
}

.home-dashboard-surface::after {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 40% 40%, #00b2a9, transparent 70%);
  bottom: -120px;
  left: -90px;
}

.home-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  position: relative;
  z-index: 1;
  align-items: start;
}

.home-hero {
  grid-column: span 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.home-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5b6b8b;
}

.home-hero__title {
  margin: 8px 0 6px;
  font-size: 28px;
  font-weight: 600;
  color: #1f2a44;
}

.home-hero__subtitle {
  margin: 0;
  font-size: 15px;
  color: #4c5a77;
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #121b35;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 18px rgba(18, 27, 53, 0.18);
}

.home-hero__badge i {
  color: #79d6cf;
}

.home-card {
  grid-column: span 12;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e3ebf5;
  box-shadow: 0 10px 24px rgba(15, 39, 80, 0.05);
}

.home-card--updates {
  grid-column: span 8;
}

.home-card--progress {
  grid-column: span 4;
  align-self: start;
}

.topics-content {
  padding: 24px 24px 40px;
}

.topics-breadcrumb {
  margin-bottom: 18px;
}

.topic-card {
  border-radius: 16px;
  border: 1px solid #e4ecf7;
  box-shadow: 0 12px 24px rgba(15, 39, 80, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(15, 39, 80, 0.12);
}

.topic-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topic-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 8px 16px rgba(239, 68, 68, 0.35);
  animation: badge-pulse 1.8s ease-in-out infinite;
}

.topic-card__badge::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid rgba(239, 68, 68, 0.45);
  opacity: 0;
  animation: badge-ring 1.8s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes badge-ring {
  0% {
    opacity: 0.65;
    transform: scale(0.95);
  }
  60% {
    opacity: 0;
    transform: scale(1.25);
  }
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}

.topic-card .panel-body p {
  color: #4d5c78;
  font-size: 14px;
  margin-bottom: 16px;
}

.topics-empty {
  padding: 40px 20px;
  border-radius: 18px;
  background: #f7f9ff;
  border: 1px dashed #d3dcef;
}

.topics-empty i {
  font-size: 28px;
  color: #7b91b8;
  margin-bottom: 10px;
}

.home-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #edf2f7;
}

.home-card__kicker {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4f6286;
  margin-bottom: 6px;
}

.home-card__title {
  margin: 0;
  font-size: 20px;
  color: #1b2640;
}

.home-card__body {
  padding: 18px 20px 22px;
}

.progress-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.progress-ring__visual {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: conic-gradient(#00b2a9 var(--progress), #ffb566 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.progress-ring__visual::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e8eef7;
}

.progress-ring__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.progress-ring__value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: #1b2640;
}

.progress-ring__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7a97;
}

.progress-ring__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  text-align: center;
}

.progress-ring__stat-label {
  display: block;
  font-size: 12px;
  color: #6b7a97;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.progress-ring__stat-value {
  display: block;
  font-size: 20px;
  color: #1b2640;
}

.home-card--progress .home-card__body {
  padding: 24px 22px 26px;
}

.home-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 14px;
  background: #f5f8ff;
  color: #4d5c78;
  font-size: 14px;
}

.home-empty i {
  color: #7b91b8;
  font-size: 18px;
}

.update-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.update-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #f9fbff;
  border: 1px solid #e6eef8;
}

.update-item__dot {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #121b35;
  color: #fff;
  flex-shrink: 0;
}

.update-item__content {
  flex: 1;
}

.update-item__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.update-item__title {
  margin: 0;
  font-size: 16px;
  color: #1c2742;
}

.update-item__date {
  font-size: 12px;
  color: #6b7a97;
}

.update-item__meta {
  margin: 8px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.update-item__badge {
  background: #e3f6f5;
  color: #167c75;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.update-item__tag {
  background: #eef3ff;
  color: #3c517a;
  padding: 4px 8px;
  border-radius: 999px;
}

.update-item__description {
  margin: 0 0 10px;
  color: #4d5c78;
  font-size: 14px;
}

.update-item__link {
  font-size: 13px;
  color: #1b4fd9;
  font-weight: 600;
}

.update-item__link:hover {
  text-decoration: underline;
  color: #173db2;
}

@media (max-width: 768px) {
  .home-dashboard-content {
    padding: 18px;
  }

  .home-dashboard-surface {
    padding: 18px;
  }

  .home-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .progress-ring__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-card--updates,
  .home-card--progress {
    grid-column: span 12;
  }

  .topics-content {
    padding: 18px;
  }

}

@media (max-width: 480px) {
  .progress-ring__visual {
    width: 190px;
    height: 190px;
  }

  .progress-ring__visual::after {
    width: 140px;
    height: 140px;
  }

  .progress-ring__stats {
    grid-template-columns: 1fr;
    text-align: left;
  }
}



@media (min-width: 767px) {
  .bg-custom-login {
    background-image: url('../images/fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
  }

}

.input-group-addon {
  border-right: none !important;
  background-color: #fff;
}

.input-group .form-control {
  border-left: none !important;
}

.mt-10 {
  margin-top: 10px;
}

.btn-user-add {
  min-width: 160px;
  border-radius: 20px;
}


@media (min-width: 768px) {
  .modal-dialog.modal-alta-usuario {
    max-width: 700px;
  }
}

@media (min-width: 1200px) {
  .modal-dialog.modal-alta-usuario {
    max-width: 800px;
  }
}

@media (max-width: 767px) {
  .modal-dialog.modal-alta-usuario {
    width: 90%;
    margin: 10px auto;
    /* centrado horizontal + margen arriba */
  }

  .modal-content {
    max-height: calc(100vh - 20px);
    /* alto máximo dentro de pantalla */
    overflow-y: auto;
    /* scroll interno si se necesita */
  }

  .modal-body {
    padding: 20px;
  }
}

@media (max-width: 767px) {
  .modal-dialog.modal-alta-usuario {
    width: 95% !important;
    max-width: 95% !important;
    margin: 10px auto;
  }
}

@media (min-width: 768px) {
  .modal-dialog.modal-alta-usuario {
    width: 600px;
    max-width: 90%;
    margin: 30px auto;
  }
}

.modal-dialog.modal-alta-usuario {
  top: 38%;
}

.select2-container {
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 768px) {
  .select2-container {
    margin-top: 5px;
    margin-bottom: 5px;
  }
}

.alta-alumno-h3 {
  font-size: 20px;
}

.cancelar-alta-alumno {
  border-radius: 24px !important;
}

.has-error .form-control {
  border-color: #d9534f;
}

.text-error {
  color: #d9534f;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

#tablaUsuarios tbody tr {
  cursor: pointer;
}

.modal-dialog {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) !important;
  width: 95%;
  /* ocupa casi todo el ancho disponible */
  max-width: 720px;
  /* no se estira más de esto */
  margin: 0 auto;
}





.modal-body-mensaje {
  min-height: 120px;
  font-size: 22px;
  margin-top: 20px;
  margin-bottom: 30px;
}




#modalConfirmText {
  font-size: 20px;
}


@media (max-width: 767px) {
  .signin {

    left: 14px !important;

  }
}


.has-error {
  border-color: #d9534f !important;
  box-shadow: 0 0 5px rgba(217, 83, 79, 0.5);
}

.modal-dialog-recover {
  max-width: 442px !important;
}


.forgot-popup {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 767px) {
  .forgot-popup {
    position: fixed;
    top: 14%;
    left: 50%;
    padding: 20px;
  }
}

input,
textarea,
select {
  font-size: 16px !important;
}



@media (max-width: 767px) {
  .signin {
    left: unset !important;
    width: 100% !important;
  }
}

.course-card {
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.course-card .panel-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.course-card .panel-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.course-card .btn {
  border-radius: 20px;
  padding: 8px 20px;
  margin-top: 10px;
}

.topic-list .list-group-item {
  border-radius: 10px;
  margin-bottom: 15px;
  border-left: 5px solid #00b2a9;
  transition: all 0.3s ease;
}

.topic-list .list-group-item:hover {
  background-color: #f5f5f5;
  transform: translateX(5px);
}

.topic-list .list-group-item-heading {
  font-weight: 600;
  color: #333;
}

.topic-list .list-group-item-text {
  color: #666;
}

.video-panel {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 34, 58, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    margin-bottom: 18px;
}

.video-panel--list {
    display: flex;
    align-items: stretch;
    gap: 24px;
    padding: 20px;
    border: 1px solid #e3e8f2;
    background-color: #fff;
}

.video-panel--list:hover {
    box-shadow: 0 12px 30px rgba(15, 34, 58, 0.12);
    transform: translateY(-3px);
}

.video-media {
    flex: 0 0 260px;
}

.panel-thumbnail {
    position: relative;
    height: 190px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    border-radius: 8px;
}

.panel-thumbnail::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.65) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.panel-thumbnail.has-thumbnail::after {
    opacity: 1;
}

.panel-thumbnail .thumbnail-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: #fff;
    text-transform: uppercase;
    background-color: rgba(0,0,0,0.35);
    z-index: 2;
    transition: opacity 0.3s ease;
}

.panel-thumbnail.has-thumbnail .thumbnail-loading {
    opacity: 0;
    visibility: hidden;
}

.panel-thumbnail.thumbnail-error {
    background-color: #1f1f1f;
}

.panel-thumbnail.thumbnail-error .thumbnail-loading {
    opacity: 1;
    visibility: visible;
    background-color: rgba(0,0,0,0.6);
}

.panel-thumbnail-link {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 5rem;
    opacity: 0.85;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.panel-thumbnail-link:hover {
    opacity: 1;
    transform: scale(1.05);
    text-decoration: none;
}

.video-details {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-details-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.video-details-heading h4 {
    margin: 0;
    font-size: 1.25rem;
    color: #232b3f;
}

.video-new-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}

.video-panel-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #edf0f5;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.78rem;
    color: #6b7280;
}

.video-footer-label {
    font-weight: 600;
    width: 100%;
    text-align: center;
}

.video-watched-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #dfe4ec;
    background: #fff;
    cursor: pointer;
    min-width: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.video-watched-toggle .toggle-track {
    position: relative;
    width: 44px;
    height: 22px;
    flex-shrink: 0;
}

.video-watched-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.video-watched-toggle .slider {
    position: absolute;
    inset: 0;
    background-color: #e7ecf4;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.video-watched-toggle .slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.video-watched-toggle input:checked + .slider {
    background-color: #00b2a9;
}

.video-watched-toggle input:checked + .slider::after {
    transform: translateX(20px);
}

.video-watched-toggle .toggle-status {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    color: #5b6575;
}

.video-watched-toggle.is-watched {
    border-color: #00b2a9;
    background: rgba(0, 178, 169, 0.08);
}

.video-watched-toggle.is-watched .toggle-status {
    color: #007c71;
}

.video-watched-toggle.is-syncing {
    opacity: 0.6;
    pointer-events: none;
}

.video-footer-action {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-end;
}

@media (max-width: 991px) {
    .video-panel--list {
        flex-direction: column;
    }

    .video-media {
        flex: 0 0 auto;
        width: 100%;
    }

    .panel-thumbnail {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .video-details-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .video-footer-action {
        width: auto;
        align-self: flex-end;
    }
}
.toast-stack {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    }

.toast-message {
    min-width: 240px;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background: #1f2933;
    color: #fff;
    font-size: 15px;
    text-align: center;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-message.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.toast-message.is-error {
    background: #d9534f;
}

.toast-message.is-success {
    background: #00b2a9;
}


.home-no-border {
  border-top: none !important;
}

h5.sidebar-title {
  text-transform: uppercase;
  font-size: 11px;
  color: #1a1b1c;
  line-height: normal;
  padding: 13px 10px;
  /* separa el texto del borde */
  font-weight: 500;
  letter-spacing: unset;
  margin: 0;
  border-top: 1px solid #8f8a8a38;
  /* grosor + estilo + color */
}

.cursos-menu-lateral {
  background-color: #3b4354;
  text-align: center;
  color: white !important;
}

.enlace-menu li:not(.active) {
  border-top: 1px solid #8f8a8a38;
}

.nav-quirk>li {
  font-family: inherit !important;
}
.nav-quirk {
  margin: 0;
}


.modal-header {
    position: relative;
    padding-right: 48px;
}

.modal-header .close {
    position: absolute;
    top: 14px;
    right: 16px;
    margin: 0;
    font-size: 28px;
    line-height: 1;
    color: #1f2a3c;
    opacity: 0.65;
    text-shadow: none;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.modal-header .close:hover,
.modal-header .close:focus {
    opacity: 1;
    color: #000;
}
.groups-admin {
  background: radial-gradient(circle at 10% 10%, #e9f1ff 0%, #f7f9fc 40%, #ffffff 100%);
}

.groups-admin .contentpanel {
  padding: 28px 28px 60px;
}

.groups-admin__panel {
  position: relative;
}

.groups-hero {
  background: linear-gradient(135deg, #0f2544 0%, #1b3d6b 50%, #1f4e8c 100%);
  border-radius: 22px;
  padding: 28px 32px;
  color: #f4f8ff;
  box-shadow: 0 18px 45px rgba(10, 35, 75, 0.25);
  overflow: hidden;
  position: relative;
}

.groups-hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
}

.groups-hero__content {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(200px, 0.8fr);
  gap: 24px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.groups-hero__eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0.7;
}

.groups-hero__title h1 {
  margin: 8px 0 10px;
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
}

.groups-hero__title p {
  margin: 0;
  max-width: 520px;
  color: rgba(245, 248, 255, 0.86);
}

.groups-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
  justify-self: end;
}

.groups-hero__primary {
  background: #ffffff;
  border: 0;
  color: #15345c;
  padding: 10px 18px;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(12, 31, 55, 0.25);
}

.groups-hero__primary i {
  margin-right: 8px;
}

.groups-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 22px;
}

.groups-card {
  background: #ffffff;
  border: 1px solid #e6edf7;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 26px rgba(18, 44, 90, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 140px;
}

.groups-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(18, 44, 90, 0.14);
}

.groups-card__media {
  background: #f0f4fb;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.groups-card__media img {
  width: 110px;
  height: 110px;
  border-radius: 22px;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 10px 16px rgba(12, 31, 55, 0.15);
}

.groups-card__placeholder {
  width: 110px;
  height: 110px;
  border-radius: 22px;
  background: #ffffff;
  color: #4f6aa6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 10px 16px rgba(12, 31, 55, 0.12);
}

.groups-card__body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.groups-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.groups-card__label {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #74839e;
}

.groups-card__header h3 {
  margin: 4px 0 0;
  font-size: 18px;
  color: #1f2d3d;
}

.groups-card__id {
  background: #eef3fb;
  color: #4b5f7b;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 11px;
}

.groups-card__actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.groups-card__edit {
  background: #1f4e8c;
  color: #ffffff;
  border: 0;
  padding: 8px 18px;
  font-weight: 600;
}

.groups-card__topics {
  background: #ffffff;
  border: 1px solid #d7e3fb;
  color: #1f4e8c;
  font-weight: 600;
  padding: 8px 16px;
}

.groups-card__topics:hover,
.groups-card__topics:focus {
  background: #f1f6ff;
  color: #17407a;
}

.groups-empty {
  background: #ffffff;
  border: 1px dashed #d7e2f3;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  color: #60708a;
}

.groups-empty i {
  font-size: 28px;
  color: #94a5c3;
  margin-bottom: 10px;
}

.groups-modal {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e4ebf7;
  box-shadow: 0 18px 40px rgba(16, 40, 80, 0.2);
}

.groups-modal .modal-header {
  background: #f3f6fb;
  border-bottom: 1px solid #e1e8f5;
}

.groups-modal .modal-title {
  font-weight: 600;
  color: #1f2d3d;
}

.groups-modal .modal-body {
  padding-top: 20px;
}

.groups-modal .form-control {
  border-radius: 12px;
  border-color: #d7e1f0;
  box-shadow: none;
}

.groups-modal .modal-footer {
  background: #f8fafc;
  border-top: 1px solid #e1e8f5;
}

.groups-modal__message {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #e8f0ff;
  color: #1f4e8c;
  font-size: 13px;
  display: none;
}

.groups-modal__message.is-visible {
  display: block;
}

.groups-modal__message.is-error {
  background: #fdecec;
  color: #a12a2a;
}

.groups-cropper__hint {
  display: block;
  margin-top: 6px;
  color: #6f7f98;
  font-size: 12px;
}

.groups-cropper {
  margin-top: 12px;
  width: 100%;
  aspect-ratio: 781 / 340;
  background: #eef3fb;
  border-radius: 14px;
  border: 1px solid #d9e2f2;
  position: relative;
  overflow: hidden;
}

.groups-cropper__image {
  position: absolute;
  left: 0;
  top: 0;
  cursor: move;
  user-select: none;
  max-width: none;
}

.groups-cropper__image.is-hidden {
  display: none;
}

.groups-cropper__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8a98b5;
  font-size: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(224, 235, 250, 0.85));
  border: 1px dashed rgba(120, 150, 200, 0.5);
  border-radius: 14px;
  text-align: center;
}

.groups-cropper__placeholder i {
  font-size: 26px;
  color: #6b82a8;
}

.groups-cropper__placeholder.is-hidden {
  display: none;
}

.groups-cropper__controls {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.groups-cropper__controls label {
  margin: 0;
  font-size: 12px;
  color: #5d6d85;
}

.groups-cropper__controls input[type="range"] {
  flex: 1;
}

@media (max-width: 991px) {
  .groups-hero__content {
    grid-template-columns: 1fr;
  }

  .groups-hero__actions {
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .groups-admin .contentpanel {
    padding: 20px;
  }

  .groups-card {
    grid-template-columns: 1fr;
  }

  .groups-card__media {
    height: 140px;
  }

  .groups-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .groups-hero__title h1 {
    font-size: 24px;
  }
}

.courses-admin {
  background: radial-gradient(circle at 12% 12%, #e8f1ff 0%, #f7f9fc 45%, #ffffff 100%);
}

.courses-admin .contentpanel {
  padding: 28px 28px 60px;
}

.courses-admin__panel {
  position: relative;
}

.courses-hero {
  background: linear-gradient(135deg, #0b1f3a 0%, #123765 55%, #1a73e8 100%);
  border-radius: 22px;
  padding: 28px 32px;
  color: #f4f8ff;
  box-shadow: 0 20px 48px rgba(18, 60, 120, 0.28);
  overflow: hidden;
  position: relative;
}

.courses-hero::after {
  content: '';
  position: absolute;
  right: -110px;
  top: -90px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
}

.courses-hero__content {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(220px, 0.85fr);
  gap: 24px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.courses-hero__eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0.75;
}

.courses-hero__title h1 {
  margin: 8px 0 10px;
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
}

.courses-hero__title p {
  margin: 0;
  max-width: 540px;
  color: rgba(244, 248, 255, 0.9);
}

.courses-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  justify-self: end;
}

.courses-hero__primary {
  background: #ffffff;
  border: 0;
  color: #0f3d8c;
  padding: 10px 18px;
  font-weight: 600;
  box-shadow: 0 12px 26px rgba(10, 35, 75, 0.25);
}

.courses-hero__primary i {
  margin-right: 8px;
}

.courses-hero__hint {
  margin: 0;
  font-size: 12px;
  color: rgba(240, 244, 255, 0.88);
  display: flex;
  align-items: center;
  gap: 6px;
}

.courses-toolbar {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.courses-toolbar__item {
  background: #ffffff;
  border: 1px solid #e3ebf9;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 10px 20px rgba(15, 50, 110, 0.06);
}

.courses-toolbar__label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7385a3;
}

.courses-toolbar__value {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  color: #1f2d3d;
}

.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 20px;
}

.courses-card {
  background: #ffffff;
  border: 1px solid #e5edf9;
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 12px 22px rgba(18, 55, 110, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: grab;
}

.courses-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(18, 55, 110, 0.14);
  border-color: #d8e5fb;
}

.courses-card.is-dragging {
  opacity: 0.7;
  transform: scale(0.99);
  cursor: grabbing;
}

.courses-card.is-drop-target {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.18);
}

.courses-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.courses-card__order {
  background: #f1f3f7;
  color: #5f6c80;
  padding: 4px 8px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 600;
}

.courses-card__order.is-hidden {
  display: none;
}

.courses-card__status {
  padding: 4px 8px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 600;
}

.courses-card__status.is-available {
  background: #e7f4ea;
  color: #1e7d34;
}

.courses-card__status.is-hidden {
  background: #f1f3f7;
  color: #5f6c80;
}

.courses-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.courses-card__label {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #74839e;
}

.courses-card__title h3 {
  margin: 4px 0 4px;
  font-size: 17px;
  color: #1f2d3d;
}

.courses-card__id {
  display: inline-block;
  background: #f0f4fb;
  color: #4b5f7b;
  padding: 3px 7px;
  border-radius: 10px;
  font-size: 10.5px;
}

.courses-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.courses-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.courses-card__actions--right {
  margin-left: auto;
}

.courses-card__icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.courses-card__icon-btn i {
  font-size: 14px;
}

.courses-card__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.courses-card--inactive {
  background: #adb6c5;
  border-color: #959ba5;
}

.courses-card--inactive h3,
.courses-card--inactive .courses-card__label {
  color: #445062;
}

.courses-card--inactive .courses-card__order {
  background: #e6e9ee;
  color: #7a8596;
}

.courses-card__edit:hover,
.courses-card__edit:focus,
.courses-card__edit:active {
  color: #ffffff;
}

.courses-card__ghost {
  background: #f3f6ff;
  border: 1px dashed #c9d8f8;
  color: #315ea8;
  font-weight: 600;
}

.courses-card__ghost i {
  margin-right: 6px;
}

.courses-card__edit {
  background: #1a73e8;
  border: 0;
  color: #ffffff;
  font-weight: 600;
  padding: 7px 12px;
}

.courses-card__topics {
  background: #ffffff;
  border: 1px solid #d7e3fb;
  color: #1f4e8c;
  font-weight: 600;
  padding: 7px 12px;
}

.courses-card__topics:hover,
.courses-card__topics:focus {
  background: #f1f6ff;
  color: #17407a;
}

.courses-empty {
  background: #ffffff;
  border: 1px dashed #d7e2f3;
  border-radius: 16px;
  padding: 44px 40px;
  text-align: center;
  color: #60708a;
  grid-column: 1 / -1;
}

.courses-empty i {
  font-size: 28px;
  color: #94a5c3;
  margin-bottom: 10px;
}

.courses-feedback {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #e8f0ff;
  color: #1f4e8c;
  font-size: 13px;
  display: none;
  border: 1px solid #d7e4ff;
}

.courses-feedback.is-visible {
  display: block;
}

.courses-feedback.is-error {
  background: #fdecec;
  color: #a12a2a;
  border-color: #f6caca;
}

.courses-modal {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e4ebf7;
  box-shadow: 0 18px 40px rgba(16, 40, 80, 0.2);
}

.courses-modal .modal-header {
  background: #f3f6fb;
  border-bottom: 1px solid #e1e8f5;
}

.courses-modal .modal-title {
  font-weight: 600;
  color: #1f2d3d;
}

.courses-modal .modal-body {
  padding-top: 20px;
}

.courses-modal .form-control {
  border-radius: 12px;
  border-color: #d7e1f0;
  box-shadow: none;
}

.courses-modal .modal-footer {
  background: #f8fafc;
  border-top: 1px solid #e1e8f5;
}

.courses-modal__message {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #e8f0ff;
  color: #1f4e8c;
  font-size: 13px;
  display: none;
}

.courses-modal__message.is-visible {
  display: block;
}

.courses-modal__message.is-error {
  background: #fdecec;
  color: #a12a2a;
}

.courses-modal__switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 13px;
  background: #f6f8fe;
  border: 1px solid #e0e7f7;
  color: #42526b;
  font-weight: 600;
}

.courses-switch {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
}

.courses-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.courses-switch__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #c9d4ea;
  transition: background-color 0.2s ease;
  border-radius: 999px;
}

.courses-switch__slider::before {
  content: '';
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  top: 3px;
  background-color: white;
  transition: transform 0.2s ease;
  border-radius: 50%;
  box-shadow: 0 6px 12px rgba(15, 50, 110, 0.2);
}

.courses-switch input:checked + .courses-switch__slider {
  background-color: #1a73e8;
}

.courses-switch input:checked + .courses-switch__slider::before {
  transform: translateX(20px);
}

@media (max-width: 991px) {
  .courses-hero__content {
    grid-template-columns: 1fr;
  }

  .courses-hero__actions {
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .courses-admin .contentpanel {
    padding: 20px;
  }

  .courses-card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .courses-card__actions {
    justify-content: space-between;
  }

  .courses-hero__title h1 {
    font-size: 24px;
  }
}

.courses-groups {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.courses-group {
  background: #ffffff;
  border: 1px solid #e4ecfa;
  border-radius: 20px;
  padding: 16px 18px 18px;
  box-shadow: 0 16px 30px rgba(18, 55, 110, 0.07);
}

.courses-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.courses-group__label {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #74839e;
}

.courses-group__title h2 {
  margin: 6px 0 0;
  font-size: 22px;
  color: #1f2d3d;
}

.courses-group__count {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 12px;
  background: #eef3ff;
  color: #2d4f85;
  font-weight: 600;
  font-size: 12px;
}

.courses-group .courses-grid {
  margin-top: 12px;
}

.courses-empty--global {
  margin-top: 22px;
}

.topics-admin {
  background: radial-gradient(circle at 12% 12%, #e8f1ff 0%, #f7f9fc 45%, #ffffff 100%);
}

.topics-admin .contentpanel {
  padding: 28px 28px 60px;
}

.topics-admin__panel {
  position: relative;
}

.topics-hero {
  background: linear-gradient(135deg, #0b1f3a 0%, #123765 55%, #1a73e8 100%);
  border-radius: 22px;
  padding: 28px 32px;
  color: #f4f8ff;
  box-shadow: 0 20px 48px rgba(18, 60, 120, 0.28);
  overflow: hidden;
  position: relative;
}

.topics-hero::after {
  content: '';
  position: absolute;
  right: -110px;
  top: -90px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
}

.topics-hero__content {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(240px, 0.85fr);
  gap: 24px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.topics-hero__eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0.75;
}

.topics-hero__title h1 {
  margin: 8px 0 10px;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
}

.topics-hero__title p {
  margin: 0;
  max-width: 580px;
  color: rgba(244, 248, 255, 0.9);
}

.topics-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  justify-self: end;
}

.topics-hero__primary {
  background: #ffffff;
  border: 0;
  color: #0f3d8c;
  padding: 10px 18px;
  font-weight: 600;
  box-shadow: 0 12px 26px rgba(10, 35, 75, 0.25);
}

.topics-hero__primary i,
.topics-hero__secondary i {
  margin-right: 8px;
}

.topics-hero__secondary {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 600;
}

.topics-hero__secondary:hover,
.topics-hero__secondary:focus {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.topics-hero__hint {
  margin: 0;
  font-size: 12px;
  color: rgba(240, 244, 255, 0.88);
  display: flex;
  align-items: center;
  gap: 6px;
}

.topics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 20px;
}

.topics-card {
  background: #ffffff;
  border: 1px solid #e5edf9;
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 12px 22px rgba(18, 55, 110, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: grab;
}

.topics-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(18, 55, 110, 0.12);
  border-color: #d8e5fb;
}

.topics-card.is-dragging {
  opacity: 0.7;
  transform: scale(0.99);
  cursor: grabbing;
}

.topics-card.is-drop-target {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.18);
}

.topics-card__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.topics-card__status {
  background: #f1f3f7;
  color: #5f6c80;
  padding: 4px 8px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 600;
}

.topics-card--inactive .topics-card__status {
  background: #e6e9ee;
  color: #7a8596;
}

.topics-card__status.is-hidden {
  display: none;
}

.topics-card__label {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #74839e;
}

.topics-card__label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.topics-card__body h3 {
  margin: 4px 0 4px;
  font-size: 17px;
  color: #1f2d3d;
}

.topics-card__description {
  margin: 0;
  color: #55657e;
}

.topics-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.topics-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topics-card__actions--right {
  margin-left: auto;
}

.topics-card__ghost {
  background: #f3f6ff;
  border: 1px dashed #c9d8f8;
  color: #315ea8;
  font-weight: 600;
}

.topics-card__ghost i {
  margin-right: 6px;
}

.topics-card__edit {
  background: #1a73e8;
  border: 0;
  color: #ffffff;
  font-weight: 600;
  padding: 7px 12px;
}

.topics-card__edit i {
  font-size: 14px;
}

.topics-card__edit:hover,
.topics-card__edit:focus,
.topics-card__edit:active {
  background: #155fc2;
  color: #ffffff;
}

.topics-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.topics-card--link:hover {
  text-decoration: none;
  color: inherit;
}

.topics-card__meta {
  margin: 6px 0 0;
  font-size: 13px;
  color: #6b7a90;
}

.topics-card__media {
  margin: -10px 14px -10px -10px;
}

.topics-card__media .panel-thumbnail {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 120px;
  width: 200px;
  background: #f1f4fa;
  background-size: cover;
  background-position: center;
}

.topics-card__media .panel-thumbnail.has-thumbnail .thumbnail-loading {
  display: none;
}

.topics-card__media .panel-thumbnail .thumbnail-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #6b7a90;
  font-size: 13px;
}

.topics-card__media .panel-thumbnail-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease;
}

.topics-card__media .panel-thumbnail-link i {
  font-size: 46px;
}

.topics-card__media .panel-thumbnail-link:hover {
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

.topics-card--video {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.topics-card--video .topics-card__media {
  margin: 0;
  flex: 0 0 240px;
}

.topics-card--video .panel-thumbnail {
  width: 100%;
  min-height: 140px;
}

.topics-card--video .topics-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.topics-card--video .topics-card__footer {
  margin-top: auto;
}

@media (max-width: 991px) {
  .topics-card--video {
    flex-direction: column;
  }

  .topics-card--video .topics-card__media {
    margin: -10px -10px 12px;
    flex: 0 0 auto;
  }

  .topics-card--video .panel-thumbnail {
    width: 100%;
  }
}

.topics-card__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef3ff;
  color: #1f4e8c;
  font-size: 12px;
  font-weight: 600;
}

.video-admin-spacer {
  height: 16px;
}

.topics-grid--compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.topics-card--compact {
  padding: 14px 16px;
}

.topics-card--compact .topics-card__label {
  font-size: 11px;
  margin-bottom: 2px;
}

.topics-card--compact .topics-card__body h3 {
  font-size: 15px;
  margin: 4px 0 0;
}

.topics-card--compact .topics-card__header {
  margin-bottom: 6px;
}

@media (max-width: 991px) {
  .topics-grid--compact {
    grid-template-columns: 1fr;
  }
}

.topics-empty {
  background: #ffffff;
  border: 1px dashed #d7e2f3;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  color: #60708a;
}

.topics-card--inactive {
  background: #adb6c5;
  border-color: #959ba5;
}

.topics-card--inactive .topics-card__body h3 {
  color: #50617a;
}

.topics-card--inactive .topics-card__description {
  color: #6a7a92;
}

.topics-empty i {
  font-size: 28px;
  color: #94a5c3;
  margin-bottom: 10px;
}

.topics-feedback {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #e8f0ff;
  color: #1f4e8c;
  font-size: 13px;
  display: none;
  border: 1px solid #d7e4ff;
}

.topics-feedback.is-visible {
  display: block;
}

.topics-feedback.is-error {
  background: #fdecec;
  color: #a12a2a;
  border-color: #f6caca;
}

.topics-modal {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e4ebf7;
  box-shadow: 0 18px 40px rgba(16, 40, 80, 0.2);
}

.topics-modal .modal-header {
  background: #f3f6fb;
  border-bottom: 1px solid #e1e8f5;
}

.topics-modal .modal-title {
  font-weight: 600;
  color: #1f2d3d;
}

.topics-modal .modal-body {
  padding-top: 20px;
}

.topics-modal .form-control {
  border-radius: 12px;
  border-color: #d7e1f0;
  box-shadow: none;
}

.topics-modal .modal-footer {
  background: #f8fafc;
  border-top: 1px solid #e1e8f5;
}

.topics-modal__footer {
  display: flex;
  align-items: center;
}

.topics-modal__footer .btn-danger {
  margin-right: auto;
}

.modal.modal-center .modal-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100% - 1rem);
  margin: 0 auto;
}

.topics-modal__message {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #e8f0ff;
  color: #1f4e8c;
  font-size: 13px;
  display: none;
}

.topics-modal__message.is-visible {
  display: block;
}

.topics-modal__message.is-error {
  background: #fdecec;
  color: #a12a2a;
}

.topics-modal__switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 13px;
  background: #f6f8fe;
  border: 1px solid #e0e7f7;
  color: #42526b;
  font-weight: 600;
}

.topics-switch {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
}

.topics-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.topics-switch__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #c9d4ea;
  transition: background-color 0.2s ease;
  border-radius: 999px;
}

.topics-switch__slider::before {
  content: '';
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  top: 3px;
  background-color: white;
  transition: transform 0.2s ease;
  border-radius: 50%;
  box-shadow: 0 6px 12px rgba(15, 50, 110, 0.2);
}

.topics-switch input:checked + .topics-switch__slider {
  background-color: #1a73e8;
}

.topics-switch input:checked + .topics-switch__slider::before {
  transform: translateX(20px);
}

@media (max-width: 991px) {
  .topics-hero__content {
    grid-template-columns: 1fr;
  }

  .topics-hero__actions {
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .topics-admin .contentpanel {
    padding: 20px;
  }

  .topics-card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .topics-card__actions {
    justify-content: flex-end;
  }

  .topics-hero__title h1 {
    font-size: 24px;
  }
}
