/* Main styles for Tronic AI Agent frontend */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #34495e;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --error-color: #e74c3c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

h1, h2, h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
}

/* Tab styles moved to /static/components/tabs/tabs.css */

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input[type="text"],
textarea,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #2980b9;
}

button.secondary {
  background-color: var(--secondary-color);
}

button.secondary:hover {
  background-color: #1a252f;
}

button.danger {
  background-color: var(--error-color);
}

button.danger:hover {
  background-color: #c0392b;
}

.message-container {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    background-color: #f9f9fb;
    border-radius: 12px;
    padding: 24px;
}

.message-pair {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding-bottom: 16px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.message-pair:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.message {
    padding: 20px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    max-width: 85%;
    transition: all 0.3s ease;
    animation: message-fade-in 0.3s ease-out;
}

@keyframes message-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.user-message {
  background-color: #e7f2ff;
  border: 1px solid #c0d8ff;
  align-self: flex-end;
  margin-left: auto;
  border-bottom-right-radius: 4px;
  position: relative;
}

.user-message::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 16px;
  height: 16px;
  background-color: #e7f2ff;
  border-right: 1px solid #c0d8ff;
  border-bottom: 1px solid #c0d8ff;
  transform: rotate(45deg);
  z-index: -1;
}

.assistant-message {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  align-self: flex-start;
  margin-right: auto;
  border-bottom-left-radius: 4px;
  position: relative;
}

.assistant-message::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 20px;
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  border-left: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  transform: rotate(45deg);
  z-index: -1;
}

.message-header {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.user-message .message-header {
  color: #0056b3;
}

.assistant-message .message-header {
  color: #2c3e50;
}

.message-header::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 10px;
}

.user-message .message-header::before {
  background-color: #0056b3;
  box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
}

.assistant-message .message-header::before {
  background-color: #2c3e50;
  box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.2);
}

.message-time {
  font-size: 11px;
  color: #999;
  margin-left: 10px;
  font-weight: normal;
}

.message-content {
    white-space: pre-wrap;
    line-height: 1.6;
    color: #333;
    font-size: 15px;
}

/* Header styling within messages */
.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4,
.message-content h5,
.message-content h6 {
    margin-top: 16px;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: #2c3e50;
}

.message-content h1 {
    font-size: 1.8em;
    border-bottom: 1px solid #eaecef;
    padding-bottom: 8px;
}

.message-content h2 {
    font-size: 1.6em;
    border-bottom: 1px solid #eaecef;
    padding-bottom: 6px;
}

.message-content h3 {
    font-size: 1.4em;
}

.message-content h4 {
    font-size: 1.2em;
}

.message-content h5 {
    font-size: 1.1em;
}

.message-content h6 {
    font-size: 1em;
}

/* Add specific styling for headers in messages */
.message-content .message-header-1,
.message-content .message-header-2,
.message-content .message-header-3,
.message-content .message-header-4,
.message-content .message-header-5,
.message-content .message-header-6 {
    position: relative;
    padding-left: 10px;
}

.message-content .message-header-1::before,
.message-content .message-header-2::before,
.message-content .message-header-3::before,
.message-content .message-header-4::before,
.message-content .message-header-5::before,
.message-content .message-header-6::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #3498db;
    border-radius: 2px;
}

/* Code block styling within messages */
.code-block-container {
  position: relative;
  margin: 14px 0;
}

.message-content pre {
  background-color: #f3f4f6;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 16px;
  padding-top: 24px; /* Extra padding at top for the copy button */
  overflow-x: auto;
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  width: 100%;
}

