/* Blazor adaptations of the existing site. Branding and navigation use styleChat.css. */
.original-page-shell { padding-top: 140px; }
#navbar .mobile-nav-toggle { border: 0; background: transparent; padding: 0; }
#navbar .dropdown { width: auto; display: block; }
#navbar .dropdown-menu { transform: none; }
#navbar .dropdown-menu.show { visibility: visible; opacity: 1; top: 100%; }
#navbar.navbar-mobile .dropdown-menu.show { position: static; display: block; margin: 10px 20px; }
#navbar.navbar-mobile .dropdown-toggle { justify-content: space-between; }
@media (min-width: 992px) and (max-width: 1199px) {
    #navbar > ul > li > a { padding-left: 18px; font-size: 12px; }
}
.features .section-title h1 { font-size: 32px; font-weight: bold; margin-bottom: 20px; padding-bottom: 20px; position: relative; }
.features .section-title h1::after { content: ''; position: absolute; display: block; width: 50px; height: 3px; background: #115ba4; bottom: 0; left: calc(50% - 25px); }
.features .section-title h1:focus { outline: none; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.policy-chat-page { display: flex; width: 100%; }
.policy-chat-page .left-section { height: calc(100dvh - 160px); min-height: 450px; }
.policy-chat-page .right-section { height: calc(100dvh - 160px); min-height: 450px; justify-content: flex-start; }
.policy-chat-page .chatbot, .pdf-conversation .chatbot { position: relative; min-height: 0; }
.policy-chat-page .chatbox, .pdf-conversation .chatbox { min-height: 0 !important; flex: 1; padding: 20px; margin: 0; }
.policy-chat-page .chat-input, .pdf-conversation .chat-input { position: static; flex-shrink: 0; }
.policy-chat-page .chat-input button, .pdf-conversation .chat-input button { border: 0; background: transparent; color: #115ba4; }
.policy-chat-page .chat-input button:disabled { opacity: .5; }
.chat-message-body { padding: 12px 16px; border-radius: 10px; max-width: 85%; overflow-wrap: anywhere; margin: 8px 0; }
.outgoing .chat-message-body { color: white; background: #115ba4; }
.incoming .chat-message-body { background: #f2f2f2; }
.policy-chat-page .chat-message-body p { max-width: 100%; padding: 0; margin-bottom: .5rem; background: transparent; color: inherit; }
.policy-chat-page .chat-message-body .modal { white-space: normal; color: #333; }
.conversation-parameters { background: white; padding: 1rem; }
.conversation-parameters input { max-width: 100%; display: block; }
.chat-suggestions { display: flex; flex-direction: column; gap: 12px; }
.chat-suggestions a { background: #e6f0ff; padding: 12px; border-left: 5px solid #4a90e2; border-radius: 12px; }
.pdf-layout { display: flex; align-items: flex-start; gap: 2rem; }
.pdf-summary { flex: 1; min-width: 0; }
.pdf-conversation { width: 42%; min-width: 0; height: 600px; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1rem 0; }
.panel { background: white; padding: 1.5rem; border: 1px solid #ddd; border-radius: 4px; margin-bottom: 1rem; }
#blazor-error-ui { display: none; position: fixed; bottom: 0; background: #fff3cd; width: 100%; padding: 1rem; z-index: 2000; }
#components-reconnect-modal { display: none; position: fixed; inset: 0; background: #ffffffed; z-index: 2001; padding: 20vh 2rem; text-align: center; }
#components-reconnect-modal.components-reconnect-show, #components-reconnect-modal.components-reconnect-failed, #components-reconnect-modal.components-reconnect-rejected { display: block; }
@media (max-width: 768px) {
    .policy-chat-page { flex-direction: column; }
    .policy-chat-page .left-section { width: 100% !important; height: auto; min-height: 0; max-height: 40dvh; }
    .policy-chat-page .resizer { display: none; }
    .policy-chat-page .right-section { width: 100%; height: 70dvh; padding: 5px; }
    .pdf-layout { flex-direction: column; }
    .pdf-conversation { width: 100%; }
}

