/* /public/styles/artistAssistant.css */
/* artist Assistant — chat + embedded doc
   Scope: only elements the assistant renders.
   Uses your existing tokens (brand gold) if defined.
   copy of apothecaryAsisstant.css
*/

/* ----- LEFT: Chat column ----- */
#app .rc-wrap{
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 78vh;          /* match the doc column height */
}


#app .apoth-tabs{
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Messages pane: readable height with scroll */
#app .chat-scroll{
  /* let it expand with the column */
  overflow: auto;
  border: 1px solid var(--brand-gold, #b08a48);
  border-radius: .5rem;
  padding: 0.75rem;
  background: #fff;
  flex: 1 1 auto;            /* fill remaining vertical space */
  min-height: 0;             /* allow scrolling instead of overflow clipping */
}

/* Composer controls row (matches markup: .composer__actions) */
#app #artistChatForm .composer__actions{
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

/* Preview row (thumbnail + label + name input) */
#app #artistChatForm .composer__preview{
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 0.5rem;
}

#app .composer__input{
  min-height: 3.25rem;      /* taller textarea */
  max-height: 35vh;         /* don’t overrun screen */
  resize: vertical;
  padding: .5rem .75rem;
  border: 1px solid var(--brand-gold, #b08a48);
  border-radius: .5rem;
  color: #000;              /* ensure not gray */
  background: #fff;
}

#app .credit-button{
  height: 2.5rem;
  min-width: 3.25rem;
}

/* Hint line */
#app #aromatherapyChatHint{
  margin-top: .25rem;
}

/* ----- RIGHT: Embedded doc column ----- */
#photoPreview.apoth-preview{
  padding: 0; /* let the frame own its box */
}

/* Bigger, readable Google Doc preview */
/* Ensure the embedded Doc fills the right column */
#photoPreview .doc-frame,
#photoPreview #summaryFrame,
#summaryFrame{
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  min-height: 78vh;
  height: 78vh;
  border: 1px solid var(--brand-gold, #b08a48);
  border-radius: .5rem;
  background: #fff;
}


/* “Open in new tab” link alignment */
#photoPreview .doc-open-link{
  display: inline-block;
  margin-top: .5rem;
  text-decoration: none;
  border: 1px solid var(--brand-gold, #b08a48);
  padding: .375rem .75rem;
  border-radius: .5rem;
}

/* ----- Small screens: keep both sides usable ----- */
@media (max-width: 991.98px){
  #app .chat-scroll{ max-height: 50vh; }
  #photoPreview .doc-frame{
    min-height: 60vh;
    height: 60vh;
  }
}

/* Force chat input to full width and give it breathing room */
#app #artistChatForm .composer__input,
#app #artistChatForm #artistChatInput{
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  margin-bottom: 0.5rem;
}
/* Composer control spacing & thumbnail sizing */
#app #artistChatForm .composer__actions .btn,
#app #artistChatForm .composer__actions input[type="file"]{
  margin-top: 0;
}

#app #artistChatForm img.composer__thumb{
  display: inline-block;
  max-width: 96px;
  max-height: 96px;
  object-fit: cover;
  border: 1px solid var(--brand-gold, #b08a48);
  border-radius: .5rem;
}

#app #artistChatForm #artistImageName{
  margin-top: 0.25rem;
}
