/* agent main area */
.agents-content {
  width: 100%;
  transition: width 0.3s ease-in-out;
  padding-left: 20px;
  padding-right: 20px;
}

/* Agent editor panel */
.agent-edit-panel {
  position: fixed;
  z-index: 10000;
  top: 0;
  right: -45vw; /* Start offscreen */
  width: 40vw;
  height: 100vh;
  background-color: #f8f9fa;
  transition: right 0.3s ease-in-out;
  box-shadow: -5px 0 5px -5px rgba(0, 0, 0, 0.3); /* Left-side shadow */
  overflow-y: scroll;
}
.agent-edit-panel.show {
  right: 0; /* Slide in */
}
.agent-edit-content {
  padding: 20px;
}
.agent-edit-button-group {
  display: flex;
  justify-content: flex-end;
}
.agent-edit-close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

/* tabs */
#agentTabs {
  padding-top: 20px;
}

.create-agent-button-container {
  position: fixed;  /* Change from absolute to fixed */
  top: 80px;       /* Keep the same top position */
  right: 180px;    /* Increase from 150px to 180px for more spacing from settings */
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 8px;        /* Add gap for spacing between icon and button */
  background: white; /* Add background to ensure button is visible */
  padding: 8px;     /* Add some padding */
  border-radius: 4px; /* Optional: round corners */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Optional: add subtle shadow */
}

/* Style for the exclamation icon */
.create-agent-button-container .bi-exclamation-octagon-fill {
  font-size: 1.1rem;
}

/* Style for the button */
.create-agent-button-container button {
  white-space: nowrap; /* Prevent button text from wrapping */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cogniti-agent-tab iframe {
  height: 85vh!important;
}

/* Accordion Styles */
.accordion-item {
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--system-gray-200);
  overflow: hidden;
}

.accordion-button {
  padding: 1rem 1.5rem;
  background-color: white;
}

.accordion-button:not(.collapsed) {
  background-color: var(--system-gray-100);
  color: var(--system-gray-800);
}

.accordion-button::after {
  margin-left: auto;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--org-button-color);
}

.accordion-body {
  background-color: white;
  padding: 1rem;
  overflow-x: auto; /* Enables horizontal scroll if necessary */
}

/* Section icon styling */
.section-icon {
  color: var(--org-sidebar-color);
  font-size: 1.2rem;
}

/* Badge styles */
.accordion-button .badge {
  background-color: var(--system-gray-200);
  font-weight: 500;
}

/* Add this to your agents.css file */

/* Specific styling for pinned agents count */
.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 50rem;
  background-color: var(--system-gray-200) !important; /* Using your system variables */
  color: var(--org-button-color) !important;
  margin-left: 0.5rem !important;
}

/* Hover state */
#pinnedAgentsCount.badge:hover {
  background-color: var(--system-gray-300) !important;
}

/* Make sure it's visible */
#pinnedAgentsCount {
  opacity: 1;
  visibility: visible;
}

/* Empty state styling */
.agent-cards-grid:empty::after {
  content: 'No agents found';
  display: block;
  text-align: center;
  padding: 2rem;
  color: var(--system-gray-600);
  background-color: var(--system-gray-100);
  border-radius: 0.5rem;
  margin: 1rem 0;
}

/* Hover state for accordion buttons */
.accordion-button:hover {
  background-color: var(--system-gray-100);
}

/* Active state for section icons */
.accordion-button:not(.collapsed) .section-icon {
  color: var(--org-sidebar-color);
}