:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  /* Agregando colores verdes para tema Cybermatica Academy */
  --academy-green: #10b981;
  --academy-green-dark: #059669;
  --academy-green-light: #d1fae5;
  --academy-bg: linear-gradient(135deg, #0f766e 0%, #10b981 100%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.min-vh-100 {
  min-height: 100vh;
}

.card {
  border-radius: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.sidebar {
  min-height: 100vh;
  background-color: #212529;
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.75);
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 0.25rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link i {
  margin-right: 0.5rem;
}

/* Aplicando el mismo gradiente verde del login al sidebar del admin */
.sidebar-academy {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f766e 0%, #10b981 50%, #34d399 100%);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  width: 250px;
  flex-shrink: 0;
}

.sidebar-academy .nav-link {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.sidebar-academy .nav-link:hover,
.sidebar-academy .nav-link.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-academy .nav-link i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.sidebar-academy hr {
  border-color: rgba(255, 255, 255, 0.3);
  margin: 1rem 0;
}

.table-actions {
  white-space: nowrap;
}

.table-actions .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.certificate-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.stats-card {
  border-left: 4px solid var(--primary-color);
}

.stats-card.success {
  border-left-color: var(--success-color);
}

.stats-card.warning {
  border-left-color: var(--warning-color);
}

.stats-card.info {
  border-left-color: var(--info-color);
}

.file-upload-area {
  border: 2px dashed #dee2e6;
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.file-upload-area:hover {
  border-color: var(--primary-color);
  background-color: #f8f9fa;
}

.file-upload-area.dragover {
  border-color: var(--primary-color);
  background-color: #e7f1ff;
}

@media (max-width: 768px) {
  .sidebar {
    min-height: auto;
  }
}

/* Estilos para página de login con tema verde academy */
.login-page {
  background: linear-gradient(135deg, #0f766e 0%, #10b981 50%, #34d399 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
  background: linear-gradient(135deg, #0f766e 0%, #10b981 100%);
  color: white;
  padding: 2rem;
  border-radius: 1.5rem 1.5rem 0 0;
  margin: -1px -1px 0 -1px;
}

.login-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.login-header p {
  margin: 0;
  opacity: 0.9;
}

.login-body {
  padding: 2.5rem;
}

.login-btn {
  background: linear-gradient(135deg, #0f766e 0%, #10b981 100%);
  border: none;
  padding: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: linear-gradient(135deg, #0d6558 0%, #059669 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.login-footer {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Estilos mejorados para dashboard académico */

/* Dashboard page background */
/* Aplicando el mismo fondo verde del login al dashboard */
.dashboard-page {
  background: linear-gradient(135deg, #0f766e 0%, #10b981 50%, #34d399 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Agregando el mismo efecto de círculos radiantes del login */
.dashboard-page::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Academy Navbar */
.academy-navbar {
  background: linear-gradient(135deg, #0f766e 0%, #10b981 100%);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: relative;
  z-index: 1050;
}

.academy-navbar .navbar-brand {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.academy-navbar .navbar-brand:hover {
  transform: translateY(-2px);
}

.academy-navbar .user-avatar {
  font-size: 1.5rem;
}

.academy-navbar .dropdown-menu {
  z-index: 1060;
}

/* Dashboard Header */
.dashboard-header {
  background: linear-gradient(135deg, #0f766e 0%, #10b981 100%);
  color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-header h1 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-header .lead {
  opacity: 0.95;
}

.stats-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.stats-label {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

/* Certificate Cards Modern */
.certificate-card-modern {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}

.certificate-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0f766e 0%, #10b981 100%);
}

.certificate-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.15);
}

.certificate-ribbon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #10b981;
  font-size: 1.5rem;
  opacity: 0.3;
}

.certificate-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #059669;
}

.certificate-date {
  display: flex;
  align-items: center;
  color: #6b7280;
  font-size: 0.875rem;
  padding: 0.5rem;
  background: #f9fafb;
  border-radius: 0.5rem;
}

/* Academy Buttons */
.btn-academy {
  background: linear-gradient(135deg, #0f766e 0%, #10b981 100%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-academy:hover {
  background: linear-gradient(135deg, #0d6558 0%, #059669 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
  color: white;
}

.btn-academy-outline {
  background: white;
  border: 2px solid #10b981;
  color: #10b981;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-academy-outline:hover {
  background: #10b981;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(16, 185, 129, 0.2);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.empty-state-icon {
  font-size: 5rem;
  color: #d1d5db;
  margin-bottom: 1rem;
}

.empty-state h3 {
  color: #374151;
  font-weight: 600;
}

/* Academy Modal */
.academy-modal-header {
  background: linear-gradient(135deg, #0f766e 0%, #10b981 100%);
  color: white;
  border-radius: 0.5rem 0.5rem 0 0;
}

/* Estilos modernos para modales */
.modal-modern {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
}

.modal-header-modern {
  background: linear-gradient(135deg, #0f766e 0%, #10b981 100%);
  color: white;
  padding: 1.5rem;
  border: none;
}

.modal-icon-modern {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.form-control-modern {
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control-modern:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.15);
}

/* Form improvements */
.form-control:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
}

.form-control-lg {
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

/* Animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.certificate-card-modern {
  animation: fadeInUp 0.5s ease-out;
}

.certificate-card-modern:nth-child(1) {
  animation-delay: 0.1s;
}
.certificate-card-modern:nth-child(2) {
  animation-delay: 0.2s;
}
.certificate-card-modern:nth-child(3) {
  animation-delay: 0.3s;
}
.certificate-card-modern:nth-child(4) {
  animation-delay: 0.4s;
}
.certificate-card-modern:nth-child(5) {
  animation-delay: 0.5s;
}
.certificate-card-modern:nth-child(6) {
  animation-delay: 0.6s;
}

/* Estilos para modal de vista previa de certificados */
#previewModal .modal-dialog {
  max-width: 95%;
  margin: 1.75rem auto;
}

#previewModal .modal-body {
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

#previewModal iframe {
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Loading spinner para iframe */
#previewModal .modal-body::before {
  content: "";
  position: absolute;
  width: 50px;
  height: 50px;
  border: 4px solid #e5e7eb;
  border-top-color: #10b981;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#previewModal iframe[src] ~ .modal-body::before {
  display: none;
}

/* Agregando estilos para thumbnails de certificados */
.certificate-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.certificate-thumbnail:hover {
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.certificate-thumbnail canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.thumbnail-loading .spinner-border {
  width: 2.5rem;
  height: 2.5rem;
  border-width: 0.3rem;
}

/* Efecto de carga para el thumbnail */
.certificate-thumbnail::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Mejora del ícono de certificado cuando no se puede cargar el thumbnail */
.certificate-thumbnail .bi-file-earmark-pdf {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Estilos para cards de cursos en admin/certificados.php */
.hover-shadow {
  transition: all 0.3s ease;
}

.hover-shadow:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

.course-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0f766e 0%, #10b981 100%);
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.15);
}

.course-card .badge {
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
}

.course-card .card-title {
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.course-card .card-title i {
  color: #10b981;
}

.course-card .card-text {
  color: #6b7280;
  line-height: 1.5;
}

.course-card .btn-outline-primary {
  border-color: #10b981;
  color: #10b981;
  font-weight: 600;
  transition: all 0.3s ease;
}

.course-card .btn-outline-primary:hover {
  background: #10b981;
  border-color: #10b981;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.2);
}

/* Animación para las cards de cursos */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.course-card {
  animation: fadeInScale 0.4s ease-out;
}

/* Estilos para la página de certificados por curso */
.course-header {
  background: linear-gradient(135deg, #0f766e 0%, #10b981 100%);
  color: white;
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.course-header h1 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
}

.course-header p {
  opacity: 0.95;
  margin-bottom: 0.25rem;
}

.course-header i {
  margin-right: 0.5rem;
}

/* Mejora de la tabla de certificados */
.table-hover tbody tr {
  transition: all 0.2s ease;
}

.table-hover tbody tr:hover {
  background-color: #f0fdf4;
  transform: scale(1.01);
}

.table thead th {
  background: #f9fafb;
  color: #374151;
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
}

/* Mejora de los botones de acción en la tabla */
.table-actions .btn {
  margin: 0 0.125rem;
  transition: all 0.2s ease;
}

.table-actions .btn:hover {
  transform: translateY(-2px);
}

.table-actions .btn-primary {
  background: #10b981;
  border-color: #10b981;
}

.table-actions .btn-primary:hover {
  background: #059669;
  border-color: #059669;
}

.table-actions .btn-info {
  background: #0ea5e9;
  border-color: #0ea5e9;
}

.table-actions .btn-info:hover {
  background: #0284c7;
  border-color: #0284c7;
}

/* Estado vacío mejorado */
.empty-state-table {
  padding: 4rem 2rem;
  text-align: center;
}

.empty-state-table i {
  font-size: 4rem;
  color: #d1d5db;
  margin-bottom: 1rem;
  display: block;
}

.empty-state-table p {
  color: #6b7280;
  font-size: 1.125rem;
}

/* Estilos para búsqueda de usuarios en modal */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1050;
  margin-top: 0.25rem;
  display: none;
}

.search-results.show {
  display: block;
}

.search-result-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f3f4f6;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #f0fdf4;
  color: #059669;
}

.search-result-item strong {
  color: #10b981;
  font-weight: 600;
}

.search-result-item i {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.search-result-item:hover i {
  opacity: 1;
}

/* Estilos para el usuario seleccionado */
#usuario_seleccionado .alert {
  animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mejora del input de búsqueda */
#buscar_usuario {
  padding-right: 2.5rem;
  transition: all 0.3s ease;
}

#buscar_usuario:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
}

/* Scrollbar personalizado para resultados */
.search-results::-webkit-scrollbar {
  width: 8px;
}

.search-results::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 0 0.5rem 0.5rem 0;
}

.search-results::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Estilos mejorados para el modal de subir certificado */
.search-results-modern {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-height: 350px;
  overflow-y: auto;
  display: none;
}

.search-results-modern.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-result-item-modern {
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f3f4f6;
}

.search-result-item-modern:last-child {
  border-bottom: none;
}

.search-result-item-modern:hover {
  background: #f0fdf4;
}

.search-result-item-modern:hover .check-icon {
  opacity: 1 !important;
}

.upload-area {
  background: #f9fafb;
  border-color: #d1d5db !important;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area:hover {
  background: #f0fdf4;
  border-color: #10b981 !important;
}

.upload-area i {
  transition: transform 0.3s ease;
}

.upload-area:hover i {
  transform: scale(1.1);
}

/* Scrollbar personalizado para resultados modernos */
.search-results-modern::-webkit-scrollbar {
  width: 8px;
}

.search-results-modern::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 0 0.75rem 0.75rem 0;
}

.search-results-modern::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.search-results-modern::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Agregando mejoras responsive para dashboard de usuario */

/* Responsive adjustments */
@media (max-width: 768px) {
  .dashboard-header {
    padding: 2rem 0;
  }

  .dashboard-header h1 {
    font-size: 1.75rem;
  }

  .stats-badge {
    margin-top: 1rem;
  }

  .certificate-card-modern {
    margin-bottom: 1rem;
  }

  /* Ajustes para navbar en móviles */
  .academy-navbar .navbar-brand img {
    height: 40px !important;
  }

  .academy-navbar .navbar-brand small {
    font-size: 0.65rem !important;
  }

  /* Ajustes para modales en móviles */
  #previewModal .modal-dialog {
    max-width: 100%;
    margin: 0;
  }

  #previewModal .modal-body {
    height: 70vh !important;
  }

  /* Ajustes para thumbnails en móviles */
  .certificate-thumbnail {
    height: 180px;
  }

  /* Ajustes para botones en móviles */
  .btn-academy,
  .btn-academy-outline {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  /* Ajustes para cards en móviles */
  .certificate-card-modern .card-body {
    padding: 1.25rem;
  }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 576px) {
  .dashboard-header {
    padding: 1.5rem 0;
  }

  .dashboard-header h1 {
    font-size: 1.5rem;
  }

  .dashboard-header .lead {
    font-size: 0.9rem;
  }

  .stats-badge {
    padding: 1rem;
  }

  .stats-number {
    font-size: 2rem;
  }

  .stats-label {
    font-size: 0.75rem;
  }

  .certificate-card-modern .card-title {
    font-size: 1.1rem;
  }

  .certificate-date {
    font-size: 0.8rem;
  }

  .empty-state {
    padding: 3rem 1rem;
  }

  .empty-state-icon {
    font-size: 3rem;
  }

  .certificate-thumbnail {
    height: 160px;
  }

  .certificate-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  /* Ajustes para resultados de búsqueda en móviles */
  .search-results {
    max-height: 200px;
  }

  .search-result-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* Mejorando visualización en tablets */
@media (min-width: 768px) and (max-width: 991px) {
  .certificate-card-modern {
    margin-bottom: 1.5rem;
  }

  .certificate-thumbnail {
    height: 220px;
  }
}

/* Ajustes para pantallas grandes */
@media (min-width: 1200px) {
  .certificate-thumbnail {
    height: 250px;
  }

  .dashboard-header {
    padding: 4rem 0;
  }
}

/* Asegurando que el contenido principal tenga el espacio correcto */
.flex-grow-1 {
  flex-grow: 1;
  min-width: 0;
}

/* Mejorando el comportamiento del dropdown en móviles */
@media (max-width: 768px) {
  .academy-navbar .dropdown-menu {
    position: absolute !important;
    right: 0;
    left: auto;
    min-width: 200px;
  }
}

