.agent-builder-icon-container {
  position: absolute;
  bottom: 0px;
  right: 0px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: #000;
  border: 1px solid #3f3f3f;
  border-bottom: none;
  border-right: none;
  transition:all 0.3s;
}
.open .agent-builder-icon-container:hover {
  width:60px;
  height:60px;
}
.agent-builder-container {
  position: fixed;
  bottom: 40px;
  right: 10px;
  width: 50px;
  height: 50px;
  background: #00000033;
  z-index: 1000;
  border: 1px solid #3f3f3f;
  overflow: scroll;
  /* display: flex; */
  /* align-items: center; */
  /* justify-content: center; */
  border-radius: 6px;
}
.agent-builder-container:not(.open) {
  cursor:pointer;
  border-radius: 4px;
}
.agent-builder-container.open {
  height: calc(100vh - 160px);
  width: 100%;
  /* max-width: calc(100% - 260px); */
  max-width:350px;
  background: #0d0d0dde;
  backdrop-filter: blur(3px);
  transition:all 0.3s;
}
.agent-builder-container:not(.open):hover {
  transform:scale(1.05);
  border-color:#fff;
  box-shadow: 0px 0px 10px 0px #a6ffa8;
}
.agent-builder-container.extended {
  max-width: calc(100% - 260px);
}
.agent-builder-container .agent-chevron {
  left: 6px;
  top: 6px;
  z-index: 1000;
  position: absolute;
}
.agent-builder-container .agent-chevron svg {
  /* transform: rotate(0deg) !important; */
  padding: 5px;
  border: 1px solid #ffffff45;
  width: 6px;
  height: 6px;
  border-radius: 7px;
  /* top: -10px; */
  transform: rotate(180deg);
  cursor: pointer;
  transition: all 0.3s;
}
.agent-builder-container .agent-chevron:hover svg {
  width:8px;
  height:8px;
}
.agent-builder-container.extended .agent-chevron {
  transform: rotate(180deg) !important;
}
.collapsed .agent-builder-container.extended {
  max-width: calc(100% - 120px);
}
.agent-panel {
  background: linear-gradient(180deg, #00000000, #000000);
  color: #fff;
  font-family: 'Source Code Pro', monospace;
  padding: 20px;
  max-width: 350px;
  overflow: scroll;
  height: calc(100vh - 170px);
  transition:all 0.3s;
}

.extended .agent-panel:not(.extended.logs-open .agent-panel) .action-controls {
  display:flex;
}
.extended .agent-panel:not(.extended.logs-open .agent-panel) .schedule-item, 
.extended .agent-panel:not(.extended.logs-open .agent-panel) .action-item {
  margin:5px !important;
  width: calc(50% - 10px);
}
.extended .agent-panel:not(.extended.logs-open .agent-panel) .schedule-list, 
.extended .agent-panel:not(.extended.logs-open .agent-panel) .action-list {
  display:flex;
  flex-wrap:wrap;
}
.extended .agent-panel:not(.extended.logs-open .agent-panel) {
  max-width:100%;
}

.agent-panel .schedule-section {
  margin-top:20px;
}
.agent-panel .actions-section {
  margin-top: 20px;
}
.agent-inner-father h2,
.agent-panel h3,
.agent-panel h3 {
  /* margin: 0 0 0.5rem; */
  font-size: 1.1rem;
  color: #ffffff;
  margin-top:20px;
  margin-bottom:12px;
  padding: 0px 5px;
}
.agent-panel h2 {
  margin-top:30px;
}
.agent-panel .prompt-section h2 {
  /* margin-top:5px; */
}
.agent-panel .prompt-section p {
  font-weight: 100;
  color: #e0e0e0;
  line-height: 1.5;
  font-size: 13px;
  padding: 0px 5px;
  margin-bottom: 15px;
}

.agent-panel .prompt-input {
  width: 100%;
  background: #00000000;
  color: #ffffff;
  border: 1px solid #303030;
  padding: 10px;
  height:110px;
  border-radius: 8px;
  font-family: inherit;
  resize: vertical;
  border-bottom-left-radius:0px;
  border-bottom-right-radius:0px;
  outline:none;
}
.agent-panel button {
  background: #00000000;
  color: #ffffff;
  border: 1px solid #303030;
  padding: 0.3rem 0.6rem;
  margin-top: 0.5rem;
  cursor: pointer;
  font-family: inherit;
  padding: 10px;
  border-radius: 4px;
  font-size: 13px;
  width: 100%;
  margin-top: -5px;
  border-top: 0px;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  padding: 22px;
}
.agent-panel button:disabled {
  /* opacity: 0.4; */
  cursor: not-allowed;
}
.agent-panel button.disabled {
  opacity:0.4;
  cursor: not-allowed !important;
}
.agent-panel button:not(:disabled):hover {
  cursor:pointer;
  background: #ffffff1a;
}

.agent-panel .action-list,
.agent-panel .schedule-list {
  margin-top: 10px;
}
.agent-panel .schedule-item {
  gap: 8px;
  font-size: 13px;
}
.agent-panel .strong-item-title {
  color: rgb(163, 255, 165);
  background: rgb(0 0 0 / 30%);
  border-bottom: 1px solid #303030;
  padding: 12px 15px;
  margin: -15px;
  margin-bottom: 5px;
  border-radius: 8px;
  /* text-align: center; */
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}
.agent-panel .action-item,
.agent-panel .schedule-item {
  background: linear-gradient(45deg, #331f33ab, transparent);
  padding: 15px;
  margin-top: 10px;
  border: 1px solid #303030;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  filter: grayscale(1);
}

.agent-panel .action-header {
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.agent-panel .action-prompt {
  /* background: #1a1c1f; */
  padding: 15px 0px;
  padding-bottom: 5px;
  overflow-x: auto;
  line-height: 1.4;
  /* font-size: 0.85rem; */
  margin-bottom: 3px;
  white-space: normal;
  padding: 10px;
  background: #0000007a;
  line-height: 1.6;
  margin: 10px 0px;
  border-radius: 4px;
}
.action-controls {
  margin-top:5px;
}
.action-controls input {
  margin-right: 0.3rem;
  background: #00000000;
  color: #ffffff;
  border: 1px solid #303030;
  padding: 0.3rem 0.6rem;
  margin-top: 0.5rem;
  cursor: pointer;
  font-family: inherit;
  padding: 10px;
  border-radius: 4px;
  font-size: 13px;
  width: 100%;
  margin-top: 5px;
  border-top: 1px solid #303030 border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  padding: 16px;
  text-align: center;
  outline: none;
}
.update-trigger button, .agent-panel .action-controls button {
  margin-right: 0.3rem;
  background: #00000000;
  color: #ffffff;
  border: 1px solid #303030;
  padding: 0.3rem 0.6rem;
  margin-top: 0.5rem;
  cursor: pointer;
  font-family: inherit;
  padding: 10px;
  border-radius: 4px;
  font-size: 13px;
  width: 100%;
  margin-top: 5px;
  border-top: 1px solid #303030 
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  padding: 16px;
}
.agent-panel .action-controls button.active {
  border-color: #ffffffc9 !important;
}
.agent-panel .label-overwrite {
  font-size: 11px;
  margin-top: 10px;
  text-align: center;
  display: block;
  color: red;
  line-height: 1.5;
  font-style: italic;
}
.agent-logs-container {
  background: #000;
  position: absolute;
  top: 0;
  right: 0;
  padding: 10px 13px;
  cursor: pointer;
  border-left: 1px solid #3f3f3f;
  border-bottom: 1px solid #3f3f3f;
  border-bottom-left-radius: 2px;
  opacity: 0.7;
  z-index: 1000;
  transition:all 0.3s;

  /* Only pulse when logs are closed */
  animation: pulseOpacity 2s ease-in-out infinite;
}
.agent-logs-container:hover {
  padding: 12px 15px;
}

.agent-logs-container svg {
  width: 15px;
}

/* When .logs-open is present on a parent (or this element), cancel the pulse */
.logs-open .agent-logs-container {
  opacity: 1;            /* full opacity when open */
  animation: none;       /* stop pulsing */
}

.extended .agent-inner-father {
  display:flex;
  flex-direction:row-reverse;
}
.logs-container {
  display:none;
  flex:1;
  overflow: scroll;
  height: calc(100vh - 170px);
  background: #0f0f0f;
  padding: 10px;
  padding-top: 85px;
  /* width:0%; */
  /* transition:all 0.3s; */
}
.logs-open .logs-container {
  display:block;
  /* width:100%; */
}
.logs-open:not(.extended) .logs-container {
  position: absolute;
  top: 0px;
  overflow: scroll;
  background: #0f0f0f;
  width: 100%;
  z-index: 1;
}
.logs-container .log-item {
  margin-bottom: 30px;
  padding: 10px;
  background: #161616;
  border-radius: 8px;
  border: 1px solid #303030;
  font-size: 13px;
  line-height: 1.8;
}
.logs-container .log-timestamp {
  font-size: 12px;
  color: #acacac;
  display: block;
  margin: 5px;
  position: absolute;
  bottom: -30px;
  left: 0px;
}

.schedule-item.running {
  transition:all 0.3s;
  animation: pulseOpacity 2s ease-in-out infinite;
  border-color: #602760;
  pointer-events:none;
}

/* Pulse animation keyframes */
@keyframes pulseOpacity {
  0% {
    opacity: 0.1;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.1;
  }
}
/* <div class='absolute-pause-play'>
  <button @click='toggleStatus' :class='{ active : status == 1 }'>
    {{ status == 1 ? 'Pause' : 'Play' }}
  </button>
</div> */
.absolute-pause-play {
  width: 100px;
  margin: auto;
  margin-top: -20px;
  position: fixed;
  z-index: 100;
  left: 50%;
  transform: translateX(-50%);
}
.absolute-pause-play button {
  padding: 10px;
  padding-top: 15px;
  color: #c6c5c5;
  background:#101010;
}
.absolute-pause-play button.active {
  color: #cdffe0;
}
.agent-panel .progress-container {
  height: 6px;
  background-color: #333; /* dark track */
  border-radius: 3px;
  overflow: hidden;
  margin-top: 5px;
}

.agent-panel .progress-bar {
  height: 100%;
  background-color: #a3ffa5; /* match your strong‐item‐title color */
  width: 0%;
  transition: width 0.4s linear;
}
.notify-logs-container {
  width: 42px;
  height: 42px;
  font-size: 14px;
  position: fixed;
  padding: 8px;
  right: 0px;
  top: 0px;
  color: #ffffff;
  /* z-index: 10000; */
  background: rgb(0 0 0);
  text-align: center;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  border-left: 1px solid #3d3d3d;
  border-bottom: 1px solid #3d3d3d;
}
.agent-builder-container:not(.open) .notify-logs-container {
  top: unset;
  bottom: 3px;
  right: 3px;
  position: absolute;
  z-index: 100;
  border: 0px;
}