/* styles.css */
body {
    font-family: 'Be Vietnam Pro', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F5F9FF !important;
    color: #043381;
  }
  html {
    background-color: #F5F9FF;
    font-family: 'Be Vietnam Pro', sans-serif;
  }
  .container {
    max-width: 768px;
    margin: 0 auto;
    padding:  0px !important;
   position: relative;
   font-family: 'Be Vietnam Pro', sans-serif;
  }
  
  /* Header */
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFFFFF;
    padding:  20px;

    
  }
  
  .logo {
    height: 40px;
  }
  
  .menu-btn img {
    width: 24px;
    height: 24px;

  }
  .menu-btn {
    background-color: transparent;
    border: none;
  }
  
  
 

  /* Grid de opciones */
  .options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding: 0px 20px;
   
  }
  
  .option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
    padding: 40px 20px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .option-card img {
    height: 40px;
    margin-bottom: 10px;
  }
  .option-card .selected-icon {
    display: none;
  }
  
  .option-card p {
    margin: 0;
    font-size: 12px;
    color: #414141;
    font-weight: 400;
  }
  
  /* Estilos cuando el botón está seleccionado */
  .option-card.selected {
    background-color: #043381;
  }
  
  /* Cuando está seleccionado, se esconde el icono azul y se muestra el blanco */
  .option-card.selected .normal-icon {
    display: none;
  }
  
  .option-card.selected .selected-icon {
    display: block;
  }
  
  /* Cambia el color del texto a blanco */
  .option-card.selected p {
    color: white;
  }
  
  /* Hover para mejorar interacción */
  .option-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background-color: #043381;
  }
  
  .option-card:hover p {
    color: #FFFFFF;
    font-weight: 700;
  }
  
  .option-card:hover .normal-icon {
    display: none;
  }
  
  .option-card:hover .selected-icon {
    display: block;
  }




.back-button img {
  height: 20px;
  cursor: pointer;
}


.hidden {
  display: none;
}
.visible {
  display: block;
}


/* Patient Card */
.content{
  padding: 20px;
} 
.patient-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 15px 20px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.patient-card:hover {
  transform: translateY(-2px);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}

.patient-card img.icon-paciente {
  height: 22px;
  margin-right: 20px;
}

.patient-card span {
  flex: 1;
  font-size: 12px;
  color: #414141;
  text-align: left;
}

.patient-card img.arrow-icon {
  height: 20px;
}

/* Info Text */
.info-text {
  margin: 20px 0;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  color: #414141;
}

/* Add Medicine Button */
.btn.add-medicine,
.btn.add-medicine-initial {
  display: block;
  width: 100%;
  margin: 20px auto;
  background-color: #16E0BD;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 15px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn.add-medicine:hover,
.btn.add-medicine-initial:hover {
  background-color: #14C9A9;
}

/* No Medicine Text */
.no-medicine-text {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  line-height: 2;
 margin-bottom: 0;
  color: #414141;
}

.no-medicine-text strong {
  font-weight: 700;
 
}



#dynamic-header {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  height: 41px;
  background-color: #043381; 
  color: white; 
}

#dynamic-header h1 {
  font-size: 16px;
  font-weight: 700;
  margin-left: 0px;
  margin-bottom: 0;
}

.back-button{
  background-color: transparent;
  border: none;
  margin-right: 5px;
}

.back-button img {
  width: 20px;
  height: 20px;
 

  cursor: pointer;
}


/* Barra de búsqueda */
.search-bar {
  display: flex;
  align-items: center;
  background-color: #043381;
  border: 0.5px solid #FFFFFF; 
  border-radius: 10px; 
  padding: 5px 10px;
  width: 100%; 
  max-width: 400px;
 height: 26px;

}

/* Ícono de búsqueda */
.search-bar .search-icon {
  width: 18px; 
  height: 18px;
  margin-right: 10px; 
}

/* Campo de texto */
.search-bar .search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 400;
  color: #FFFFFF; 
  background-color: transparent; 
}

