@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --bg-primary-gradient-start: #111827;
  --bg-primary-gradient-end: #1f2937;
  --bg-secondary: #1f2937;
  --bg-tertiary: #374151;
  --bg-interactive-hover: #4b5563;
  --text-primary: #d1d5db;
  --text-secondary: #9ca3af;
  --border-color: #374151;
  --accent-color: #22d3ee;
  --accent-hover: #67e8f9;
  --sidebar-bg: rgba(17, 24, 39, 0.7);
  --header-bg: rgba(17, 24, 39, 0.8);
  --input-area-bg: rgba(31, 41, 55, 0.8);
  --prose-pre-bg: #0f172a;
  --prose-pre-border: #374151;
  --prose-code-text: #e2e8f0;
  --prose-inline-code-bg: #334155;
  --user-bubble-bg: #2563eb;
  --model-bubble-bg: var(--bg-secondary);
}
html.light {
  --bg-primary-gradient-start: #f9fafb;
  --bg-primary-gradient-end: #f3f4f6;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e5e7eb;
  --bg-interactive-hover: #d1d5db;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --border-color: #d1d5db;
  --accent-color: #0891b2;
  --accent-hover: #06b6d4;
  --sidebar-bg: rgba(255, 255, 255, 0.7);
  --header-bg: rgba(255, 255, 255, 0.8);
  --input-area-bg: rgba(249, 250, 251, 0.8);
  --prose-pre-bg: #f3f4f6;
  --prose-pre-border: #e5e7eb;
  --prose-code-text: #111827;
  --prose-inline-code-bg: #e5e7eb;
  --user-bubble-bg: #2563eb;
  --model-bubble-bg: var(--bg-secondary);
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(var(--bg-primary-gradient-end));
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.font-fira {
  font-family: "Fira Code", monospace;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

.message-pop-in {
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  transform: scale(0.9);
  opacity: 0;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.typewriter {
  font-family: "Fira Code", monospace;
  font-weight: 500;
  background: linear-gradient(90deg, #a5f3fc, #67e8f9, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
  overflow: hidden;
  white-space: nowrap;
  margin: 0 auto;
  width: 0;
  animation: typing 3.5s steps(var(--char-count, 39), end) forwards;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.bg-secondary {
  background-color: var(--bg-secondary);
}
.text-primary {
  color: var(--text-primary);
}
.text-secondary {
  color: var(--text-secondary);
}
.border-color {
  border-color: var(--border-color);
}
.placeholder-color::placeholder {
  color: var(--text-secondary);
}
.sidebar-bg {
  background-color: var(--sidebar-bg);
}
.header-bg {
  background-color: var(--header-bg);
}
.input-area-bg {
  background-color: var(--input-area-bg);
}
.nav-link-text {
  color: var(--text-secondary);
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
.nav-link-text:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}
.nav-link-active {
  background-color: var(--user-bubble-bg);
  color: #ffffff;
  font-weight: 500;
}
.input-bg {
  background-color: var(--bg-tertiary);
}

.message-bubble {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
  position: relative;
  word-wrap: break-word;
}
.user-message .message-bubble {
  background-color: var(--user-bubble-bg);
  color: #ffffff;
  border-bottom-right-radius: 0.5rem;
}
.model-message .message-bubble {
  background-color: var(--model-bubble-bg);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 0.5rem;
}
.prose-styles {
  color: inherit;
}
.prose-styles h1,
.prose-styles h2,
.prose-styles h3 {
  color: var(--accent-hover);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.model-message .prose-styles h1,
.model-message .prose-styles h2,
.model-message .prose-styles h3 {
  color: var(--accent-hover);
}
.user-message .prose-styles h1,
.user-message .prose-styles h2,
.user-message .prose-styles h3 {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}
.prose-styles h4 {
  color: var(--accent-color);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.prose-styles strong {
  color: inherit;
}
.prose-styles pre {
  background-color: #0f172a;
  border: 1px solid var(--prose-pre-border);
  border-radius: 0.5rem;
  padding: 1rem;
  white-space: pre-wrap;
  word-break: break-all;
  position: relative;
}
.prose-styles pre code.hljs {
  padding: 0;
  background: transparent;
  color: #abb2bf;
}
.prose-styles code {
  color: var(--prose-code-text);
  font-size: 0.875rem;
  font-family: "Fira Code", monospace;
}
.prose-styles p code,
.prose-styles li code {
  background-color: var(--prose-inline-code-bg);
  padding: 2px 6px;
  border-radius: 4px;
}
.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: #334155;
  color: #94a3b8;
  border: none;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}
.prose-styles pre:hover .copy-btn {
  opacity: 1;
}

.feedback-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 2px;
  border-radius: 50%;
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
.feedback-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
}
.feedback-btn.active-like {
  color: #22c55e;
}
.feedback-btn.active-dislike {
  color: #ef4444;
}

.typing-cursor {
  display: inline-block;
  width: 8px;
  height: 1.2em;
  background-color: var(--accent-color);
  animation: blink 1s infinite;
  vertical-align: text-bottom;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.ai-thinking-dot {
  animation: pulse 1.4s infinite ease-in-out both;
}
.ai-thinking-dot:nth-child(1) {
  animation-delay: -0.32s;
}
.ai-thinking-dot:nth-child(2) {
  animation-delay: -0.16s;
}
@keyframes pulse {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

#chat-input-container {
  background-color: var(--bg-secondary);
  border-radius: 1.5rem;
  padding: 0.5rem 0.75rem;
  transition: box-shadow 0.2s ease-in-out;
  border: 1px solid var(--border-color);
}
#chat-input-container:focus-within {
  box-shadow: 0 0 0 2px var(--accent-color);
}
#chat-input {
  transition: height 0.2s ease-in-out;
  max-height: 200px;
}

.suggestion-btn,
.example-prompt-btn {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  color: var(--text-primary);
}
.suggestion-btn:hover,
.example-prompt-btn:hover {
  background-color: var(--bg-interactive-hover);
  border-color: var(--text-secondary);
}

.history-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
  cursor: pointer;
  color: var(--text-secondary);
}
.history-item:hover {
  background-color: var(--bg-tertiary);
}
.history-item.active {
  background-color: var(--user-bubble-bg);
  color: #ffffff;
  font-weight: 500;
}
.history-item-name {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.875rem;
  padding-right: 2.5rem;
}
.history-item-actions {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.2s;
  background-color: inherit;
}
.history-item:hover .history-item-actions {
  opacity: 1;
}
.history-item.active .history-item-actions {
  opacity: 1;
}
.history-item-actions button {
  padding: 0.25rem;
  border-radius: 0.25rem;
  color: #9ca3af;
}
.history-item.active .history-item-actions button {
  color: #e0e7ff;
}
.history-item-actions button:hover {
  color: var(--text-primary);
  background-color: var(--bg-interactive-hover);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #4b5563;
  transition: 0.4s;
  border-radius: 28px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--user-bubble-bg);
}
input:checked + .slider:before {
  transform: translateX(22px);
}

@media (max-width: 767px) {
  #sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 40;
    transition: transform 0.3s ease-in-out;
  }
  #sidebar.hidden-mobile {
    transform: translateX(-100%);
  }
  #sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 39;
  }
}

