/* Tipografía y estilo global */
body {
  font-family: "Suisse Intl", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: left;
}

/* Estilo del logo en la navbar */
.navbar-brand.font-weight-bold.text-primary {
  font-family: "Suisse Intl", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #000000 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-brand.font-weight-bold.text-primary:hover {
  color: #e6caa7 !important;
}

/* Barra de estado del usuario */
.user-status-bar {
  display: flex;
  align-items: center;
  background-color: transparent;
  padding: 0;
  height: auto;
}

.user-status-bar i {
  color: green;
  margin-right: 10px;
  font-size: 16px;
  line-height: 1;
}

.user-status-bar p {
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

.navbar-nav .user-status-bar {
  margin-right: 20px;
  height: 100%;
  align-items: center;
}

/* Estilo del título en la sección de plantillas */
.titulo-plantillas {
  margin-bottom: 20px;
  font-size: 36px;
  line-height: 45px;
  font-weight: 300;
}

/* Iconos en botones */
.icon-button {
  border: none;
  background: none;
  color: #000;
  padding: 0;
  cursor: pointer;
  transition: color 0.3s;
  margin-right: 20px;
}

.icon-button:hover {
  color: #e6caa7;
}

.icon-button:last-child {
  margin-right: 0;
}

/* Botones generales */
button,
.btn {
  border: 1px solid #000000 !important;
  border-radius: 100px !important;
  padding: 10px 32px !important;
  font-weight: 300 !important;
  font-size: 14px !important;
  line-height: 27px !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  transition: background-color 0.3s ease, color 0.3s ease !important;
}

button:hover,
.btn:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
}

button:focus,
.btn:focus {
  background-color: #ffffff !important;
  color: #000000 !important;
  outline: none !important;
  box-shadow: none !important;
}

button:active,
.btn:active {
  background-color: #f5f5f5 !important;
  color: #000000 !important;
  border-color: #000000 !important;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2) !important;
  transition: background-color 0.1s ease, color 0.1s ease !important;
}

/* Eliminar el borde azul de los botones cuando se seleccionan */
button:focus-visible,
.btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Pestañas activas */
.navbar-nav .nav-link.active {
  background-color: #ffffff;
  color: #000000;
  border-color: #000000;
}

/* Cards */
.card {
  border-radius: 14px;
  background-color: #ffffff;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  height: 100%;
  min-height: 200px;
}

.card i {
  color: #000000 !important;
}

.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-body a {
  margin-top: auto;
}

/* Formularios */
.formulario-centrado {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Contenedor general */
.container {
  flex-grow: 1;
  max-width: 100%;
  margin-bottom: 20px;
  padding-bottom: 0 !important;
}

.container-plantillas {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/* Formularios ocultos inicialmente */
.formulario-oculto {
  display: none;
  visibility: hidden;
  height: 0;
  padding: 0;
  margin: 0;
}

.mostrar-formulario {
  display: block;
  visibility: visible;
  height: auto;
  transition: all 0.3s ease;
  margin-top: 20px;
}

/* Inputs y formularios */
input,
select,
textarea {
  border: 1px solid #000000;
  border-radius: 10px;
  padding: 10px;
  font-size: 16px;
  background-color: #f7f7f7;
  border: 1px solid #bbbbbb;
}

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

/* Encabezados */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Suisse Intl", sans-serif;
  color: #000000;
}

/* Ajustes para las pestañas */
.tab-pane {
  padding: 5px 0;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.tab-pane:not(.active) {
  display: none;
}

/* Footer */
footer {
  padding: 5px 0;
  text-align: center;
  margin-top: auto;
  background-color: #f8f9fa;
  position: relative;
  bottom: 0;
  width: 100%;
}

/* Ajuste entre las secciones y el footer */
footer {
  padding-bottom: 10px;
}

/* Ajuste del tamaño del código QR */
#qr-container {
  width: 100%;
  min-width: 250px;
  margin: 40px auto 20px;
  text-align: center;
}

#qr-container img {
  width: 100%;
  height: auto;
}

#qr-form {
  margin-top: 20px;
}

/* Control de formularios dinámicos */
#dynamicFieldsContainer {
  margin-top: 20px;
  padding: 0;
}

#form-seleccion-plantilla {
  margin-bottom: 0;
}

button#cargarPlantillaBtn {
  margin-top: 10px;
}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

#cargarPlantillaBtn,
.btn-secondary {
  padding: 10px 32px;
  font-size: 14px;
  font-weight: 300;
  border-radius: 100px;
  border: 1px solid #000;
  text-align: center;
  display: inline-block;
  vertical-align: middle;
}

#cargarPlantillaBtn {
  margin-top: 0;
}

.button-container .btn {
  margin: 10px 0 0;
  padding: 10px 32px;
}

.custom-close {
  cursor: pointer;
  font-weight: bold;
  font-size: 20px;
}

.alert.alert-info {
  color: unset;
  background-color: unset;
  border-color: unset;
  border: none;
}
