/* ===================================
   Colores principales
   =================================== */
:root {
  --color-dark: #0d0b40;
  --color-light: #11237e;
  --color-white: #ffffff;
  --color-bg: #f8f9fa;
  --color-border: #e0e0e0;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-active: #11237e;
  --color-hover: #1a3fab;
}

/* ===================================
   Reset y estilos globales
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* ===================================
   Estructura principal
   =================================== */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--color-white);
}

/* ===================================
   Header/Navbar
   =================================== */
.header {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-light) 100%);
  color: var(--color-white);
  padding: 0 30px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(13, 11, 64, 0.15);
  flex-shrink: 0;
}

.header-left {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.header-logo:hover {
  opacity: 0.8;
}

.header-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.header-actions {
  display: flex;
  gap: 15px;
  font-size: 18px;
  cursor: pointer;
}

.header-actions span:hover {
  opacity: 0.7;
}

.logout-link {
  color: var(--color-white);
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.logout-link:hover {
  opacity: 0.8;
}

/* ===================================
   Content Wrapper
   =================================== */
.content-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ===================================
   Sidebar
   =================================== */
.sidebar {
  width: 280px;
  background-color: var(--color-white);
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-title {
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(135deg, rgba(13, 11, 64, 0.05) 0%, rgba(17, 35, 126, 0.05) 100%);
}

.sidebar-title h2 {
  font-size: 18px;
  color: var(--color-dark);
  margin: 0;
}

.sidebar-title a {
  display: block;
  text-decoration: none;
  color: var(--color-dark);
  transition: color 0.3s ease;
}

.sidebar-title a:hover {
  color: var(--color-light);
}

/* ===================================
   Cursos list
   =================================== */
.cursos-list {
  padding: 10px 0;
}

.curso-item {
  cursor: pointer;
  transition: all 0.3s ease;
}

.curso-header {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.curso-header:hover {
  background-color: rgba(17, 35, 126, 0.05);
}

.curso-item.active .curso-header {
  background: linear-gradient(90deg, rgba(17, 35, 126, 0.1) 0%, rgba(17, 35, 126, 0.05) 100%);
  border-left-color: var(--color-active);
  color: var(--color-active);
  font-weight: 600;
}

.curso-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.curso-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.toggle-arrow {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--color-text-light);
  transition: transform 0.3s ease;
}

.curso-item.expanded .toggle-arrow {
  transform: rotate(90deg);
}

/* Modulos */
.modulos-list {
  display: none;
  padding-left: 10px;
}

.curso-item.expanded .modulos-list {
  display: block;
}

.modulo-item {
  cursor: pointer;
  transition: all 0.3s ease;
}

.modulo-header {
  padding: 10px 20px;
  padding-left: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  font-size: 13px;
}

.modulo-header:hover {
  background-color: rgba(17, 35, 126, 0.05);
}

.modulo-item.active .modulo-header {
  background-color: rgba(17, 35, 126, 0.1);
  border-left-color: var(--color-active);
  color: var(--color-active);
  font-weight: 600;
}

.modulo-icon {
  font-size: 16px;
  width: 18px;
  text-align: center;
}

.modulo-toggle {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--color-text-light);
  transition: transform 0.3s ease;
}

.modulo-item.expanded .modulo-toggle {
  transform: rotate(90deg);
}

/* Lecciones */
.lecciones-list {
  display: none;
  padding-left: 10px;
}

.modulo-item.expanded .lecciones-list {
  display: block;
}

.leccion-item {
  padding: 8px 20px;
  padding-left: 45px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  user-select: none;
}

.leccion-item:hover {
  background-color: rgba(17, 35, 126, 0.05);
}

.leccion-item.active {
  background: linear-gradient(90deg, rgba(17, 35, 126, 0.15) 0%, rgba(17, 35, 126, 0.08) 100%);
  border-left-color: var(--color-active);
  color: var(--color-active);
  font-weight: 600;
}

.leccion-icon {
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.leccion-status {
  margin-left: auto;
  font-size: 10px;
  color: var(--color-text-light);
}

.leccion-item.completed .leccion-status::before {
  content: "✓";
  color: #27ae60;
  margin-right: 4px;
}

/* ===================================
   Main Content Area
   =================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.breadcrumb {
  padding: 15px 30px;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-white);
  font-size: 13px;
  color: var(--color-text-light);
}

.breadcrumb span {
  color: var(--color-active);
  font-weight: 500;
}

/* ===================================
   Leccion Header
   =================================== */
.leccion-header {
  padding: 30px;
  background: linear-gradient(135deg, rgba(13, 11, 64, 0.02) 0%, rgba(17, 35, 126, 0.02) 100%);
  border-bottom: 1px solid var(--color-border);
}

.leccion-header h1 {
  font-size: 28px;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.leccion-header p {
  color: var(--color-text-light);
  font-size: 14px;
  margin: 0;
}

/* ===================================
   Leccion Content
   =================================== */
.leccion-content-area {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
}

.leccion-body {
  max-width: 800px;
  line-height: 1.8;
  color: var(--color-text);
}

.leccion-body p {
  margin-bottom: 15px;
  text-align: justify;
}

/* ===================================
   Progress Bar
   =================================== */
.progress-section {
  margin-top: 30px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(13, 11, 64, 0.03) 0%, rgba(17, 35, 126, 0.03) 100%);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.progress-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-dark) 0%, var(--color-light) 100%);
  width: 50%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 8px;
}

/* ===================================
   Leccion Actions
   =================================== */
.leccion-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

.leccion-action-left {
  flex: 0 1 auto;
}

.leccion-action-center {
  flex: 0 1 auto;
}

.leccion-action-right {
  flex: 0 1 auto;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-light) 100%);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(17, 35, 126, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(17, 35, 126, 0.3);
}

