/* sandbox.css - Styles for Sandbox Agents feature */

/* Container */
.sandbox-container {
  padding: 20px;
  max-width: 1600px;
  margin: 0 auto;
}

/* Header */
.sandbox-header {
  margin-bottom: 24px;
}

.sandbox-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color, #1f2937);
  margin: 0 0 8px 0;
}

.sandbox-subtitle {
  color: var(--text-secondary, #6b7280);
  font-size: 0.875rem;
  margin: 0;
}

/* Selectors */
.sandbox-selectors {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.selector-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
}

.selector-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color, #1f2937);
}

/* Content Layout - Split Panel */
.sandbox-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  min-height: 500px;
}

@media (max-width: 1024px) {
  .sandbox-content {
    grid-template-columns: 1fr;
  }
}

/* Panels */
.editor-panel,
.chat-panel,
.apis-panel,
.results-panel {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  background: var(--secondary-color, #f9fafb);
}

.panel-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-color, #1f2937);
}

.panel-actions {
  display: flex;
  gap: 8px;
}

/* Editor Fields */
.editor-fields {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color, #1f2937);
}

.form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea:disabled {
  background: var(--secondary-color, #f9fafb);
  cursor: not-allowed;
}

/* Changes Indicator */
.changes-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fef3c7;
  border-top: 1px solid #fcd34d;
  color: #92400e;
  font-size: 0.875rem;
}

.changes-indicator i {
  color: #f59e0b;
}

/* Chat Panel */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
}

.chat-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary, #6b7280);
  text-align: center;
}

.chat-placeholder i {
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.chat-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  transition: opacity 0.3s, transform 0.3s;
}