.search-bar .search-input::placeholder {
  color: #FFFFFF; /* Color del texto placeholder */
  opacity: 0.7;
}

#search-patient-section p {
  font-size: 12px;
  color: #414141;
  font-weight: 400;
  padding: 20px;
  margin-bottom: 0;
  padding-bottom: 0;
}


/* Sección de lista de pacientes */
.patient-list {
  display: flex;
  flex-direction: column;
  gap: 10px; 
  padding: 20px;

}

/* Botón de paciente */
.patient-card-two {
  display: flex;
  align-items: center;
  background-color: #FFFFFF;
  border: none;
  border-radius: 10px; 
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%; 
  height: 99px;
  margin-top: 10px;
}

/* Hover del botón */
.patient-card-two:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
}

/* Icono de paciente */
.patient-icon {
  width: 65px; 
  height: 65px;
  margin-right: 10px; 
}
.patient-info {
  flex-grow: 1; 
}
/* Información del paciente */
.patient-info h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #414141;
}

.patient-info p {
 
  padding: 0 !important;
  font-size: 11px;
  font-weight: 400;
  color: #414141; 
}

.patient-info span {
  margin-left: 10px;
  font-weight: 400;
}

.floating-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 65px;
  height: 65px;
  border: none;
  
  background-color: transparent;
  cursor: pointer;
}

.floating-icon img {
  width: 60px;
  height: 60px;
}


#selected-patient-container {
  margin-top: 20px;
}

.patient-card-selected {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: 12px;
  background-color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.patient-card-selected img {
  width: 50px;
  height: 50px;
}

.patient-card-selected h3 {
  font-size: 16px;
  font-weight: bold;
  color: #043381;
}

.patient-card-selected p {
  margin: 2px 0;
  font-size: 14px;
  color: #414141;
}

.patient-card-two p {
  margin-bottom: 0;
}
.patient-card-container {
  padding: 20px;
}


/* Formulario de receta */
.prescription-form {
  padding: 0px 20px;
}

.form-group {
  margin-bottom: 20px;
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 15px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #414141;
}
.form-label img {
  width: 25px;
  height: 25px;
  margin-right: 10px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #CBCBCB;
  border-radius: 10px;
  background: #fff;
}

.form-input {
  height: 33px;
  font-size: 11px;
  font-weight: 400;
  color: #CBCBCB;
}
.form-input[type="date"] {
  width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  font-size: 11px; 
  color: #414141;
  
  /* Asegura que el input ocupe todo el ancho disponible */
  box-sizing: border-box;
  
  /* Previene estilos por defecto en Safari */
  -webkit-text-fill-color: currentColor;
  opacity: 1;
}
.form-textarea {
  min-height: 100px;
  resize: vertical;
  font-size: 11px;
  font-weight: 400;
  color: #414141;
}

.coverage-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.coverage-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
}

.checkbox-container input[type="checkbox"],
.checkbox-container input[type="radio"] {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #16E0BD;
  border-radius: 3px;
  display: inline-block;
  position: relative;
}

/* Para radio buttons, hacer redondos */
.checkbox-container input[type="radio"] + .checkbox-custom {
  border-radius: 50%;
}

/* Crear el tilde personalizado para checkbox */
.checkbox-custom::after {
  content: '';
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #043381;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Punto para radio buttons */
.checkbox-container input[type="radio"] + .checkbox-custom::after {
  content: '';
  position: absolute;
  display: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #043381;
  border-radius: 50%;
  border: none;
}

/* Mostrar el tilde cuando el checkbox está marcado */
.checkbox-container input[type="checkbox"]:checked + .checkbox-custom::after {
  display: block;
}

/* Mostrar el punto cuando el radio está marcado */
.checkbox-container input[type="radio"]:checked + .checkbox-custom::after {
  display: block;
}

.checkbox-text {
  font-size: 11px;
  color: #414141;
}

.coverage-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
 
  padding-left: 32px;
}

.coverage-input {
  padding: 0;
  border: none;
  font-weight: 400;
  font-size: 11px;
  color: #8B8B8B;
  width: 100%;
  text-align: center;

}