.btn-secondary {
  background-color: var(--color-bg);
  color: var(--color-dark);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-white);
  border-color: var(--color-dark);
}

/* ===================================
   Scrollbar personalizado
   =================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-white);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-light);
}

/* ===================================
   Sidebar Toggle (Mobile)
   =================================== */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 24px;
  cursor: pointer;
  padding: 0 15px;
}

.sidebar.mobile-hidden {
  transform: translateX(-100%);
  position: fixed;
  left: 0;
  top: 60px;
  height: calc(100vh - 60px);
  z-index: 1000;
  width: 280px;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.sidebar.mobile-visible {
  transform: translateX(0);
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.overlay.visible {
  display: block;
}

/* ===================================
   Responsive - Tablet (768px)
   =================================== */
@media (max-width: 1024px) {
  .sidebar {
    width: 250px;
  }

  .leccion-header {
    padding: 20px;
  }

  .leccion-content-area {
    padding: 20px;
  }

  .header {
    padding: 0 15px;
  }
}

/* ===================================
   Responsive - Mobile (768px and below)
   =================================== */
@media (max-width: 768px) {
  .sidebar-toggle {
    display: block;
  }

  .sidebar {
    width: 280px;
    position: fixed;
    left: 0;
    top: 60px;
    height: calc(100vh - 60px);
    transform: translateX(-100%);
    z-index: 1000;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
  }

  .sidebar.mobile-visible {
    transform: translateX(0);
  }

  .content-wrapper {
    position: relative;
  }

  .main-content {
    flex: 1;
    width: 100%;
  }

  .header-left {
    font-size: 18px;
    flex: 1;
  }

  .header-right {
    gap: 8px;
  }

  .user-info {
    display: none;
  }

  .header-actions {
    gap: 10px;
    font-size: 16px;
  }

  .leccion-header {
    padding: 15px;
  }

  .leccion-header h1 {
    font-size: 20px;
  }

  .leccion-header p {
    font-size: 13px;
  }

  .leccion-content-area {
    padding: 15px;
  }

  .leccion-body {
    font-size: 14px;
    line-height: 1.6;
  }

  .leccion-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .breadcrumb {
    padding: 10px 15px;
    font-size: 12px;
  }

  .progress-section {
    padding: 15px;
    margin-top: 20px;
  }

  .form-container {
    padding: 20px;
    max-width: 100%;
  }

  .form-container h2 {
    font-size: 20px;
  }

  .section-content {
    padding: 12px;
  }

  .breadcrumb {
    padding: 8px 12px;
  }
}

/* ===================================
   Responsive - Small Mobile (480px and below)
   =================================== */
@media (max-width: 480px) {
  .app-container {
    min-height: 100vh;
  }

  .header {
    padding: 0 10px;
    height: 50px;
  }

  .header-left {
    font-size: 16px;
  }

  .header-actions {
    gap: 5px;
    font-size: 14px;
  }

  .sidebar {
    width: 100%;
    max-width: 280px;
  }

  .sidebar-title h2 {
    font-size: 16px;
  }

  .curso-header {
    padding: 10px 15px;
    font-size: 13px;
  }

  .modulo-header {
    padding: 8px 15px;
    padding-left: 25px;
    font-size: 12px;
  }

  .leccion-item {
    padding: 6px 15px;
    padding-left: 35px;
    font-size: 11px;
  }

  .leccion-header {
    padding: 12px;
  }

  .leccion-header h1 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .leccion-header p {
    font-size: 12px;
  }

  .leccion-content-area {
    padding: 12px;
  }

  .leccion-body {
    font-size: 13px;
    line-height: 1.5;
  }

  .leccion-body h2,
  .leccion-body h3 {
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 8px;
  }

  .leccion-body ul,
  .leccion-body ol {
    margin-left: 15px;
    font-size: 13px;
  }

  .breadcrumb {
    padding: 8px 10px;
    font-size: 11px;
  }

  .section-content {
    padding: 10px;
  }

  .progress-section {
    padding: 12px;
    margin-top: 15px;
  }

  .progress-label {
    font-size: 12px;
  }

  .progress-text {
    font-size: 11px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .form-group label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 8px 10px;
    font-size: 13px;
  }

  .table {
    font-size: 12px;
  }

  .table th,
  .table td {
    padding: 8px;
  }

  .alert {
    padding: 12px;
    margin-bottom: 12px;
  }
}

/* ===================================
   Alertas
   =================================== */
.alert-wrapper {
  margin: 20px 30px 0 30px;
}

/* ===================================
   Tarjetas de Cursos/Módulos/Lecciones
   =================================== */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(17, 35, 126, 0.2);
  transform: translateY(-2px);
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 64px;
  position: relative;
}

.card-image.small {
  aspect-ratio: 16 / 9;
  font-size: 48px;
}

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  margin: 0 0 10px 0;
  color: var(--color-dark);
  font-size: 18px;
  line-height: 1.4;
}

