/* iCRM Styles */

.icrm-container {
  display: flex !important;
  flex-direction: column;
  height: 100vh !important;
  width: 100% !important;
  background: #ffffff;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.icrm-header {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  gap: 16px;
}

.icrm-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.icrm-header-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.icrm-header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
}

.icrm-header-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.icrm-menu-separator {
  width: 1px;
  height: 24px;
  background: #e5e7eb;
  margin: 0 4px;
  flex-shrink: 0;
}

.icrm-notification-badge {
  display: none !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 2px;
  right: -2px;
  background: #ef4444 !important;
  color: white !important;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  min-width: 8px;
  padding: 0;
  box-shadow: 0 0 0 2px white;
  z-index: 1000;
  pointer-events: none;
  transition: all 0.2s;
  font-size: 0;
  line-height: 0;
  visibility: visible;
  opacity: 1;
}

/* When badge has number (count > 1), expand to show it */
.icrm-notification-badge[data-count]:not([data-count="1"]) {
  width: auto;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  border-radius: 8px;
  top: 0px;
  right: -4px;
}

.icrm-menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
}

.icrm-menu-item:hover {
  background: #f3f4f6;
  color: #111827;
}

.icrm-menu-item.active {
  background: #eff6ff;
  color: #2563eb;
}

.icrm-menu-item i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
}

.icrm-menu-item span {
  display: none;
}

.icrm-view-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid #e5e7eb;
}

.icrm-view-tabs .icrm-tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.icrm-view-tabs .icrm-tab-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.icrm-view-tabs .icrm-tab-btn.active {
  background: #eff6ff;
  color: #2563eb;
}

.icrm-view-tabs .icrm-tab-btn i {
  width: 16px;
  height: 16px;
}

.icrm-view-tabs .icrm-tab-btn span {
  line-height: 1;
}

.icrm-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icrm-header-btn {
  padding: 8px;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.2s;
}

.icrm-header-btn:hover {
  background: #f3f4f6;
  color: #111827;
  border-color: #d1d5db;
}

.icrm-main-content {
  flex: 1;
  display: flex !important;
  overflow: hidden;
  min-height: 0; /* Important for flex children */
  position: relative;
}

/* Left Sidebar - Collapsible */
.icrm-left-sidebar {
  width: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  flex-shrink: 0;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  overflow: visible; /* Changed from hidden to visible so icons can be clicked */
  transition: width 0.3s ease, min-width 0.3s ease, max-width 0.3s ease;
  position: relative;
  z-index: 1;
}

.icrm-left-sidebar.expanded {
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  overflow: hidden; /* Hide overflow when expanded */
}

/* Right Sidebar - Collapsible */
.icrm-right-sidebar {
  width: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  flex-shrink: 0;
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
  overflow: visible; /* Changed from hidden to visible so icons can be clicked */
  transition: width 0.3s ease, min-width 0.3s ease, max-width 0.3s ease;
  position: relative;
  z-index: 1;
}

.icrm-right-sidebar.expanded {
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  overflow: hidden; /* Hide overflow when expanded */
}

/* Sidebar header - collapsed state (logo) */
.icrm-sidebar-header-collapsed {
  position: absolute;
  top: 12px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 64px;
  height: 40px;
  z-index: 20;
  background: transparent;
}

.icrm-left-sidebar .icrm-sidebar-header-collapsed {
  left: 0;
  right: auto;
  justify-content: center;
}

.icrm-left-sidebar.expanded .icrm-sidebar-header-collapsed {
  width: 64px;
  justify-content: center;
  left: 0;
  right: auto;
}

.icrm-right-sidebar .icrm-sidebar-header-collapsed {
  right: 0;
  left: auto;
  justify-content: center;
}

.icrm-right-sidebar.expanded .icrm-sidebar-header-collapsed {
  width: 64px;
  justify-content: center;
  right: 0;
  left: auto;
}

.icrm-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Sidebar icons - vertical (collapsed) */
.icrm-sidebar-icons-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
  width: 64px;
  height: 100%;
  position: absolute;
  top: 48px;
  z-index: 15;
  pointer-events: auto;
}

.icrm-left-sidebar .icrm-sidebar-icons-vertical {
  left: 0;
  right: auto;
}

.icrm-right-sidebar .icrm-sidebar-icons-vertical {
  right: 0;
  left: auto;
}

.icrm-left-sidebar.expanded .icrm-sidebar-icons-vertical,
.icrm-right-sidebar.expanded .icrm-sidebar-icons-vertical {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

.icrm-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s;
  padding: 0;
  position: relative;
  z-index: 15;
  pointer-events: auto;
}

.icrm-icon-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.icrm-icon-btn.active {
  background: #eff6ff;
  color: #2563eb;
}

.icrm-icon-btn i {
  width: 20px;
  height: 20px;
}

/* Sidebar header - expanded state (close button) */
.icrm-sidebar-header-expanded {
  display: none;
  position: absolute;
  top: 0;
  padding: 8px;
  z-index: 30;
  background: transparent;
}