.coverage-input::placeholder {
  color: #999;
}
.medicine-group {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
}



.medicine-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.medicine-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.medicine-name {
  font-size: 11px;
  color: #043381;
  font-weight: 400;
  margin-bottom: 0;
}

.delete-btn {
  background: none;
  border: none;
  padding: 0px;
  cursor: pointer;
}

.delete-btn img {
  width: 20px;
  height: 20px;
}

.clarification-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #CBCBCB;
  border-radius: 10px;
  font-size: 11px;
  color: #CBCBCB;
  height: 33px;
}
.clarification-input::placeholder {
  color: #CBCBCB;
}

.quantity-control {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #16E0BD;
  border-radius: 20px;
  padding: 1px 20px;
  width: fit-content;
  margin: 0 auto;
}

.quantity-btn {
  background: none;
  border: none;
  color: white;
  font-size: 12px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-display {
  background: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  margin: 0 8px;
  font-size: 12px;
}

.quantity-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
  margin-bottom: 20px;
}


.btn-generate-recipe{
  background: #16E0BD;
  border: none;
  border-radius: 20px;
  padding: 15px 20px;
  font-size: 14px;
  font-weight: 700;
  color: white;
}

.btn-cancel-recipe {
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: #043381;

}

.btn-cancel-recipe:hover{
 font-weight: bold;
}


.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.success-content {
  position: relative;
  z-index: 10000;

  padding: 24px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.success-icon {
  margin-bottom: 16px;
  animation: scaleIn 0.5s ease;
}

.success-message {
  color: #333;
  font-size: 18px;
  animation: fadeIn 0.5s ease 0.3s both;
}

/* Estilos del visor de receta */
.viewer-header {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;

  width: 100%;
}

.back-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.back-button img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1); /* Hace el ícono blanco */
}

.viewer-header h1 {
  color: white;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  text-align: center;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.viewer-actions {
  display: flex;
  gap: 24px;
  align-items: center;
}

.action-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.action-btn img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1); /* Hace los íconos blancos */
}
#recipe-viewer-section {
  width: 100%;
  height: calc(100vh - 64px); /* Ajusta según la altura de tu header */
  overflow-y: auto;
}

.recipe-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 16px;
}

