/* Estilos generales */
body {
  font-family: "Arial", sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 20px;
}

.content {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center; /* Centrar el contenido */
}

.header h1 {
  font-size: 2em;
  color: #343a40;
  margin-bottom: 10px;
}

.header h2 {
  font-size: 1.5em;
  color: #6c757d;
  margin-bottom: 10px;
  cursor: pointer;
}

.logo-container {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

.logo {
  width: 200px;
  height: auto;
}

.login-icon-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding-right: 10px;
}

.login-icon {
  font-size: 1.2em;
  color: #343a40;
  cursor: pointer;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.login-icon:hover {
  color: #007bff;
}

.login-icon span {
  margin-left: 5px;
  font-size: 1em;
  font-weight: bold;
}

.cards {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  flex: 1;
  margin: 10px 5px;
  min-width: 200px;
}

.card h3 {
  font-size: 1.2em;
  color: #495057;
  margin-bottom: 10px;
}

.card p {
  font-size: 2em;
  color: #28a745;
  margin: 10px 0;
  font-weight: bold;
}

.movimientos-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.movimientos {
  flex: 1;
  margin: 10px 5px;
  min-width: 200px;
}

.movimientos h2 {
  font-size: 1.5em;
  color: #495057;
  margin-bottom: 20px;
  text-align: center;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.table th,
.table td {
  padding: 12px 15px;
  text-align: left;
}

.table th {
  background-color: #007bff;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f2f2f2;
}

.table-hover tbody tr:hover {
  background-color: #f1f1f1;
}

.table td {
  border-bottom: 1px solid #e0e0e0;
}

.table td:last-child {
  text-align: right;
}

.table td:first-child {
  font-weight: bold;
}

.table th:first-child {
  border-radius: 10px 0 0 0;
}

.table th:last-child {
  border-radius: 0 10px 0 0;
}

.table th,
.table td {
  font-size: 0.8em;
}

.table thead th {
  font-size: 1em;
}

/* Estilos responsivos para pantallas pequeñas */
@media (max-width: 768px) {
  .cards {
    flex-direction: column;
    align-items: stretch;
  }

  .movimientos-container {
    flex-direction: column;
    align-items: stretch;
  }

  .card,
  .movimientos {
    margin: 10px 0;
  }

  .header h1 {
    font-size: 1.5em;
  }

  .header h2 {
    font-size: 1.2em;
  }

  .login-icon-container {
    justify-content: center;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .content {
    padding: 15px;
  }

  .card h3,
  .movimientos h2,
  .chart-container h2 {
    font-size: 1.2em;
  }

  .card p {
    font-size: 1.5em;
  }

  .header h1 {
    font-size: 1.2em;
  }

  .header h2 {
    font-size: 1em;
  }

  .login-icon-container {
    justify-content: center;
    margin-top: 10px;
  }
}

/* Estilo para centrar el mensaje de selección de proyecto */
.selection-message {
  text-align: center;
  font-size: 1.2em;
  margin-top: 20px;
  color: #6c757d;
}

.visitas {
  margin-top: 30px;
  text-align: center;
  font-size: 1.1em;
  color: #343a40;
  font-weight: bold;
  padding-bottom: 10px;
}

/* Estilos para la sección de donaciones */
.donaciones-materiales {
  margin: 20px 0;
  width: 100%;
}

.donaciones-materiales h2 {
  font-size: 1.5em;
  color: #495057;
  margin-bottom: 20px;
  text-align: center;
}

.donaciones-materiales .fecha-bloque {
  font-size: 1.5em;
  font-weight: bold;
  color: #007bff;
  margin-top: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

/* Estilos adicionales */
.chart-container {
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  height: 400px;
}

.chart-container h2 {
  font-size: 1.5em;
  color: #495057;
  margin-bottom: 20px;
  text-align: center;
}

.project-select-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.project-select-container select {
  width: auto;
  max-width: 300px;
  min-width: 200px;
  text-align: center;
}

/* Popup de descripción extensa */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none; /* Inicialmente oculto */
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  max-width: 90%;
  text-align: center;
  position: relative;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 24px;
}

/* Estilos para el botón de WhatsApp y el popup */
.floating_btn {
  position: fixed;
  bottom: -15px;
  right: 0px;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.contact_icon {
  background-color: #42db87;
  color: #fff;
  width: 60px;
  height: 60px;
  font-size: 30px;
  border-radius: 50px;
  text-align: center;
  box-shadow: 2px 2px 3px #999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup {
  position: fixed;
  bottom: 85px;
  right: 30px;
  padding: 8px 15px;
  background-color: #ffea00;
  color: #000;
  font-size: 12px;
  font-weight: bold;
  border-radius: 20px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transition: all 0.3s ease-in-out;
  display: none; /* Inicialmente oculto */
}

.popup:before {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 10px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #ffea00;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f4f4f4;
}

::-webkit-scrollbar-thumb {
  background-color: #007bff;
  border-radius: 10px;
  border: 3px solid #f4f4f4;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #0056b3;
}

body {
  scrollbar-width: thin;
  scrollbar-color: #007bff #f4f4f4;
}

/* Estilos para enlaces */
a {
  text-decoration: none;
}

/* Ajustes para botones */
button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background-color: #0056b3;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
  .table th,
  .table td {
    white-space: normal;
    font-size: 14px;
  }

  .table {
    width: 100%;
  }

  .table th:first-child,
  .table td:first-child,
  .table th:last-child,
  .table td:last-child {
    width: 100%;
  }

  .table th,
  .table td {
    padding: 8px 10px;
  }
}
