.ai-prompt-container {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  flex: 1;                  
  min-height: 0; 
  font-family: Inter, system-ui;
  margin: 12px 0;
  min-width: 500px;
}

.ai-prompt-div{
  height: 100%;
  width: 100%;
  display: flex;
}

.ai-left {
  border-right: 1px solid #eee;
  padding: 12px;

}

.ai-left button {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 6px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: black;
}

.ai-left button.active {
  background: #eef2ff;
  border-radius: 6px;
  color: #51a6f5;
}

.ai-middle {
  padding: 12px;
}

.ai-right {
  border-left: 1px solid #eee;
  padding: 12px;
}

.ai-right ul{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-behavior-root{
  flex: 1;              
  display: flex;
  flex-direction: column;
}

.ai-left,
.ai-middle,
.ai-right {
  height: 100%;
  min-height: 0;     /* prevents overflow bugs */
  overflow-y: auto;  /* scroll inside panels */
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 0 1px #eee;
  height: 100%;
}

.option {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  cursor: pointer;
}

button.primary, button.reset {
  background: #007BFF;
  color: #fff;
  padding: 8px 12px;
  border-radius: 25px;
  border: none;
  margin: 4px;
  margin-top: 20px;
  width: auto;
}

.prompt-preview {
  background: #111;
  color: #0f0;
  padding: 12px;
  font-size: 12px;
  margin-top: 12px;
  white-space: pre-wrap;
}

.hint {
  margin-top: 10px;
  color: #666;
}

.ai-prompt-container .info-block, .ai-prompt-container .example-block, .ai-prompt-container .affect-block{
    margin: 20px 0;
}

.ai-prompt-container .info-block{
  color: gray;
}

.left-actions {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-actions {
  margin-top: 0 !important;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.prompt-preview-textarea {
  width: 100%;
  resize: none;
  padding: 10px;
  margin: 10px 0;
  height: 70%;
  outline: none;
}

.param-actions,
.preview-actions {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.prompt-preview-textarea {
  width: 100%;
  font-family: monospace;
  resize: none;
}

/* Title */
.ai-behavior-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

/* Tabs container */
.ai-tabs {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

/* Individual tab */
.ai-tab {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280; /* gray */
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

/* Hover */
.ai-tab:hover {
  color: #111827;
}

/* Active tab */
.ai-tab.active {
  color: #51a6f5; /* indigo */
  border-bottom: 2px solid #51a6f5;
  font-weight: 600;
}

.custom-prompt-wrapper .ai-system-prompt-header{
  display: none;
}

.custom-prompt-wrapper .ai-system-prompt-div{
  padding: 0;
  width: 100%;
}

.custom-prompt-wrapper{
  display: flex;
  flex: 1;
}

