body {
  font-family: Poppins;
  margin-top: 0px;
  height: calc(100vh - 40px);
  overflow: hidden;
}

.container {
  display: flex;
  gap: 0px;
  height: 100%;
}

.inputs {
  flex: 0 0 25%;
  /*  padding: 10px;*/
  min-width: 250px;
  overflow-y: auto;
  height: 100%;
  box-sizing: border-box;
  background-color: #f2f6ff;
  margin-left: 0px;
}

label {
  font-size: 0.8rem;
}

h2 {
  font-size: 1.2rem;
  color: #0047bb;
}

h3 {
  color: #0047bb;
}

hr {
  margin-bottom: 20px;
  color: #0047bb;
  border: #0047bb;
}

input[type="text"],
input[type="color"],
input[type="number"],
input[type="file"],
select {
  padding: 5px;
  margin-top: 5px;
  margin-bottom: 15px;
  box-sizing: border-box;
}

select {
  width: auto;
  max-width: 100%;
  min-width: 150px;
}

input[type="text"],
input[type="file"] {
  width: 100%;
}

input[type="color"] {
  width: 25px;
  height: 25px;
  border: none;
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  vertical-align: middle;
}

input[type="number"] {
  width: 60px;
  height: 30px;
  text-align: center;
  padding: 5px;
}

iframe {
  width: 51.5cm;
  height: 26cm;
  /*   transform: scale(2.5);*/
  /*      transform-origin: top left;*/
  border: none;
  overflow: visible !important;
}

.format-controls {
  display: block;
  background: #fff5f5f5;
  padding: 5px;
  border-radius: 4px;
  margin-bottom: 5px;
}

.format-controls button {
  margin: 2px;
  padding: 4px 8px;
  background: #ffffffff;
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
}

.format-controls button:hover {
  background: #e9e9e9;
}

.editor-container {
  position: relative;
}

.toggle-format {
  background: #f0f0f0;
  border: 1px solid #ccc;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  margin-bottom: 5px;
}

.text-input {
  border: 1px solid #ccc;
  padding: 8px;
  min-height: 100px;
  width: 100%;
  box-sizing: border-box;
  background-color: white;
  border-radius: 4px;
  font-size: 10px;
}

.text-input:focus {
  border-color: black;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(1, 38, 68, 0.6);
}

.text-input strong,
.text-input b {
  font-weight: bold;
}

.text-input em,
.text-input i {
  font-style: italic;
}

.text-input u {
  text-decoration: underline;
}

.character-counter {
  text-align: right;
  color: #666;
  font-size: 0.8em;
  margin-top: 5px;
}

.character-counter.exceeded {
  color: red;
}

.poppins {
  font-family: poppins;
  font-size: 8pt;
}

#paperType,
#plantillaTemplate {
  width: auto;
  min-width: 150px;
  max-width: 100%;
}

h4 {
  font-size: 10pt;
  font-family: poppins;
  font-weight: 400;
}

h2.center {
  font-size: 1.2rem;
  margin-left: 20%;
}

#controls-group {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
}

#downloadBtn:hover {
  background-color: #003399;
  transform: translateY(-2px);
}

#zoom-controls {
  display: flex;
  align-items: center;
  background: #0047bb;
  border: 1px solid #ccc;
  border-radius: 25px;
  padding: 4px 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  gap: 8px;
}

#zoom-controls button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 0 6px;
}

#zoom-display {
  min-width: 80px;
  text-align: center;
  font-weight: bold;
}

#zoom-icon {
  font-size: 18px;
  margin: 0 4px;
  cursor: pointer;
}

#zoom-icon:hover {
  color: #0047bb;
}

.colorblue {
  background-color: #f2f6ff;
  padding: 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
  /* Hace que el cambio sea suave */
}


.section-input {
  display: none;
}

#input-sections {
  height: calc(100% - 60px);
  overflow-y: auto;
}

/* Hover para todos los botones */
#zoom-buttons button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.nav-button {
  background: #f2f6ff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.3s, transform 0.2s;
  text-align: center;
}

.nav-button:hover {
  background: #d9e1f7; /* Color claro al hacer hover */
  transform: translateY(-2px);
}

.nav-button img {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  transition: filter 0.3s;
}

.nav-button:hover img {
  filter: brightness(1.2); /* Un toque más brillante al hacer hover */
}

/* Añadir al final del archivo */
.nav-button-active {
  background: #d9e1f7; /* Color azul más oscuro para el estado activo */
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 71, 187, 0.3);
}

.nav-button-active span {
  color: black(0, 0, 0); /* Texto en blanco para mejor contraste */
}

.nav-button-active img {
  transform: scale(1.1); /* Hace el icono ligeramente más grande */
}