.card-title.small {
  font-size: 16px;
}

.card-title a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.card-title a:hover {
  color: var(--color-light);
}

.card-description {
  margin: 10px 0;
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
}

.card-status {
  margin: 12px 0;
  font-size: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.status-published {
  background-color: #e8f5e9;
  color: #27ae60;
}

.status-draft {
  background-color: #fff3e0;
  color: #f39c12;
}

.status-type {
  background-color: #e3f2fd;
  color: #1976d2;
}

.status-duration {
  background-color: #f3e5f5;
  color: #7b1fa2;
  margin-left: 5px;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}

.card-link {
  flex: 1;
  min-width: 70px;
  display: inline-block;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-light) 100%);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(17, 35, 126, 0.2);
}

.card-link-secondary {
  background-color: var(--color-dark);
  color: var(--color-white);
  border: 1px solid var(--color-dark);
}

.card-link-secondary:hover {
  background-color: var(--color-light);
  border-color: var(--color-light);
}

.card-link-danger {
  color: #e74c3c;
}

.empty-state {
  background-color: #f5f5f5;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  color: var(--color-text-light);
}

.empty-state p {
  font-size: 16px;
  margin: 0;
}

/* ===================================
   Secciones y Headers
   =================================== */
.section-header {
  margin-bottom: 30px;
}

.section-header h1 {
  color: var(--color-dark);
  font-size: 32px;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 14px;
  margin: 0;
}

.section-actions {
  margin-top: 15px;
}

.section-actions a,
.section-actions button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-light) 100%);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.section-actions a:hover,
.section-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(17, 35, 126, 0.2);
}

.section-content {
  padding: 30px;
  width: 100%;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-bottom: 30px;
}

.section-description {
  margin-bottom: 30px;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 6px;
}

.section-description h2 {
  color: var(--color-dark);
  font-size: 20px;
  margin-bottom: 15px;
}