.page-fade-in {
  animation: fadeInAnimation 0.4s ease-in-out forwards;
}

.page-fade-out {
  animation: fadeOutAnimation 0.4s ease-in-out forwards;
}

@keyframes fadeInAnimation {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutAnimation {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

#attack-graph-container {
  background-color: #111827;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 25px 25px;
}

.history-item-actions button {
  padding: 0.25rem;
  border-radius: 0.25rem;
  color: #9ca3af;
  margin-left: 0.25rem;
}
.history-item.active .history-item-actions button {
  color: #e0e7ff;
}
.history-item-actions button:hover {
  color: var(--text-primary);
  background-color: var(--bg-interactive-hover);
}

.message-editor textarea {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
}

#integration-popup {
  z-index: 10;
  max-height: 250px; 
  overflow-y: auto; 
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom center;
}

#integration-popup.hidden {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  pointer-events: none;
}

.integration-item {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.2s;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.integration-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.integration-item:hover {
  background-color: var(--bg-tertiary);
}

.integration-item-icon {
  margin-right: 0.75rem;
  flex-shrink: 0;
  color: var(--accent-color);
}

.integration-item-name {
  font-weight: 500;
  color: var(--text-primary);
}

.integration-item-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

#case-dashboard-container {
  min-height: 400px;
}

