/* custom.css */
/* Sobrescribe colores de MDBootstrap */
:root {
  --mdb-primary: #5735e1 !important;
  --mdb-secondary: #482bb9 !important;
}

/* Logo genérico más pequeño */
.logo-img {
  max-height: 40px;  /* antes era 60px */
  width: auto;
}

/* Fondo y centrado auth */
.auth-wrapper {
  background: url('/images/bg.png') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100vh;
}

/* Caja blanca translúcida */
.auth-box {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  margin-top: 5%;
  max-width: 400px;
  width: 100%;
}

/* Sidebar */
#sidebar {
  width: 250px;
  position: fixed;
  top: 0;
  bottom: 0;
  background-color: #f2efff;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
  padding-top: 1rem;
}

/* Header del sidebar */
#sidebar .sidebar-header {
  text-align: center;
  padding-bottom: 1rem;
}

/* Logo dentro del sidebar */
#sidebar .sidebar-header img {
  max-height: 50px;
  width: auto;
  margin-bottom: 0.5rem;
}

/* Nombre de la plataforma */
#sidebar .sidebar-header .fw-bold {
  margin: 0;
  font-size: 1.25rem;
}

/* Saludo */
#sidebar .greeting {
  padding: 0 0.75rem 1rem;
  font-size: 0.95rem;
}

/* Limpia bullets y márgenes de la lista */
#sidebar .components {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Estilo MD Bootstrap para los enlaces */
#sidebar .components .list-group-item {
  border: none;
  border-radius: 0.5rem;
  margin: 0.25rem 0.5rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  color: #333;
  background-color: transparent;
}

#sidebar .components .list-group-item i {
  margin-right: 0.75rem;
}

#sidebar .components .list-group-item.active,
#sidebar .components .list-group-item:hover {
  background-color: var(--mdb-primary);
  color: #fff;
}

/* Footer del sidebar */
#sidebar .sidebar-footer {
  position: absolute;
  bottom: 1rem;
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

/* Ajuste de contenido principal cuando existe sidebar */
#content {
  margin-left: 250px;    /* ancho del sidebar */
  padding: 0rem 1.5rem 1.5rem 1.5rem !important;
}

/* Aseguramos que en páginas de auth el margin-left no aplique */
.auth-wrapper + .auth-box,
.auth-wrapper > .auth-box {
  margin-left: 0 !important;
}

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    width: auto;
}

#sidebar .components .list-group-item:hover {
    color: #fff !important;
}

.btn:disabled {
  color: #fff !important;
}

.btn-primary {
  background-color: #5735e1 !important;
}

.btn-outline-secondary {
  --mdb-btn-bg: transparent;
  --mdb-btn-color: #5735e1 !important;
  --mdb-btn-hover-bg: transparent;
  --mdb-btn-hover-color: #482bb9 !important;
  --mdb-btn-focus-bg: transparent;
  --mdb-btn-focus-color: #482bb9 !important;
  --mdb-btn-active-bg: transparent;
  --mdb-btn-active-color: #5735e1 !important;
  border-color: #5735e1 !important;
}

.mb-2 {
  font-size: 14px;
}

.vidbad {
  color: #fff;
  top: 8px;
  position: absolute;
  background-color: #5735e1 ;
  padding: 6px 6px 6px 6px;
  margin-top: -8px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.video-thumb, .video-thumb img {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.progress-bar {
    background-color: #14a44d !important;
}