/* ===== Dashboard page-scoped styles =====
   Scope only to elements present on dashboard.html.
   Relies on --brand-gold from pixel-overrides.css.
*/

/* --- Shared tokens (fallback if the var isn't present) --- */
:root {
  --dash-gold: var(--brand-gold, #b08a48);
  --dash-radius: 0.75rem;
  --dash-shadow: 0 2px 10px rgba(0,0,0,.06);
  --dash-bg: #ffffff;
  --dash-subtle: #f8f9fa; /* very light background for sections */
}

/* --- Assistant launcher buttons row --- */
#chatbotButtons {
  display: flex;
  flex-wrap: wrap;
  color: inherit;
  
 font-size: 0.9rem !important;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
   padding: 0.18rem 0.48rem !important;
  font-size: 0.84rem !important;
  line-height: 1.2 !important;
  min-height: 30px !important;
  border-radius: 0.5rem !important;
  
  
}

/* Buttons created by JS or static markup */
#chatbotButtons .btn,
#chatbotButtons button,
#handoffSection .btn,
#handoffSection button,
.action-buttons .btn,
.action-buttons button {
  border: 1px solid var(--dash-gold);
  background-color: var(--dash-bg);
  color: #000;
  border-radius: 0.55rem;
  padding: 0.38rem 0.7rem;
  line-height: 1.2;
  box-shadow: var(--dash-shadow);
  transition: box-shadow .15s ease, transform .05s ease, background-color .15s ease;
}

#chatbotButtons .btn:hover,
#chatbotButtons button:hover,
#handoffSection .btn:hover,
#handoffSection button:hover,
.action-buttons .btn:hover,
.action-buttons button:hover {
  background-color: #fff;
  box-shadow: 0 3px 14px rgba(0,0,0,.09);
}

#chatbotButtons .btn:active,
#chatbotButtons button:active,
#handoffSection .btn:active,
#handoffSection button:active,
.action-buttons .btn:active,
.action-buttons button:active {
  transform: translateY(1px);
}

/* Make "Send / Speak" row align neatly */
.action-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: inherit;
  
 font-size: 0.9rem !important;
 
  margin-bottom: 0.75rem;
  padding: 0.18rem 0.48rem !important;
  font-size: 0.84rem !important;
  line-height: 1.2 !important;
  min-height: 30px !important;
  border-radius: 0.5rem !important;
}

/* Recording status spacing (kept minimal) */
#recordingStatus {
  margin-left: 0.1rem;
  font-size: 0.9rem;
}

/* --- Chat container & message area --- */
#leftColumn {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Chat transcript box */
#chatBox {
  min-height: 220px;
  max-height: 48vh;
  overflow: auto;
  background: var(--dash-bg);
  border: 1px solid var(--dash-gold);
  border-radius: var(--dash-radius);
  box-shadow: var(--dash-shadow);
  padding: 0.85rem;
}

/* Composer (textarea + actions) */
.composer {
  
  border-radius: var(--dash-radius);
  box-shadow: var(--dash-shadow);
  padding: 0.85rem;
}

/* Textarea look */
.composer__input {
  width: 100%;
  border: 1px solid var(--dash-gold);
  border-radius: 0.55rem;
  background-color: #fff;
  padding: 0.6rem 0.75rem;
  resize: vertical;
  min-height: 110px;
  outline: none;
}

.composer__input:focus {
  box-shadow: 0 0 0 0.2rem rgba(176,138,72,.25);
}

/* Handoff (send to other GPTs) block */
#handoffSection {
  background: var(--dash-bg);
  border: 1px solid var(--dash-gold);
  border-radius: var(--dash-radius);
  box-shadow: var(--dash-shadow);
  padding: 0.85rem;
}

/* Small row spacing for nested button groups */
#leadMagnetOptions,
#emailOptions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Respect your "is-hidden-initial" class but keep layout stable */
.is-hidden-initial {
  display: none;
}

/* --- Right rail: Google Docs embed panel --- */
#rightColumn {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Iframe frame */
.doc-frame {
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--dash-gold);
  border-radius: var(--dash-radius);
  background: #fff;
  box-shadow: var(--dash-shadow);
  gap: 0.75rem;
}

/* Fallback card */
.doc-fallback {
  border: 1px solid var(--dash-gold);
  border-radius: var(--dash-radius);
  background: var(--dash-subtle);
  box-shadow: var(--dash-shadow);
  padding: 0.85rem;
}

/* Link to open full doc */
.doc-open-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--dash-gold);
  
  padding: 0.38rem 0.7rem;
  background: #fff;
  text-decoration: none;
  box-shadow: var(--dash-shadow);
 
 margin-top: 0.75rem;
  margin-bottom: 0.75rem;
   padding: 0.18rem 0.48rem !important;
  font-size: 0.84rem !important;
  line-height: 1.2 !important;
  min-height: 30px !important;
  border-radius: 0.5rem !important;
  
    justify-content: center !important;
    text-align: center !important;
}

.doc-open-link:hover,
.doc-open-link:focus {
  text-decoration: none;
  box-shadow: 0 3px 14px rgba(0,0,0,.09);
}

/* --- Accessibility: focus rings on interactive controls --- */
#chatbotButtons .btn:focus,
#chatbotButtons button:focus,
#handoffSection .btn:focus,
#handoffSection button:focus,
.action-buttons .btn:focus,
.action-buttons button:focus,
.doc-open-link:focus,
.composer__input:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(176,138,72,.25);
}

/* --- Responsive niceties --- */
@media (max-width: 991.98px) {
  #chatBox { max-height: 40vh; }
  .doc-frame { min-height: 360px; }
}

@media (max-width: 575.98px) {
  #chatBox { max-height: 38vh; }
  .composer__input { min-height: 96px; }
}