.drop-zone {
  min-height: 100px;
  transition: background-color 0.2s ease-in-out;
}

.dragging {
  opacity: 0.5;
  border: 2px dashed var(--accent-color);
}

.drag-over {
  background-color: rgba(34, 211, 238, 0.1);
}

[draggable="true"] {
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}
#chat-container {
  scroll-behavior: smooth;
}

.workflow-board {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-interactive-hover) var(--bg-secondary);
}

.workflow-board > div {
  flex: 0 0 280px;
  min-width: 280px;
}

@media (min-width: 768px) {
  .workflow-board {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
  }
}

@media (min-width: 1024px) {
  .workflow-board {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dragging {
  opacity: 0.5;
  border: 2px dashed var(--accent-color);
}

.drag-over {
  background-color: rgba(34, 211, 238, 0.1);
  outline: 2px dashed var(--accent-color);
  outline-offset: -4px;
}

[draggable="true"] {
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.inline-edit-input {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  padding: 0.125rem 0.5rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  box-sizing: border-box;
  min-width: 100px;
  width: 100%;
  transition: all 0.2s ease-in-out;
}
.inline-edit-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 1px var(--accent-color);
  background-color: var(--bg-secondary);
}

.nav-link-disabled {
  color: var(--text-secondary) !important;
  background-color: transparent !important;
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

#new-chat-btn-sidebar:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #374151;
}

#password-strength-progress.strength-0 {
  width: 0%;
}
#password-strength-progress.strength-1 {
  width: 25%;
  background-color: #ef4444;
}
#password-strength-progress.strength-2 {
  width: 50%;
  background-color: #f97316;
}
#password-strength-progress.strength-3 {
  width: 75%;
  background-color: #eab308;
}
#password-strength-progress.strength-4 {
  width: 100%;
  background-color: #22c55e;
}
.kb-playbook-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  font-size: 14px;
  color: #d1d5db;
  border-radius: 6px;
  transition: background-color 0.2s;
}
.kb-playbook-item:hover {
  background-color: #334155;
}
.kb-playbook-item.active {
  background-color: #1d4ed8;
  color: #ffffff;
  font-weight: 600;
}
#kb-view-toggle button {
  color: var(--color-text-secondary);
}
#kb-view-toggle button.kb-toggle-active {
  background-color: var(--color-bg-interactive);
  color: var(--color-text-primary);
}
#kb-save-playbook-btn {
  background-attachment: fixed;

}
#kb-editor-content {
  
  background-color: #1f2937;
  color: #e5e7eb;        
  

  border: 1px solid #374151; 
  border-radius: 0.375rem;   
  padding: 1rem;          
  width: 100%;                
  min-height: 500px;          
  font-family: 'Fira Code', monospace; 
  resize: vertical;          
}

#kb-editor-content:focus {
  outline: none;
  border-color: #22d3ee; 
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.4); 
}

#mic-btn.recording-active {
  color: #ef4444; 
}


#mic-btn.recording-active.sound-detected {

  animation: pulse-red 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}


@keyframes pulse-red {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 0.5rem rgba(239, 68, 68, 0);
  }
}

.model-support-list {
    font-family: 'Fira Code', monospace; 
    font-size: 0.75rem;                  
    color: var(--color-text-secondary);   
    list-style-type: disc;
    list-style-position: inside;
    padding-left: 0.5rem;               
    margin-top: 0.25rem;                  
    opacity: 0.9;
}

.model-support-list li {
    margin-bottom: 0.25rem;
}

#pending-files-container {
    max-height: 150px; 
    overflow-y: auto;
    border: 1px dashed var(--color-border);
    border-radius: 12px;
    padding: 8px;
    background-color: rgba(0,0,0,0.1);
}

.pending-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-bg-secondary);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
}

