body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}
body a {
  color: #022adb;
  text-decoration: none;
}
body a:hover {
  text-decoration: underline;
  color: #0330fc;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: #2c3e50;
  color: white;
  padding: 1rem;
  width: 100%;
}
header h1 a {
  color: white;
}
header h1 a:hover {
  text-decoration: none;
  color: #eeeeee;
}

.page-container {
  display: flex;
  flex: 1;
}

.nav-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 250px;
  background-color: #f5f5f5;
  padding: 1rem;
  border-right: 1px solid #ddd;
  transition: width 0.3s ease;
}
.nav-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-sidebar ul li {
  margin-bottom: 0.5rem;
}
.nav-sidebar ul li a {
  text-decoration: none;
  color: #333;
  display: block;
  padding: 0.5rem;
  border-radius: 4px;
}
.nav-sidebar ul li a:hover {
  background-color: #e5e5e5;
}
.nav-sidebar .bottom.nav-links {
  margin-top: auto;
}
.nav-sidebar hr {
  width: 100%;
  border-style: solid;
}

.main-content {
  flex: 1;
  padding: 1rem;
  overflow: auto;
}
.main-content .main-content-container {
  margin-bottom: 2rem;
}
.main-content .main-content-container .main-content-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.main-content .main-content-container .main-content-title .title {
  flex-grow: 1;
}
.main-content .main-content-container .main-content-title .actions {
  flex-shrink: 0;
}
.main-content .main-content-container .index {
  overflow-x: scroll;
}
.main-content .main-content-container .show .actions {
  margin-top: 3rem;
  display: flex;
  align-items: center;
}
.main-content .main-content-container .show .actions a {
  margin-right: 1rem;
  font-size: 1.2rem;
}

footer {
  background-color: #2c3e50;
  color: white;
  padding: 1rem;
  width: 100%;
  text-align: center;
}

@media (max-width: 1400px) {
  .nav-sidebar {
    width: 150px;
    padding: 0.8rem;
  }
}
@media (max-width: 1200px) {
  .nav-sidebar {
    width: 150px;
    padding: 0.6rem;
  }
  .nav-sidebar ul li a {
    padding: 0.4rem;
    font-size: 0.9em;
  }
}
@media (max-width: 768px) {
  .page-container {
    flex-direction: column;
  }
  .nav-sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #ddd;
    padding: 0.5rem;
  }
  .nav-sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .nav-sidebar ul li {
    margin-bottom: 0;
  }
  .nav-sidebar ul li a {
    padding: 0.3rem 0.6rem;
    font-size: 0.85em;
    white-space: nowrap;
  }
}
button, .button, input[type=submit] {
  font-size: 1rem;
  background-color: #cccccc;
  border: 1px solid #999999;
  border-radius: 4px;
  color: black;
  padding: 8px 16px;
  text-decoration: none;
  display: inline-block;
  margin: 1rem 1rem 1rem 0;
  line-height: 1.2;
}
button:hover, .button:hover, input[type=submit]:hover {
  text-decoration: none;
  border-width: 2px;
  padding: 7px 15px;
  color: black;
}

table thead tr {
  background-color: #dddddd;
}
table td, table th {
  padding: 0.5rem 1rem;
}
table td.centered, table th.centered {
  text-align: center;
}
table td.right, table th.right {
  text-align: right;
}
table td.left, table th.left {
  text-align: left;
}
table td.actions, table th.actions {
  white-space: nowrap;
}
table td a, table th a {
  margin: 0.3rem;
}
table td {
  text-align: left;
  vertical-align: top;
}
table th {
  text-align: center;
  vertical-align: bottom;
}

.notice {
  color: green;
}

.alert {
  color: red;
}

.flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.show .children .child {
  position: relative;
  list-style: none;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background-color: #f9f9f9;
  padding: 0.3rem 0.6rem;
  margin: 0.3rem 0 0.3rem 2rem;
}
.show .children .child .test-badge {
  position: absolute;
  background-color: #cce7ff; /* Light blue */
  border: 1px solid #3399ff; /* Darker blue border */
  border-radius: 4px;
  padding: 0.2rem 1rem;
  margin-right: 0.5rem;
  top: 0.3rem;
  right: 0.3rem;
}
.show .children .child .child-content {
  margin: 0.5rem;
}
.show .children .child .child-content strong {
  display: block;
}

.listing {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
}

pre {
  width: 90%;
  white-space: pre-wrap;
}

form .input {
  margin: 0.5rem 1rem 1rem 0;
}
form .input label {
  margin-right: 1rem;
  vertical-align: top;
}
form .input abbr[title=required] {
  text-decoration: none;
  color: red;
}
form .input input, form .input select, form .input textarea {
  padding: 0.2rem;
}
form .input textarea {
  width: 60%;
  height: 300px;
}
form .input .wide {
  width: 80%;
}
form .error {
  color: red;
  font-size: 0.8rem;
  margin-left: 1rem;
}
form .field-group {
  margin-left: 2rem;
  margin-bottom: 2rem;
}
form .nested-fields {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 80%;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 4px;
  background-color: #f9f9f9;
}
form .nested-field {
  flex: 1;
  margin-right: 1rem;
}
form .nested-field:last-child {
  margin-right: 0;
}
form .new_user .field {
  margin-bottom: 1rem;
}
form .new_user .field input, form .new_user .field select {
  padding: 0.2rem;
}
form .new_user .actions {
  margin-bottom: 2rem;
}

.children.agenda-analyses .child.agenda-analysis h3 {
  margin-left: 1rem;
}
.children.agenda-analyses .child.agenda-analysis h4 {
  margin-left: 2rem;
}
.children.agenda-analyses .child.agenda-analysis p {
  margin-left: 3rem;
}
.children.agenda-analyses .child.agenda-analysis p:first-of-type {
  margin-left: 0;
}

.meetings .meeting {
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 4px;
  background-color: #f9f9f9;
}
.meetings .meeting .meeting-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 80%;
}
.meetings .meeting .meeting-header .meeting-detail {
  flex: 0;
  margin-right: 1rem;
  text-align: left;
}
.meetings .meeting .meeting-header .meeting-detail.meeting-name, .meetings .meeting .meeting-header .meeting-detail.meeting-location {
  white-space: nowrap;
}
.meetings .meeting .meeting-header .meeting-detail.meeting-link {
  flex: 1;
}
.meetings .meeting .meeting-header .meeting-detail:last-child {
  margin-right: 0;
}

