:root {
  --primary-color: #007bff;
  --secondary-color: #84B737;
  --background-color: rgba(255, 255, 255, 0.7);
  --border-color: #ced4da;
  --error-color: #dc3545;
  --success-color: #28a745;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.index-page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background: url('../medios/imagenes/background-iconos-medicina.png') no-repeat center center fixed;
  background-size: cover;
}

.index-page::before,
.index-page::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.index-page::before {
  background: url('../medios/imagenes/micro.png') no-repeat left top;
  background-size: 50% 80%;
  mask-image: linear-gradient(to right, black 20%, transparent 80%);
  -webkit-mask-image: linear-gradient(to right, black 20%, transparent 80%);
  z-index: 1;
}

.index-page::after {
  background-color: var(--background-color);
  z-index: 1;
}

.login-container {
  background-color: var(--background-color);
  border-radius: 10px;
  padding: 30px;
  margin: 100px auto;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  box-sizing: border-box;
}

.login-container h2 {
  color: var(--primary-color);
  margin-bottom: 30px;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.9); }
  50% { transform: scale(0.8); }
}

.custom-btn {
  background-color: var(--secondary-color) !important;
  color: white !important;
  border-color: var(--secondary-color) !important;
}

.label-value {
  display: inline-block;
  min-width: 80px;
}

.value {
  display: inline-block;
  margin-left: 10px;
}

#resultDiv {
  position: relative;
  height: calc(100vh - 130px); /* Ajusta este valor según la altura de tu navbar y botonera */
  overflow: hidden;
  min-height: 0;
  
}

.botonera-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1); 
  z-index: 1000; 
}

.container-fluid {
  padding-bottom: 10px;
}


.custom-text {
  font-size: 0.75rem;
}

.list-horizontal {
  display: flex;
  flex-direction: row;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .list-horizontal {
    flex-direction: column;
  }
}
.pdfViewer .linkAnnotation > a,
.pdfViewer .linkAnnotation > a:hover {
  background: none !important;
  cursor: default !important;
}

#viewer.pdfViewer {
  width: 100%;
  height: 100%;
}
.pdfViewer .page {
  margin: 1px auto;
  max-width: 100% !important;
}

.scroll-container {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

/* Estilos para navegadores WebKit (Chrome, Safari, etc.) */
.scroll-container::-webkit-scrollbar {
  width: 8px;
}

.scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.disabled {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}

#visualizarProgress {
  margin-bottom: 8px;
}

#statusMessage {
  min-height: 24px;
}
.form-check-input {
  cursor: pointer;
}

.form-check-label {
  cursor: pointer;
  user-select: none;
}

@media (max-width: 992px) {
  .custom-text {
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  .login-container {
    margin-top: 50px;
    padding: 20px;
  }

  .options-list {
    max-height: 50vh;
  }
  
  .option {
    padding: 15px 12px;
  }

  .card-body .row {
    font-size: 0.9rem;
  }

  .scroll-container {
    max-height: 300px;
  }
}

@media (max-width: 576px) {
  .custom-text {
    font-size: 0.75rem;
  }

  .scroll-container {
    max-height: 300px;
  }

  .botonera-fixed .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
  
}

@media (min-width: 577px) and (max-width: 768px) {
  .scroll-container {
    max-height: 300px;
  }
}

@media (min-width: 769px) {
  .scroll-container {
    max-height: 400px;
  }
}


@media (max-width: 991.98px) {
  .navbar-nav {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
  }
  
  .nav-item {
    text-align: center;
  }
  
  .nav-link {
    padding: 0.5rem 0;
  }
  
  .nav-text {
    font-size: 0.75rem;
  }
}