/* Noma Therapy Note Containers */
.noma-therapy-note-container {
  margin-top: 20px;
  background-color: var(--white);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
}

/* Samaritan Note Containers */
.samaritan-palliative-note-container,
.samaritan-primary-care-note-container {
  margin-top: 20px;
  background-color: var(--white);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
}

.samaritan-palliative-note-container h2,
.samaritan-primary-care-note-container h2 {
  margin-top: 0;
}

.note-btn-container {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  margin-right: 0;
  margin-bottom: 5px;
}

.note-btn-container > button {
  /* height: 28px; */
  /* width: auto; */
  min-width: 28px;
  background-color: var(--white);
  border: 2px solid var(--grey);
  font-weight: 600;
  padding: 0 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure copy buttons in note containers match the standard styling */
.note-btn-container .copy-btn {
  /* background-color: var(--blue) !important; */
  /* color: var(--white) !important; */
  height: 44px;
  max-width: 120px;
  flex: 1;
}

/* Copy button styling - consolidated for all screen sizes */
.copy-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 44px;
  background-color: var(--white);
  color: var(--primaryText);
  border: 2px solid var(--grey);
  border-radius: 8px;
  font-size: 16px;
  padding: 0 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.copy-btn:hover {
  background-color: var(--baseColorHover);
}
.copy-btn:active {
  background-color: var(--baseColorActive);
}

.copy-btn i {
  margin-right: 8px;
  font-size: 16px;
  color: var(--primaryText);
}

.copy-btn span {
  font-size: 1rem;
  white-space: nowrap;
  color: var(--primaryText);
}

#learnFormatBtn {
  margin-left: 8px;
  white-space: nowrap;
  font-size: 16px;
  background-color: var(--baseColor);
  color: var(--primaryText);
  border: 2px solid var(--grey);
  border-radius: 8px;
  height: 44px;
  padding: 0 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#learnFormatBtn > i {
  position: static;
  flex-shrink: 0;
  margin-right: 8px;
  font-size: 16px;
}

#learnFormatBtn > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
}

#learnFormatBtn:hover {
  background-color: var(--baseColorHover);
}
#learnFormatBtn:active {
  background-color: var(--baseColorActive);
}

#learnFormatBtn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Mobile-specific copy button styling */
@media (max-width: 768px) {
  .copy-btn {
    /* background-color: var(--blue); */
    /* color: var(--white); */
    padding: 0 12px;
  }

  .copy-btn i {
    font-size: 16px;
    margin-right: 8px;
  }

  .note-btn-container .copy-btn {
    height: 64px;
    max-width: none;
    padding: 0;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .note-btn-container {
    gap: 5px;
    display: flex;
    align-items: center; /* Ensure all buttons are vertically centered */
    margin-bottom: 1rem;
  }

  .note-btn-container > button {
    /* height: 36px; */
    min-width: 36px;
    padding: 0 10px;
    display: flex; /* Ensure consistent display properties */
    align-items: center;
    justify-content: center;
    flex: 1;
  }

  /* Mobile toggle view button styling */
  .toggle-view-btn {
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .minimize-btn {
    width: 36px !important;
    min-width: 36px !important;
  }

  #learnFormatBtn {
    height: 64px;
    width: auto;
    min-width: auto;
    max-width: 120px;
    font-size: 1rem;
    margin: 0;
  }
}
