.search_result_character {
  float: left;
  width: 210px;
  margin-left: 10px;
  margin-bottom: 30px;
  background-color: #170e09;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.search_result_character:hover {
  transform: translateY(-5px);
}

.search_result_character .name {
  font-weight: bold;
  font-size: 14px;
  margin-top: 5px;
  display: block;
  color: #ffffff;
}

.search_result_character span {
  margin-top: 3px;
  display: block;
  overflow: hidden;
  height: 32px;
  color: #ffffff;
}

.search_result_character img {
  float: left;
  display: block;
  width: 54px;
  height: 54px;
  margin-right: 10px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#search_box {
  margin-left: auto;
  margin-right: auto;
  width: 500px;
  margin-top: 30px;
  margin-bottom: 30px;
}

#search_box.buscador-container {
  width: 100%;
  max-width: 900px;
  background: linear-gradient(135deg, rgba(61, 52, 41, 0.8) 0%, rgba(45, 38, 29, 0.9) 100%);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(139, 119, 101, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px);
}

#search_box .form-busqueda {
  display: flex;
  gap: 10px;
  margin: 0;
}

#search_box .form-busqueda .form-control {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid rgba(139, 119, 101, 0.5);
  border-radius: 8px;
  background: rgba(45, 38, 29, 0.7);
  color: #f0e6d2;
  font-size: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

#search_box .form-busqueda .form-control:focus {
  outline: none;
  border-color: rgba(139, 119, 101, 0.8);
  background: rgba(45, 38, 29, 0.9);
  box-shadow: 0 0 20px rgba(139, 119, 101, 0.4);
}

#search_box .btn-buscar,
#search_box .btn-limpiar {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 120px;
}

#search_box .btn-buscar {
  background: linear-gradient(135deg, #8b6f47 0%, #6b5637 100%);
  color: #f0e6d2;
  box-shadow: 0 4px 15px rgba(139, 111, 78, 0.4);
}

#search_box .btn-buscar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(139, 111, 78, 0.6);
}

#search_box .btn-limpiar {
  background: linear-gradient(135deg, #a0826d 0%, #8b6f47 100%);
  color: #f0e6d2;
  box-shadow: 0 4px 15px rgba(160, 130, 109, 0.4);
}

#search_box .btn-limpiar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(160, 130, 109, 0.6);
}

#search_box input[type="text"] {
  padding: 12px 20px;
  border: 1px solid rgba(139, 119, 101, 0.5);
  border-radius: 8px;
  background: rgba(45, 38, 29, 0.7);
  color: #f0e6d2;
  font-size: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

#search_box input[type="submit"] {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 120px;
  background: linear-gradient(135deg, #8b6f47 0%, #6b5637 100%);
  color: #f0e6d2;
  box-shadow: 0 4px 15px rgba(139, 111, 78, 0.4);
}

#search_box input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(139, 111, 78, 0.6);
}

#search_results {
  margin-top: 10px;
  display: none;
  margin-bottom: 10px;
}

.tabla-contenedor {
  overflow-x: auto;
  background: linear-gradient(135deg, rgba(61, 52, 41, 0.7) 0%, rgba(45, 38, 29, 0.85) 100%);
  border-radius: 12px;
  border: 1px solid rgba(139, 119, 101, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px);
  padding: 0;
}

.tabla-recetas {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  color: #f0e6d2;
}

.tabla-recetas tr:first-child td {
  background: rgba(45, 38, 29, 0.8);
  color: #f0e6d2;
  padding: 12px 16px;
  font-weight: 600;
  border: none;
  border-bottom: 2px solid rgba(139, 119, 101, 0.6);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 12px;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.tabla-recetas td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(139, 119, 101, 0.3);
  vertical-align: middle;
}

.tabla-recetas td img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 3px;
  border: 1px solid rgba(139, 119, 101, 0.5);
}

.nombre-celda {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nombre-celda:hover {
  overflow: visible;
  white-space: normal;
  word-wrap: break-word;
  position: relative;
  z-index: 10;
  background: rgba(61, 52, 41, 0.98);
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(139, 119, 101, 0.6);
  max-width: 380px;
  min-width: 220px;
  transition: all 0.2s ease;
}

.tabla-recetas tbody tr {
  transition: all 0.3s ease;
  background: transparent;
}

.tabla-recetas tbody tr:hover {
  background: rgba(139, 119, 101, 0.2) !important;
}

.pagination-container {
  margin-top: 20px;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 10px 16px;
  border: 1px solid rgba(139, 119, 101, 0.6);
  border-radius: 8px;
  background: rgba(45, 38, 29, 0.8);
  color: #f0e6d2;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination-btn:hover {
  background: rgba(45, 38, 29, 0.95);
  color: #ffd100;
  transform: translateY(-1px);
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-number {
  padding: 8px 12px;
  border: 1px solid rgba(139, 119, 101, 0.5);
  border-radius: 8px;
  background: rgba(61, 52, 41, 0.7);
  color: #f0e6d2;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-number:hover {
  background: rgba(139, 119, 101, 0.25);
  color: #ffd100;
}

.pagination-number.current {
  background: rgba(255, 209, 0, 0.15);
  border-color: rgba(255, 209, 0, 0.8);
  color: #ffd100;
  font-weight: 700;
}

.search_active {
  font-weight: bold;
}

#search_sections {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(61, 52, 41, 0.65) 0%, rgba(45, 38, 29, 0.75) 100%);
  border: 1px solid rgba(139, 119, 101, 0.4);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px);
  padding: 15px;
}

#search_realms {
  float: none;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

#search_realms a {
  margin-left: 0;
}

#search_sections .nice_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid rgba(139, 119, 101, 0.6);
  border-radius: 10px;
  background: rgba(45, 38, 29, 0.8);
  color: #f0e6d2;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

#search_sections .nice_button:hover {
  background: rgba(45, 38, 29, 0.95);
  color: #ffd100;
  transform: translateY(-1px);
}

#search_sections .nice_button.nice_active {
  background: rgba(255, 209, 0, 0.12);
  border-color: rgba(255, 209, 0, 0.8);
  color: #ffd100;
}

/* Media queries para diferentes tipos de pantallas */

/* Estilos para pantallas pequeñas */
@media screen and (max-width: 768px) {
  .search_result_character {
    float: none;
    width: 100%;
    margin-left: 0;
  }

  #search_box {
    width: 90%;
  }

  #search_box input[type="text"] {
    width: 100%;
  }

  #search_box input[type="submit"] {
    float: none;
    margin-top: 14px;
  }

  #search_realms {
    text-align: center;
    justify-content: center;
  }

  #search_sections {
    justify-content: center;
  }

  #search_box .form-busqueda {
    flex-direction: column;
  }

  #search_box .btn-buscar,
  #search_box .btn-limpiar {
    width: 100%;
  }
}

/* Estilos para pantallas muy pequeñas */
@media screen and (max-width: 480px) {
  #search_box {
    width: 100%;
  }
  

  #search_box input[type="submit"] {
    padding: 20px 25px; /* Ajusta el padding para hacer el botón más grande en pantallas muy pequeñas */
  }
}