.recipe-image {
  max-width: 100%;
  height: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* Animaciones */
@keyframes scaleIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(126, 126, 126, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.success-modal.visible {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white !important;
  padding: 22px;
  border-radius: 20px !important;
  
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 90%;
  width: 320px;
}

.success-icon {
  margin-bottom: 24px;
}

.modal-content h2 {
  font-size: 16px;
  font-weight: 700;
  color: #414141;
  margin: 0 0 24px 0;
}

.ok-button {
  background: none;
  border: none;
  color: #043381;
  font-size: 16px;
  font-weight: 500;
  padding: 5px 24px;
  cursor: pointer;
  margin-bottom: 0;
  border-top: 1px solid #000000;
}


/* Sección de mis recetas */

#my-recipes-section {
  padding: 0;
  background: #F5F9FF;
  min-height: 100vh;
}



.search-container {
  margin: 16px;
  position: relative;
}

.search-input {
  width: 100%;
  background-color: transparent;
  padding: 12px 40px 12px 16px;
  height: 37px;
  border: 1px solid #414141;
  border-radius: 10px;
  font-size: 12px;
}

.search-input::placeholder {
  color: #8B8B8B;
  font-size: 10px;
  font-weight: 400;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.recipes-table {
  margin: 16px;
  background-color: #F5F9FF ;
  border-radius: 8px;
  overflow: hidden;
}

.table-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 10px;

 border-bottom: 1px solid #FFFFFF;
}

.column-title {
  font-weight: 700;
  color: #043381;
  font-size: 11px;

  line-height: 1.2;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 10px;
  border-bottom: 1px solid #FFFFFF;
  align-items: center;

}

.patient-name,
.recipe-date,
.medications {
  font-size: 10px;
  color: #414141;
  font-weight: 400;
}
.action-buttons-patients {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.action-btn-patients{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: none; 
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.action-btn-patients img {
  width: 35px;
  height: 35px;

}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 24px 16px;
}

.page-numbers {
  display: flex;
  gap: 8px;
}

.page-number {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  border-radius: 4px;
  font-size: 12px;
  color: #000000;
  font-weight: 300;
  cursor: pointer;
}

.page-number.active {
  text-decoration: underline;
  color: #000000;
  font-weight: 700;
}

.pagination-arrow {
  border: none;
  background: none;
  padding: 8px;
  cursor: pointer;
}
.pagination-arrow img {
  width: 13px;
  height: 12px;

}

.pagination-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* Sección de mis pacientes */

#my-patients-section {
  padding: 0;
  background: #F5F9FF;
  min-height: 100vh;
}

.patients-header {
  background: #043381;
  color: white;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.patients-header h1 {
  font-size: 18px;
  margin: 0;
}

.search-container {
  margin: 16px;
  position: relative;
}



.patient-name,
.patient-id,
.patient-sex {
  font-size: 10px;
  color: #414141;
}

.view-profile {
  color: #043381;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  text-decoration: underline;
}


.table-header-two {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 10px;
  text-align: center !important;
  border-bottom: 1px solid #FFFFFF;
}



.table-row-two{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 10px;
  border-bottom: 1px solid #FFFFFF;
  align-items: center;

  text-align: center;
}


/* Sección de perfil de paciente */

#patient-profile-section {
  background: #F5F9FF;
  min-height: 100vh;
  font-family: 'Be Vietnam Pro', sans-serif;
  padding-bottom: 24px;
}

.profile-header {
  padding: 16px;
}

.patient-basic-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.avatar-circle {
  width: 48px;
  height: 48px;
 
  
  display: flex;
  align-items: center;
  justify-content: center;
}

.patient-name-info h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: #8B8B8B;
}

.patient-name-info p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #8B8B8B;
}

.profile-card {
  border: 1px solid #414141;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.card-title {
  color: #043381 !important;
  font-size: 12px;
  margin: 0 0 16px;
  font-weight: 700;
  padding-bottom: 5px;
  border-bottom: 1px solid #CCCACA ;
  margin-bottom: 20px !important;
}



.profile-field {
  margin-bottom: 16px;
}

.profile-field label {
  font-size: 12px;
  color: #414141;
  font-weight: 700;
  margin-bottom: 4px;
  display: block;
}

.profile-field p {
  font-size: 11px;
  color: #414141;
  font-weight: 400;
  margin: 0;
}

.coverage-info h4 {
  font-size: 12px;
  color: #414141;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.coverage-info p {
  font-size: 11px;
  color: #414141;
  font-weight: 400;
  margin: 0;
}

.affiliate-number label {
  margin-top: 10px;
  font-size: 12px;
  color: #414141;
  font-weight: 400;

}
.affiliate-number p {
  font-size: 12px;
  color: #414141;
  font-weight: 700;
  margin-top: 0;
}

.no-coverage {
  font-size: 12px;
  color: #414141;
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 0;
  border-top: 1px solid #CCCACA;
  padding-top: 5px;
}

.no-observations {
  color: #414141;
  font-size: 12px;
  font-weight: 400;
}

.recipes-table-three {
  margin: -16px;

}

.recipes-table-three .table-header-three{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 12px 16px;
  text-align: center;
  font-size: 12px;
  color: #414141;
  font-weight: 700;
}

.recipes-table-three .table-row-three{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 5px 10px;
 text-align: center;
  font-size: 10px;
  color: #414141;
  font-weight: 400;
}

.see-more {
  display: block;
  text-align: center;
  color: #043381;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  margin-top: 40px;
}


#patient-recipes-section {
  padding: 0;
  background:#F5F9FF;
  min-height: 100vh;
}


.recipes-table {
  margin: 16px;
  background:#F5F9FF;
  border-radius: 8px;
  overflow: hidden;
}