/* Copy button for code blocks */
.code-copy-button {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.code-copy-button:hover {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  border-color: #ccc;
}

.code-copy-button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Position for validate button in code blocks */
.code-block-container .validate-journey-button {
  position: absolute;
  top: 4px;
  right: 80px; /* Position to the left of the copy button */
  font-size: 12px;
  padding: 4px 10px;
  z-index: 10;
  background-color: var(--success-color);
  color: white;
  border: 1px solid #27ae60;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-block-container .validate-journey-button:hover {
  background-color: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.code-block-container .validate-journey-button:active {
  transform: translateY(0);
}

.code-copy-button.copied {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
  font-weight: 600;
}

/* Add a subtle animation for the copied state */
@keyframes copied-animation {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.code-copy-button.copied {
  animation: copied-animation 0.3s ease;
}

/* JSON Syntax Highlighting */
pre code {
  font-family: 'Courier New', monospace;
  line-height: 1.5;
  tab-size: 2;
}

/* JSON with line numbers */
.json-with-line-numbers {
  counter-reset: line;
  padding-left: 0 !important;
  background-color: #272822;
  color: #f8f8f2;
  border-radius: 6px;
  overflow-x: auto;
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.json-line {
  position: relative;
  padding-left: 3.5em;
  min-height: 1.5em;
  line-height: 1.5;
  white-space: pre;
}

.json-line:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.json-line-number {
  position: absolute;
  left: 0;
  width: 3em;
  text-align: right;
  color: #888;
  font-size: 0.85em;
  user-select: none;
  opacity: 0.6;
  padding-right: 0.5em;
  border-right: 1px solid #444;
  margin-right: 0.5em;
}

.json-key {
  color: #f92672;  /* Pink */
  font-weight: bold;
}

.json-string {
  color: #a6e22e;  /* Green */
}

.json-number {
  color: #ae81ff;  /* Purple */
}

.json-boolean {
  color: #66d9ef;  /* Blue */
  font-weight: bold;
}

.json-null {
  color: #fd971f;  /* Orange */
  font-style: italic;
}

.json-bracket {
  color: #f8f8f2;  /* White */
  font-weight: bold;
}

/* Improve scrollbars for JSON code blocks */
.json-with-line-numbers::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.json-with-line-numbers::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.json-with-line-numbers::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.json-with-line-numbers::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Improve code block appearance */
.code-block-container pre {
  background-color: #272822;
  color: #f8f8f2;
  border-radius: 6px;
  padding: 16px;
  padding-top: 30px;
  overflow-x: auto;
  margin: 0;
}

.message-content code {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 3px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #e83e8c;
}

/* List styling within messages */
.message-content ul,
.message-content ol {
    padding-left: 24px;
    margin: 12px 0;
    list-style-position: outside;
}

.message-content ul {
    list-style-type: disc;
}

.message-content ol {
    list-style-type: decimal;
}

.message-content li {
    margin-bottom: 8px;
    line-height: 1.5;
    padding-left: 6px;
}

.message-content li > ul,
.message-content li > ol {
    margin-top: 8px;
    margin-bottom: 0;
}

/* Table styling within messages */
.message-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  overflow-x: auto;
  display: block;
}

.message-content th,
.message-content td {
  border: 1px solid #e1e4e8;
  padding: 8px 12px;
  text-align: left;
}

.message-content th {
  background-color: #f3f4f6;
  font-weight: 600;
}

.message-content tr:nth-child(even) {
  background-color: #f9f9fa;
}

/* Blockquote styling */
.message-content blockquote {
  border-left: 4px solid #dfe2e5;
  color: #6a737d;
  padding: 0 16px;
  margin: 16px 0;
}

/* Status indicator / notifications */
#status-indicator {
  padding: 12px 20px;
  margin: 0;
  border-radius: 6px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 250px;
  max-width: 400px;
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#status-indicator.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

#status-indicator::before {
  margin-right: 10px;
  font-size: 18px;
}

#status-indicator.success {
  background-color: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

#status-indicator.success::before {
  content: '✓';
  color: #28a745;
}

#status-indicator.error {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

#status-indicator.error::before {
  content: '✗';
  color: #dc3545;
}

#status-indicator.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

#status-indicator.info::before {
  content: 'ℹ';
  color: #17a2b8;
}

#status-indicator.warning {
  background-color: #fff3cd;
  color: #856404;
  border-left: 4px solid #ffc107;
}

#status-indicator.warning::before {
  content: '⚠';
  color: #ffc107;
}

/* Animation for status indicator */
@keyframes status-appear {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#status-indicator:not(.hidden) {
  animation: status-appear 0.3s ease-out;
}

.journey-info {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.journey-id {
  font-family: monospace;
  background-color: #eee;
  padding: 3px 6px;
  border-radius: 3px;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
  vertical-align: middle;
}

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

.hidden {
  display: none;
}

.static-field {
  padding: 10px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  color: #6c757d;
  font-weight: 500;
}

.journeys-list {
  margin-top: 20px;
}

.journey-item {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.journey-item:hover {
  background-color: #f5f5f5;
}

.journey-item.active {
  border-color: var(--primary-color);
  background-color: rgba(52, 152, 219, 0.1);
}

.journey-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.journey-item-title {
  font-weight: bold;
}

.journey-item-status {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 12px;
}

.journey-item-status.active {
  background-color: #d4edda;
  color: #155724;
}

.journey-item-status.closed {
  background-color: #f8d7da;
  color: #721c24;
}

.journey-item-date {
  font-size: 12px;
  color: #777;
}

footer {
  margin-top: 50px;
  text-align: center;
  color: #777;
  font-size: 14px;
}

/* Password overlay styles */
.password-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(52, 73, 94, 0.97), rgba(44, 62, 80, 0.97));
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.password-container {
  background-color: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 450px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.password-container h2 {
  margin-top: 0;
  margin-bottom: 25px;
  color: var(--secondary-color);
  font-size: 28px;
  font-weight: 600;
}

.password-container .form-group {
  margin-bottom: 30px;
}

.password-container input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.password-container input[type="password"]:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  outline: none;
}

.password-container button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  width: 100%;
  max-width: 200px;
}

