.insider-ai-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 16px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ECDC4 0%, #44B3D9 50%, #3B82F6 100%);
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
  z-index: 9998;
  transition: all 0.3s ease;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.insider-ai-button svg {
  display: block;
}
.insider-ai-button:hover {
  background: linear-gradient(135deg, #4ECDC4 0%, #44B3D9 50%, #3B82F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}
.insider-ai-button .notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #e74c3c;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px white;
}
.insider-ai-container-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  height: 80vh;
  max-width: 1200px;
  max-height: 800px;
  min-width: 320px;
  min-height: 400px;
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeInScale 0.3s ease-out;
}
.insider-ai-container-modal.maximized {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95vw;
  height: 95vh;
  max-width: none;
  max-height: none;
  border-radius: 8px;
}
@media (max-width: 768px) {
  .insider-ai-container-modal {
    width: 95vw;
    height: 90vh;
    max-width: none;
    border-radius: 8px;
  }
}
@media (max-width: 480px) {
  .insider-ai-container-modal {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    top: 0;
    left: 0;
    transform: none;
  }
}
.fullscreen-mode {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  animation: none !important;
  box-shadow: none !important;
  z-index: auto !important;
}
.insider-ai-container {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}
.chat-sidebar-container {
  background-color: hsl(0 0% 9%);
  display: flex;
  flex-direction: column;
  padding: 0 8px 8px 8px;
  color: #b0b0b0;
  position: relative;
  border-right: 1px solid #3a3a3a;
  height: 100%;
  min-width: 200px;
  max-width: 400px;
}
.chat-sidebar-container .sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8px;
  margin-bottom: 16px;
}
.chat-sidebar-container .sidebar-header .sidebar-toggle-btn {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  color: #b0b0b0;
  transition: all 0.2s ease;
}
.chat-sidebar-container .sidebar-header .sidebar-toggle-btn:hover {
  background: #2a2a2a;
  color: #ffffff;
}
.chat-sidebar-container .sidebar-header .agent-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-sidebar-container .sidebar-header .agent-logo .agent-icon {
  color: #4A90E2;
}
.chat-sidebar-container .sidebar-header .agent-logo .agent-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}
.chat-sidebar-container .sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  padding: 0 8px;
}
.chat-sidebar-container .sidebar-actions .action-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}
.chat-sidebar-container .sidebar-actions .action-button.primary {
  background: linear-gradient(135deg, #4ECDC4 0%, #44B3D9 50%, #3B82F6 100%);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.chat-sidebar-container .sidebar-actions .action-button.primary:hover {
  background: linear-gradient(135deg, #4ECDC4 0%, #44B3D9 50%, #3B82F6 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px -8px rgba(78, 205, 196, 0.4);
}
.chat-sidebar-container .sidebar-actions .action-button.secondary {
  background: none;
  color: #D1D5DB;
}
.chat-sidebar-container .sidebar-actions .action-button.secondary:hover {
  background-color: #282828;
  color: #FFFFFF;
}
.chat-sidebar-container .sidebar-navigation {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0 8px;
}
.chat-sidebar-container .sidebar-navigation::-webkit-scrollbar {
  width: 4px;
}
.chat-sidebar-container .sidebar-navigation::-webkit-scrollbar-track {
  background: transparent;
}
.chat-sidebar-container .sidebar-navigation::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 2px;
}
.chat-sidebar-container .sidebar-navigation .nav-section-title {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  margin-top: 0;
}
.chat-sidebar-container .sidebar-navigation .nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}
.chat-sidebar-container .sidebar-navigation .nav-list .nav-item-wrapper {
  position: relative;
  margin-bottom: 4px;
}
.chat-sidebar-container .sidebar-navigation .nav-list .nav-item-wrapper:hover .nav-item-actions {
  opacity: 1;
}
.chat-sidebar-container .sidebar-navigation .nav-list .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 8px;
  color: #D1D5DB;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  position: relative;
}
.chat-sidebar-container .sidebar-navigation .nav-list .nav-item .nav-item-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-sidebar-container .sidebar-navigation .nav-list .nav-item:hover {
  background-color: #282828;
  color: #FFFFFF;
}
.chat-sidebar-container .sidebar-navigation .nav-list .nav-item.active {
  background-color: #282828;
  color: #FFFFFF;
}
.chat-sidebar-container .sidebar-navigation .nav-list .nav-item.folder-item .folder-count {
  margin-left: auto;
  font-size: 12px;
  color: #D1D5DB;
  background-color: #282828;
  padding: 2px 6px;
  border-radius: 4px;
}
.chat-sidebar-container .sidebar-navigation .nav-list .nav-item.sub-item {
  font-size: 13px;
  padding-left: 24px;
}
.chat-sidebar-container .sidebar-navigation .nav-list .nav-item-actions {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.chat-sidebar-container .sidebar-navigation .nav-list .nav-item-actions .delete-button {
  background: none;
  border: none;
  padding: 4px;
  border-radius: 4px;
  color: #D1D5DB;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chat-sidebar-container .sidebar-navigation .nav-list .nav-item-actions .delete-button:hover {
  background-color: #ef4444;
  color: white;
}
.chat-sidebar-container .sidebar-navigation .nav-list .no-sessions {
  padding: 16px;
  text-align: center;
  color: #6B7280;
  font-size: 14px;
}
.chat-sidebar-container .sidebar-navigation .nav-list .folder-header {
  position: relative;
}
.chat-sidebar-container .sidebar-navigation .nav-list .folder-header:hover .nav-item-actions {
  opacity: 1;
}
.chat-sidebar-container .sidebar-navigation .nav-list .folder-chats {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 24px;
  border-left: 1px solid #333333;
  padding-left: 12px;
}
.chat-sidebar-container .sidebar-navigation .nav-list .folder-chats .nav-item-wrapper {
  margin-bottom: 2px;
}
.chat-sidebar-container .resize-handle {
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: transparent;
  cursor: col-resize;
  z-index: 10;
  transition: all 0.3s ease;
}
.chat-sidebar-container .resize-handle:hover {
  background: linear-gradient(135deg, #4ECDC4 0%, #44B3D9 50%, #3B82F6 100%);
}
.table-modal .table-modal-content .markdown-table-container,
.table-modal .table-modal-content .html-table-container {
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-height: none;
  overflow: visible;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table,
.table-modal .table-modal-content .html-table-container .markdown-table,
.table-modal .table-modal-content .markdown-table-container .html-table,
.table-modal .table-modal-content .html-table-container .html-table {
  font-size: 0.95em;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table th,
.table-modal .table-modal-content .html-table-container .markdown-table th,
.table-modal .table-modal-content .markdown-table-container .html-table th,
.table-modal .table-modal-content .html-table-container .html-table th {
  padding: 14px 18px;
  font-size: 0.9em;
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.25), rgba(74, 144, 226, 0.25));
  border-bottom: 2px solid rgba(78, 205, 196, 0.5);
}
.table-modal .table-modal-content .markdown-table-container .markdown-table td,
.table-modal .table-modal-content .html-table-container .markdown-table td,
.table-modal .table-modal-content .markdown-table-container .html-table td,
.table-modal .table-modal-content .html-table-container .html-table td {
  padding: 12px 18px;
  font-size: 0.9em;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table tr:hover,
.table-modal .table-modal-content .html-table-container .markdown-table tr:hover,
.table-modal .table-modal-content .markdown-table-container .html-table tr:hover,
.table-modal .table-modal-content .html-table-container .html-table tr:hover {
  background: rgba(78, 205, 196, 0.12);
}
.table-modal .table-modal-content .message-text-content .markdown-table-container,
.table-modal .table-modal-content .message-text-content .html-table-container {
  margin: 0;
  max-height: none;
}
.table-modal .table-modal-content .message-text-content .markdown-table-container table,
.table-modal .table-modal-content .message-text-content .html-table-container table {
  width: 100%;
  min-width: unset;
}
@media (max-width: 1200px) {
  .table-modal .table-modal-content .markdown-table-container .markdown-table,
  .table-modal .table-modal-content .html-table-container .markdown-table,
  .table-modal .table-modal-content .markdown-table-container .html-table,
  .table-modal .table-modal-content .html-table-container .html-table {
    font-size: 0.85em;
  }
  .table-modal .table-modal-content .markdown-table-container .markdown-table th,
  .table-modal .table-modal-content .html-table-container .markdown-table th,
  .table-modal .table-modal-content .markdown-table-container .html-table th,
  .table-modal .table-modal-content .html-table-container .html-table th,
  .table-modal .table-modal-content .markdown-table-container .markdown-table td,
  .table-modal .table-modal-content .html-table-container .markdown-table td,
  .table-modal .table-modal-content .markdown-table-container .html-table td,
  .table-modal .table-modal-content .html-table-container .html-table td {
    padding: 10px 14px;
  }
}
@media (max-width: 768px) {
  .table-modal .table-modal-content .markdown-table-container .markdown-table,
  .table-modal .table-modal-content .html-table-container .markdown-table,
  .table-modal .table-modal-content .markdown-table-container .html-table,
  .table-modal .table-modal-content .html-table-container .html-table {
    font-size: 0.8em;
  }
  .table-modal .table-modal-content .markdown-table-container .markdown-table th,
  .table-modal .table-modal-content .html-table-container .markdown-table th,
  .table-modal .table-modal-content .markdown-table-container .html-table th,
  .table-modal .table-modal-content .html-table-container .html-table th,
  .table-modal .table-modal-content .markdown-table-container .markdown-table td,
  .table-modal .table-modal-content .html-table-container .markdown-table td,
  .table-modal .table-modal-content .markdown-table-container .html-table td,
  .table-modal .table-modal-content .html-table-container .html-table td {
    padding: 8px 12px;
  }
}
.table-modal::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.table-modal::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.table-modal::-webkit-scrollbar-thumb {
  background: rgba(78, 205, 196, 0.6);
  border-radius: 4px;
}
.table-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 205, 196, 0.8);
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container {
  margin: 16px 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  overflow-x: auto;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table {
  font-size: 0.95em;
  width: 100%;
  table-layout: auto;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table th {
  padding: 16px 20px;
  font-size: 0.9em;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table td {
  padding: 14px 20px;
}
.dropdown-menu-container {
  position: relative;
  display: inline-block;
}
.dropdown-menu-container .dropdown-trigger {
  background: none;
  border: none;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  color: #D1D5DB;
  transition: all 0.2s ease;
}
.dropdown-menu-container .dropdown-trigger:hover {
  background-color: #282828;
  color: #FFFFFF;
}
.dropdown-menu-container .dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  background: #171717;
  border: 1px solid #333333;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  min-width: 160px;
  overflow: hidden;
}
.dropdown-menu-container .dropdown-content .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 12px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: #D1D5DB;
  transition: all 0.2s ease;
}
.dropdown-menu-container .dropdown-content .dropdown-item:hover {
  background-color: #282828;
  color: #FFFFFF;
}
.dropdown-menu-container .dropdown-content .dropdown-item.destructive {
  color: #ef4444;
}
.dropdown-menu-container .dropdown-content .dropdown-item.destructive:hover {
  background-color: #7f1d1d;
  color: white;
}
.table-modal .table-modal-content .markdown-table-container,
.table-modal .table-modal-content .html-table-container {
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-height: none;
  overflow: visible;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table,
.table-modal .table-modal-content .html-table-container .markdown-table,
.table-modal .table-modal-content .markdown-table-container .html-table,
.table-modal .table-modal-content .html-table-container .html-table {
  font-size: 0.95em;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table th,
.table-modal .table-modal-content .html-table-container .markdown-table th,
.table-modal .table-modal-content .markdown-table-container .html-table th,
.table-modal .table-modal-content .html-table-container .html-table th {
  padding: 14px 18px;
  font-size: 0.9em;
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.25), rgba(74, 144, 226, 0.25));
  border-bottom: 2px solid rgba(78, 205, 196, 0.5);
}
.table-modal .table-modal-content .markdown-table-container .markdown-table td,
.table-modal .table-modal-content .html-table-container .markdown-table td,
.table-modal .table-modal-content .markdown-table-container .html-table td,
.table-modal .table-modal-content .html-table-container .html-table td {
  padding: 12px 18px;
  font-size: 0.9em;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table tr:hover,
.table-modal .table-modal-content .html-table-container .markdown-table tr:hover,
.table-modal .table-modal-content .markdown-table-container .html-table tr:hover,
.table-modal .table-modal-content .html-table-container .html-table tr:hover {
  background: rgba(78, 205, 196, 0.12);
}
.table-modal .table-modal-content .message-text-content .markdown-table-container,
.table-modal .table-modal-content .message-text-content .html-table-container {
  margin: 0;
  max-height: none;
}
.table-modal .table-modal-content .message-text-content .markdown-table-container table,
.table-modal .table-modal-content .message-text-content .html-table-container table {
  width: 100%;
  min-width: unset;
}
@media (max-width: 1200px) {
  .table-modal .table-modal-content .markdown-table-container .markdown-table,
  .table-modal .table-modal-content .html-table-container .markdown-table,
  .table-modal .table-modal-content .markdown-table-container .html-table,
  .table-modal .table-modal-content .html-table-container .html-table {
    font-size: 0.85em;
  }
  .table-modal .table-modal-content .markdown-table-container .markdown-table th,
  .table-modal .table-modal-content .html-table-container .markdown-table th,
  .table-modal .table-modal-content .markdown-table-container .html-table th,
  .table-modal .table-modal-content .html-table-container .html-table th,
  .table-modal .table-modal-content .markdown-table-container .markdown-table td,
  .table-modal .table-modal-content .html-table-container .markdown-table td,
  .table-modal .table-modal-content .markdown-table-container .html-table td,
  .table-modal .table-modal-content .html-table-container .html-table td {
    padding: 10px 14px;
  }
}
@media (max-width: 768px) {
  .table-modal .table-modal-content .markdown-table-container .markdown-table,
  .table-modal .table-modal-content .html-table-container .markdown-table,
  .table-modal .table-modal-content .markdown-table-container .html-table,
  .table-modal .table-modal-content .html-table-container .html-table {
    font-size: 0.8em;
  }
  .table-modal .table-modal-content .markdown-table-container .markdown-table th,
  .table-modal .table-modal-content .html-table-container .markdown-table th,
  .table-modal .table-modal-content .markdown-table-container .html-table th,
  .table-modal .table-modal-content .html-table-container .html-table th,
  .table-modal .table-modal-content .markdown-table-container .markdown-table td,
  .table-modal .table-modal-content .html-table-container .markdown-table td,
  .table-modal .table-modal-content .markdown-table-container .html-table td,
  .table-modal .table-modal-content .html-table-container .html-table td {
    padding: 8px 12px;
  }
}
.table-modal::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.table-modal::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.table-modal::-webkit-scrollbar-thumb {
  background: rgba(78, 205, 196, 0.6);
  border-radius: 4px;
}
.table-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 205, 196, 0.8);
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container {
  margin: 16px 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  overflow-x: auto;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table {
  font-size: 0.95em;
  width: 100%;
  table-layout: auto;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table th {
  padding: 16px 20px;
  font-size: 0.9em;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table td {
  padding: 14px 20px;
}
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease-out;
}
.modal-backdrop .modal-content {
  background: #171717;
  border: 1px solid #333333;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideIn 0.2s ease-out;
}
.modal-backdrop .modal-content .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #333333;
}
.modal-backdrop .modal-content .modal-header .modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0;
}
.modal-backdrop .modal-content .modal-header .modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #D1D5DB;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-backdrop .modal-content .modal-header .modal-close:hover {
  color: #FFFFFF;
}
.modal-backdrop .modal-content .modal-body {
  padding: 20px;
}
.modal-backdrop .modal-content .modal-body .modal-description {
  color: #D1D5DB;
  margin-bottom: 16px;
  font-size: 14px;
}
.modal-backdrop .modal-content .modal-body .form-group {
  margin-bottom: 16px;
}
.modal-backdrop .modal-content .modal-body .form-input {
  width: 100%;
  padding: 12px 16px;
  background: #282828;
  border: 1px solid #333333;
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 14px;
}
.modal-backdrop .modal-content .modal-body .form-input:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.modal-backdrop .modal-content .modal-body .form-input::placeholder {
  color: #6B7280;
}
.modal-backdrop .modal-content .modal-body .modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
}
.modal-backdrop .modal-content .modal-body .modal-actions .btn-secondary {
  background: #282828;
  color: #D1D5DB;
  border: 1px solid #333333;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}
.modal-backdrop .modal-content .modal-body .modal-actions .btn-secondary:hover {
  background: #333333;
  color: #FFFFFF;
}
.modal-backdrop .modal-content .modal-body .modal-actions .btn-primary {
  background: linear-gradient(135deg, #4ECDC4 0%, #44B3D9 50%, #3B82F6 100%);
  color: #FFFFFF;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.modal-backdrop .modal-content .modal-body .modal-actions .btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #4ECDC4 0%, #44B3D9 50%, #3B82F6 100%);
}
.modal-backdrop .modal-content .modal-body .modal-actions .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.modal-backdrop .modal-content .modal-body .modal-actions .btn-danger {
  background: #ef4444;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.modal-backdrop .modal-content .modal-body .modal-actions .btn-danger:hover {
  background: #dc2626;
}
.modal-backdrop .modal-content .modal-body .folder-list {
  max-height: 200px;
  overflow-y: auto;
  margin: 16px 0;
}
.modal-backdrop .modal-content .modal-body .folder-list .folder-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.modal-backdrop .modal-content .modal-body .folder-list .folder-item:hover {
  background: #282828;
}
.modal-backdrop .modal-content .modal-body .folder-list .folder-item.current {
  border-color: #3B82F6;
  background: rgba(59, 130, 246, 0.1);
}
.modal-backdrop .modal-content .modal-body .folder-list .folder-item .folder-name {
  font-size: 14px;
  color: #FFFFFF;
}
.modal-backdrop .modal-content .modal-body .folder-list .folder-item .current-indicator {
  color: #3B82F6;
  font-weight: bold;
}
.modal-backdrop .modal-content .modal-body .delete-item-highlight {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 12px;
  margin: 16px 0;
  text-align: center;
}
.modal-backdrop .modal-content .modal-body .delete-item-highlight strong {
  color: #ef4444;
}
.modal-backdrop .modal-content .modal-body .delete-warning {
  color: #D1D5DB;
  font-size: 13px;
  text-align: center;
  margin: 16px 0;
}
.table-modal .table-modal-content .markdown-table-container,
.table-modal .table-modal-content .html-table-container {
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-height: none;
  overflow: visible;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table,
.table-modal .table-modal-content .html-table-container .markdown-table,
.table-modal .table-modal-content .markdown-table-container .html-table,
.table-modal .table-modal-content .html-table-container .html-table {
  font-size: 0.95em;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table th,
.table-modal .table-modal-content .html-table-container .markdown-table th,
.table-modal .table-modal-content .markdown-table-container .html-table th,
.table-modal .table-modal-content .html-table-container .html-table th {
  padding: 14px 18px;
  font-size: 0.9em;
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.25), rgba(74, 144, 226, 0.25));
  border-bottom: 2px solid rgba(78, 205, 196, 0.5);
}
.table-modal .table-modal-content .markdown-table-container .markdown-table td,
.table-modal .table-modal-content .html-table-container .markdown-table td,
.table-modal .table-modal-content .markdown-table-container .html-table td,
.table-modal .table-modal-content .html-table-container .html-table td {
  padding: 12px 18px;
  font-size: 0.9em;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table tr:hover,
.table-modal .table-modal-content .html-table-container .markdown-table tr:hover,
.table-modal .table-modal-content .markdown-table-container .html-table tr:hover,
.table-modal .table-modal-content .html-table-container .html-table tr:hover {
  background: rgba(78, 205, 196, 0.12);
}
.table-modal .table-modal-content .message-text-content .markdown-table-container,
.table-modal .table-modal-content .message-text-content .html-table-container {
  margin: 0;
  max-height: none;
}
.table-modal .table-modal-content .message-text-content .markdown-table-container table,
.table-modal .table-modal-content .message-text-content .html-table-container table {
  width: 100%;
  min-width: unset;
}
@media (max-width: 1200px) {
  .table-modal .table-modal-content .markdown-table-container .markdown-table,
  .table-modal .table-modal-content .html-table-container .markdown-table,
  .table-modal .table-modal-content .markdown-table-container .html-table,
  .table-modal .table-modal-content .html-table-container .html-table {
    font-size: 0.85em;
  }
  .table-modal .table-modal-content .markdown-table-container .markdown-table th,
  .table-modal .table-modal-content .html-table-container .markdown-table th,
  .table-modal .table-modal-content .markdown-table-container .html-table th,
  .table-modal .table-modal-content .html-table-container .html-table th,
  .table-modal .table-modal-content .markdown-table-container .markdown-table td,
  .table-modal .table-modal-content .html-table-container .markdown-table td,
  .table-modal .table-modal-content .markdown-table-container .html-table td,
  .table-modal .table-modal-content .html-table-container .html-table td {
    padding: 10px 14px;
  }
}
@media (max-width: 768px) {
  .table-modal .table-modal-content .markdown-table-container .markdown-table,
  .table-modal .table-modal-content .html-table-container .markdown-table,
  .table-modal .table-modal-content .markdown-table-container .html-table,
  .table-modal .table-modal-content .html-table-container .html-table {
    font-size: 0.8em;
  }
  .table-modal .table-modal-content .markdown-table-container .markdown-table th,
  .table-modal .table-modal-content .html-table-container .markdown-table th,
  .table-modal .table-modal-content .markdown-table-container .html-table th,
  .table-modal .table-modal-content .html-table-container .html-table th,
  .table-modal .table-modal-content .markdown-table-container .markdown-table td,
  .table-modal .table-modal-content .html-table-container .markdown-table td,
  .table-modal .table-modal-content .markdown-table-container .html-table td,
  .table-modal .table-modal-content .html-table-container .html-table td {
    padding: 8px 12px;
  }
}
.table-modal::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.table-modal::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.table-modal::-webkit-scrollbar-thumb {
  background: rgba(78, 205, 196, 0.6);
  border-radius: 4px;
}
.table-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 205, 196, 0.8);
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container {
  margin: 16px 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  overflow-x: auto;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table {
  font-size: 0.95em;
  width: 100%;
  table-layout: auto;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table th {
  padding: 16px 20px;
  font-size: 0.9em;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table td {
  padding: 14px 20px;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.insider-ai-content {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: min-content 1fr;
  grid-template-areas: "sidebar header" "sidebar main";
  flex: 1;
  overflow: hidden;
}
.insider-ai-content .chat-sidebar-container {
  grid-area: sidebar;
}
.insider-ai-content .insider-ai-header-new {
  grid-area: header;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #3a3a3a;
  height: fit-content;
  background: hsl(0 0% 7%);
}
.insider-ai-content .insider-ai-header-new .sidebar-toggle-header-btn {
  background: none;
  border: none;
  color: #b0b0b0;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.insider-ai-content .insider-ai-header-new .sidebar-toggle-header-btn:hover {
  background: #2a2a2a;
  color: #ffffff;
}
.insider-ai-content .insider-ai-header-new .header-center {
  flex: 1;
  text-align: center;
}
.insider-ai-content .insider-ai-header-new .header-center .current-chat-title {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
}
.insider-ai-content .insider-ai-header-new .header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.insider-ai-content .insider-ai-header-new .header-right .header-action-btn {
  background: none;
  border: none;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
  color: #b0b0b0;
  transition: all 0.2s ease;
}
.insider-ai-content .insider-ai-header-new .header-right .header-action-btn:hover {
  background: #2a2a2a;
  color: #ffffff;
}
.insider-ai-content .insider-ai-header-new .header-right .header-action-btn.close-btn:hover {
  background: #e74c3c;
  color: white;
}
.insider-ai-content .insider-ai-header-new .header-right .header-action-btn.chart-expand-button {
  background: rgba(0, 0, 0, 0.8) !important;
  color: white !important;
}
.insider-ai-content .insider-ai-header-new .header-right .header-action-btn.chart-expand-button:hover {
  background: #2a2a2a !important;
  color: #ffffff !important;
}
.table-modal .table-modal-content .markdown-table-container,
.table-modal .table-modal-content .html-table-container {
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-height: none;
  overflow: visible;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table,
.table-modal .table-modal-content .html-table-container .markdown-table,
.table-modal .table-modal-content .markdown-table-container .html-table,
.table-modal .table-modal-content .html-table-container .html-table {
  font-size: 0.95em;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table th,
.table-modal .table-modal-content .html-table-container .markdown-table th,
.table-modal .table-modal-content .markdown-table-container .html-table th,
.table-modal .table-modal-content .html-table-container .html-table th {
  padding: 14px 18px;
  font-size: 0.9em;
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.25), rgba(74, 144, 226, 0.25));
  border-bottom: 2px solid rgba(78, 205, 196, 0.5);
}
.table-modal .table-modal-content .markdown-table-container .markdown-table td,
.table-modal .table-modal-content .html-table-container .markdown-table td,
.table-modal .table-modal-content .markdown-table-container .html-table td,
.table-modal .table-modal-content .html-table-container .html-table td {
  padding: 12px 18px;
  font-size: 0.9em;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table tr:hover,
.table-modal .table-modal-content .html-table-container .markdown-table tr:hover,
.table-modal .table-modal-content .markdown-table-container .html-table tr:hover,
.table-modal .table-modal-content .html-table-container .html-table tr:hover {
  background: rgba(78, 205, 196, 0.12);
}
.table-modal .table-modal-content .message-text-content .markdown-table-container,
.table-modal .table-modal-content .message-text-content .html-table-container {
  margin: 0;
  max-height: none;
}
.table-modal .table-modal-content .message-text-content .markdown-table-container table,
.table-modal .table-modal-content .message-text-content .html-table-container table {
  width: 100%;
  min-width: unset;
}
@media (max-width: 1200px) {
  .table-modal .table-modal-content .markdown-table-container .markdown-table,
  .table-modal .table-modal-content .html-table-container .markdown-table,
  .table-modal .table-modal-content .markdown-table-container .html-table,
  .table-modal .table-modal-content .html-table-container .html-table {
    font-size: 0.85em;
  }
  .table-modal .table-modal-content .markdown-table-container .markdown-table th,
  .table-modal .table-modal-content .html-table-container .markdown-table th,
  .table-modal .table-modal-content .markdown-table-container .html-table th,
  .table-modal .table-modal-content .html-table-container .html-table th,
  .table-modal .table-modal-content .markdown-table-container .markdown-table td,
  .table-modal .table-modal-content .html-table-container .markdown-table td,
  .table-modal .table-modal-content .markdown-table-container .html-table td,
  .table-modal .table-modal-content .html-table-container .html-table td {
    padding: 10px 14px;
  }
}
@media (max-width: 768px) {
  .table-modal .table-modal-content .markdown-table-container .markdown-table,
  .table-modal .table-modal-content .html-table-container .markdown-table,
  .table-modal .table-modal-content .markdown-table-container .html-table,
  .table-modal .table-modal-content .html-table-container .html-table {
    font-size: 0.8em;
  }
  .table-modal .table-modal-content .markdown-table-container .markdown-table th,
  .table-modal .table-modal-content .html-table-container .markdown-table th,
  .table-modal .table-modal-content .markdown-table-container .html-table th,
  .table-modal .table-modal-content .html-table-container .html-table th,
  .table-modal .table-modal-content .markdown-table-container .markdown-table td,
  .table-modal .table-modal-content .html-table-container .markdown-table td,
  .table-modal .table-modal-content .markdown-table-container .html-table td,
  .table-modal .table-modal-content .html-table-container .html-table td {
    padding: 8px 12px;
  }
}
.table-modal::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.table-modal::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.table-modal::-webkit-scrollbar-thumb {
  background: rgba(78, 205, 196, 0.6);
  border-radius: 4px;
}
.table-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 205, 196, 0.8);
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container {
  margin: 16px 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  overflow-x: auto;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table {
  font-size: 0.95em;
  width: 100%;
  table-layout: auto;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table th {
  padding: 16px 20px;
  font-size: 0.9em;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table td {
  padding: 14px 20px;
}
.insider-ai-messages .chart-expand-button {
  background: rgba(0, 0, 0, 0.8) !important;
  border: none !important;
  padding: 7px 8px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  color: white !important;
  transition: all 0.2s ease !important;
}
.insider-ai-messages .chart-expand-button:hover {
  background: #2a2a2a !important;
  color: #ffffff !important;
}
.insider-ai-messages .chart-metadata {
  text-align: center !important;
}
.chart-modal .message-renderer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.chart-modal .message-renderer .chart-container {
  width: 100% !important;
  max-width: none !important;
  min-width: unset !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.chart-modal .message-renderer .chart-container .chart-canvas-wrapper {
  width: 100%;
  height: 400px !important;
  max-height: 400px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chart-modal .message-renderer .chart-container .chart-metadata {
  text-align: center !important;
  width: 100%;
  color: #ffffff !important;
}
.chart-modal .message-renderer .chart-container .chart-metadata * {
  color: #ffffff !important;
  text-align: center !important;
}
.table-modal .table-modal-content .markdown-table-container,
.table-modal .table-modal-content .html-table-container {
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-height: none;
  overflow: visible;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table,
.table-modal .table-modal-content .html-table-container .markdown-table,
.table-modal .table-modal-content .markdown-table-container .html-table,
.table-modal .table-modal-content .html-table-container .html-table {
  font-size: 0.95em;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table th,
.table-modal .table-modal-content .html-table-container .markdown-table th,
.table-modal .table-modal-content .markdown-table-container .html-table th,
.table-modal .table-modal-content .html-table-container .html-table th {
  padding: 14px 18px;
  font-size: 0.9em;
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.25), rgba(74, 144, 226, 0.25));
  border-bottom: 2px solid rgba(78, 205, 196, 0.5);
}
.table-modal .table-modal-content .markdown-table-container .markdown-table td,
.table-modal .table-modal-content .html-table-container .markdown-table td,
.table-modal .table-modal-content .markdown-table-container .html-table td,
.table-modal .table-modal-content .html-table-container .html-table td {
  padding: 12px 18px;
  font-size: 0.9em;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table tr:hover,
.table-modal .table-modal-content .html-table-container .markdown-table tr:hover,
.table-modal .table-modal-content .markdown-table-container .html-table tr:hover,
.table-modal .table-modal-content .html-table-container .html-table tr:hover {
  background: rgba(78, 205, 196, 0.12);
}
.table-modal .table-modal-content .message-text-content .markdown-table-container,
.table-modal .table-modal-content .message-text-content .html-table-container {
  margin: 0;
  max-height: none;
}
.table-modal .table-modal-content .message-text-content .markdown-table-container table,
.table-modal .table-modal-content .message-text-content .html-table-container table {
  width: 100%;
  min-width: unset;
}
@media (max-width: 1200px) {
  .table-modal .table-modal-content .markdown-table-container .markdown-table,
  .table-modal .table-modal-content .html-table-container .markdown-table,
  .table-modal .table-modal-content .markdown-table-container .html-table,
  .table-modal .table-modal-content .html-table-container .html-table {
    font-size: 0.85em;
  }
  .table-modal .table-modal-content .markdown-table-container .markdown-table th,
  .table-modal .table-modal-content .html-table-container .markdown-table th,
  .table-modal .table-modal-content .markdown-table-container .html-table th,
  .table-modal .table-modal-content .html-table-container .html-table th,
  .table-modal .table-modal-content .markdown-table-container .markdown-table td,
  .table-modal .table-modal-content .html-table-container .markdown-table td,
  .table-modal .table-modal-content .markdown-table-container .html-table td,
  .table-modal .table-modal-content .html-table-container .html-table td {
    padding: 10px 14px;
  }
}
@media (max-width: 768px) {
  .table-modal .table-modal-content .markdown-table-container .markdown-table,
  .table-modal .table-modal-content .html-table-container .markdown-table,
  .table-modal .table-modal-content .markdown-table-container .html-table,
  .table-modal .table-modal-content .html-table-container .html-table {
    font-size: 0.8em;
  }
  .table-modal .table-modal-content .markdown-table-container .markdown-table th,
  .table-modal .table-modal-content .html-table-container .markdown-table th,
  .table-modal .table-modal-content .markdown-table-container .html-table th,
  .table-modal .table-modal-content .html-table-container .html-table th,
  .table-modal .table-modal-content .markdown-table-container .markdown-table td,
  .table-modal .table-modal-content .html-table-container .markdown-table td,
  .table-modal .table-modal-content .markdown-table-container .html-table td,
  .table-modal .table-modal-content .html-table-container .html-table td {
    padding: 8px 12px;
  }
}
.table-modal::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.table-modal::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.table-modal::-webkit-scrollbar-thumb {
  background: rgba(78, 205, 196, 0.6);
  border-radius: 4px;
}
.table-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 205, 196, 0.8);
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container {
  margin: 16px 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  overflow-x: auto;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table {
  font-size: 0.95em;
  width: 100%;
  table-layout: auto;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table th {
  padding: 16px 20px;
  font-size: 0.9em;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table td {
  padding: 14px 20px;
}
.chat-main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: hsl(0 0% 7%);
}
.chat-sidebar {
  width: 280px;
  background: #f8f9fa;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
@media (max-width: 968px) {
  .chat-sidebar {
    width: 250px;
  }
}
@media (max-width: 768px) {
  .chat-sidebar {
    width: 220px;
  }
}
@media (max-width: 640px) {
  .chat-sidebar {
    width: 200px;
  }
}
@media (max-width: 480px) {
  .chat-sidebar {
    width: 180px;
  }
}
.insider-ai-messages::-webkit-scrollbar,
.sessions-list::-webkit-scrollbar {
  width: 4px;
}
.insider-ai-messages::-webkit-scrollbar-track,
.sessions-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}
.insider-ai-messages::-webkit-scrollbar-thumb,
.sessions-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}
.insider-ai-messages::-webkit-scrollbar-thumb:hover,
.sessions-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
.welcome-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px 20px;
}
.welcome-area .welcome-icon {
  margin-bottom: 24px;
}
.welcome-area .welcome-icon .sparkles-icon {
  color: #4A90E2;
}
.welcome-area .welcome-icon .insider-ai-icon {
  color: #4A90E2;
  animation: sparkle 2s ease-in-out infinite;
}
.welcome-area .welcome-title {
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 12px 0;
}
.welcome-area .welcome-subtitle {
  font-size: 16px;
  color: #b0b0b0;
  margin: 0;
  max-width: 400px;
}
@keyframes sparkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1) rotate(10deg);
    opacity: 1;
  }
}
.insider-ai-messages {
  flex: 1;
  background: hsl(0 0% 7%);
  padding: 24px 20px;
  overflow-y: auto;
}
.insider-ai-messages::-webkit-scrollbar {
  width: 6px;
}
.insider-ai-messages::-webkit-scrollbar-track {
  background: transparent;
}
.insider-ai-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.insider-ai-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}
.insider-ai-messages .insider-ai-message {
  display: flex;
  margin-bottom: 20px;
  animation: messageSlideIn 0.3s ease-out;
  max-width: 100%;
}
.insider-ai-messages .insider-ai-message.user {
  justify-content: flex-end;
  margin-left: 60px;
}
@media (max-width: 768px) {
  .insider-ai-messages .insider-ai-message.user {
    margin-left: 20px;
  }
}
.insider-ai-messages .insider-ai-message.user .insider-ai-message-bubble {
  background: linear-gradient(135deg, #4ECDC4 0%, #44B3D9 50%, #3B82F6 100%);
  color: white;
  border-radius: 20px 20px 4px 20px;
  padding: 12px 18px;
  margin-right: 12px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  max-width: 320px;
  word-wrap: break-word;
}
@media (max-width: 768px) {
  .insider-ai-messages .insider-ai-message.user .insider-ai-message-bubble {
    max-width: 260px;
    padding: 10px 14px;
  }
}
@media (max-width: 480px) {
  .insider-ai-messages .insider-ai-message.user .insider-ai-message-bubble {
    max-width: 240px;
  }
}
.insider-ai-messages .insider-ai-message.user .insider-ai-message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ECDC4 0%, #44B3D9 50%, #3B82F6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  order: 2;
  flex-shrink: 0;
  color: white;
}
.insider-ai-messages .insider-ai-message.user .insider-ai-message-avatar .profile-picture {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
@media (max-width: 768px) {
  .insider-ai-messages .insider-ai-message.user .insider-ai-message-avatar {
    width: 32px;
    height: 32px;
  }
}
.insider-ai-messages .insider-ai-message.user .insider-ai-message-avatar svg {
  color: white;
  width: 18px;
  height: 18px;
}
@media (max-width: 768px) {
  .insider-ai-messages .insider-ai-message.user .insider-ai-message-avatar svg {
    width: 16px;
    height: 16px;
  }
}
.insider-ai-messages .insider-ai-message.bot {
  justify-content: flex-start;
  margin-right: 60px;
}
.insider-ai-messages .insider-ai-message.bot.chart-message {
  margin-right: 5px !important;
  margin-left: 5px !important;
}
.insider-ai-messages .insider-ai-message.bot.chart-message .insider-ai-message-bubble {
  max-width: calc(100vw - 100px) !important;
  width: calc(100% - 20px) !important;
  min-width: 600px !important;
}
@media (max-width: 768px) {
  .insider-ai-messages .insider-ai-message.bot {
    margin-right: 20px;
  }
  .insider-ai-messages .insider-ai-message.bot.chart-message {
    margin-right: 3px !important;
    margin-left: 3px !important;
  }
  .insider-ai-messages .insider-ai-message.bot.chart-message .insider-ai-message-bubble {
    max-width: calc(100vw - 80px) !important;
    width: calc(100% - 10px) !important;
    min-width: 400px !important;
  }
}
.insider-ai-messages .insider-ai-message.bot .insider-ai-message-bubble {
  background: linear-gradient(135deg, #1a1a1a 0%, #1e1e1e 100%);
  color: #ffffff;
  border-radius: 20px 20px 20px 4px;
  padding: 12px 18px;
  margin-left: 12px;
  position: relative;
  border: 1px solid #3a3a3a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 320px;
  word-wrap: break-word;
}
.insider-ai-messages .insider-ai-message.bot .insider-ai-message-bubble:has(.chart-container),
.insider-ai-messages .insider-ai-message.bot .insider-ai-message-bubble:has(.markdown-table-container),
.insider-ai-messages .insider-ai-message.bot .insider-ai-message-bubble:has(.html-table-container),
.insider-ai-messages .insider-ai-message.bot .insider-ai-message-bubble:has(.table-container) {
  min-width: 620px;
  max-width: 800px;
}
@media (max-width: 768px) {
  .insider-ai-messages .insider-ai-message.bot .insider-ai-message-bubble {
    max-width: 260px;
    padding: 10px 14px;
  }
  .insider-ai-messages .insider-ai-message.bot .insider-ai-message-bubble:has(.chart-container),
  .insider-ai-messages .insider-ai-message.bot .insider-ai-message-bubble:has(.markdown-table-container),
  .insider-ai-messages .insider-ai-message.bot .insider-ai-message-bubble:has(.html-table-container),
  .insider-ai-messages .insider-ai-message.bot .insider-ai-message-bubble:has(.table-container) {
    min-width: calc(100vw - 100px);
    max-width: calc(100vw - 80px);
  }
}
@media (max-width: 480px) {
  .insider-ai-messages .insider-ai-message.bot .insider-ai-message-bubble {
    max-width: 240px;
  }
  .insider-ai-messages .insider-ai-message.bot .insider-ai-message-bubble:has(.chart-container),
  .insider-ai-messages .insider-ai-message.bot .insider-ai-message-bubble:has(.markdown-table-container),
  .insider-ai-messages .insider-ai-message.bot .insider-ai-message-bubble:has(.html-table-container),
  .insider-ai-messages .insider-ai-message.bot .insider-ai-message-bubble:has(.table-container) {
    min-width: calc(100vw - 60px);
    max-width: calc(100vw - 50px);
  }
}
.insider-ai-messages .insider-ai-message.bot .insider-ai-message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #282828;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.insider-ai-messages .insider-ai-message.bot .insider-ai-message-avatar .profile-picture {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
@media (max-width: 768px) {
  .insider-ai-messages .insider-ai-message.bot .insider-ai-message-avatar {
    width: 32px;
    height: 32px;
  }
}
.insider-ai-messages .insider-ai-message.bot .insider-ai-message-avatar svg {
  color: white;
  width: 18px;
  height: 18px;
}
@media (max-width: 768px) {
  .insider-ai-messages .insider-ai-message.bot .insider-ai-message-avatar svg {
    width: 16px;
    height: 16px;
  }
}
.insider-ai-messages .insider-ai-message.bot.error .insider-ai-message-bubble {
  background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
  color: white;
  border-color: #dc3545;
}
.insider-ai-messages .insider-ai-message.bot.error .insider-ai-message-bubble::after {
  border-top-color: #b02a37;
  border-right-color: #b02a37;
}
.insider-ai-messages .insider-ai-message.bot.loading .insider-ai-message-bubble {
  background: linear-gradient(135deg, #1a1a1a 0%, #1e1e1e 100%);
  border: 1px solid #3a3a3a;
}
.insider-ai-messages .insider-ai-message.bot.streaming .insider-ai-message-bubble {
  position: relative;
}
.insider-ai-messages .insider-ai-message.bot.streaming .insider-ai-message-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #4ECDC4 0%, #44B3D9 50%, #3B82F6 100%);
  background-size: 200% 200%;
  border-radius: inherit;
  z-index: -1;
  animation: streamingGlow 2s linear infinite;
  opacity: 0.6;
}
.insider-ai-messages .insider-ai-message.bot.streaming .insider-ai-message-bubble .insider-ai-message-text {
  position: relative;
}
.insider-ai-messages .insider-ai-message.bot.streaming .insider-ai-message-bubble .insider-ai-message-text::after {
  content: '▊';
  color: #4ECDC4;
  animation: streamingCursor 1s infinite;
  margin-left: 2px;
}
.insider-ai-messages .insider-ai-message-text {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 768px) {
  .insider-ai-messages .insider-ai-message-text {
    font-size: 13px;
  }
}
.insider-ai-messages .insider-ai-message-text .table-row {
  font-family: monospace;
  font-size: 12px;
  margin: 2px 0;
  white-space: pre;
}
.insider-ai-messages .insider-ai-message-timestamp {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 4px;
  text-align: center;
}
@media (max-width: 768px) {
  .insider-ai-messages .insider-ai-message-timestamp {
    font-size: 10px;
  }
}
.table-modal .table-modal-content .markdown-table-container,
.table-modal .table-modal-content .html-table-container {
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-height: none;
  overflow: visible;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table,
.table-modal .table-modal-content .html-table-container .markdown-table,
.table-modal .table-modal-content .markdown-table-container .html-table,
.table-modal .table-modal-content .html-table-container .html-table {
  font-size: 0.95em;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table th,
.table-modal .table-modal-content .html-table-container .markdown-table th,
.table-modal .table-modal-content .markdown-table-container .html-table th,
.table-modal .table-modal-content .html-table-container .html-table th {
  padding: 14px 18px;
  font-size: 0.9em;
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.25), rgba(74, 144, 226, 0.25));
  border-bottom: 2px solid rgba(78, 205, 196, 0.5);
}
.table-modal .table-modal-content .markdown-table-container .markdown-table td,
.table-modal .table-modal-content .html-table-container .markdown-table td,
.table-modal .table-modal-content .markdown-table-container .html-table td,
.table-modal .table-modal-content .html-table-container .html-table td {
  padding: 12px 18px;
  font-size: 0.9em;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table tr:hover,
.table-modal .table-modal-content .html-table-container .markdown-table tr:hover,
.table-modal .table-modal-content .markdown-table-container .html-table tr:hover,
.table-modal .table-modal-content .html-table-container .html-table tr:hover {
  background: rgba(78, 205, 196, 0.12);
}
.table-modal .table-modal-content .message-text-content .markdown-table-container,
.table-modal .table-modal-content .message-text-content .html-table-container {
  margin: 0;
  max-height: none;
}
.table-modal .table-modal-content .message-text-content .markdown-table-container table,
.table-modal .table-modal-content .message-text-content .html-table-container table {
  width: 100%;
  min-width: unset;
}
@media (max-width: 1200px) {
  .table-modal .table-modal-content .markdown-table-container .markdown-table,
  .table-modal .table-modal-content .html-table-container .markdown-table,
  .table-modal .table-modal-content .markdown-table-container .html-table,
  .table-modal .table-modal-content .html-table-container .html-table {
    font-size: 0.85em;
  }
  .table-modal .table-modal-content .markdown-table-container .markdown-table th,
  .table-modal .table-modal-content .html-table-container .markdown-table th,
  .table-modal .table-modal-content .markdown-table-container .html-table th,
  .table-modal .table-modal-content .html-table-container .html-table th,
  .table-modal .table-modal-content .markdown-table-container .markdown-table td,
  .table-modal .table-modal-content .html-table-container .markdown-table td,
  .table-modal .table-modal-content .markdown-table-container .html-table td,
  .table-modal .table-modal-content .html-table-container .html-table td {
    padding: 10px 14px;
  }
}
@media (max-width: 768px) {
  .table-modal .table-modal-content .markdown-table-container .markdown-table,
  .table-modal .table-modal-content .html-table-container .markdown-table,
  .table-modal .table-modal-content .markdown-table-container .html-table,
  .table-modal .table-modal-content .html-table-container .html-table {
    font-size: 0.8em;
  }
  .table-modal .table-modal-content .markdown-table-container .markdown-table th,
  .table-modal .table-modal-content .html-table-container .markdown-table th,
  .table-modal .table-modal-content .markdown-table-container .html-table th,
  .table-modal .table-modal-content .html-table-container .html-table th,
  .table-modal .table-modal-content .markdown-table-container .markdown-table td,
  .table-modal .table-modal-content .html-table-container .markdown-table td,
  .table-modal .table-modal-content .markdown-table-container .html-table td,
  .table-modal .table-modal-content .html-table-container .html-table td {
    padding: 8px 12px;
  }
}
.table-modal::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.table-modal::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.table-modal::-webkit-scrollbar-thumb {
  background: rgba(78, 205, 196, 0.6);
  border-radius: 4px;
}
.table-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 205, 196, 0.8);
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container {
  margin: 16px 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  overflow-x: auto;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table {
  font-size: 0.95em;
  width: 100%;
  table-layout: auto;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table th {
  padding: 16px 20px;
  font-size: 0.9em;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table td {
  padding: 14px 20px;
}
@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes streamingGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes streamingCursor {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}
.insider-ai-input-area {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: hsl(0 0% 7%);
  padding: 20px 20px 0 20px;
}
.insider-ai-input {
  display: flex;
  align-items: center;
  gap: 12px;
  background: hsl(0 0% 9%);
  border: 2px solid #3a3a3a;
  border-radius: 24px;
  padding: 4px 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.insider-ai-input:focus-within {
  border-color: #007bff;
  box-shadow: 0 4px 16px rgba(0, 123, 255, 0.2);
  transform: translateY(-1px);
}
.insider-ai-input .attach-btn {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  color: #b0b0b0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  order: 2;
}
.insider-ai-input .attach-btn:hover {
  background: rgba(74, 144, 226, 0.1);
  color: #007bff;
}
.insider-ai-input textarea {
  flex: 1;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  padding: 12px 0;
  font-size: 14px;
  resize: none;
  min-height: 20px;
  max-height: 80px;
  font-family: inherit;
  color: #ffffff;
  line-height: 1.5;
  order: 1;
}
.insider-ai-input textarea::placeholder {
  color: #808080;
}
.insider-ai-input textarea:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}
.insider-ai-input textarea:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}
.insider-ai-input textarea:disabled {
  color: #808080;
  cursor: not-allowed;
}
.insider-ai-input .send-button {
  background: linear-gradient(135deg, #4ECDC4 0%, #44B3D9 50%, #3B82F6 100%);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  order: 3;
}
.insider-ai-input .send-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #4ECDC4 0%, #44B3D9 50%, #3B82F6 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}
.insider-ai-input .send-button:active {
  transform: translateY(0) scale(0.95);
}
.insider-ai-input .send-button:disabled {
  background: #808080;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.5;
}
.table-modal .table-modal-content .markdown-table-container,
.table-modal .table-modal-content .html-table-container {
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-height: none;
  overflow: visible;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table,
.table-modal .table-modal-content .html-table-container .markdown-table,
.table-modal .table-modal-content .markdown-table-container .html-table,
.table-modal .table-modal-content .html-table-container .html-table {
  font-size: 0.95em;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table th,
.table-modal .table-modal-content .html-table-container .markdown-table th,
.table-modal .table-modal-content .markdown-table-container .html-table th,
.table-modal .table-modal-content .html-table-container .html-table th {
  padding: 14px 18px;
  font-size: 0.9em;
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.25), rgba(74, 144, 226, 0.25));
  border-bottom: 2px solid rgba(78, 205, 196, 0.5);
}
.table-modal .table-modal-content .markdown-table-container .markdown-table td,
.table-modal .table-modal-content .html-table-container .markdown-table td,
.table-modal .table-modal-content .markdown-table-container .html-table td,
.table-modal .table-modal-content .html-table-container .html-table td {
  padding: 12px 18px;
  font-size: 0.9em;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table tr:hover,
.table-modal .table-modal-content .html-table-container .markdown-table tr:hover,
.table-modal .table-modal-content .markdown-table-container .html-table tr:hover,
.table-modal .table-modal-content .html-table-container .html-table tr:hover {
  background: rgba(78, 205, 196, 0.12);
}
.table-modal .table-modal-content .message-text-content .markdown-table-container,
.table-modal .table-modal-content .message-text-content .html-table-container {
  margin: 0;
  max-height: none;
}
.table-modal .table-modal-content .message-text-content .markdown-table-container table,
.table-modal .table-modal-content .message-text-content .html-table-container table {
  width: 100%;
  min-width: unset;
}
@media (max-width: 1200px) {
  .table-modal .table-modal-content .markdown-table-container .markdown-table,
  .table-modal .table-modal-content .html-table-container .markdown-table,
  .table-modal .table-modal-content .markdown-table-container .html-table,
  .table-modal .table-modal-content .html-table-container .html-table {
    font-size: 0.85em;
  }
  .table-modal .table-modal-content .markdown-table-container .markdown-table th,
  .table-modal .table-modal-content .html-table-container .markdown-table th,
  .table-modal .table-modal-content .markdown-table-container .html-table th,
  .table-modal .table-modal-content .html-table-container .html-table th,
  .table-modal .table-modal-content .markdown-table-container .markdown-table td,
  .table-modal .table-modal-content .html-table-container .markdown-table td,
  .table-modal .table-modal-content .markdown-table-container .html-table td,
  .table-modal .table-modal-content .html-table-container .html-table td {
    padding: 10px 14px;
  }
}
@media (max-width: 768px) {
  .table-modal .table-modal-content .markdown-table-container .markdown-table,
  .table-modal .table-modal-content .html-table-container .markdown-table,
  .table-modal .table-modal-content .markdown-table-container .html-table,
  .table-modal .table-modal-content .html-table-container .html-table {
    font-size: 0.8em;
  }
  .table-modal .table-modal-content .markdown-table-container .markdown-table th,
  .table-modal .table-modal-content .html-table-container .markdown-table th,
  .table-modal .table-modal-content .markdown-table-container .html-table th,
  .table-modal .table-modal-content .html-table-container .html-table th,
  .table-modal .table-modal-content .markdown-table-container .markdown-table td,
  .table-modal .table-modal-content .html-table-container .markdown-table td,
  .table-modal .table-modal-content .markdown-table-container .html-table td,
  .table-modal .table-modal-content .html-table-container .html-table td {
    padding: 8px 12px;
  }
}
.table-modal::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.table-modal::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.table-modal::-webkit-scrollbar-thumb {
  background: rgba(78, 205, 196, 0.6);
  border-radius: 4px;
}
.table-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 205, 196, 0.8);
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container {
  margin: 16px 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  overflow-x: auto;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table {
  font-size: 0.95em;
  width: 100%;
  table-layout: auto;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table th {
  padding: 16px 20px;
  font-size: 0.9em;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table td {
  padding: 14px 20px;
}
.agent-footer {
  padding: 16px 20px;
}
.agent-footer .disclaimer {
  font-size: 12px;
  color: #808080;
  line-height: 1.4;
  text-align: center;
}
.sessions-list {
  background: #212121;
  color: #b0b0b0;
}
.sessions-list .section-header {
  padding: 16px 12px 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #808080;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sessions-list .session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  margin: 2px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sessions-list .session-item:hover {
  background: #2a2a2a;
}
.sessions-list .session-item.active {
  background: rgba(74, 144, 226, 0.15);
  color: #4A90E2;
  border-left: 3px solid #4A90E2;
}
.sessions-list .session-item .session-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.sessions-list .session-item .session-icon {
  color: #808080;
  flex-shrink: 0;
}
.sessions-list .session-item .session-icon.folder-icon {
  color: #4A90E2;
}
.sessions-list .session-item .session-info {
  flex: 1;
  min-width: 0;
}
.sessions-list .session-item .session-info .session-title {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sessions-list .session-item .session-info .session-meta {
  font-size: 12px;
  color: #808080;
  margin-top: 2px;
}
.sessions-list .session-item .dropdown-trigger {
  background: none;
  border: none;
  color: #808080;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  opacity: 0;
  transition: all 0.2s ease;
}
.sessions-list .session-item .dropdown-trigger:hover {
  color: #ffffff;
  background: #1a1a1a;
}
.sessions-list .session-item:hover .dropdown-trigger {
  opacity: 1;
}
.sessions-list .folder-content {
  margin-left: 20px;
  border-left: 1px solid #3a3a3a;
  padding-left: 12px;
}
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid #3a3a3a;
  background: hsl(0 0% 9%);
}
.sidebar-footer .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 14px;
  width: 100%;
}
.sidebar-footer .user-info .user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #4ECDC4 0%, #44B3D9 50%, #3B82F6 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}
.sidebar-footer .user-info .user-avatar .profile-picture {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.sidebar-footer .user-info .user-details {
  flex: 1;
  min-width: 0;
}
.sidebar-footer .user-info .user-details .user-name {
  margin: 0;
  font-weight: 500;
  font-size: 14px;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-footer .user-info .user-details .user-role {
  margin: 0;
  font-size: 12px;
  color: #b0b0b0;
  line-height: 1.2;
  margin-top: 2px;
}
.sidebar-footer .user-info .user-menu-button {
  background: none;
  border: none;
  color: #b0b0b0;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.sidebar-footer .user-info .user-menu-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}
.sidebar-footer .user-info .user-menu-button .w-16-h-16-f {
  width: 16px;
  height: 16px;
}
.sidebar-footer .message-renderer {
  width: 100%;
}
.sidebar-footer .message-renderer .status-message {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: 6px;
  color: #1976d2;
  font-size: 0.9em;
}
.sidebar-footer .message-renderer .status-message .status-indicator {
  flex-shrink: 0;
}
.sidebar-footer .message-renderer .status-message .status-indicator .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #90caf9;
  border-top: 2px solid #1976d2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.sidebar-footer .message-renderer .status-message .status-text {
  flex: 1;
  font-weight: 500;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.sidebar-footer .message-renderer .message-text-content {
  line-height: 1.5;
}
.sidebar-footer .message-renderer .message-text-content strong {
  font-weight: 600;
}
.sidebar-footer .message-renderer .message-text-content em {
  font-style: italic;
}
.sidebar-footer .message-renderer .message-text-content code {
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 4px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.9em;
}
.sidebar-footer .message-renderer .message-text-content a {
  color: #4A90E2;
  text-decoration: underline;
}
.sidebar-footer .message-renderer .message-text-content a:hover {
  color: #2275d7;
}
.sidebar-footer .message-renderer .chart-container {
  margin: 16px 0;
  border-radius: 8px;
  overflow: hidden;
  min-width: 700px !important;
  max-width: calc(100vw - 150px) !important;
  width: 98% !important;
}
.sidebar-footer .message-renderer .chart-container .chart-header {
  display: none;
}
.sidebar-footer .message-renderer .chart-container .chart-canvas-wrapper {
  padding: 10px;
  position: relative;
  height: 500px !important;
  border-radius: 8px;
}
.sidebar-footer .message-renderer .chart-container .chart-canvas-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}
.sidebar-footer .message-renderer .chart-container .chart-canvas-wrapper::before {
  display: none !important;
}
.sidebar-footer .message-renderer .chart-container .chart-metadata {
  text-align: center !important;
  color: #ffffff !important;
}
.sidebar-footer .message-renderer .chart-container .chart-debug {
  padding: 8px 20px;
  background: rgba(255, 193, 7, 0.1);
  border-top: 1px solid rgba(255, 193, 7, 0.2);
  font-family: 'Consolas', monospace;
  font-size: 11px;
  color: #ffc107;
  text-align: left;
}
.sidebar-footer .message-renderer .message-renderer.chart-message .chart-container {
  min-width: 700px !important;
  max-width: calc(100vw - 80px) !important;
  width: 98% !important;
}
@media (max-width: 1400px) {
  .sidebar-footer .message-renderer .message-renderer.chart-message .chart-container {
    max-width: calc(100vw - 60px) !important;
    min-width: 600px !important;
  }
}
@media (max-width: 1200px) {
  .sidebar-footer .message-renderer .message-renderer.chart-message .chart-container {
    max-width: calc(100vw - 50px) !important;
    min-width: 550px !important;
  }
}
@media (max-width: 768px) {
  .sidebar-footer .message-renderer .message-renderer.chart-message .chart-container {
    max-width: calc(100vw - 40px) !important;
    min-width: 500px !important;
  }
}
@media (max-width: 480px) {
  .sidebar-footer .message-renderer .message-renderer.chart-message .chart-container {
    max-width: calc(100vw - 30px) !important;
    min-width: 450px !important;
  }
}
.sidebar-footer .message-renderer .analysis-container {
  margin: 16px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(30, 30, 30, 0.95));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(40, 167, 69, 0.1);
  backdrop-filter: blur(10px);
}
.sidebar-footer .message-renderer .analysis-container .analysis-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(34, 197, 94, 0.1));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  color: #ffffff;
  font-size: 0.95em;
}
.sidebar-footer .message-renderer .analysis-container .analysis-header svg {
  color: #22c55e;
  filter: drop-shadow(0 2px 4px rgba(34, 197, 94, 0.3));
}
.sidebar-footer .message-renderer .analysis-container .analysis-summary {
  padding: 20px;
}
.sidebar-footer .message-renderer .analysis-container .analysis-summary h4 {
  margin: 0 0 16px 0;
  font-size: 1.15em;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
}
.sidebar-footer .message-renderer .analysis-container .analysis-summary .analysis-insight {
  margin: 12px 0;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(40, 167, 69, 0.1));
  border-left: 4px solid #22c55e;
  border-radius: 0 8px 8px 0;
  transition: all 0.3s ease;
}
.sidebar-footer .message-renderer .analysis-container .analysis-summary .analysis-insight:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(40, 167, 69, 0.15));
  transform: translateX(4px);
}
.sidebar-footer .message-renderer .analysis-container .analysis-summary .analysis-insight .insight-text {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}
.sidebar-footer .message-renderer .analysis-container .analysis-details {
  padding: 0 20px 20px;
}
.sidebar-footer .message-renderer .analysis-container .analysis-details .analysis-field {
  margin-bottom: 20px;
}
.sidebar-footer .message-renderer .analysis-container .analysis-details .analysis-field h5 {
  margin: 0 0 12px 0;
  font-size: 1.05em;
  font-weight: 600;
  color: #ffffff;
  text-transform: capitalize;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(34, 197, 94, 0.3);
  display: inline-block;
}
.sidebar-footer .message-renderer .analysis-container .analysis-details .analysis-field .field-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.sidebar-footer .message-renderer .analysis-container .analysis-details .analysis-field .field-stats .stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.9em;
  transition: all 0.2s ease;
}
.sidebar-footer .message-renderer .analysis-container .analysis-details .analysis-field .field-stats .stat-item:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(40, 167, 69, 0.08));
  border-color: rgba(34, 197, 94, 0.3);
}
.sidebar-footer .message-renderer .analysis-container .analysis-details .analysis-field .field-stats .stat-item .stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sidebar-footer .message-renderer .analysis-container .analysis-details .analysis-field .field-stats .stat-item .stat-value {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.sidebar-footer .message-renderer .analysis-container .analysis-metadata {
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(30, 30, 30, 0.8));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-weight: 500;
}
.sidebar-footer .message-renderer .report-container {
  margin: 16px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(30, 30, 30, 0.95));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(255, 152, 0, 0.1);
  backdrop-filter: blur(10px);
}
.sidebar-footer .message-renderer .report-container .report-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 193, 7, 0.1));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  color: #ffffff;
  font-size: 0.95em;
}
.sidebar-footer .message-renderer .report-container .report-header svg {
  color: #ffc107;
  filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3));
}
.sidebar-footer .message-renderer .report-container .report-info {
  padding: 20px;
}
.sidebar-footer .message-renderer .report-container .report-info h4 {
  margin: 0 0 16px 0;
  font-size: 1.15em;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
}
.sidebar-footer .message-renderer .report-container .report-info .report-details .detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  padding: 8px 0;
  font-size: 0.9em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.sidebar-footer .message-renderer .report-container .report-info .report-details .detail-item:last-child {
  border-bottom: none;
}
.sidebar-footer .message-renderer .report-container .report-info .report-details .detail-item .detail-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.8em;
}
.sidebar-footer .message-renderer .report-container .report-info .report-details .detail-item .detail-value {
  color: #ffffff;
  font-weight: 600;
}
.sidebar-footer .message-renderer .report-container .report-actions {
  padding: 0 20px 20px;
  text-align: center;
}
.sidebar-footer .message-renderer .report-container .report-actions .download-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #4A90E2, #357ABD);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.9em;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(74, 144, 226, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sidebar-footer .message-renderer .report-container .report-actions .download-button:hover {
  background: linear-gradient(135deg, #357ABD, #2B5797);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}
.sidebar-footer .message-renderer .report-container .report-actions .download-button svg {
  width: 18px;
  height: 18px;
}
.sidebar-footer .message-renderer .report-container .report-preview {
  padding: 0 20px 20px;
}
.sidebar-footer .message-renderer .report-container .report-preview h5 {
  margin: 20px 0 12px 0;
  font-size: 1em;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}
.sidebar-footer .message-renderer .report-container .report-preview .preview-content {
  max-height: 220px;
  overflow-y: auto;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.85em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}
.sidebar-footer .message-renderer .report-container .report-preview .preview-content::-webkit-scrollbar {
  width: 4px;
}
.sidebar-footer .message-renderer .report-container .report-preview .preview-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}
.sidebar-footer .message-renderer .report-container .report-preview .preview-content::-webkit-scrollbar-thumb {
  background: rgba(255, 193, 7, 0.6);
  border-radius: 2px;
}
.sidebar-footer .message-renderer .report-container .report-metadata {
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(30, 30, 30, 0.8));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-weight: 500;
}
.sidebar-footer .message-renderer .table-container {
  margin: 16px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(30, 30, 30, 0.95));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(74, 144, 226, 0.1);
  backdrop-filter: blur(10px);
}
.sidebar-footer .message-renderer .table-container .table-wrapper {
  max-height: 320px;
  overflow: auto;
}
.sidebar-footer .message-renderer .table-container .table-wrapper::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.sidebar-footer .message-renderer .table-container .table-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}
.sidebar-footer .message-renderer .table-container .table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(78, 205, 196, 0.6);
  border-radius: 3px;
}
.sidebar-footer .message-renderer .table-container .table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 205, 196, 0.8);
}
.sidebar-footer .message-renderer .table-container .table-wrapper .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}
.sidebar-footer .message-renderer .table-container .table-wrapper .data-table th {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(74, 144, 226, 0.15));
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  color: #ffffff;
  border-bottom: 2px solid rgba(78, 205, 196, 0.3);
  position: sticky;
  top: 0;
  z-index: 10;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sidebar-footer .message-renderer .table-container .table-wrapper .data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  vertical-align: middle;
  transition: all 0.2s ease;
}
.sidebar-footer .message-renderer .table-container .table-wrapper .data-table tr:hover {
  background: rgba(78, 205, 196, 0.08);
}
.sidebar-footer .message-renderer .table-container .table-wrapper .data-table tr:hover td {
  color: #ffffff;
}
.sidebar-footer .message-renderer .table-container .table-wrapper .data-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}
.sidebar-footer .message-renderer .table-container .table-footer {
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(30, 30, 30, 0.8));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-weight: 500;
}
.sidebar-footer .message-renderer .no-data {
  text-align: center;
  padding: 32px 20px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  font-size: 0.9em;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin: 16px 0;
}
@media (max-width: 768px) {
  .sidebar-footer .message-renderer .chart-container .chart-canvas-wrapper {
    height: 250px;
  }
  .sidebar-footer .message-renderer .analysis-details .field-stats {
    grid-template-columns: 1fr;
  }
  .sidebar-footer .message-renderer .table-container .table-wrapper {
    max-height: 200px;
  }
}
.table-modal .table-modal-content .markdown-table-container,
.table-modal .table-modal-content .html-table-container {
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-height: none;
  overflow: visible;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table,
.table-modal .table-modal-content .html-table-container .markdown-table,
.table-modal .table-modal-content .markdown-table-container .html-table,
.table-modal .table-modal-content .html-table-container .html-table {
  font-size: 0.95em;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table th,
.table-modal .table-modal-content .html-table-container .markdown-table th,
.table-modal .table-modal-content .markdown-table-container .html-table th,
.table-modal .table-modal-content .html-table-container .html-table th {
  padding: 14px 18px;
  font-size: 0.9em;
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.25), rgba(74, 144, 226, 0.25));
  border-bottom: 2px solid rgba(78, 205, 196, 0.5);
}
.table-modal .table-modal-content .markdown-table-container .markdown-table td,
.table-modal .table-modal-content .html-table-container .markdown-table td,
.table-modal .table-modal-content .markdown-table-container .html-table td,
.table-modal .table-modal-content .html-table-container .html-table td {
  padding: 12px 18px;
  font-size: 0.9em;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table tr:hover,
.table-modal .table-modal-content .html-table-container .markdown-table tr:hover,
.table-modal .table-modal-content .markdown-table-container .html-table tr:hover,
.table-modal .table-modal-content .html-table-container .html-table tr:hover {
  background: rgba(78, 205, 196, 0.12);
}
.table-modal .table-modal-content .message-text-content .markdown-table-container,
.table-modal .table-modal-content .message-text-content .html-table-container {
  margin: 0;
  max-height: none;
}
.table-modal .table-modal-content .message-text-content .markdown-table-container table,
.table-modal .table-modal-content .message-text-content .html-table-container table {
  width: 100%;
  min-width: unset;
}
@media (max-width: 1200px) {
  .table-modal .table-modal-content .markdown-table-container .markdown-table,
  .table-modal .table-modal-content .html-table-container .markdown-table,
  .table-modal .table-modal-content .markdown-table-container .html-table,
  .table-modal .table-modal-content .html-table-container .html-table {
    font-size: 0.85em;
  }
  .table-modal .table-modal-content .markdown-table-container .markdown-table th,
  .table-modal .table-modal-content .html-table-container .markdown-table th,
  .table-modal .table-modal-content .markdown-table-container .html-table th,
  .table-modal .table-modal-content .html-table-container .html-table th,
  .table-modal .table-modal-content .markdown-table-container .markdown-table td,
  .table-modal .table-modal-content .html-table-container .markdown-table td,
  .table-modal .table-modal-content .markdown-table-container .html-table td,
  .table-modal .table-modal-content .html-table-container .html-table td {
    padding: 10px 14px;
  }
}
@media (max-width: 768px) {
  .table-modal .table-modal-content .markdown-table-container .markdown-table,
  .table-modal .table-modal-content .html-table-container .markdown-table,
  .table-modal .table-modal-content .markdown-table-container .html-table,
  .table-modal .table-modal-content .html-table-container .html-table {
    font-size: 0.8em;
  }
  .table-modal .table-modal-content .markdown-table-container .markdown-table th,
  .table-modal .table-modal-content .html-table-container .markdown-table th,
  .table-modal .table-modal-content .markdown-table-container .html-table th,
  .table-modal .table-modal-content .html-table-container .html-table th,
  .table-modal .table-modal-content .markdown-table-container .markdown-table td,
  .table-modal .table-modal-content .html-table-container .markdown-table td,
  .table-modal .table-modal-content .markdown-table-container .html-table td,
  .table-modal .table-modal-content .html-table-container .html-table td {
    padding: 8px 12px;
  }
}
.table-modal::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.table-modal::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.table-modal::-webkit-scrollbar-thumb {
  background: rgba(78, 205, 196, 0.6);
  border-radius: 4px;
}
.table-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 205, 196, 0.8);
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container {
  margin: 16px 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  overflow-x: auto;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table {
  font-size: 0.95em;
  width: 100%;
  table-layout: auto;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table th {
  padding: 16px 20px;
  font-size: 0.9em;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table td {
  padding: 14px 20px;
}
.message-renderer {
  width: 100%;
}
.message-renderer.streaming .chart-container,
.message-renderer.streaming .table-container,
.message-renderer.streaming .analysis-container,
.message-renderer.streaming .report-container {
  animation: contentFadeIn 0.5s ease-in-out;
}
.message-renderer .message-text-content {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}
.message-renderer .message-text-content strong {
  color: #ffffff;
  font-weight: 600;
}
.message-renderer .message-text-content em {
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}
.message-renderer .message-text-content code {
  background: rgba(78, 205, 196, 0.1);
  color: #4ECDC4;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Consolas', monospace;
  font-size: 0.9em;
}
.message-renderer .message-text-content a {
  color: #4A90E2;
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 144, 226, 0.3);
  transition: all 0.2s ease;
}
.message-renderer .message-text-content a:hover {
  color: #357ABD;
  border-bottom-color: rgba(53, 122, 189, 0.6);
}
.message-renderer .message-text-content .markdown-table-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(26, 26, 26, 0.95));
}
.message-renderer .message-text-content .markdown-table-container .markdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}
.message-renderer .message-text-content .markdown-table-container .markdown-table th {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), rgba(74, 144, 226, 0.2));
  color: #ffffff;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid rgba(78, 205, 196, 0.4);
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.message-renderer .message-text-content .markdown-table-container .markdown-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  vertical-align: top;
  transition: all 0.2s ease;
}
.message-renderer .message-text-content .markdown-table-container .markdown-table tr:hover {
  background: rgba(78, 205, 196, 0.08);
}
.message-renderer .message-text-content .markdown-table-container .markdown-table tr:hover td {
  color: #ffffff;
}
.message-renderer .message-text-content .markdown-table-container .markdown-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}
.message-renderer .message-text-content .html-table-container {
  margin: 0 0 16px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(26, 26, 26, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.message-renderer .message-text-content .html-table-container .html-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}
.message-renderer .message-text-content .html-table-container .html-table th {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(255, 193, 7, 0.2));
  color: #ffffff;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid rgba(255, 193, 7, 0.4);
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.message-renderer .message-text-content .html-table-container .html-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  vertical-align: top;
  transition: all 0.2s ease;
}
.message-renderer .message-text-content .html-table-container .html-table tr:hover {
  background: rgba(255, 152, 0, 0.08);
}
.message-renderer .message-text-content .html-table-container .html-table tr:hover td {
  color: #ffffff;
}
.message-renderer .message-text-content .html-table-container .html-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}
@media (max-width: 768px) {
  .message-renderer .message-text-content .markdown-table-container,
  .message-renderer .message-text-content .html-table-container {
    overflow-x: auto;
  }
  .message-renderer .message-text-content .markdown-table-container table,
  .message-renderer .message-text-content .html-table-container table {
    min-width: 400px;
    font-size: 0.8em;
  }
  .message-renderer .message-text-content .markdown-table-container th,
  .message-renderer .message-text-content .html-table-container th,
  .message-renderer .message-text-content .markdown-table-container td,
  .message-renderer .message-text-content .html-table-container td {
    padding: 8px 12px;
    font-size: 0.8em;
  }
}
@media (max-width: 480px) {
  .message-renderer .message-text-content .markdown-table-container table,
  .message-renderer .message-text-content .html-table-container table {
    min-width: 300px;
    font-size: 0.75em;
  }
  .message-renderer .message-text-content .markdown-table-container th,
  .message-renderer .message-text-content .html-table-container th,
  .message-renderer .message-text-content .markdown-table-container td,
  .message-renderer .message-text-content .html-table-container td {
    padding: 6px 8px;
    font-size: 0.75em;
  }
}
.message-renderer .status-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: rgba(78, 205, 196, 0.08);
  border: 1px solid rgba(78, 205, 196, 0.2);
  border-radius: 8px;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.8);
}
.message-renderer .status-message .status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
}
.message-renderer .status-message .status-indicator .spinner {
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  border-top: 2px solid #4ECDC4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.message-renderer .status-message .status-text {
  flex: 1;
  font-weight: 500;
}
.table-modal .table-modal-content .markdown-table-container,
.table-modal .table-modal-content .html-table-container {
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-height: none;
  overflow: visible;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table,
.table-modal .table-modal-content .html-table-container .markdown-table,
.table-modal .table-modal-content .markdown-table-container .html-table,
.table-modal .table-modal-content .html-table-container .html-table {
  font-size: 0.95em;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table th,
.table-modal .table-modal-content .html-table-container .markdown-table th,
.table-modal .table-modal-content .markdown-table-container .html-table th,
.table-modal .table-modal-content .html-table-container .html-table th {
  padding: 14px 18px;
  font-size: 0.9em;
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.25), rgba(74, 144, 226, 0.25));
  border-bottom: 2px solid rgba(78, 205, 196, 0.5);
}
.table-modal .table-modal-content .markdown-table-container .markdown-table td,
.table-modal .table-modal-content .html-table-container .markdown-table td,
.table-modal .table-modal-content .markdown-table-container .html-table td,
.table-modal .table-modal-content .html-table-container .html-table td {
  padding: 12px 18px;
  font-size: 0.9em;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table tr:hover,
.table-modal .table-modal-content .html-table-container .markdown-table tr:hover,
.table-modal .table-modal-content .markdown-table-container .html-table tr:hover,
.table-modal .table-modal-content .html-table-container .html-table tr:hover {
  background: rgba(78, 205, 196, 0.12);
}
.table-modal .table-modal-content .message-text-content .markdown-table-container,
.table-modal .table-modal-content .message-text-content .html-table-container {
  margin: 0;
  max-height: none;
}
.table-modal .table-modal-content .message-text-content .markdown-table-container table,
.table-modal .table-modal-content .message-text-content .html-table-container table {
  width: 100%;
  min-width: unset;
}
@media (max-width: 1200px) {
  .table-modal .table-modal-content .markdown-table-container .markdown-table,
  .table-modal .table-modal-content .html-table-container .markdown-table,
  .table-modal .table-modal-content .markdown-table-container .html-table,
  .table-modal .table-modal-content .html-table-container .html-table {
    font-size: 0.85em;
  }
  .table-modal .table-modal-content .markdown-table-container .markdown-table th,
  .table-modal .table-modal-content .html-table-container .markdown-table th,
  .table-modal .table-modal-content .markdown-table-container .html-table th,
  .table-modal .table-modal-content .html-table-container .html-table th,
  .table-modal .table-modal-content .markdown-table-container .markdown-table td,
  .table-modal .table-modal-content .html-table-container .markdown-table td,
  .table-modal .table-modal-content .markdown-table-container .html-table td,
  .table-modal .table-modal-content .html-table-container .html-table td {
    padding: 10px 14px;
  }
}
@media (max-width: 768px) {
  .table-modal .table-modal-content .markdown-table-container .markdown-table,
  .table-modal .table-modal-content .html-table-container .markdown-table,
  .table-modal .table-modal-content .markdown-table-container .html-table,
  .table-modal .table-modal-content .html-table-container .html-table {
    font-size: 0.8em;
  }
  .table-modal .table-modal-content .markdown-table-container .markdown-table th,
  .table-modal .table-modal-content .html-table-container .markdown-table th,
  .table-modal .table-modal-content .markdown-table-container .html-table th,
  .table-modal .table-modal-content .html-table-container .html-table th,
  .table-modal .table-modal-content .markdown-table-container .markdown-table td,
  .table-modal .table-modal-content .html-table-container .markdown-table td,
  .table-modal .table-modal-content .markdown-table-container .html-table td,
  .table-modal .table-modal-content .html-table-container .html-table td {
    padding: 8px 12px;
  }
}
.table-modal::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.table-modal::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.table-modal::-webkit-scrollbar-thumb {
  background: rgba(78, 205, 196, 0.6);
  border-radius: 4px;
}
.table-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 205, 196, 0.8);
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container {
  margin: 16px 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  overflow-x: auto;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table {
  font-size: 0.95em;
  width: 100%;
  table-layout: auto;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table th {
  padding: 16px 20px;
  font-size: 0.9em;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table td {
  padding: 14px 20px;
}
@keyframes contentFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 480px) {
  .message-renderer .chart-container .chart-header {
    padding: 12px 16px;
    font-size: 0.9em;
  }
  .message-renderer .chart-container .chart-canvas-wrapper {
    padding: 16px 12px;
    height: 280px;
  }
  .message-renderer .table-container .table-wrapper {
    max-height: 180px;
  }
  .message-renderer .table-container .table-wrapper .data-table {
    font-size: 0.8em;
  }
  .message-renderer .table-container .table-wrapper .data-table th {
    padding: 10px 12px;
    font-size: 0.75em;
  }
  .message-renderer .table-container .table-wrapper .data-table td {
    padding: 8px 12px;
  }
  .message-renderer .analysis-container .analysis-details .field-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .message-renderer .report-container .report-actions .download-button {
    padding: 12px 20px;
    font-size: 0.85em;
  }
}
.table-modal .table-modal-content .markdown-table-container,
.table-modal .table-modal-content .html-table-container {
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-height: none;
  overflow: visible;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table,
.table-modal .table-modal-content .html-table-container .markdown-table,
.table-modal .table-modal-content .markdown-table-container .html-table,
.table-modal .table-modal-content .html-table-container .html-table {
  font-size: 0.95em;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table th,
.table-modal .table-modal-content .html-table-container .markdown-table th,
.table-modal .table-modal-content .markdown-table-container .html-table th,
.table-modal .table-modal-content .html-table-container .html-table th {
  padding: 14px 18px;
  font-size: 0.9em;
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.25), rgba(74, 144, 226, 0.25));
  border-bottom: 2px solid rgba(78, 205, 196, 0.5);
}
.table-modal .table-modal-content .markdown-table-container .markdown-table td,
.table-modal .table-modal-content .html-table-container .markdown-table td,
.table-modal .table-modal-content .markdown-table-container .html-table td,
.table-modal .table-modal-content .html-table-container .html-table td {
  padding: 12px 18px;
  font-size: 0.9em;
}
.table-modal .table-modal-content .markdown-table-container .markdown-table tr:hover,
.table-modal .table-modal-content .html-table-container .markdown-table tr:hover,
.table-modal .table-modal-content .markdown-table-container .html-table tr:hover,
.table-modal .table-modal-content .html-table-container .html-table tr:hover {
  background: rgba(78, 205, 196, 0.12);
}
.table-modal .table-modal-content .message-text-content .markdown-table-container,
.table-modal .table-modal-content .message-text-content .html-table-container {
  margin: 0;
  max-height: none;
}
.table-modal .table-modal-content .message-text-content .markdown-table-container table,
.table-modal .table-modal-content .message-text-content .html-table-container table {
  width: 100%;
  min-width: unset;
}
@media (max-width: 1200px) {
  .table-modal .table-modal-content .markdown-table-container .markdown-table,
  .table-modal .table-modal-content .html-table-container .markdown-table,
  .table-modal .table-modal-content .markdown-table-container .html-table,
  .table-modal .table-modal-content .html-table-container .html-table {
    font-size: 0.85em;
  }
  .table-modal .table-modal-content .markdown-table-container .markdown-table th,
  .table-modal .table-modal-content .html-table-container .markdown-table th,
  .table-modal .table-modal-content .markdown-table-container .html-table th,
  .table-modal .table-modal-content .html-table-container .html-table th,
  .table-modal .table-modal-content .markdown-table-container .markdown-table td,
  .table-modal .table-modal-content .html-table-container .markdown-table td,
  .table-modal .table-modal-content .markdown-table-container .html-table td,
  .table-modal .table-modal-content .html-table-container .html-table td {
    padding: 10px 14px;
  }
}
@media (max-width: 768px) {
  .table-modal .table-modal-content .markdown-table-container .markdown-table,
  .table-modal .table-modal-content .html-table-container .markdown-table,
  .table-modal .table-modal-content .markdown-table-container .html-table,
  .table-modal .table-modal-content .html-table-container .html-table {
    font-size: 0.8em;
  }
  .table-modal .table-modal-content .markdown-table-container .markdown-table th,
  .table-modal .table-modal-content .html-table-container .markdown-table th,
  .table-modal .table-modal-content .markdown-table-container .html-table th,
  .table-modal .table-modal-content .html-table-container .html-table th,
  .table-modal .table-modal-content .markdown-table-container .markdown-table td,
  .table-modal .table-modal-content .html-table-container .markdown-table td,
  .table-modal .table-modal-content .markdown-table-container .html-table td,
  .table-modal .table-modal-content .html-table-container .html-table td {
    padding: 8px 12px;
  }
}
.table-modal::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.table-modal::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.table-modal::-webkit-scrollbar-thumb {
  background: rgba(78, 205, 196, 0.6);
  border-radius: 4px;
}
.table-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 205, 196, 0.8);
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container {
  margin: 16px 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  overflow-x: auto;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table {
  font-size: 0.95em;
  width: 100%;
  table-layout: auto;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table th,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table th {
  padding: 16px 20px;
  font-size: 0.9em;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .markdown-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .markdown-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .markdown-table-container .html-table td,
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble .html-table-container .html-table td {
  padding: 14px 20px;
}
.insider-ai-message.chart-expanded.bot .insider-ai-message-bubble {
  max-width: none !important;
  width: 100% !important;
  overflow: hidden !important;
}
.support-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 16px;
  border: none;
  border-radius: 50%;
  background-color: #354052;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 25000;
  transition: background-color 0.3s ease;
}
.support-button svg {
  display: block;
}
.support-button .notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: red;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px white;
}
/**
 * WelcomeModal Styles
 * Estilos para modal de boas-vindas do InsiderAI
 */
.welcome-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.welcome-modal-container {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid #3a3a3a;
  animation: slideUp 0.3s ease-out;
  position: relative;
}
@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.welcome-modal-header {
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.welcome-modal-header-content {
  display: flex;
  align-items: center;
  gap: 14px;
}
.welcome-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.welcome-modal-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
  flex-shrink: 0;
}
.welcome-modal-avatar .avatar-icon {
  width: 24px;
  height: 24px;
  color: #ffffff;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.welcome-modal-close {
  background: none;
  border: none;
  color: #b0b0b0;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.welcome-modal-close:hover {
  background-color: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}
.welcome-modal-close:active {
  transform: scale(0.95);
}
.welcome-modal-content {
  padding: 40px 25px 25px;
}
.welcome-modal-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.welcome-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: messageSlideIn 0.4s ease-out;
}
.welcome-message .message-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  transition: transform 0.3s ease;
}
.welcome-message .message-icon.typing {
  animation: iconPulse 1.5s ease-in-out infinite;
}
.welcome-message .message-bubble {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  color: #ffffff;
  display: inline-block;
  max-width: 100%;
}
.welcome-message .message-bubble p {
  margin: 0;
  line-height: 1.5;
  font-size: 15px;
}
.welcome-message .message-bubble .typing-cursor {
  display: inline-block;
  margin-left: 2px;
  font-weight: 400;
  animation: blink 0.8s step-end infinite;
  color: #4ecdc4;
}
.welcome-message .message-bubble .examples-title {
  font-weight: 600;
  margin-bottom: 12px;
  color: #4ecdc4;
}
.welcome-message .message-bubble .examples-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.welcome-message .message-bubble .examples-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background-color: rgba(78, 205, 196, 0.1);
  border-radius: 8px;
  border-left: 3px solid #4ecdc4;
  transition: all 0.2s ease;
}
.welcome-message .message-bubble .examples-list li:hover {
  background-color: rgba(78, 205, 196, 0.15);
  transform: translateX(4px);
}
.welcome-message .message-bubble .examples-list li svg {
  color: #4ecdc4;
  flex-shrink: 0;
  margin-top: 2px;
}
.welcome-message .message-bubble .examples-list li span {
  font-size: 14px;
  line-height: 1.5;
  color: #e0e0e0;
}
@keyframes messageSlideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes choiceFadeIn {
  from {
    transform: translateY(15px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.welcome-modal-choice-section {
  margin-top: 40px;
  animation: choiceFadeIn 0.6s ease-out forwards;
}
.welcome-modal-question {
  text-align: center;
  margin-bottom: 16px;
}
.welcome-modal-question p {
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}
.welcome-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.welcome-btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  flex: 1;
  white-space: nowrap;
}
.welcome-btn:active {
  transform: scale(0.98);
}
.welcome-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.welcome-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.welcome-btn-primary:hover {
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
  transform: translateY(-2px);
}
.welcome-btn-secondary {
  background-color: #3a3a3a;
  color: #e0e0e0;
  border: 1px solid #555555;
}
.welcome-btn-secondary:hover {
  background-color: #4a4a4a;
  border-color: #666666;
}
.welcome-btn-full {
  width: 100%;
}
.welcome-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 0 0 16px 16px;
  display: flex;
  align-items: center;
}
.welcome-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.welcome-checkbox-label span {
  color: #b0b0b0;
  font-size: 14px;
}
.welcome-checkbox-label:hover span {
  color: #e0e0e0;
}
.welcome-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #667eea;
}
/* Responsividade Mobile */
@media (max-width: 640px) {
  .welcome-modal-backdrop {
    padding: 10px;
  }
  .welcome-modal-container {
    max-width: 100%;
    border-radius: 12px;
  }
  .welcome-modal-header {
    padding: 14px 16px 10px;
  }
  .welcome-modal-header-content {
    gap: 10px;
  }
  .welcome-modal-title {
    font-size: 16px;
  }
  .welcome-modal-avatar {
    width: 44px;
    height: 44px;
  }
  .welcome-modal-avatar .avatar-icon {
    width: 22px;
    height: 22px;
  }
  .welcome-modal-content {
    padding: 16px;
  }
  .welcome-modal-messages {
    margin-bottom: 16px;
  }
  .welcome-message .message-icon {
    width: 32px;
    height: 32px;
  }
  .welcome-message .message-bubble {
    padding: 12px 14px;
  }
  .welcome-message .message-bubble p {
    font-size: 14px;
  }
  .welcome-message .message-bubble .examples-list li {
    padding: 8px;
  }
  .welcome-message .message-bubble .examples-list li span {
    font-size: 13px;
  }
  .welcome-modal-question p {
    font-size: 15px;
  }
  .welcome-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  .welcome-modal-footer {
    padding: 12px 16px;
  }
}
/* Scrollbar customizada */
.welcome-modal-container::-webkit-scrollbar {
  width: 8px;
}
.welcome-modal-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.welcome-modal-container::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.6);
  border-radius: 4px;
}
.welcome-modal-container::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.8);
}