/* CONFIGURACION */

#configuration-section {
  background-color: #F5F9FF;
  min-height: 100vh;
  padding-bottom: 24px;

}

.config-content {
  padding: 10px;
}

.config-section {
  background: #F5F9FF;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 16px;
}

.config-subtitle {
  color: #043381;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 10px;
}

/* Profile Photo Upload */
.profile-photo-upload {
  display: grid;
   grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 10px;
  padding: 10px 0 ;
 
}

.photo-placeholder {
  width: 113px ;
  height: 113px;
  background-color: #E0E0E0;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: #7D7D7D;
  font-weight: 500;
  text-align: center;
}

.upload-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.upload-btn {
  background-color: #16E0BD;
  color: #FFFFFF;
  border: none;
  padding: 10px;
  border-radius: 20px;
  font-size: 12px;
  
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease;
  text-align: center;
}

.upload-btn:hover {
  background-color: #D9D9D9;
  color: #16E0BD;
}

.upload-note {
  font-size: 8px;
  color: #8B8B8B;
  font-weight: 300;
  line-height: 1.1;
  margin: 0;
}

/* Contenedor general del switch */
.prefix-switch {
  display: flex;
  flex-direction: column; 
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.prefix-label {
  font-size: 14px;
  color: #414141;
  font-weight: 400;
}


.switch-buttons {
  display: flex;
  gap: 10px;
}


.switch-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 400;
  background-color: #F5F9FF; 
  color: #CCCACA; 
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}


.switch-btn.selected {
  background-color: #16E0BD; 
  color: #FFFFFF; 
  border-radius: 10px;
  
}


.switch-btn:hover {
  background-color: #16E0BD; /* Verde más oscuro */
  color: #FFFFFF;
  border-radius: 10px;
}


/* Contenedor general del formulario */
.config-form {
  display: flex;
  flex-direction: column;
  gap: 15px; 
  margin-top: 20px;
}

/* Filas del formulario */
.form-row-five {
  display: flex;
  justify-content: space-between; /* Distribución uniforme */
  gap: 10px; /* Espacio entre columnas */
}

/* Grupos de formulario */
.form-group-five {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Etiquetas */
.form-group-five label {
  font-size: 10px;
  color: #414141;
  margin-bottom: 5px;
  line-height: 1;
}

/* Campos de entrada */
.config-input {
  width: 100%; 
  padding: 5px 10px;
  font-size: 12px;
  border: 1px solid #414141;
  border-radius: 10px;
background-color: transparent;
  color: #414141;
  outline: none;
  transition: border-color 0.3s ease;
  margin-bottom: 5px;
}


.config-input:hover,
.config-input:focus {
  border-color: #043381;
}



/* Upload box */
.upload-box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: 1px solid #000000;
  border-radius: 20px;
  height: 141px;
  font-size: 12px;
  color: #9E9E9E;
}



/* Switch */
.switch-container {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.switch-label {
  font-size: 10px;
  color: #8B8B8B;
  font-weight: 400;
  margin-bottom: 0;
  margin-top: 5px;
}
.label-black {
  font-weight: 700 !important;
  margin-top: 20px;
  margin-bottom: 0 !important;
}
/* Switch styles */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
 
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #F5F5F5;
  transition: 0.4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #D9D9D9;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #16E0BD; /* Verde activo */
}

input:checked + .slider:before {
  transform: translateX(14px);
}

.config-label {
  font-size: 12px;
  font-weight: 400;
  color: #414141;
  margin-bottom: 5px;
  display: block;
}

.upload-box-two {
  display: flex;
  align-items: center;
  justify-content:flex-start;
  margin-bottom: 10px;
  border: 1px solid #000000;
  border-radius: 10px;
  height: 90px;
  font-size: 12px;
  padding: 20px;
  color: #9E9E9E;
}



/* Input with Icon */
.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 40%;
  right: 12px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* Tags */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #ECECEC;
  border-radius: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  background-color: #8B8B8B;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 400;
  padding: 2px  5px;
  
  border-radius: 5px;
}