.pagination {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.pagination em, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.25rem;
}
.pagination em.disabled, .pagination span.disabled {
  color: #999;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  pointer-events: none;
  cursor: not-allowed;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
}
.pagination em.active a {
  font-weight: bold;
  color: #fff;
  background-color: #007bff;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
}
.pagination em.current {
  font-weight: bold;
  color: #fff;
  background-color: #28a745;
  border: 1px solid #28a745;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  cursor: default;
}
.pagination a {
  text-decoration: none;
  color: #007bff;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}
.pagination a:hover {
  background-color: #f8f9fa;
  color: #0056b3;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-section {
  margin-bottom: 2rem;
}

fieldset {
  border: 1px solid #e6e6e6;
  border-radius: 5px;
  padding: 1.5rem;
  background-color: #fefefe;
}
fieldset legend {
  font-weight: bold;
  font-size: 1.2rem;
  color: #2c3e50;
  padding: 0 0.5rem;
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cacaca;
  border-radius: 4px;
  font-size: 1rem;
}
.form-input:focus {
  outline: none;
  border-color: #1779ba;
  box-shadow: 0 0 5px rgba(23, 121, 186, 0.5);
}

.form-actions {
  text-align: center;
  margin-top: 2rem;
}

.submit-button {
  background-color: #3adb76;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 400px;
}
.submit-button:hover {
  background-color: #22bb5b;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.submit-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

.file-drop-zone {
  position: relative !important;
  width: 100% !important;
  margin-bottom: 1rem !important;
}
.file-drop-zone .file-drop-wrapper {
  position: relative !important;
  width: 100% !important;
  display: block !important;
}
.file-drop-zone input[type=text].file-drop-input,
.file-drop-zone .file-drop-input {
  width: 100% !important;
  padding: 12px 50px 12px 16px !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  color: #666 !important;
  background-color: #fafafa !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
}
.file-drop-zone input[type=text].file-drop-input::placeholder,
.file-drop-zone .file-drop-input::placeholder {
  color: #999 !important;
}
.file-drop-zone input[type=text].file-drop-input:focus,
.file-drop-zone .file-drop-input:focus {
  outline: none !important;
  border-color: #4a90e2 !important;
  background-color: #fff !important;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1) !important;
}
.file-drop-zone input[type=text].file-drop-input:hover,
.file-drop-zone .file-drop-input:hover {
  border-color: #ccc !important;
  background-color: #fff !important;
}
.file-drop-zone label.file-drop-icon,
.file-drop-zone .file-drop-icon {
  position: absolute !important;
  right: 16px !important;
  top: 12px !important;
  cursor: pointer !important;
  color: #4a90e2 !important;
  transition: color 0.2s ease !important;
  z-index: 10 !important;
  pointer-events: auto !important;
}
.file-drop-zone label.file-drop-icon:hover,
.file-drop-zone .file-drop-icon:hover {
  color: #357abd !important;
}
.file-drop-zone label.file-drop-icon svg,
.file-drop-zone .file-drop-icon svg {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
}
.file-drop-zone .file-name-display {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
  font-style: italic;
}
.file-drop-zone.has-file .file-drop-input {
  border-color: #4a90e2;
  background-color: #f0f7ff;
}
.file-drop-zone.drag-over .file-drop-input {
  border-color: #4a90e2;
  background-color: #f0f7ff;
  border-style: dashed;
}

.help-text {
  font-size: 0.875rem;
  color: #8a8a8a;
  margin-top: 0.25rem;
}

label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

input[type=text],
input[type=date],
input[type=time] {
  border-radius: 4px;
  border: 1px solid #cacaca;
}
input[type=text]:focus,
input[type=date]:focus,
input[type=time]:focus {
  border-color: #1779ba;
  box-shadow: 0 0 5px rgba(23, 121, 186, 0.5);
}

.button {
  margin-top: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.callout {
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.callout.secondary {
  background-color: #f8f9fa;
}
.callout.primary {
  margin-top: 2rem;
}
.callout.primary h5 {
  font-weight: bold;
  margin-bottom: 1rem;
}
.callout.primary ol {
  margin-left: 1.5rem;
}
.callout.primary ol li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

h1.text-center {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.agenda-results-container {
  margin-top: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.tabs-container .tabs {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
}
.tabs-container .tabs .tab-item {
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s ease;
  position: relative;
}
.tabs-container .tabs .tab-item:hover {
  background-color: #e9ecef;
}
.tabs-container .tabs .tab-item.active {
  background-color: #fff;
  border-bottom-color: #4a90e2;
}
.tabs-container .tabs .tab-item.active .tab-link {
  color: #4a90e2;
}
.tabs-container .tabs .tab-item .tab-form {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}
.tabs-container .tabs .tab-item .tab-link {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  text-decoration: none;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
}
.tabs-container .tabs .tab-item .tab-link:hover {
  color: #333;
  text-decoration: none;
}
.tabs-container .tab-content {
  padding: 2rem;
}
.tabs-container .tab-content .tab-pane {
  display: none;
}
.tabs-container .tab-content .tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}
.tabs-container .tab-content .tab-pane h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  font-size: 1.5rem;
}

.formatted-text {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 4px;
  border-left: 4px solid #4a90e2;
  line-height: 1.6;
  white-space: pre-wrap;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
}

.agenda-items-accordion .agenda-item-accordion {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.agenda-items-accordion .agenda-item-accordion:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  cursor: pointer;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-header:hover {
  background-color: #e9ecef;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-header .item-number {
  font-weight: 600;
  color: #4a90e2;
  margin-right: 1rem;
  min-width: 80px;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-header .item-title {
  flex: 1;
  color: #2c3e50;
  font-weight: 500;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-header .accordion-icon {
  color: #666;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  margin-left: 1rem;
}
.agenda-items-accordion .agenda-item-accordion.expanded .agenda-item-header {
  background-color: #e3f2fd;
}
.agenda-items-accordion .agenda-item-accordion.expanded .agenda-item-header .accordion-icon {
  transform: rotate(180deg);
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #fff;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content > div {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content > div:last-child {
  border-bottom: none;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content > div strong {
  color: #2c3e50;
  display: block;
  margin-bottom: 0.5rem;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content .item-type {
  background-color: #f8f9fa;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content .item-description {
  line-height: 1.6;
  color: #555;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content .item-analysis {
  background-color: #f0f7ff;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content .item-analysis .analysis-content {
  margin-top: 0.5rem;
  padding: 1rem;
  background-color: #fff;
  border-radius: 4px;
  border-left: 4px solid #4a90e2;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content .item-attachments .attachments-list {
  margin-top: 0.5rem;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content .item-attachments .attachments-list .attachment-link {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content .item-attachments .attachments-list .attachment-link a {
  color: #4a90e2;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  background-color: #f8f9fa;
  border-radius: 3px;
  font-size: 0.9rem;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content .item-attachments .attachments-list .attachment-link a:hover {
  background-color: #e9ecef;
  text-decoration: underline;
}

.analysis-content {
  background-color: #f0f7ff;
  padding: 1.5rem;
  border-radius: 4px;
  border-left: 4px solid #3adb76;
  line-height: 1.8;
}

.attachments-list .attachment-card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.3s ease;
}
.attachments-list .attachment-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.attachments-list .attachment-card h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #2c3e50;
  font-size: 1.2rem;
  border-bottom: 2px solid #ff6b35;
  padding-bottom: 0.5rem;
}
.attachments-list .attachment-card .attachment-content {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.attachments-list .attachment-card .attachment-link {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}
.attachments-list .attachment-card .attachment-link a {
  color: #4a90e2;
  text-decoration: none;
  font-weight: 500;
}
.attachments-list .attachment-card .attachment-link a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .tabs-container .tabs {
    flex-direction: column;
  }
  .tabs-container .tabs .tab-item {
    border-bottom: 1px solid #e0e0e0;
    border-left: 3px solid transparent;
  }
  .tabs-container .tabs .tab-item.active {
    border-left-color: #4a90e2;
    border-bottom-color: transparent;
  }
}
.experts-page {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  transition: all 0.3s ease;
}
.experts-page .page-header {
  text-align: center;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}
.experts-page .page-header h1 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 2.2em;
}
.experts-page .page-header h2 {
  color: #666;
  font-size: 1.3em;
}
.experts-page .chat-header-actions {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}
.experts-page .chat-header-actions .start-new-chat-btn {
  background: white;
  border: 1px solid #dee2e6;
  color: #6c757d;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.experts-page .chat-header-actions .start-new-chat-btn:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
  color: #495057;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.experts-page .chat-header-actions .start-new-chat-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.experts-page.expanded {
  max-width: 100%;
  padding: 10px;
}
.experts-page.expanded .page-header {
  margin-bottom: 15px;
}
.experts-page.expanded .page-header h1 {
  font-size: 1.5em;
  margin-bottom: 5px;
}
.experts-page.expanded .page-header p {
  font-size: 0.9em;
  margin: 0;
}
.experts-page.expanded .chat-header-actions {
  top: 10px;
  right: 10px;
}
.experts-page.expanded .chat-header-actions .start-new-chat-btn {
  padding: 6px 12px;
  font-size: 13px;
}

.main-layout {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.experts-page.expanded .main-layout {
  max-width: 100%;
}

.chat-container {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 280px);
  min-height: 400px;
  transition: all 0.3s ease;
}
.experts-page.expanded .chat-container {
  height: calc(100vh - 200px);
  max-height: none;
  border-radius: 8px;
}

.persona-selector {
  width: 250px;
  padding: 20px;
}
.experts-page.expanded .persona-selector {
  height: calc(100vh - 200px);
  border-radius: 8px;
}
.persona-selector h3 {
  margin: 0 0 20px 0;
  color: #495057;
  font-size: 1.1em;
  font-weight: 600;
}
.persona-selector .persona-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.persona-selector .persona-buttons .persona-btn {
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: white;
  border: 1px solid #dee2e6;
  color: #6c757d;
  padding: 8px 16px;
  margin: 2px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.persona-selector .persona-buttons .persona-btn:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
  color: #495057;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.persona-selector .persona-buttons .persona-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8f9fa;
}
.chat-messages .welcome-message {
  margin-bottom: 20px;
}
.chat-messages .message {
  margin-bottom: 20px;
  display: flex;
  transition: all 0.2s ease;
}
.chat-messages .message.message-hovered {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.chat-messages .message.message-highlighted {
  animation: highlight-pulse 2s ease-in-out;
}
.chat-messages .message.user-message {
  justify-content: flex-end;
}
.chat-messages .message.user-message .message-content {
  background: #007bff;
  color: white;
  border-radius: 18px 18px 4px 18px;
  max-width: 70%;
  min-width: 35%;
}
.chat-messages .message.assistant-message {
  justify-content: flex-start;
}
.chat-messages .message.assistant-message .message-content {
  background: #e3e6e9;
  color: #333;
  border-radius: 18px 18px 18px 4px;
  max-width: 70%;
}
.chat-messages .message.system-message, .chat-messages .message.developer-message {
  justify-content: left;
}
.chat-messages .message.system-message .message-content, .chat-messages .message.developer-message .message-content {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
  border-radius: 12px;
  max-width: 80%;
  text-align: left;
  font-style: italic;
}
.chat-messages .message .message-content {
  padding: 12px 16px;
}
.chat-messages .message .message-content strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9em;
  opacity: 0.8;
}
.chat-messages .message .message-content .message-response {
  margin: 0.7rem 0;
  white-space: pre-wrap;
}
.chat-messages .message .message-content .message-role {
  margin-bottom: 1rem;
}
.chat-messages .message .message-content .message-footer {
  font-size: 0.75em;
  opacity: 0.6;
  margin-top: 5px;
  font-style: italic;
  display: flex;
  align-items: left;
  gap: 30px;
}
.chat-messages .message .message-content .message-footer .timestamp {
  flex-shrink: 0;
}
.chat-messages .message .message-content .message-footer .message-status {
  flex: 1;
}
.chat-messages .message .message-content .citations {
  margin-top: 1rem;
  font-size: 0.9em;
}
.chat-messages .message .message-content .citations .citation-link {
  color: inherit;
  text-decoration: underline;
  margin-left: 8px;
  display: block;
  font-style: italic;
}
.chat-messages .message .message-content .citations .citation-link:hover {
  opacity: 0.8;
}
.chat-messages .message .option-instruction {
  font-size: 0.8em;
}
.chat-messages .message .option-group {
  font-size: 0.8em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.chat-messages .message .option-group .options-label {
  margin: 0.5rem 0.3rem 0 0;
  font-weight: bold;
}
.chat-messages .message .option-group .options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}
.chat-messages .message .option-group button.tiny {
  border: 1px solid #aaa;
  border-radius: 5px;
  font-size: 0.7rem;
  padding: 4px 8px;
  margin: 0.5rem 0.5rem 0 0;
}
.chat-messages .typing-message .typing-animation {
  font-style: italic;
  opacity: 0.7;
}
.chat-messages .typing-message .typing-animation::after {
  content: "";
  animation: typing-dots 1.5s infinite;
}

.chat-input-container {
  padding: 20px;
  background: white;
  border-top: 1px solid #e9ecef;
}
.chat-input-container .chat-form .input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.chat-input-container .chat-form .input-group .chat-input {
  flex: 1;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  transition: border-color 0.2s ease;
}
.chat-input-container .chat-form .input-group .chat-input:focus {
  outline: none;
  border-color: #007bff;
}
.chat-input-container .chat-form .input-group .chat-input::placeholder {
  color: #adb5bd;
}
.chat-input-container .chat-form .input-group .send-btn {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}
.chat-input-container .chat-form .input-group .send-btn:hover:not(:disabled) {
  background: #0056b3;
}
.chat-input-container .chat-form .input-group .send-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}
.chat-input-container .chat-form .chat-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-input-container .chat-form .chat-actions .btn-secondary {
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.chat-input-container .chat-form .chat-actions .btn-secondary:hover {
  background: #545b62;
}
.chat-input-container .chat-form .chat-actions .typing-indicator {
  color: #6c757d;
  font-style: italic;
  font-size: 13px;
}
.chat-input-container .chat-form .chat-actions .typing-indicator::after {
  content: "";
  animation: dots 1.5s infinite;
}

@keyframes typing-dots {
  0%, 20% {
    content: "";
  }
  40% {
    content: ".";
  }
  60% {
    content: "..";
  }
  80%, 100% {
    content: "...";
  }
}
@keyframes highlight-pulse {
  0% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(255, 235, 59, 0.3);
  }
  100% {
    background-color: transparent;
  }
}
@media (max-width: 1365px) {
  .experts-page {
    max-width: 100%;
    padding: 10px;
  }
  .experts-page .page-header {
    margin-bottom: 15px;
  }
  .experts-page .page-header h1 {
    font-size: 1.5em;
    margin-bottom: 5px;
  }
  .experts-page .page-header h2 {
    font-size: 0.9em;
    margin: 0;
  }
  .experts-page .chat-header-actions {
    top: 10px;
    right: 10px;
  }
  .experts-page .chat-header-actions .start-new-chat-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  .main-layout {
    max-width: 100%;
  }
  .chat-container {
    height: calc(100vh - 200px);
    max-height: none;
    border-radius: 8px;
  }
  .persona-selector {
    height: calc(100vh - 200px);
    border-radius: 8px;
  }
}
@media (max-width: 768px) {
  .experts-page {
    padding: 10px;
  }
  .main-layout {
    flex-direction: column;
    gap: 15px;
  }
  .persona-selector {
    width: 100%;
    height: auto;
    max-height: 150px;
    padding: 15px;
  }
  .persona-selector h3 {
    margin-bottom: 10px;
    font-size: 1em;
  }
  .persona-selector .persona-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .persona-selector .persona-buttons .persona-btn {
    flex: 1;
    min-width: calc(50% - 3px);
    padding: 8px 12px;
    font-size: 13px;
    text-align: center;
  }
  .persona-selector .persona-buttons .persona-btn:hover {
    transform: none;
  }
  .chat-container {
    height: calc(100vh - 350px);
    max-height: 500px;
    min-height: 300px;
    border-radius: 8px;
  }
  .chat-messages .message.user-message .message-content, .chat-messages .message.assistant-message .message-content, .chat-messages .message.system-message .message-content {
    max-width: 85%;
  }
  .chat-input-container .chat-form .input-group {
    flex-direction: column;
  }
  .chat-input-container .chat-form .input-group .send-btn {
    align-self: stretch;
  }
}
