* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

@font-face {
  font-family: "Josefin Sans";
  src: url("../assets/fonts/JosefinSans-Italic-VariableFont_wght.ttf")
    format("truetype");
  font-weight: normal;
  font-style: italic;
}

body {
  font-family: "Josefin Sans", serif;
  background-color: #ffffff;
}

.encabezado-principal {
  position: static;
  z-index: 999;
  padding-bottom: 80px;
  width: 100%;
  box-shadow: 0px 0px 5px 1px black;
  background-color: #23a8e0;
  font-weight: 200px;
  display: flex;
  justify-content: space-between;
  height: 60px;
  align-items: center;
  padding: 20px;
}

.title-nav-princ {
  color: white;
}

.button-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  font-size: 20px;
}

.nav-superior {
  display: flex;
  align-items: center;
  text-align: center;
  list-style: none;
}

.img-logout{

  text-align: center;
  width: 22px;
}

.nav-superior > a {
  text-decoration: none;
  color: white;
}

.icon-nav {
  margin-right: 5px;
  width: 17px;
  height: 17px;
}

.content-principal {
  height: 100vh;
  max-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 3fr;
}

.menu-lateral-edicion {
  height: auto;
  padding: 20px;
  text-align: start;
  border-right: 2px solid black;
}

button {
  background-color: #23a8e0;
  font-family: "Josefin Sans", serif;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  margin: 10px;
}

button:hover {
  background-color: #283a87;
  color: white;
}

.titulo-Firma {
  width: 100%;
  text-align: center;
}

.list-herramientas {
  margin-top: 50px;
  width: 100%;
}

.button-herramientas {
  width: 100%;
  text-align: start;
  padding: 10px;
  list-style: none;
}

.button-herramientas.selectPagina {
  position: relative;
  left: 0px;
}

.list-subirPDF {
  list-style: none;
}

.button-subirPDF {
  list-style: none;
}

.cont-link {
  width: 100%;
}

#linkContainer {
  width: 100%;
  max-width: 400px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
  height: auto;
}

.tituloFirma {
  text-align: center;
  margin-bottom: 10px;
}

.contenido-pdf {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: start;
  text-align: center;
}

#pdfContainer {
  display: flex;
  justify-content: center;
  padding: 20px;
}


.title-main {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  text-align: center;
}

.page-container {
  border: 2px dashed #000000;
  position: relative;
  display: inline-block;
}

#pageSelector {
  margin: 10px;
  padding: 5px;
}
.signature-field {
  position: absolute;
  border: 2.5px solid red;
  cursor: move;
}

/* Responsividad */

@media (min-width: 100px) and (max-width: 374px) {
  .button-nav {
    font-size: 10px;
  }
}

@media (min-width: 375px) and (max-width: 700px) {

  .content-principal{
    grid-template-columns: 1fr;
  }

  .menu-lateral-edicion{
    border: none ;
    border-bottom: 2px solid black;
   }

  .button-nav{
    display: flex;
    flex-direction: row;
  }

  .title-nav {
    font-size: 25px;
    font-weight: bold;
  }

  .encabezado-principal {
    width: 100%;
  }

  .button-nav {
    font-size: 14px;
  }

  .title-main{
    margin-top: 20px;
    width: 100%;
  }

  .carga-pdf{
    display: flex;
    justify-content: center;
  }

  .content-pdf {
    max-width: 100vw;
    width: 80vw;
    display: flex;
    flex-direction: column;
    justify-content: start;
  }
  /* canvas{
    max-width: 100vw;
    width: 90vw;
  } */
}

@media (min-width: 701px) and (max-width: 800px) {

  .title-main{
    background-color: #283a87;
  }

  .content-principal{
    display: grid;
    grid-template-columns: 1fr;
  }

  .menu-lateral-edicion{
    border: none ;
    border-bottom: 2px solid black;
   }

  .encabezado-principal {
    width: 100%;
  }

  .button-nav>li{
    font-size: 14px;
  }

  .carga-pdf{
    display: flex;
    justify-content: center;
  }

  .content-pdf {
    max-width: 100vw;
    width: 80vw;
    display: flex;
    flex-direction: column;
    justify-content: start;
  }
/*   
  canvas{
    max-width: 100vw;
    width: 80vw;
  } */


}

