/* Tema "classic" — look-ul original UNIQA: sidebar de brand pe stânga,
   chat full-height pe dreapta, butoane pline, avatar lângă mesajele botului. */

.app-shell {
    display: flex;
    height: 100dvh;
}

.app-sidebar {
    width: 46%;
    max-width: 860px;
    background: var(--cb-primary, #2E64FE);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.5rem 1rem;
    box-sizing: border-box;
}

.app-brand {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.app-brand-name {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.app-brand-tagline {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Text de prezentare din config (Branding:SidebarIntro). Cât încape, apoi scroll propriu;
   imaginea de dedesubt se micșorează (min-height: 0 pe .app-sidebar-visual). */
.app-sidebar-intro {
    flex: 0 1 auto;
    min-height: 0;
    max-height: 60%;
    overflow-y: auto;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}

.app-sidebar-intro-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.75rem;
}

.app-sidebar-intro p {
    margin: 0 0 0.6rem;
}

.app-sidebar-intro:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.app-sidebar-visual {
    flex: 1;
    min-height: 0;
    display: flex;
}

.app-sidebar-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: auto;
}

.app-sidebar-footer {
    text-align: center;
    font-size: 0.85rem;
    padding-top: 0.75rem;
}

.app-contact {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.app-contact a {
    color: #fff;
}

.app-session-note {
    color: #f8ed94;
    font-size: 0.75rem;
    margin: 0.5rem 0 0;
}

.app-main {
    flex: 1;
    min-width: 0;
    background: #fff;
}

.chat-page {
    height: 100dvh;
    position: relative;   /* ancorează overlay-urile BotSelector (← alege alt flux) în coloana de chat */
}

.chat-page > .cb-panel {
    height: 100%;
    max-width: none;
    border: none;
    border-radius: 0;
}

/* Brandingul e în sidebar; chatul nu mai are header propriu. */
.cb-header {
    display: none;
}

.cb-messages {
    background: #fff;
}

.cb-messages > * {
    width: 100%;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.cb-input-area {
    background: #fff;
    border-top: none;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    box-sizing: border-box;
}

.cb-bubble {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Butoane de răspuns pline, ca în aplicația originală. */
.cb-choice {
    background: var(--cb-primary);
    border-color: var(--cb-primary);
    color: #fff;
}

.cb-choice:hover:not(:disabled) {
    background: var(--cb-primary);
    color: #fff;
    filter: brightness(0.9);
}

@media (max-width: 991px) {
    .app-sidebar {
        display: none;
    }
}