/* Toon Format Styles */
.toon-box {
  background-color: #fff;
  border: 4px solid #000;
  box-shadow: 8px 8px 0px #000;
  border-radius: 12px;
  transition: transform 0.2s;
}

.toon-box:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0px #000;
}

.toon-title {
  font-family: 'Fira Code', monospace;
  font-weight: 900;
  color: #000;
  text-transform: uppercase;
  text-shadow: 2px 2px 0px #22d3ee;
  letter-spacing: 1px;
}

.toon-textarea {
  background-color: #f0f9ff;
  border: 3px solid #000;
  border-radius: 8px;
  color: #000;
  font-family: 'Fira Code', monospace;
  box-shadow: inset 4px 4px 0px rgba(0,0,0,0.1);
}

.toon-textarea:focus {
  outline: none;
  background-color: #fff;
  box-shadow: inset 4px 4px 0px rgba(0,0,0,0.05);
}

.toon-button {
  border: 3px solid #000;
  box-shadow: 4px 4px 0px #000;
  font-weight: 800;
  text-transform: uppercase;
  transition: all 0.1s;
  color: #000 !important; 
}

.toon-button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000;
}

.toon-button-primary {
  background-color: #22d3ee;
}

.toon-button-primary:hover {
  background-color: #67e8f9;
}

.toon-button-secondary {
  background-color: #e5e7eb;
}

.toon-button-secondary:hover {
  background-color: #f3f4f6;
}
    color: var(--color-text-primary);
}

.pending-file-item .file-name {
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
}

.pending-file-item .file-size {
    font-family: 'Fira Code', monospace;
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    flex-shrink: 0; 
}

.pending-file-item .remove-file-btn {
    color: var(--color-text-secondary);
    border-radius: 50%;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pending-file-item .remove-file-btn:hover {
    color: var(--color-text-primary);
    background-color: var(--color-bg-tertiary);
}

.simulation-label {
    display: block;
    margin-bottom: 0.5rem; 
    font-size: 0.875rem; 
    line-height: 1.25rem; 
    font-weight: 500; 
    color: var(--color-text-secondary); 
}

#page-predictivethreatmodeling .input-base {

    background-color: var(--color-input-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    
    border-radius: 0.375rem; 
    padding: 0.65rem 0.75rem; 
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    

    appearance: none; 
    -moz-appearance: none;
    -webkit-appearance: none;
    margin-bottom: 1rem; 
}


#page-predictivethreatmodeling select:not([multiple]) {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem; 
}


#page-predictivethreatmodeling .input-base:focus {
    outline: none;
    border-color: #22d3ee;
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.4); 
}

#page-predictivethreatmodeling .input-base option {
    background-color: #374151;
    color: var(--color-text-primary);
    padding: 0.5rem 0.75rem;
}

#page-predictivethreatmodeling select[multiple] option:hover {
    background-color: #4b5563; 
    cursor: pointer;
}

#page-predictivethreatmodeling select[multiple] option:checked {
    background-color: #0891b2; 
    color: #ffffff;
}

#start-simulation-btn {
    background-color: #0891b2; 
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    width: 100%;
    margin-top: 1rem; 
}

#start-simulation-btn:hover {
    background-color: #0e7490; 
}


.simulation-container-fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.chat-attached-files-container {
  display: flex;
  flex-wrap: wrap; 
  gap: 8px;
  margin-bottom: 12px; 
}


.chat-attached-file {

  margin: 0 !important; 
  cursor: default; 
  opacity: 0.9;
}


.user-question-text {
  display: block; 
  margin-top: 8px; 

}
#active-mode-indicator {
    font-family: 'Fira Code', monospace;
    color: var(--accent-color);
    background-color: var(--bg-tertiary);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex; 
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    margin-left: auto; 
    margin-right: auto; 
}

#active-mode-indicator.hidden {
    display: none;
}

/* --- PES Refine Modal --- */
#refine-modal-old-prompt,
#refine-modal-new-prompt {
    font-family: 'Fira Code', monospace;
    background-color: #111827; /* Darker bg */
    opacity: 0.8;
}
#refine-modal-new-prompt {
    background-color: var(--input-bg); /* Lighter bg for emphasis */
    border-color: var(--accent-color);
    opacity: 1;
}