.section-description p {
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ===================================
   Breadcrumb Links
   =================================== */
.breadcrumb-link {
  color: var(--color-active);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: var(--color-dark);
}

/* ===================================
   Grids
   =================================== */
.grid-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
  width: 100%;
}

.grid-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
}

.grid-lessons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
}

.grid-lessons .card {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
}

.grid-lessons .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.grid-section {
  width: 100%;
}

@media (max-width: 640px) {
  .grid-responsive,
  .grid-modules,
  .grid-lessons {
    grid-template-columns: 1fr;
  }

  .section-content {
    padding: 12px;
  }

  .breadcrumb {
    padding: 8px 12px;
  }

  /* Admin Tables - Mobile */
  .admin-list-container {
    overflow-x: auto;
  }

  .admin-table {
    font-size: 12px;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px;
  }

  .admin-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
  }

  .btn-icon {
    padding: 4px 6px;
    font-size: 14px;
  }
}

/* ===== ADMIN PANEL STYLES ===== */

/* Admin List Container */
.admin-list-container {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

/* Admin Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table thead {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-light) 100%);
  color: var(--color-white);
}

.admin-table th {
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--color-light);
}

.admin-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e0e0e0;
}

.admin-table tbody tr {
  transition: background-color 0.2s ease;
}

.admin-table tbody tr:hover {
  background-color: #f5f5f5;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* Admin Actions */
.admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  background: #f0f0f0;
}

.btn-icon:hover {
  background: var(--color-light);
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-icon.btn-up {
  background: #e8f5e9;
}

.btn-icon.btn-up:hover {
  background: #4caf50;
  color: white;
}

.btn-icon.btn-down {
  background: #fff3e0;
}

.btn-icon.btn-down:hover {
  background: #ff9800;
  color: white;
}

.btn-icon.btn-view {
  background: #e3f2fd;
}

.btn-icon.btn-view:hover {
  background: #2196f3;
  color: white;
}

.btn-icon.btn-manage {
  background: #f3e5f5;
}

.btn-icon.btn-manage:hover {
  background: #9c27b0;
  color: white;
}

.btn-icon.btn-edit {
  background: #fff8e1;
}

.btn-icon.btn-edit:hover {
  background: #fbc02d;
  color: white;
}

.btn-icon.btn-delete {
  background: #ffebee;
}

.btn-icon.btn-delete:hover {
  background: #f44336;
  color: white;
}

/* Status Badges */
.type-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.type-video {
  background: #ffebee;
  color: #c62828;
}

.type-lectura {
  background: #e8f5e9;
  color: #2e7d32;
}

.type-pdf {
  background: #f3e5f5;
  color: #6a1b9a;
}

.type-quiz {
  background: #e0f2f1;
  color: #00695c;
}

/* Admin Footer */
.admin-footer {
  padding: 15px 20px;
  background: #f9f9f9;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.admin-footer p {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 13px;
}

.btn-link {
  display: inline-block;
  color: var(--color-light);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-link:hover {
  background: var(--color-light);
  color: white;
}

/* Text Utilities */
.text-center {
  text-align: center;
}

/* Alerts */
.alert {
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-weight: 500;
}

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

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #f5c6cb;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

/* ===================================
   Responsive - Mobile
   =================================== */
@media (max-width: 768px) {
  /* Hide non-essential columns on mobile */
  .hide-mobile {
    display: none;
  }

  /* Admin table responsive */
  .admin-list-container {
    margin: 15px 0;
  }

  .admin-table {
    font-size: 13px;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 8px;
  }

  .btn-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .admin-actions {
    gap: 6px;
    flex-wrap: wrap;
  }

  /* Reduce header padding on mobile */
  .header {
    padding: 0 15px;
  }

  .header-left {
    font-size: 18px;
  }

  /* Reduce section padding on mobile */
  .section-content,
  .leccion-content-area {
    padding: 15px;
  }

  /* Reduce button sizes on mobile */
  .btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Cards on mobile */
  .grid-responsive {
    grid-template-columns: 1fr;
  }

  .grid-modules {
    grid-template-columns: 1fr;
  }

  .grid-lessons {
    grid-template-columns: 1fr;
  }

  .card {
    border-radius: 8px;
  }

  /* Sidebar mobile */
  .sidebar {
    width: 70%;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  }
}