@media (min-width: 800px) and (max-width: 991px) {

  .content-principal{
    display: grid;
    grid-template-columns: 1fr;
  }

  .menu-lateral-edicion{
    border: none ;
    border-bottom: 2px solid black;
   }

  .title-main {
    width: 100%;
  }

  .encabezado-principal {
    width: 100%;
  }

  #pdfContainer {
    width: 100%;
    padding: 20px;
  }
}

@media (min-width: 991px) and (max-width: 1150px) {
  .carga-pdf {
    display: flex;
    justify-content: center;
  }
  .contenido-pdf {
    display: flex;
    flex-direction: column;
    justify-content: start;
  }
  .title-main {
    width: 100%;
  }

  .carga-pdf {
    width: 100%;
  }
  #pdfContainer {
    height: 100vh;
    max-height: 100vh;
    position: relative;
  }
  /* canvas {
    width: 600px;
    height: auto;
  } */
}

/*---------------------------------VISTA PARA FIRMAR-------------------------*/

#modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(189, 185, 185, 0.5);
  z-index: 100;
  overflow: hidden;
  display: none;
}

#signatureModal {
  position: fixed;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border: 2px solid #283a87;
  border-radius: 10px;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  display: none;
  width: 250vh;
  max-width: 700px;
  box-sizing: border-box;
}

.content-modal {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-rows: 1fr 2fr 1fr;
}

.title-modal {
  width: 100%;
  height: 70px;
  font-size: 30px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

#signatureModal canvas {
  width: 100%;
  height: 100%;
  border: 2px solid #858080;
  border-radius: 5px;
  box-sizing: border-box;
}

.content-button-finish {
  width: 100%;
  height: 100%;
  padding-top: 20px;
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
}

@media (min-width: 370px) and (max-width: 700px) {
  main {
    height: 200px;
  }
  .title-modal {
    font-size: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
  }

  .fields-canvas {
    height: 100vh;
  }

  #signatureModal {
    background-color: cadetblue;
    width: 100vh;
    max-width: 700px;
    height: 200px;
  }

  #pagesContainer {
    height: 300vh;
  }

  .pdf-page-container {
    height: 200vh;
  }
}

.button-finalizar {
  width: 100%;
  font-size: 2rem;
  height: 70px;
}

.content-button-finish button {
  display: inline-block;
  font-size: 2rem;
  border: none;
  border-radius: 20px;
  background-color: #283a87;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 260px;
  height: 150px;
}

/*-----------------------------------PAGINA DE LISTA DOCUSIGN----------------------*/

.content-main{
  padding: 20px;
}

.title-list-document{
  padding: 20px;
}

.content-list {
  width: 100%;
  height: 80px;
  padding: 0px 30px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  gap: 10px;
}




.content-buscador{
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100px;
  width: 100%;
}


#searchInput {
  width: 65%;
  height: 40px;
  padding: 10px;
  background-color: white;
  border-radius: 20px;
  border: 2px solid black;
  text-transform: uppercase;
  font-family: "Josefin Sans", serif;
}

#userIdInput{
  border-radius: 20px;
  border: 2px solid black;
}

.lista-docs{
  position: absolute;
  left: 20px;
  top: 310px;
  font-size: 20px;
}

#totalDocs-admin{
  position: absolute;
  left: 40px;
  top: 370px;
  font-size: 20px;
}

#statusSelect{
  height: 40px;
  border: 2px solid black;
  padding: 5px;
  border-radius: 40px;
}


.content-status{
  display: flex;
  align-items: center;
  gap: 20px;
}

.content-status>span{
  font-size: 20px;
}

.item-list{
  text-align: center;
}
td{
  text-align: center;
}

