body {
  background-color: #0F1419;
  color: white;
  font-family: 'Roboto Mono', monospace;
  background-image: linear-gradient(to bottom, rgba(37, 38, 94, 0.2) 0%, rgba(10, 12, 16, 0) 100%);
}
.htb-card {
  background-color: rgba(20, 23, 33, 0.8);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  height: auto;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.htb-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 200, 83, 0.15);
}
.pill-facil {
  background-color: #00c853;
  color: white;
}
.pill-media {
  background-color: #ff9800;
  color: white;
}
.pill-dificil {
  background-color: #f44336;
  color: white;
}
.pill-insane {
  background-color: #8f8f8f;
  color: #292727;
}
.pill-os {
  background-color: rgba(52, 73, 94, 0.7);
}
.tech-pill, .cert-pill {
  background-color: #1d5c8f;
  color: white;
  font-size: 0.75rem;
  margin-right: 4px;
  margin-bottom: 4px;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-block;
  white-space: nowrap;
}
.cert-pill {
  background-color: #1a2e4b;
}
.search-input {
  background-color: rgba(30, 41, 59, 0.8);
  border: 1px solid #2d3748;
  color: white;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.search-input:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}
.counter {
  color: #3498db;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}
.link-tutorial {
  color: #00c853;
  position: relative;
  display: inline-block;
  text-decoration: none;
  margin-top: auto;
}
.link-tutorial:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #00c853;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.link-tutorial:hover:after {
  transform: scaleX(1);
}
.count-bubble {
  background-color: rgba(52, 152, 219, 0.2);
  border: 1px solid #3498db;
  border-radius: 12px;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}
/* Asegurar que el modal-content no crezca mÃ¡s allÃ¡ de su tamaÃ±o definido */
.modal-content {
  background-color: rgba(20, 23, 33, 0.95);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 95%;
  max-width: 1800px;
  height: 70vh; /* Mantener altura fija */
  margin: 2rem auto;
  display: flex;
  flex-direction: row;
  padding: 2rem;
  position: relative;
  overflow: hidden; /* Evitar que el contenido interno desborde */
}
.modal-close {
  position: absolute;
  top: 0.025vh;
  right: 0.8rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}
.modal-close:hover {
  color: #c7280c;
}
.modal-left {
  flex: 1;
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.modal-right {
  flex: 1;
  padding-left: 5rem;
  overflow-y: auto;
  max-height: 100%;
  scrollbar-width: thin;
  scrollbar-color: #3498db rgba(255, 255, 255, 0.1);
}
.modal-right::-webkit-scrollbar {
  width: 8px;
}
.modal-right::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.modal-right::-webkit-scrollbar-thumb {
  background: #3498db;
  border-radius: 10px;
}
.modal-right::-webkit-scrollbar-thumb:hover {
  background: #00c853;
}.modal-right ul {
  padding-left: 1rem;
}.modal-right ul li {
  line-height: 1.5;
}.modal-video {
  width: 110%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 200, 83, 0.2);
}
@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
    padding: 1.5rem;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-left, .modal-right {
    padding: 0;
    margin-bottom: 1.5rem;
  }
  .modal-right {
    overflow-y: visible;
  }
  .modal-video {
    max-height: 40vh;
  }
}
/* Estilos para los botones de paginaciÃ³n */
.pagination-btn {
  background-color: rgba(30, 41, 59, 0.8);
  border: 1px solid #2d3748;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.pagination-btn:hover {
  background-color: #3498db;
  border-color: #3498db;
}
.pagination-btn:disabled {
  background-color: rgba(30, 41, 59, 0.5);
  border-color: #2d3748;
  color: #6b7280;
  cursor: not-allowed;
}
/* Estilos para el dropdown */
select.dropdown {
  background-color: rgba(30, 41, 59, 0.8);
  border: 1px solid #2d3748;
  color: white;
  padding: 0.5rem 2rem 0.5rem 1rem;
  border-radius: 0.5rem;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M8 12l-6-6h12l-6 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  min-width: 80px;
  font-family: 'Roboto Mono', monospace;
}
select.dropdown:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}
select.dropdown:hover {
  border-color: #00c853;
}
select.dropdown option {
  background-color: #1e293b;
  color: white;
  font-family: 'Roboto Mono', monospace;
}.favorite-checkbox, .completed-checkbox {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 16px;
  height: 16px;
  background-color: rgba(30, 41, 59, 0.8);
  border: 1px solid #2d3748;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}.favorite-checkbox:checked, .completed-checkbox:checked {
  background-color: #00c853;
  border-color: #00c853;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}.favorite-checkbox:hover, .completed-checkbox:hover {
  border-color: #3498db;
}.favorite-checkbox:focus, .completed-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