.remove-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  font-size: 10px;
  cursor: pointer;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  border: 1px solid white; 
  color: white; 
  background-color: transparent; 
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Efecto hover */
.remove-tag:hover {
  background-color: white;
  color: #414141; 
}

.checkbox-group-container {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Espaciado entre grupos */
}

.checkbox-group-two {
  display: flex;
  flex-direction: column;
  gap: 5px; /* Espaciado entre checkbox e inputs */
}


.checkbox-input-one {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 18px;
  border: 1px solid #043381;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.checkbox-input-one:checked + .checkbox-custom {
  background-color: #043381; 
  border-color: #043381;
}

.checkbox-input-one:checked + .checkbox-custom::after {
  content: '✔' !important; 
  font-size: 12px;
  color: white !important;
}


.config-label-check {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 400;
  color: #414141; /* Color del texto */
  cursor: pointer;
  margin-top: 10px;
}




.config-label-dni {
  font-size: 16px;
  font-weight: 700;
  color: #414141;
  margin-bottom: 5px;
  margin-top: 10px;
}




.password-section {
  margin-top: 24px;
  padding: 0;
}

.password-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.password-input-container {
  position: relative;
  width: 100%;
}

.password-input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #414141;
  border-radius: 10px;
  height: 33px;
  font-size: 12px;
  color: #8B8B8B;
  background-color: transparent;
}

.password-input::placeholder {
  color: #999;
}

.toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.eye-icon {
  width: 24px;
  height: 24px;
  color: #666;
}

.save-password-btn {
  background: #16E0BD;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  width: 50%;
  margin: 0 auto;
  margin-top: 16px;
}

.save-password-btn:hover {
  background: #14ceb0;
}