.icrm-left-sidebar.expanded .icrm-sidebar-content .icrm-sidebar-header-expanded {
  right: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.icrm-right-sidebar.expanded .icrm-sidebar-content .icrm-sidebar-header-expanded {
  left: 0;
  right: auto;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.icrm-close-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s;
  padding: 0;
}

.icrm-close-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.icrm-close-btn i {
  width: 16px;
  height: 16px;
}

/* Sidebar icons - horizontal (expanded) */
.icrm-sidebar-icons-horizontal {
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 12px;
  padding-top: 56px;
  gap: 8px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.icrm-left-sidebar.expanded .icrm-sidebar-icons-horizontal,
.icrm-right-sidebar.expanded .icrm-sidebar-icons-horizontal {
  display: flex;
}

.icrm-sidebar-icons-horizontal .icrm-icon-btn {
  flex-direction: row;
  gap: 8px;
  padding: 8px 12px;
  width: auto;
  height: auto;
}

.icrm-sidebar-icons-horizontal .icrm-icon-btn span {
  font-size: 14px;
  font-weight: 500;
}

/* Sidebar content wrapper */
.icrm-sidebar-content {
  display: none;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding-top: 48px; /* Space for logo */
  position: relative;
  z-index: 5;
}

.icrm-left-sidebar.expanded .icrm-sidebar-content,
.icrm-right-sidebar.expanded .icrm-sidebar-content {
  display: flex;
}

/* Sidebar sections */
.icrm-sidebar-sections {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  min-height: 0;
}

.icrm-section {
  display: none;
}

.icrm-section.active {
  display: block;
}

/* Ensure sections are hidden by default */
.icrm-section:not(.active) {
  display: none !important;
}

.icrm-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.icrm-section-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

/* Sessions Sidebar - Legacy (keep for compatibility) */
.icrm-sessions-sidebar {
  width: 300px;
  min-width: 300px;
  border-right: 1px solid #e5e7eb;
  background: #f9fafb;
  overflow-y: auto;
  flex-shrink: 0;
  display: block !important;
}

.icrm-sessions-sidebar-content {
  padding: 16px;
}

.icrm-sessions-sidebar h3 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

/* Sessions list styling */
.icrm-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.icrm-create-session-btn {
  width: 100%;
  padding: 8px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 12px;
}

.icrm-create-session-btn:hover {
  background: #1d4ed8;
}

.icrm-session-item {
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.icrm-session-item:hover {
  border-color: #2563eb;
  background: #f0f9ff;
}

.icrm-session-item.active {
  border-color: #2563eb;
  background: #eff6ff;
}

.icrm-session-item h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.icrm-session-item p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

/* Center Panel - Tab View */
.icrm-center-panel {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  min-width: 0; /* Important for flex children */
  min-height: 0;
  position: relative;
}

.icrm-tab-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.icrm-tab-pane {
  display: none;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.icrm-tab-pane.active {
  display: flex;
  flex-direction: column;
}

.icrm-list-view,
.icrm-graph-view {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.icrm-list-content,
.icrm-graph-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.icrm-list-header,
.icrm-graph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  flex-shrink: 0;
}

.icrm-list-header h2,
.icrm-graph-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.icrm-graph-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icrm-action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s;
  padding: 0;
}

.icrm-action-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #111827;
}

.icrm-action-btn i {
  width: 16px;
  height: 16px;
}

.icrm-list-items {
  flex: 1;
  overflow: auto;
  padding: 16px;
}

.icrm-graph-canvas {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #f9fafb;
}

/* Entity List Styles */
.icrm-assets-filters,
.icrm-entities-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  flex-wrap: wrap;
}

.icrm-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s;
}

.icrm-filter-btn:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.icrm-filter-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.icrm-filter-count {
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.icrm-filter-btn.active .icrm-filter-count {
  background: rgba(255, 255, 255, 0.3);
}

.icrm-entity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.icrm-entity-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.icrm-entity-item:hover {
  border-color: #2563eb;
  background: #f0f9ff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.icrm-entity-item-main {
  flex: 1;
  min-width: 0;
}

.icrm-entity-name {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.icrm-entity-description {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

.icrm-entity-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  flex-shrink: 0;
}

.icrm-entity-type {
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 4px;
  text-transform: capitalize;
}

/* Dark mode disabled - removed all dark mode styles */

/* Right Sidebar Content - Legacy styles (kept for compatibility) */
.icrm-right-sidebar-content {
  padding: 16px;
}

.icrm-right-sidebar h3 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.icrm-create-agent-btn {
  width: 100%;
  padding: 8px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 12px;
}

.icrm-create-agent-btn:hover {
  background: #1d4ed8;
}

.icrm-agents-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.icrm-agent-item {
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.icrm-agent-item:hover {
  border-color: #2563eb;
  background: #f0f9ff;
}

.icrm-agent-item.active {
  border-color: #2563eb;
  background: #eff6ff;
}

.icrm-agent-item h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.icrm-agent-item p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

/* Entity Details Styles */
.icrm-entity-item.active {
  border-color: #2563eb;
  background: #eff6ff;
}

.icrm-entity-details {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  overflow: hidden;
}

.icrm-entity-details-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  flex-shrink: 0;
}

.icrm-details-tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.2s;
}

.icrm-details-tab-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.icrm-details-tab-btn.active {
  background: #eff6ff;
  color: #2563eb;
}

.icrm-details-tab-btn i {
  width: 14px;
  height: 14px;
}

.icrm-entity-details-content-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.icrm-entity-details {
  padding: 0;
}

.icrm-entity-details-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
}

