/* app bar styles */
.app-bar h1 {
    font-size: 1em;
    font-weight: 400;
    font-family: var(--mud-typography-h1-family);
}
/* end app bar styles */

/* slx drawer styles */
.slx-drawer .mud-drawer-header {
    background-color: #2a333a;
}

.slx-drawer .mud-drawer-header h3 {
    font-size: 1.1em;
    align-self: center;
}

.slx-drawer span {
    font-size: .9em;
}

.slx-drawer .mud-input {
    margin-top: 0px !important;
}

.slx-drawer input[type="text"] {
    background-color: var(--mud-palette-white) !important;
    font-size: .9em;
    padding-left: 7px !important;
}

.slx-drawer hr {
    border-style: dotted none none none;
}

.slx-drawer button {
    font-size: initial;
    font-weight: 700;
    text-transform: none;
}
/* end slx drawer styles */

/* slx table styles */
.slx-table th {
    border-bottom: solid 1px var(--mud-palette-primary);
    font-weight: 700 !important;
    white-space: nowrap;
    text-align: left;
}

.slx-table th span.mud-table-sort-label svg {
    font-size: 10px;
    margin-left: 0px;
    margin-right: 0px;
}

.slx-table tr.primary-highlight {
    background-color: #FEEFB3;
}

.slx-table tr.bold-row td {
    font-weight: 700;
}

.slx-table-summary {
    color: #fff;
    background-color: #727e86;
    font-size: 38px;
}

.slx-table-summary-count {
    font-size: 32px;
}
/* end slx table styles */

/* slx button styles */
button.slx-button {
    text-transform: none;
}

button.slx-button:disabled,
button.slx-button[disabled] {
    pointer-events: visible;
    cursor: not-allowed;
}

button.slx-button-action {
    width: 150px;
}

button.slx-button-action-delete {
    width: 150px;
    color: #fff !important;
    background-color: #aa4643 !important;
}

/* chat response styles */
.chat-bubble p {
    margin: 0 0 8px 0;
    line-height: 1.6;
}

.chat-bubble p:last-child {
    margin-bottom: 0;
}

.chat-bubble h1, .chat-bubble h2, .chat-bubble h3, 
.chat-bubble h4, .chat-bubble h5, .chat-bubble h6 {
    margin: 20px 0 12px 0;
    line-height: 1.3;
    font-weight: 600;
}

.chat-bubble h1:first-child, .chat-bubble h2:first-child, 
.chat-bubble h3:first-child, .chat-bubble h4:first-child, 
.chat-bubble h5:first-child, .chat-bubble h6:first-child {
    margin-top: 0;
}

.chat-bubble h1 { font-size: 1.5em; }
.chat-bubble h2 { font-size: 1.3em; }
.chat-bubble h3 { font-size: 1.2em; }
.chat-bubble h4 { font-size: 1.1em; }

.chat-bubble ul, .chat-bubble ol {
    padding-left: 24px;
    margin: 8px 0;
    line-height: 1.6;
}

.chat-bubble ul li {
    position: relative;
    padding-left: 12px;
    text-indent: 0;
    margin-bottom: 6px;
}

.chat-bubble ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    padding-right: 8px;
}

.chat-bubble ol li {
    margin-bottom: 6px;
}

.chat-bubble li {
    margin-bottom: 6px;
}

.chat-bubble li:last-child {
    margin-bottom: 0;
}

.chat-bubble strong, .chat-bubble b {
    font-weight: 600;
    color: inherit;
}

/* Bold text that starts a paragraph (like section headers) */
.chat-bubble p strong:first-child,
.chat-bubble p b:first-child {
    display: inline;
}

.chat-bubble em, .chat-bubble i {
    font-style: italic;
}

.chat-bubble code {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.chat-bubble pre {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 16px 0 20px 0;
}

.chat-bubble pre code {
    background-color: transparent;
    padding: 0;
}

.chat-bubble hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 32px 0;
}

.chat-bubble blockquote {
    border-left: 3px solid rgba(0, 0, 0, 0.2);
    padding-left: 16px;
    margin: 20px 0;
    color: rgba(0, 0, 0, 0.7);
    font-style: italic;
}

.chat-bubble details {
    margin: 20px 0;
}

.chat-bubble summary {
    cursor: pointer;
    font-weight: 600;
    padding: 10px 0;
    user-select: none;
}

.chat-bubble summary:hover {
    color: var(--mud-palette-primary);
}

.chat-bubble table {
    margin: 20px 0;
}

.upload-container .upload-message {
    font-size: 25px;
    margin-top: 20px;
    font-weight: bold;
    color: black;
}

/* Export buttons styles */
.export-buttons-section {
    padding: 10px 20px;
    margin: 10px 0;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.export-buttons-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.export-button {
    font-size: 0.875rem;
    padding: 8px 16px;
}

.export-info {
    font-size: 0.75rem;
    color: #6c757d;
    margin-left: auto;
}

/* Sidebar chat history styles */
.chat-session-item {
    display: flex;
    padding-left: 16px;  /* match header px-3 (left) */
    padding-right: 16px; /* match header px-3 (right) */
}

.chat-session-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.chat-session-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer; /* indicate clickable title */
}

/* Selected chat styles */
.chat-session-item.selected .chat-session-row {
    background-color: transparent;
}

.chat-session-item.selected .chat-session-title {
    color: var(--mud-palette-primary);
}