.pageContainer { display: flex; flex-direction: column; align-self: top; height: calc(100vh); font-family: var(--font-family); } /* Content wrapper for scrollable content */ .contentWrapper { flex: 1; overflow-y: auto; padding: 0; } /* Card-style container with background and shadow */ .pageCard { display: flex; padding: 25px 25px 0 25px; flex-direction: column; align-self: top; background: var(--color-bg); gap: 20px; height: 100%; overflow: hidden; /* Prevent card from expanding beyond viewport */ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); box-sizing: border-box; } /* Page headers with consistent spacing */ .pageHeader { display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; min-height: 62px; gap: 0px; } /* Page titles */ .pageTitle { font-size: 1.5rem; font-weight: 400; color: var(--color-text); margin: 0; font-family: var(--font-family); } .pageSubtitle { font-size: 1rem; font-weight: 600; color: var(--color-secondary); margin: 0.5rem 0 0 0; font-family: var(--font-family); letter-spacing: 0.5px; display: flex; align-items: center; gap: 0.5rem; } /* Common icon styles for buttons */ .buttonIcon { font-size: 16px; } /* Header buttons container */ .headerButtons { display: flex; gap: 15px; align-items: center; } /* Workflow Status Header - positioned before workflow selector */ .workflowStatusHeader { display: flex; align-items: center; margin-right: 15px; } /* Content types */ .contentHeading { margin: 1.5rem 0 1rem 0; font-weight: 600; color: var(--color-text); font-family: var(--font-family); } .contentHeading:first-child { margin-top: 0; } .contentParagraph { margin: 1rem 0; font-size: 1rem; line-height: 1.6; color: var(--color-text); font-family: var(--font-family); } .listContainer { margin: 1.5rem 0; } .listTitle { font-weight: 600; margin-bottom: 0.5rem; color: var(--color-text); font-family: var(--font-family); } .list { margin: 0; padding-left: 1.5rem; } .listItem { margin: 0.5rem 0; line-height: 1.5; color: var(--color-text); font-family: var(--font-family); } .codeBlock { background-color: #f8f9fa; border: 1px solid #e9ecef; border-radius: 6px; padding: 1rem; margin: 1.5rem 0; overflow-x: auto; font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace; font-size: 0.9rem; line-height: 1.4; } .codeBlock code { background: none; padding: 0; border: none; border-radius: 0; } .contentDivider { border: none; height: 1px; background-color: #e0e0e0; margin: 2rem 0; } .tableContainer { margin: 1.5rem 0; width: 100%; position: relative; } .refetchingIndicator { position: absolute; top: -30px; right: 0; padding: 4px 12px; background-color: var(--color-secondary); color: white; border-radius: 4px; font-size: 0.85rem; font-family: var(--font-family); z-index: 10; animation: fadeIn 0.2s ease-in; display: flex; align-items: center; gap: 6px; } .refetchingIndicator::before { content: '↻'; animation: spin 1s linear infinite; display: inline-block; } @keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .errorState { padding: 2rem; text-align: center; background-color: #f8f9fa; border: 1px solid #e9ecef; border-radius: 6px; color: var(--color-text); } .retryButton { margin-top: 1rem; padding: 0.5rem 1rem; background-color: var(--color-secondary); color: white; border: none; border-radius: 4px; cursor: pointer; font-family: var(--font-family); } .retryButton:hover { background-color: var(--color-secondary-hover); } /* Horizontal divider lines */ .horizontalDivider { width: calc(100% + 60px); background-color: var(--color-primary); height: 1px; margin-left: -25px; margin-bottom: 0; flex-shrink: 0; } /* Content areas */ .contentArea { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; overflow: hidden; padding-bottom: 0; } /* Dashboard grid layout */ .dashboardGridLayout { display: grid; grid-template-columns: 1fr 400px; grid-template-rows: 1fr auto; gap: 1rem; width: 100%; flex: 1; min-height: 0; overflow: hidden; margin-bottom: 1rem; height: calc(100vh); max-height: calc(100vh); } .dashboardTopRow { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; min-height: 0; overflow: hidden; height: 100%; } .dashboardMessagesCell { display: flex; flex-direction: column; min-height: 0; overflow: hidden; height: 100%; } .dashboardLogCell { display: flex; flex-direction: column; min-height: 0; overflow: hidden; height: 100%; } .dashboardBottomRow { grid-column: 1 / -1; grid-row: 2; min-height: 0; flex-shrink: 0; } /* Messages section for dashboard */ .messagesSection { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; height: 100%; } /* Log section for dashboard */ .logSection { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; height: 100%; } /* Chatbot two-column layout */ .chatbotTwoColumnLayout { display: grid; grid-template-columns: 1fr 3fr; gap: 1rem; width: 100%; flex: 1; min-height: 0; overflow: hidden; margin-bottom: 1rem; height: calc(100vh); max-height: calc(100vh); } .chatbotHistoryColumn { display: flex; flex-direction: column; min-height: 0; overflow: hidden; height: 100%; } .chatbotChatColumn { display: flex; flex-direction: column; min-height: 0; overflow: hidden; height: 100%; gap: 1rem; } .chatbotMessagesCell { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; } .chatbotInputCell { display: flex; flex-direction: column; min-height: 0; flex-shrink: 0; } .chatHistorySection { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; height: 100%; } /* Force chat history list styling */ .chatHistorySection :global(.listContainer) { border: none !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; } .chatHistorySection :global(.listItem) { border: none !important; border-top: 1px solid var(--color-medium-gray) !important; border-bottom: 1px solid var(--color-medium-gray) !important; border-left: none !important; border-right: none !important; border-radius: 0 !important; box-shadow: none !important; padding: 0.875rem 0.75rem !important; margin-top: -1px; } .chatHistorySection :global(.listItem:first-child) { border-top: none !important; } .chatHistorySection :global(.listItem:hover) { border-color: var(--color-medium-gray) !important; border-top-color: var(--color-medium-gray) !important; border-bottom-color: var(--color-medium-gray) !important; box-shadow: none !important; } .chatHistorySection :global(.listItem[data-selected-thread-id="true"]) { border-left: none !important; border-right: none !important; padding-left: 0.75rem !important; } .chatHistoryHeader { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--color-medium-gray); } .chatHistoryTitle { font-size: 0.875rem; font-weight: 600; margin: 0; color: var(--color-text); text-transform: uppercase; letter-spacing: 0.5px; flex: 1; } .chatHistoryCount { font-size: 0.75rem; color: var(--color-gray); font-weight: 400; } .chatHistoryNewButton { width: 24px; height: 24px; padding: 0; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: transparent; border: none; border-radius: var(--object-radius-small); color: var(--color-gray); cursor: pointer; transition: all 0.15s ease; } .chatHistoryNewButton:hover { background: var(--color-highlight-gray); color: var(--color-secondary); } .chatHistoryNewButton:active { background: var(--color-medium-gray); } .chatHistoryNewButton svg { width: 16px; height: 16px; } .chatHistoryEmpty { display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; color: var(--color-gray); font-size: 0.875rem; text-align: center; flex: 1; font-weight: 400; } .chatHistoryError { display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; color: var(--color-red); font-size: 0.875rem; text-align: center; flex: 1; font-weight: 400; } .scrollableContent { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; } /* Fixed height textarea for dashboard input */ .textAreaFixed { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: visible; height: 100%; } .textAreaFixed :global(.textFieldWrapper) { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: visible; height: 100%; } .textAreaFixed :global(.inputContainer) { flex: 1; display: flex; min-height: 0; overflow: visible; height: 100%; } .textAreaFixed :global(textarea) { overflow-y: auto !important; resize: none !important; flex: 1; box-sizing: border-box; border-radius: 25px !important; border: 1px solid var(--color-primary) !important; box-shadow: none !important; } .textAreaFixed :global(textarea:focus) { border: 1px solid var(--color-secondary) !important; box-shadow: 0 0 8px rgba(0, 0, 0, 0.15) !important; outline: none !important; } /* Full width button wrapper */ .fullWidthButton { width: 100%; } .fullWidthButton :global(button) { width: 100%; } /* Dashboard input form grid container */ .dashboardInputGrid { display: grid; grid-template-columns: 1fr 400px; grid-template-rows: auto minmax(150px, 1fr); gap: 1rem; margin: 1.5rem 0 0 0; width: 100%; flex-shrink: 0; flex: 1; height: calc(20vh - 50px); min-height: 250px; max-height: calc(20vh - 50px); box-sizing: border-box; overflow: visible; padding-bottom: 28px; } /* Equal width buttons row - force all children to equal width */ .equalWidthButtonsRow { display: grid; grid-template-columns: repeat(var(--grid-columns, 4), 1fr); gap: 12px; align-items: stretch; grid-column: 1; } .equalWidthButtonWrapper { width: 100%; min-width: 0; display: flex; } .equalWidthButtonWrapper :global(div[class*="dropdownContainer"]) { width: 100% !important; min-width: 0 !important; display: block !important; flex: 1; } .equalWidthButtonWrapper :global(div[class*="dropdownContainer"] button), .equalWidthButtonWrapper :global(button) { width: 100% !important; min-width: 0 !important; box-sizing: border-box; } /* Input text area container */ .inputTextAreaContainer { display: flex; flex-direction: column; height: 100%; overflow: visible; grid-column: 1; grid-row: 2; min-height: 0; box-sizing: border-box; align-self: stretch; padding-bottom: 2px; } .inputTextAreaWrapper { flex: 1; overflow: visible; display: flex; flex-direction: column; min-height: 0; box-sizing: border-box; height: calc(100% - 2px); padding-bottom: 2px; } /* Connected files container */ .connectedFilesContainer { grid-column: 2; grid-row: 1 / -1; height: 100%; overflow: hidden; display: flex; flex-direction: column; } .connectedFilesScrollable { flex: 1; overflow-y: auto; overflow-x: hidden; } /* Responsive design for smaller screens */ @media (max-width: 768px) { .pageContainer { margin: 10px; height: calc(100vh - 0px); max-height: calc(100vh - 0px); } .pageHeader { flex-direction: column; align-items: flex-start; gap: 15px; min-height: auto; } .pageTitle { font-size: 1.5rem; } }