.icrm-entity-details-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.icrm-entity-details-name {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  flex: 1;
}

.icrm-entity-details-type {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 6px;
  text-transform: capitalize;
  flex-shrink: 0;
}

.icrm-entity-details-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.icrm-entity-details-section-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.icrm-entity-details-text {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

.icrm-entity-details-attributes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.icrm-entity-details-attr-group h4 {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}

.icrm-entity-details-attr-group ul {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.icrm-entity-details-attr-group li {
  margin: 4px 0;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}

.icrm-badge-current {
  display: inline-block;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 500;
  color: #059669;
  background: #d1fae5;
  border-radius: 4px;
  margin-left: 8px;
}

.icrm-entity-details-evidence {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.icrm-evidence-item {
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.icrm-evidence-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.icrm-evidence-type {
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  background: #ffffff;
  border-radius: 4px;
  text-transform: capitalize;
}

.icrm-evidence-date {
  font-size: 11px;
  color: #9ca3af;
}

.icrm-evidence-description {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
}

.icrm-evidence-details {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.icrm-evidence-detail-item {
  font-size: 12px;
  color: #6b7280;
}

.icrm-evidence-detail-item strong {
  color: #374151;
}

.icrm-entity-details-meta {
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.icrm-entity-details-meta-item {
  font-size: 12px;
  color: #6b7280;
}

.icrm-entity-details-meta-item strong {
  color: #374151;
}

/* Recommendations Styles */
.icrm-recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.icrm-recommendation-item {
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.icrm-recommendation-item:hover {
  border-color: #2563eb;
  background: #f0f9ff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.icrm-recommendation-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.icrm-recommendation-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  border-radius: 8px;
  flex-shrink: 0;
  color: #2563eb;
}

.icrm-recommendation-icon i {
  width: 20px;
  height: 20px;
}

.icrm-recommendation-main {
  flex: 1;
  min-width: 0;
}

.icrm-recommendation-title {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.icrm-recommendation-description {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.icrm-recommendation-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.icrm-recommendation-priority {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 6px;
  text-transform: capitalize;
}

.icrm-recommendation-priority.priority-high {
  background: #fee2e2;
  color: #991b1b;
}

.icrm-recommendation-priority.priority-medium {
  background: #fef3c7;
  color: #92400e;
}

.icrm-recommendation-priority.priority-low {
  background: #dbeafe;
  color: #1e40af;
}

.icrm-recommendation-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.icrm-recommendation-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s;
}

.icrm-recommendation-action-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #111827;
}

.icrm-recommendation-action-btn i {
  width: 14px;
  height: 14px;
}

/* Dark mode disabled - removed all dark mode styles */
  
.icrm-symbolic-tools-container {
  flex: 1;
  overflow: auto;
  padding: 16px;
}

.icrm-symbolic-tools-header {
  margin-bottom: 16px;
}

.icrm-symbolic-tools-header h2 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.icrm-symbolic-tools-header p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.icrm-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.icrm-tool-card {
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.icrm-tool-card:hover {
  border-color: #2563eb;
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.icrm-tool-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  color: #2563eb;
}

.icrm-tool-card h3 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.icrm-tool-card p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

/* Floating Agents */
.icrm-floating-agents-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.icrm-floating-agent {
  position: relative;
  width: 320px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
}

.icrm-floating-agent.collapsed {
  height: 48px;
  overflow: hidden;
}

.icrm-floating-agent.expanded {
  max-height: 500px;
}

.icrm-floating-agent-header {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
  user-select: none;
}

.icrm-floating-agent-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.icrm-floating-agent-actions {
  display: flex;
  gap: 8px;
}

.icrm-floating-agent-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  border-radius: 4px;
  transition: all 0.2s;
}

.icrm-floating-agent-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.icrm-floating-agent-content {
  padding: 16px;
  max-height: 400px;
  overflow-y: auto;
}

.icrm-floating-agent-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  min-height: 40px;
  max-height: 120px;
}

.icrm-floating-agent-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.icrm-floating-agent-message {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.icrm-floating-agent-message.user {
  background: #eff6ff;
  color: #1e40af;
  align-self: flex-end;
}

.icrm-floating-agent-message.assistant {
  background: #f9fafb;
  color: #111827;
  align-self: flex-start;
}

.icrm-floating-agent-send-btn {
  width: 100%;
  padding: 8px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
}

.icrm-floating-agent-send-btn:hover {
  background: #1d4ed8;
}

.icrm-floating-agent-send-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

/* Dark mode disabled - all dark mode styles removed */


