/**
 * App Shell - Unified layout for welcome_chat and chat
 * Reuses welcome_chat layout; adds app-shell-page body class
 */

/* Hide base hamburger and slide menu on app shell page */
body.app-shell-page .hamburger-menu,
body.app-shell-page .slide-menu {
  display: none !important;
}

/* Prevent body scroll - layout fills viewport */
body.app-shell-page {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

body.app-shell-page main {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* App main - SPA injection target */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

/* Injected partial content (e.g. How Guides Listen) - fill and scroll */
.app-main #partial-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Logged-in speaker links (all clickable) */
.app-shell-speaker-link {
  cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/* Chat in app shell: fill #app-main; .chat-input-bar is below .chat-window-container */
/* -------------------------------------------------------------------------- */
.chat-in-app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.chat-in-app-main > #welcomeChatSpeakerChromeMobile,
.chat-in-app-main > .mobile-primary-banner {
  flex-shrink: 0;
}

.chat-in-app-main > .container,
.chat-in-app-main > .container-fluid {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.chat-in-app-main .container > .row {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chat-in-app-main .container .col-12 {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-in-app-main .chat-main-container {
  flex: 1;
  min-height: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-in-app-main .speaker-header-container {
  flex-shrink: 0;
}

.chat-in-app-main .chat-layout-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-in-app-main .chat-window-container {
  flex: 1;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
}

/* Desktop: input bar is below the card (sibling in .chat-layout-wrapper), not overlaying messages */
@media (min-width: 769px) {
  .chat-in-app-main .chat-window-container > .card-body.chat-messages {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
    scroll-padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Guest display name — top of sidebar (above Traditions) */
.welcome-guest-sidebar-name {
  padding: 0.5rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 0.35rem;
}

.welcome-guest-sidebar-name .form-label {
  font-weight: 600;
  color: #374151;
}

.welcome-guest-sidebar-hint a {
  color: #5c6b5a;
}