.password-container button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

.password-container button:active {
  transform: translateY(0);
}

.password-error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
  border-left: 4px solid #e74c3c;
}

.password-logo {
  margin-bottom: 20px;
  font-size: 40px;
  color: var(--primary-color);
}

/* System Prompts styles moved to /static/components/system-prompts/system-prompts.css */

.checkbox-group, .checkbox-container {
  display: flex;
  align-items: center;
}

.checkbox-group input[type="checkbox"],
.checkbox-container input[type="checkbox"] {
  margin-right: 10px;
}

.checkbox-group label,
.checkbox-container label {
  margin-bottom: 0;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}


/* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
}

.modal-header h3 {
  margin: 0;
  color: var(--secondary-color);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #777;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  background-color: #eee;
  color: var(--error-color);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(90vh - 70px);
}

.hidden {
  display: none;
}

/* Character count styles */
.char-count {
  font-size: 14px;
  color: #666;
  padding: 8px 0;
  font-family: monospace;
}

/* Modal actions container */
.modal-actions {
  display: flex;
  gap: 10px;
}

/* Resources Styles moved to /static/components/resources/resources.css */

/* Journey Generations Styles */
.generations-list {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #ddd;
  margin-top: 20px;
}

.generation-item {
  padding: 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s;
  border-left: 3px solid transparent;
}

.generation-item:last-child {
  border-bottom: none;
}

.generation-item:hover {
  background-color: #f5f5f5;
}

.generation-item.active {
  background-color: rgba(52, 152, 219, 0.1);
  border-left-color: var(--primary-color);
}

.generation-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.generation-item-id {
  font-weight: bold;
  color: var(--secondary-color);
  font-family: monospace;
  font-size: 0.9em;
}

.generation-item-timestamp {
  font-size: 12px;
  color: #777;
}

.generation-item-status {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 10px;
}

.generation-item-status.completed {
  background-color: #d4edda;
  color: #155724;
}

.generation-item-status.pending {
  background-color: #fff3cd;
  color: #856404;
}

.generation-item-status.failed {
  background-color: #f8d7da;
  color: #721c24;
}

.generation-item-details {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.generations-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.generations-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.generations-pagination button {
  padding: 5px 10px;
  font-size: 14px;
}

.generations-pagination span {
  font-size: 14px;
  color: #666;
}

.generations-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  color: #666;
  font-style: italic;
}

/* Generation Modal Styles */
.generation-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.generation-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.generation-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.generation-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
}

.generation-modal-header h3 {
  margin: 0;
  color: var(--secondary-color);
}

.generation-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #777;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.generation-modal-close:hover {
  background-color: #eee;
  color: var(--error-color);
}

.generation-modal-body {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(90vh - 70px);
}

.generation-section {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.generation-section:last-child {
  border-bottom: none;
}

.generation-section h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--secondary-color);
  font-size: 16px;
  font-weight: 600;
}

.generation-details-container {
  padding: 5px;
}

.generation-data {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  background-color: #272822;
  color: #f8f8f2;
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
}

.generation-id {
  font-family: monospace;
  font-size: 14px;
  background-color: #f5f5f5;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  margin-bottom: 8px;
  word-break: break-all;
}

.generation-created-at {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

#generation-details-modal .modal-content {
  max-width: 800px;
  width: 90%;
}

#generation-details-modal .code-block-container {
  position: relative;
  margin: 14px 0;
}

#generation-details-modal .code-copy-button {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

#generation-details-modal .code-copy-button:hover {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Analytics Section Styles */
.analytics-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.analytics-actions {
    margin-top: 20px;
    text-align: center;
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.primary-button:hover {
    background-color: #2980b9;
}

.generation-metadata {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.generation-metadata-label {
  font-weight: bold;
  color: #555;
}

.generation-metadata-value {
  color: #333;
}

/* Journey Validation Styles */
.validate-journey-button {
  background-color: var(--success-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.validate-journey-button:hover {
  background-color: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.validate-journey-button:active {
  transform: translateY(0);
}

.validation-result {
  margin-top: 15px;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  animation: fade-in 0.3s ease-out;
}

.validation-success {
  background-color: rgba(46, 204, 113, 0.15);
  border-left: 4px solid var(--success-color);
  color: #155724;
}

.validation-error {
  background-color: rgba(231, 76, 60, 0.15);
  border-left: 4px solid var(--error-color);
  color: #721c24;
}

.validation-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary-color);
}

.validation-loading .loading {
  margin-left: 0;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}