#backButton {
  display: inline-block;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

#pdfTable {
  margin-top: 50px;
}

.title-table > th {
  text-align: center;
  align-items: center;
}

a.view-link {
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
  color: #23a8e0;
  text-decoration: none;
}

a.view-link:hover {
  text-decoration: underline;
}

#pagination button {
  padding: 10px 15px;
  margin: 0 5px;
  border: none;
  background-color: #283a87;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

#pagination button:disabled {
  background-color: #283a87;
  cursor: not-allowed;
}
#pagination button.active {
  background-color: #23a8e0;
}

/*-------------------------------LOGIN------------------------------------*/

.content-login {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
  background-color: #23a8e0;
  background-size: cover;
  background-position: center;
  position: relative;
}

.login-container {
  background-color: rgb(250, 248, 248);
  box-shadow: -0px 0px 20px 5px #283a87;
  z-index: 999;
  align-items: center;
  width: 350px;
  height: 450px;
  max-height: 100vh;
  border: 3px solid black;
  border-radius: 15px;
  padding: 20px;
}

.title-login {
  color: black;
  font-weight: bold;
  margin: 30px;
}

.form-login {
  display: grid;
}

.content-divs-inputs {
  display: flex;
  height: 210px;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 20px;
}

.content-inputs-login {
  height: auto;
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  height: 100%;
}

.icon-login {
  margin-left: 13px;
  padding: 1px;
  width: 25px;
  height: 25px;
}

.input-login {
  border: 2px solid black;
  box-shadow: 5px 5px 10px black;
  width: 92%;
  margin: 5px;
  font-size: 1rem;
  padding: 12px 15px;
  border-radius: 20px;
  height: 42px;
}

.input-login:focus {
  outline: none;
}
.content-button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
}

.button-sigin {
  background-color: white;
  color: black;
  font-family: "Josefin Sans", serif;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  text-align: start;
  width: auto;
  padding: 10px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  border: 2px solid black;
  transition: all 0.3s ease-in-out;
}


/* Estilos generales */
body {
  background-color: #f4f4f9;
  color: #333;
  margin: 0;
  padding: 0;
}

.admin-page {
  padding: 20px;
}

/* Encabezado */
.encabezado-principal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: hwb(220 13% 25%);
  padding: 10px 20px;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.encabezado-principal h1 a {
  color: white;
  text-decoration: none;
  font-size: 24px;
}

.button-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.button-nav li {
  margin-left: 20px;
}

.button-nav li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.button-nav li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Contenido principal */
.content-main {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.title-list-document {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

/* Buscador y filtros */
.content-buscador {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.searchInput {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.content-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-status span {
  font-size: 16px;
}

.content-status select, .content-status input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

/* Tabla */
.table-document {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.table-document th, .table-document td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.table-document th {
  background-color: hwb(220 13% 25%);
  color: white;
  font-weight: bold;
}

.table-document tr:hover {
  background-color: #f1f1f1;
}

.table-document td.pending {
  color: #FFA500;
  font-weight: bold;
}

.table-document td.signed {
  color: #49c22b;
  font-weight: bold;
}

/* Botones de acción */
button, .table-document a, .table-document button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

button {
  background-color: hwb(220 13% 25%);
  color: white;
}

button:hover {
  background-color: #1e88e5;
}

.table-document a {
  background-color: #283a87;
  color: white;
  text-decoration: none;
  margin-right: 10px;
}

.table-document a:hover {
  background-color: #1e88e5;
}

.table-document button {
  background-color: #3296d4;
  color: white;
}

.table-document button:hover {
  background-color: #1e88e5;
}

/* Paginación */
#pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

#pagination button {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#pagination button:hover{
  background-color: #1e88e5;
}

#pagination button.active {
  background-color: #1e88e5;
  color: white;
  border-color: #1e88e5;
}

/* Botones de descargar y eliminar */
.content-main > button {
  margin-right: 10px;
  margin-bottom: 20px;
}



