/* Colores */
:root {
  --primary-color: #003366; /* Azul oscuro */
  --secondary-color: #ffd700; /* Amarillo dorado */
  --background-color: #f4f4f4; /* Fondo claro */
  --white-color: #ffffff; /* Blanco */
}

/* Estilos generales */
*,
*::before,
*::after {
  box-sizing: border-box;
}


body {
  font-family: Arial, sans-serif;
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;

}

.form-container {
  background-color: var(--white-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 100%;
  max-height: min-content;
  overflow-y: auto;
}

.form-container h2 {
  margin-top: 0;
  color: var(--primary-color);
  text-align: center;
  font-size: 1.5em;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--primary-color);
  font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group input[type="file"] {
  padding: 5px;
  font-size: 0.9em;
}

.form-group button {
  width: 100%;
  padding: 12px;
  background-color: var(--secondary-color);
  border: none;
  color: var(--primary-color);
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.form-group button:hover {
  background-color: #ffcc00;
}
/* Estilos para la sección de categorías */

[type="checkbox"]:checked,
[type="checkbox"]:not(:checked) {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.category-checkbox:checked + span {
  color: yellow;
}

.sec-center {
  position: relative;
  max-width: 100%;
  text-align: center;
  z-index: 200;
  padding-bottom: 10px;
}

.dropdown:checked + label,
.dropdown:not(:checked) + label {
  position: relative;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 2;
  height: 50px;
  transition: all 200ms linear;
  border-radius: 4px;
  width: 220px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: none;
  background-color: #ffeba7;
  cursor: pointer;
  color: #102770;
  box-shadow: 0 12px 35px 0 rgba(255, 235, 167, 0.15);
}

.dropdown:not(:checked) + label .uil {
  font-size: 24px;
  margin-left: 10px;
  transition: transform 200ms linear;
}

.dropdown:checked + label .uil {
  transform: rotate(180deg);
  font-size: 24px;
  margin-left: 10px;
  transition: transform 200ms linear;
}

.section-dropdown {
  position: absolute;
  padding: 5px;
  background-color: #111;
  top: 70px;
  left: 0;
  width: 100%;
  border-radius: 4px;
  display: block;
  box-shadow: 0 14px 35px 0 rgba(9, 9, 12, 0.4);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 200ms linear;
}

.dropdown:checked ~ .section-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.section-dropdown label {
  color: #fff;
  transition: all 200ms linear;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 15px;
  border-radius: 2px;
  padding: 5px 0;
  padding-left: 20px;
  padding-right: 15px;
  margin: 2px 0;
  text-align: left;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.section-dropdown label:hover {
  color: #102770;
  background-color: #ffeba7;
}


/* Archivos */
input[type=file] {
  width: 350px;
  max-width: 100%;
  color: #444;
  padding: 5px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #555;
}

input[type=file]::file-selector-button {
  margin-right: 20px;
  border: none;
  background: #084cdf;
  padding: 10px 20px;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease-in-out;
}

input[type=file]::file-selector-button:hover {
  background: #0d45a5;
}

.drop-container {
  position: relative;
  display: flex;
  gap: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 200px;
  padding: 20px;
  border-radius: 10px;
  border: 2px dashed #555;
  color: #444;
  cursor: pointer;
  transition: background .2s ease-in-out, border .2s ease-in-out;
}

.drop-container:hover {
  background: #eee;
  border-color: #111;
}

.drop-container:hover .drop-title {
  color: #222;
}

.drop-title {
  color: #444;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: color .2s ease-in-out;
}

/* Estilo de la tabla */
/* Estilo base para la tabla */
#tablaDenuncias {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#tablaDenuncias th,
#tablaDenuncias td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

#tablaDenuncias th {
  background-color: #f4f4f4;
  font-weight: bold;
}

/* Contenedor para habilitar desplazamiento horizontal */
.tabla-container {
  width: 100%;
  display: none;
}

#tablaDenuncias img {
  max-width: 80px; /* Ajusta el tamaño de las imágenes */
  height: auto;
  display: block;
  margin: 5px 0;
}

/* Responsivo: Ajusta estilos para pantallas pequeñas */
@media (max-width: 768px) {
  #tablaDenuncias {
    font-size: 14px; /* Reduce el tamaño de la fuente */
  }

  #tablaDenuncias th,
  #tablaDenuncias td {
    padding: 8px; /* Reduce el relleno */
  }

  #tablaDenuncias img {
    max-width: 60px; /* Reduce el tamaño de las imágenes */
  }

  .tabla-container {
    width: -webkit-fill-available;
    overflow-x: auto;
    padding: 2rem;
  }
}

/* Responsivo: Para pantallas muy pequeñas */
@media (max-width: 480px) {
  #tablaDenuncias {
    font-size: 12px;
  }

  #tablaDenuncias th,
  #tablaDenuncias td {
    padding: 5px;
  }

  #tablaDenuncias img {
    max-width: 50px;
  }

  .tabla-container {
    width: -webkit-fill-available;
    overflow-x: auto;
    padding: 2rem;
  }
}

/* Estilo del modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 20px;
  border-radius: 5px;
  width: 80%;
  max-width: 400px;
  text-align: center;
}

.modal-content p {
  margin-bottom: 20px;
}

.modal-content button {
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #45a049;
}