.user-message {
  align-self: flex-end;
  background: var(--primary-color, #3b82f6);
  color: white;
  border-bottom-right-radius: 4px;
}

.assistant-message {
  align-self: flex-start;
  background: var(--secondary-color, #f3f4f6);
  color: var(--text-color, #1f2937);
  border-bottom-left-radius: 4px;
}

.message-content {
  font-size: 0.875rem;
  line-height: 1.5;
}

.message-content pre {
  background: rgba(0, 0, 0, 0.1);
  padding: 8px;
  border-radius: 4px;
  overflow-x: auto;
}

.message-timestamp {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 4px;
}

/* Chat Input */
.chat-input-container {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--border-color, #e5e7eb);
}

.chat-input-container textarea {
  flex: 1;
  resize: none;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  align-self: flex-start;
}

.typing-indicator .dot {
  width: 8px;
  height: 8px;
  background: var(--text-secondary, #6b7280);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-indicator .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* APIs Panel */
.apis-list {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.apis-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary, #6b7280);
  text-align: center;
}

.apis-placeholder i {
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.api-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--secondary-color, #f9fafb);
  border-radius: 8px;
  transition: background 0.2s;
}

.api-item:hover {
  background: var(--hover-color, #f3f4f6);
}

.api-checkbox {
  position: relative;
  cursor: pointer;
}

.api-checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.api-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.api-name {
  font-weight: 500;
  color: var(--text-color, #1f2937);
}

.api-description {
  font-size: 0.75rem;
  color: var(--text-secondary, #6b7280);
}

/* Parameters Section */
.parameters-section {
  padding: 16px;
  border-top: 1px solid var(--border-color, #e5e7eb);
}

.parameters-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--text-color, #1f2937);
}

.parameters-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.parameter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.parameter-field label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary, #6b7280);
}

.form-input {
  padding: 8px 12px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 6px;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Results Panel */
.results-container {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.results-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary, #6b7280);
  text-align: center;
}

.results-placeholder i {
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.loading-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--text-secondary, #6b7280);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-color, #e5e7eb);
  border-top-color: var(--primary-color, #3b82f6);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* API Result */
.api-result {
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  overflow: hidden;
}

.api-result.success {
  border-color: #10b981;
}

.api-result.error {
  border-color: #ef4444;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--secondary-color, #f9fafb);
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.result-name {
  font-weight: 500;
  color: var(--text-color, #1f2937);
}

.result-status {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-success {
  background: #d1fae5;
  color: #065f46;
}

.status-error {
  background: #fee2e2;
  color: #991b1b;
}

.result-time {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-secondary, #6b7280);
}

.result-body {
  padding: 12px;
  max-height: 300px;
  overflow-y: auto;
}

.result-json {
  margin: 0;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--code-bg, #f3f4f6);
  padding: 12px;
  border-radius: 6px;
}

/* LLM Section */
.llm-section {
  margin-top: 24px;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
}

.llm-input-container {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.llm-input-container textarea {
  flex: 1;
  resize: none;
}

.llm-response {
  padding: 16px;
  min-height: 150px;
}

.llm-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary, #6b7280);
}

.llm-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-secondary, #6b7280);
}

.llm-content {
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary-color, #3b82f6);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover, #2563eb);
}

.btn-secondary {
  background: var(--secondary-color, #f3f4f6);
  color: var(--text-color, #1f2937);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--hover-color, #e5e7eb);
}

/* Notifications */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateX(120%);
  transition: transform 0.3s ease;
  z-index: 10000;
}

.notification.show {
  transform: translateX(0);
}

.notification-success {
  background: #d1fae5;
  color: #065f46;
}

.notification-error {
  background: #fee2e2;
  color: #991b1b;
}

.notification-warning {
  background: #fef3c7;
  color: #92400e;
}

.notification-info {
  background: #dbeafe;
  color: #1e40af;
}

/* Form Select Override */
.sandbox-container .form-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  font-size: 0.875rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sandbox-container .form-select:focus {
  outline: none;
  border-color: var(--primary-color, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Field Label Row - for label + button alignment */
.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.field-label-row label {
  margin-bottom: 0;
}

/* AI Help Button */
.btn-ai-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #7c3aed;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1px solid #c4b5fd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ai-help:hover:not(:disabled) {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  border-color: #a78bfa;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

.btn-ai-help:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-ai-help i {
  font-size: 0.875rem;
}

/* AI Help Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  backdrop-filter: blur(2px);
}

.modal-container {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ai-help-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: white;
}

.ai-help-modal .modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ai-help-modal .modal-body {
  padding: 20px;
}

.modal-description {
  color: var(--text-secondary, #6b7280);
  font-size: 0.875rem;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.ai-help-input-group {
  margin-bottom: 16px;
}

.ai-help-input-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color, #1f2937);
  margin-bottom: 8px;
}

.ai-help-input-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  font-size: 0.875rem;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ai-help-input-group textarea:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.ai-help-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f5f3ff;
  border-radius: 8px;
  color: #6d28d9;
  font-size: 0.875rem;
}

.ai-help-loading .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd6fe;
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.ai-help-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  background: #f9fafb;
  border-top: 1px solid var(--border-color, #e5e7eb);
}

.ai-help-modal .modal-footer .btn {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.ai-help-modal .modal-footer .btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  border-color: #6d28d9;
}

.ai-help-modal .modal-footer .btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
}

/* AI Help Error Message */
.ai-help-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 12px;
}

.ai-help-error i {
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.ai-help-error span {
  line-height: 1.5;
}

/* ==========================================
   More Info Modal Styles
   ========================================== */

/* More Info Button */
.btn-more-info {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-more-info:hover:not(:disabled) {
  background: linear-gradient(135deg, #3730a3 0%, #312e81 100%);
  transform: translateY(-1px);
}

.btn-more-info:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-more-info i {
  font-size: 0.85rem;
}

/* Field Buttons Container */
.field-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* More Info Modal Container */
.more-info-modal .modal-container {
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
}

.more-info-modal .modal-header {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  color: white;
}

.more-info-modal .modal-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.more-info-modal .modal-body {
  max-height: 65vh;
  overflow-y: auto;
}

/* More Info Form */
.more-info-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.more-info-form .form-section {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
}

.more-info-form .section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.more-info-form .section-title i {
  color: #4338ca;
}

.more-info-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.more-info-form .form-row.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .more-info-form .form-row,
  .more-info-form .form-row.three-cols {
    grid-template-columns: 1fr;
  }
}

.more-info-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.more-info-form .form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #4b5563;
}

.more-info-form .form-input,
.more-info-form .form-select,
.more-info-form .form-textarea {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.more-info-form .form-input:focus,
.more-info-form .form-select:focus,
.more-info-form .form-textarea:focus {
  outline: none;
  border-color: #4338ca;
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
}

.more-info-form .form-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.more-info-form .form-select[multiple] {
  min-height: 100px;
}

/* Issues Container in Modal */
.more-info-form .issues-container {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.more-info-form .issues-list {
  max-height: 150px;
  overflow-y: auto;
  padding: 8px;
}

.more-info-form .issues-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #9ca3af;
  font-size: 0.85rem;
}

.more-info-form .issue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #f3f4f6;
  border-radius: 6px;
  margin-bottom: 6px;
}

.more-info-form .issue-item:last-child {
  margin-bottom: 0;
}

.more-info-form .issue-text {
  font-size: 0.85rem;
  color: #374151;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.more-info-form .btn-remove-issue {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.more-info-form .btn-remove-issue:hover {
  background: #fee2e2;
  color: #dc2626;
}

.more-info-form .issue-input-row {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-top: 1px solid #e5e7eb;
}

.more-info-form .issue-input-row .form-input {
  flex: 1;
}

.more-info-form .btn-sm {
  padding: 8px 12px;
  font-size: 0.8rem;
}

/* More Info Modal Footer */
.more-info-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.more-info-modal .modal-footer .btn {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.more-info-modal .modal-footer .btn-primary {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  border-color: #3730a3;
}

.more-info-modal .modal-footer .btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #3730a3 0%, #312e81 100%);
}

/* Modal Large Size */
.modal-large {
  max-width: 800px;
  width: 95%;
}

/* ==========================================
   Profile Training Page Styles
   ========================================== */

/* Profile Training Layout */
.profile-training-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  min-height: 600px;
}

@media (max-width: 1200px) {
  .profile-training-layout {
    grid-template-columns: 1fr;
  }
}

/* Profile Management Panel */
.profile-management-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-section {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
}

.panel-section .panel-header {
  padding: 14px 16px;
  background: var(--secondary-color, #f9fafb);
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.panel-section .panel-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-color, #1f2937);
}

.panel-section .panel-header h3 i {
  color: var(--primary-color, #3b82f6);
}

.panel-body {
  padding: 16px;
}

/* Profile Info Card */
.profile-info {
  margin-top: 16px;
}

.profile-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  color: var(--text-secondary, #6b7280);
  text-align: center;
}

.profile-placeholder i {
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: 0.4;
}

.profile-info-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 16px;
}

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

.profile-info-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color, #1f2937);
}

.step-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-production {
  background: #d1fae5;
  color: #065f46;
}

.badge-training {
  background: #fef3c7;
  color: #92400e;
}

.badge-develop {
  background: #dbeafe;
  color: #1e40af;
}

.badge-default {
  background: #f3f4f6;
  color: #4b5563;
}

.profile-info-details {
  display: flex;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary, #6b7280);
}

.info-item i {
  color: #0ea5e9;
}

/* Agents Section */
.agents-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.agents-section .panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.add-agent-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.agent-select-wrapper {
  flex: 1;
}

.agents-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  max-height: 350px;
  overflow-y: auto;
  padding-right: 4px;
}

.agents-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 150px;
  color: var(--text-secondary, #6b7280);
  text-align: center;
}

.agents-placeholder i {
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: 0.4;
}

.placeholder-hint {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 4px;
}

/* Agent Card */
.agent-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--secondary-color, #f9fafb);
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.agent-card:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.agent-card.selected {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.agent-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-card-header i {
  color: var(--primary-color, #3b82f6);
  font-size: 1rem;
}

.agent-name {
  font-weight: 500;
  color: var(--text-color, #1f2937);
  font-size: 0.9rem;
}

.agent-card-actions {
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.agent-card:hover .agent-card-actions,
.agent-card.selected .agent-card-actions {
  opacity: 1;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.85rem;
}

.btn-chat {
  background: #dbeafe;
  color: #2563eb;
}

.btn-chat:hover {
  background: #bfdbfe;
}

.btn-remove {
  background: #fee2e2;
  color: #dc2626;
}

.btn-remove:hover {
  background: #fecaca;
}

/* Chat Testing Panel */
.chat-testing-panel {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-testing-panel .panel-header {
  padding: 14px 16px;
  background: var(--secondary-color, #f9fafb);
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.chat-testing-panel .panel-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-color, #1f2937);
}

.chat-testing-panel .panel-header h3 i {
  color: #10b981;
}

.chat-testing-panel .chat-messages {
  flex: 1;
  min-height: 400px;
}

/* Profile Training specific chat placeholder */
.profile-training .chat-placeholder strong {
  color: var(--primary-color, #3b82f6);
}

/* Scrollbar styling for agents grid */
.agents-grid::-webkit-scrollbar {
  width: 6px;
}

.agents-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.agents-grid::-webkit-scrollbar-thumb {
  background: #c4c4c4;
  border-radius: 3px;
}

.agents-grid::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* ==========================================
   Agent Edit Modal - Issue and Scope Management
   ========================================== */

/* Edit Button in Agent Card */
.btn-edit {
  background: #e0e7ff;
  color: #4338ca;
}

.btn-edit:hover {
  background: #c7d2fe;
}

/* Agent Edit Modal Container */
.agent-edit-modal {
  max-width: 700px;
  width: 95%;
}

.agent-edit-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  color: white;
}

.agent-edit-modal .modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
}

.agent-edit-modal .modal-header #modal-agent-name {
  font-weight: 400;
  opacity: 0.9;
}

.agent-edit-modal .modal-body {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.agent-edit-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  background: #f9fafb;
  border-top: 1px solid var(--border-color, #e5e7eb);
}

/* Modal Sections */
.modal-section {
  margin-bottom: 24px;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color, #1f2937);
  margin-bottom: 6px;
}

.modal-section .modal-description {
  color: var(--text-secondary, #6b7280);
  font-size: 0.8rem;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

/* Scope Tags Container */
.scope-tags-container {
  min-height: 50px;
}

/* Issue Input Row */
.issue-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.issue-input-row .form-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.875rem;
}

.issue-input-row .btn {
  white-space: nowrap;
}

/* Issues List */
.issues-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
}

.issues-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  color: var(--text-secondary, #6b7280);
  text-align: center;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px dashed #d1d5db;
}

.issues-placeholder i {
  font-size: 1.5rem;
  margin-bottom: 8px;
  opacity: 0.4;
}

.issues-placeholder p {
  margin: 0;
  font-size: 0.85rem;
}

/* Issue Item */
.issue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f3f4f6;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: background 0.2s, border-color 0.2s;
}

.issue-item:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.issue-text {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-color, #1f2937);
  line-height: 1.4;
  padding-right: 12px;
}

.btn-remove-issue {
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: background 0.2s;
  flex-shrink: 0;
}

.btn-remove-issue:hover {
  background: #fecaca;
}

/* Issues List Scrollbar */
.issues-list::-webkit-scrollbar {
  width: 6px;
}

.issues-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.issues-list::-webkit-scrollbar-thumb {
  background: #c4c4c4;
  border-radius: 3px;
}

.issues-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Modal Body Scrollbar */
.agent-edit-modal .modal-body::-webkit-scrollbar {
  width: 6px;
}

.agent-edit-modal .modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.agent-edit-modal .modal-body::-webkit-scrollbar-thumb {
  background: #c4c4c4;
  border-radius: 3px;
}

.agent-edit-modal .modal-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* CSV Upload Section */
.csv-upload-section {
  margin: 16px 0;
  padding: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
}

.csv-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.csv-upload-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #166534;
  cursor: help;
  white-space: nowrap;
}

.csv-upload-label i {
  color: #22c55e;
}

.csv-file-input {
  flex: 1;
  min-width: 150px;
  padding: 6px 10px;
  border: 1px solid #86efac;
  border-radius: 6px;
  font-size: 0.8rem;
  background: white;
}

.csv-file-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.csv-upload-status {
  margin-top: 8px;
  font-size: 0.8rem;
  min-height: 18px;
}

/* ============================================
   AGENT CREATION PAGE STYLES
   ============================================ */

.agent-creation-content {
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.agent-creation-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.agent-creation .form-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.agent-creation .section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color, #1f2937);
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-creation .section-title i {
  color: var(--primary-color, #3b82f6);
}

.agent-creation .form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.agent-creation .form-group {
  margin-bottom: 16px;
}

.agent-creation .form-group:last-child {
  margin-bottom: 0;
}

.agent-creation .form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color, #1f2937);
  margin-bottom: 8px;
}

.agent-creation .form-group label .required {
  color: #ef4444;
}

.agent-creation .form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}

.agent-creation .form-input:focus {
  outline: none;
  border-color: var(--primary-color, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.agent-creation .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  font-size: 0.9rem;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  line-height: 1.5;
}

.agent-creation .form-textarea:focus {
  outline: none;
  border-color: var(--primary-color, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.agent-creation .persona-textarea {
  min-height: 400px;
}

/* Issue Container */
.agent-creation .issue-container {
  background: var(--bg-secondary, #f9fafb);
  border-radius: 8px;
  padding: 16px;
}

.agent-creation .issue-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.agent-creation .issue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: white;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 6px;
  margin-bottom: 6px;
}

.agent-creation .issue-item:last-child {
  margin-bottom: 0;
}

.agent-creation .issue-text {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-color, #1f2937);
}

.agent-creation .issue-remove-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.agent-creation .issue-remove-btn:hover {
  background: #fef2f2;
}

.agent-creation .issue-input-row {
  display: flex;
  gap: 8px;
}

.agent-creation .issue-input-row .form-input {
  flex: 1;
}

.agent-creation .no-issues {
  color: var(--text-secondary, #6b7280);
  font-size: 0.875rem;
  font-style: italic;
  text-align: center;
  padding: 12px;
}

/* CSV Upload in Agent Creation */
.agent-creation .csv-upload-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color, #e5e7eb);
}

.agent-creation .csv-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--primary-color, #3b82f6);
  color: white;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.agent-creation .csv-upload-label:hover {
  background: #2563eb;
}

.agent-creation .csv-status {
  font-size: 0.8rem;
}

.agent-creation .csv-status-loading {
  color: var(--primary-color, #3b82f6);
}

.agent-creation .csv-status-success {
  color: #22c55e;
}

.agent-creation .csv-status-error {
  color: #ef4444;
}

/* Multi-select styling */
.agent-creation select[multiple] {
  min-height: 120px;
  padding: 8px;
}

.agent-creation select[multiple] option {
  padding: 6px 10px;
  margin-bottom: 2px;
  border-radius: 4px;
}

.agent-creation select[multiple] option:checked {
  background: var(--primary-color, #3b82f6);
  color: white;
}

/* Form Actions */
.agent-creation .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border-color, #e5e7eb);
  margin-top: 8px;
}

.agent-creation .form-actions .btn {
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .agent-creation .form-row {
    grid-template-columns: 1fr;
  }

  .agent-creation .form-section {
    padding: 16px;
  }

  .agent-creation .persona-textarea {
    min-height: 250px;
  }
}

/* More Info Button - Discrete link style */
.more-info-btn {
  background: none;
  border: none;
  color: var(--text-secondary, #6b7280);
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
  text-decoration: none;
}

.more-info-btn:hover {
  color: var(--primary-color, #3b82f6);
}

.more-info-btn i {
  font-size: 0.9rem;
}

/* Advanced Modal Styles */
.advanced-modal {
  max-width: 700px;
  width: 95%;
}

.advanced-modal .modal-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color, #1f2937);
}

.advanced-modal .modal-header h3 i {
  color: var(--primary-color, #3b82f6);
}

.advanced-modal .modal-body {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.advanced-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.advanced-form-grid .form-group {
  margin-bottom: 0;
}

.advanced-form-grid .form-group:first-child,
.advanced-form-grid .form-group:nth-child(2),
.advanced-form-grid .form-group:last-child {
  grid-column: 1 / -1;
}

.advanced-form-grid label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-color, #374151);
  margin-bottom: 6px;
}

.advanced-form-grid .form-input,
.advanced-form-grid .form-select,
.advanced-form-grid .form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}

.advanced-form-grid .form-input:focus,
.advanced-form-grid .form-select:focus,
.advanced-form-grid .form-textarea:focus {
  outline: none;
  border-color: var(--primary-color, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.advanced-modal .modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color, #e5e7eb);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Responsive for advanced modal */
@media (max-width: 600px) {
  .advanced-form-grid {
    grid-template-columns: 1fr;
  }

  .advanced-form-grid .form-group:first-child,
  .advanced-form-grid .form-group:nth-child(2),
  .advanced-form-grid .form-group:last-child {
    grid-column: auto;
  }
}

/* ==========================================
   PERSONA VERSION CONTROL STYLES
   ========================================== */

/* Version Control Bar */
.version-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 10px;
  margin-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.version-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.version-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: #1e40af;
  color: white;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.version-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.version-status.production {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.version-status.draft {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.version-status.historic {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #818cf8;
}

.version-author {
  font-size: 0.8rem;
  color: var(--text-secondary, #6b7280);
}

.version-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.version-selector label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-color, #1f2937);
  white-space: nowrap;
}

.version-selector .form-select {
  min-width: 250px;
  padding: 8px 12px;
  font-size: 0.85rem;
}

/* Publish Button */
.btn-publish {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-publish:hover:not(:disabled) {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-publish:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Danger Button */
.btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  border: none;
}

.btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

/* Publish Modal */
.publish-modal .modal-container {
  max-width: 500px;
}

.modal-publish {
  border: 3px solid #dc2626;
  animation: modalShake 0.5s ease;
}

@keyframes modalShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.publish-header {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: white;
  flex-direction: column;
  gap: 8px;
  padding: 20px !important;
}

.publish-header h3 {
  color: white !important;
  margin: 0;
  font-size: 1.2rem;
}

.publish-warning-icon {
  font-size: 2.5rem;
  color: #fef08a;
  animation: pulseWarning 1.5s infinite;
}

@keyframes pulseWarning {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.publish-body {
  padding: 24px !important;
  text-align: center;
}

.publish-warning-text {
  font-size: 0.95rem;
  color: var(--text-color, #1f2937);
  margin: 0 0 16px 0;
}

.publish-agent-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e40af;
  margin: 0 0 20px 0;
  padding: 12px 16px;
  background: #eff6ff;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
}

.publish-version-change {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  background: #fef3c7;
  border-radius: 8px;
  border: 1px solid #fcd34d;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.publish-version-change i {
  color: #f59e0b;
  font-size: 1.2rem;
}

.publish-version-change strong {
  color: #1e40af;
}

.publish-confirmation-text {
  font-size: 0.9rem;
  color: #dc2626;
  font-weight: 500;
  margin: 0;
}

.publish-footer {
  background: #fef2f2 !important;
  border-top: 1px solid #fecaca !important;
  padding: 16px 24px !important;
}

.publish-footer .btn-secondary {
  background: white;
  border: 1px solid #d1d5db;
}

.publish-footer .btn-secondary:hover {
  background: #f9fafb;
}

/* Responsive adjustments for version control */
@media (max-width: 768px) {
  .version-control-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .version-selector {
    width: 100%;
  }

  .version-selector .form-select {
    min-width: 0;
    flex: 1;
  }

  .publish-version-change {
    flex-direction: column;
    gap: 8px;
  }
}