/* Estilos del menú móvil */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color:#ECECEC;
  z-index: 1000;
  padding: 20px;
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.hidden {
  transform: translateX(-100%);
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.close-menu {
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.close-menu img {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  padding: 20px 0;
}

.mobile-option {
  width: 100%;

  height: 60px;
  border-radius: 10px;
  border: 1px solid #E8E8E8;
  background: white;
  padding: 0 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-option:hover,
.mobile-option.active {
  background: #16E0BD;
}

.mobile-option-content {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;

}

.mobile-option .icon {
  width: 20px;
  height: 20px;
}

.mobile-option .selected-icon {
  display: none;
}

.mobile-option:hover .normal-icon,
.mobile-option.active .normal-icon {
  display: none;
}

.mobile-option:hover .selected-icon,
.mobile-option.active .selected-icon {
  display: block;
}

.mobile-option span {
  font-size: 12px;
  color: #414141;
}

.mobile-option:hover span,
.mobile-option.active span {
  color: white;
}

.home-link {
  display: flex;
  align-items: flex-end;
  background: transparent;
  border: none;
  padding: 10px;
 
  cursor: pointer;
  width: 100%;
  max-width: 277px;

}

.home-link .home-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.home-link span {
  font-size: 14px;
  font-weight: 700;
  color: #003B78;
}

.logout-link {
  display: flex;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 15px 20px;
  margin-top: 100px;
  margin-bottom: 20px;
  cursor: pointer;
  width: 100%;
}

.logout-link span {
  font-size: 14px;
  font-weight: 700;
  color: #003B78;

}

@media (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}

/* Estilos para el modal de búsqueda de medicamentos */
.medicine-search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.medicine-search-modal.hidden {
  display: none;
}

.medicine-search-modal .modal-content {
  background-color: white;
  border-radius: 20px;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ECECEC;
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #043381;
}

.close-modal {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.search-input-container {
  position: relative;
  margin-bottom: 20px;
}

.medicine-search-input {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border: 1px solid #414141;
  border-radius: 10px;
  font-size: 12px;
  color: #414141;
}

.medicine-search-input::placeholder {
  color: #8B8B8B;
  font-size: 12px;
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.medicine-search-results {
  max-height: 400px;
  overflow-y: auto;
  margin-top: 1rem;
}

.medicine-result {
  padding: 15px;
  border-bottom: 1px solid #ECECEC;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.medicine-result:hover {
  background-color: #F5F9FF;
}

.medicine-info {
  flex: 1;
}

.medicine-info h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #043381;
  margin-bottom: 5px;
}

.medicine-info p {
  margin: 0;
  font-size: 12px;
  color: #414141;
}

.add-medicine-btn {
  background-color: #16E0BD;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background-color 0.3s;
  margin-left: 15px;
  white-space: nowrap;
}

.add-medicine-btn:hover {
  background-color: #14c9a9;
}

/* Estilos para los medicamentos en la receta */
.medicine-item {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.medicine-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.medicine-name {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

.delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.clarification-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  background-color: #16E0BD;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-display {
  min-width: 30px;
  text-align: center;
  font-weight: bold;
}




/* Estilos para los mensajes de error */
.error-message {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Estilos para el contenedor de medicamentos */
.medicine-container {
  margin-bottom: 20px;
}

.add-medicine {
  width: 100%;
  padding: 12px;
  background-color: #f8f9fa;
  border: 2px dashed #ddd;
  border-radius: 8px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}

.add-medicine:hover {
  background-color: #e9ecef;
  border-color: #16E0BD;
  color: #16E0BD;
}

.medicine-item .medicine-name {
  color: #043381;
  font-size: 11px;
  text-decoration: underline;
}

/* Modales de logout personalizados */
.logout-confirm-modal,
.logout-success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logout-confirm-modal.hidden,
.logout-success-modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.logout-confirm-content,
.logout-success-content {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin: 20px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.logout-icon,
.goodbye-icon {
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logout-confirm-content h3,
.logout-success-content h3 {
  font-size: 20px;
  font-weight: bold;
  color: #043381;
  margin: 0 0 12px 0;
}

.logout-confirm-content p,
.logout-success-content p {
  font-size: 12px;
  color: #666;
  margin: 0 0 25px 0;
  line-height: 1.4;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.cancel-button,
.confirm-button,
.goodbye-button {
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.cancel-button {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #e9ecef;
}

.cancel-button:hover {
  background: #e9ecef;
  color: #495057;
}

.confirm-button {
  background: #ff4757;
  color: white;
}

.confirm-button:hover {
  background: #ff3742;
  transform: translateY(-1px);
}

.goodbye-button {
  background: linear-gradient(135deg, #16E0BD, #2c5aa0);
  color: white;
  width: 100%;
}

.goodbye-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(22, 224, 189, 0.3);
}

/* Estilos para receta mobile */
.recipe-container-mobile {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-size: 12px;
  line-height: 1.4;
}

.recipe-container-mobile .prescription-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.recipe-container-mobile .header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  border-bottom: 2px solid #16E0BD;
}

.recipe-container-mobile .professional-info {
  text-align: center;
  margin-bottom: 10px;
}

.recipe-container-mobile .prescription-date {
  font-size: 10px;
  color: #666;
  margin-top: 10px;
}

.recipe-container-mobile .patient-section,
.recipe-container-mobile .coverage-section {
  margin: 10px 0;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 5px;
}

.recipe-container-mobile .medications-section {
  margin: 15px 0;
}

.recipe-container-mobile .medication-item {
  margin: 8px 0;
  padding: 8px;
  border-left: 3px solid #16E0BD;
  background: #f8f9fa;
}

.recipe-container-mobile .signature-section {
  margin-top: 20px;
  text-align: center;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

/* Los estilos de las acciones ahora están en el header dinámico */

/* Estilos para radio buttons redondos de exportación */
.export-option input[type="radio"]:checked {
  background: #2c5aa0;
  border-color: #2c5aa0;
}

.export-option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.export-option:hover input[type="radio"] {
  border-color: #1e3d6f;
}

.btn-export:hover {
  background: #1e3d6f !important;
  transform: translateY(-1px);
}

.btn-export:active {
  transform: translateY(0);
}

.export-section {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

