/* /public/styles/apothecaryAssistant.css */
/* Apothecary Assistant — chat + embedded doc
   Scope: only elements the assistant renders.
   Uses your existing tokens (brand gold) if defined.
*/

/* ----- 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;
  /* Removed border/padding/bg to reduce "boxed" look */
  flex: 1 1 auto;            /* fill remaining vertical space */
  min-height: 0;             /* allow scrolling instead of overflow clipping */
}

/* Composer row */
#app .action-row{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#app .composer__buttons {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  justify-content: flex-start !important; /* Force left alignment */
  align-items: center;
}

#app .composer__input{
  display: block;
  width: 100% !important;   /* full width of the chat column */
  max-width: 100% !important;
  min-height: 3.25rem;
  max-height: 35vh;
  resize: vertical;
  padding: .5rem .75rem;
  
  border-radius: .5rem;
  color: #333;
  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;
  }
}

/* --- Artist Assistant: composer layout (input on top, buttons stacked) --- */
#artistChatForm.composer{
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

#artistChatForm .composer__input{
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--brand-gold, #b08a48);
  border-radius: .5rem;
  padding: .5rem .75rem;
  resize: vertical;
}

/* Buttons column under the input */
#artistChatForm .composer__actions{
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* left align */
  gap: .25rem;
}

/* Make the three buttons “text sized”, not big pills */
#artistChatForm .composer__actions .credit-button{
  font-size: .9rem;
  line-height: 1.2;
  padding: .25rem .5rem;
  border-radius: .5rem;
}

/* Ensure the composer matches the full chat column width */
#artistChatForm, 
#artistChatForm .composer__input{
  max-width: 100%;
}

/* --- Artist Assistant: upload preview & thumbnails --- */
#artistChatForm .composer__preview{
  border: 1px solid var(--brand-gold, #b08a48);
  border-radius: .5rem;
  padding: .5rem;
  background: #fff;
}

#artistChatForm .composer__thumb{
  display: block;
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: .5rem;
  border: 1px solid rgba(0,0,0,.1);
}
