/* ===== Dashboard page-scoped styles 122025 =====
   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;
  color: #000000; /* <--- Forces black text so it's visible on white background */
  padding: 0.6rem 0.75rem;
  resize: vertical;
  min-height: 150px;
  outline: none;
  -webkit-text-fill-color: #000000; /* Extra safety for iOS/Safari tablets */
}

.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: 60vh; }
  .doc-frame { min-height: 360px; }
}

@media (max-width: 575.98px) {
  #chatBox { max-height: 60vh; }
  /* Ensure mobile input stays large */
  .composer__input, 
  #userInput { 
      min-height: 150px !important; 
  }
}
/* --- Marketing Specific Layout --- */

:root {
  --clariia-gold: #b08a48;
}

/* Active Tile Border (Matches ArtStudioPro) */
.active-dashboard-tile {
    border: 2px solid var(--clariia-gold) !important;
}
.active-dashboard-text {
    color: var(--clariia-gold) !important;
}

/* Project Controls Group (Right Side) */
.project-controls-group {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 20px;
    border-left: 1px solid #e0e0e0; /* The divider line */
    margin-left: auto;
}

@media (max-width: 991px) {
    .project-controls-group {
        border-left: none;
        padding-left: 0;
        width: 100%;
        margin-top: 10px;
        justify-content: space-between;
    }
}

/* "New Project" Button (Icon + Stacked Text) */
.btn-new-project {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #000;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.btn-new-project i {
    color: var(--clariia-gold);
    font-size: 1.2rem;
}
.btn-new-project .text-stack {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: left;
}

/* "Load Previous Project" Pill */
.btn-project-pill {
    border: 1px solid #333;
    border-radius: 50px; /* Fully rounded */
    padding: 6px 20px;
    background: white;
    color: #000;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
.btn-project-pill:hover {
    background: #f8f9fa;
}
.btn-project-pill i {
    color: var(--clariia-gold);
}

/* Horizontal Scroll for Assistant Nav */
#assistantNav {
    overflow-x: auto;
    padding-bottom: 5px;
    margin-right: 15px;
}