@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --secondary: #0ea5e9;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark-bg: #0f172a;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #1e293b;
  min-height: 100vh;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Glassmorphism effects */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Highlight matched search items */
.row-matched {
  background: linear-gradient(90deg, rgba(236, 253, 245, 0.95) 0%, rgba(209, 250, 229, 0.5) 100%) !important;
  border-left: 4px solid #10b981 !important;
}

.row-matched:hover {
  background: #d1fae5 !important;
}

/* Selected session row in log viewer */
.session-row-selected {
  background-color: #e0f2fe !important;
  border-left: 4px solid #0284c7 !important;
  font-weight: 600;
}

.session-row-selected td {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
}

/* Bravo style grid tables */
.bravo-table-header {
  background-color: #f1f5f9;
  border-bottom: 2px solid #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bravo-table th {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  vertical-align: middle;
  white-space: nowrap;
}

.bravo-table td {
  padding: 12px 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid #f1f5f9;
  vertical-align: middle;
}

.bravo-table-header {
  font-size: 0.82rem;
}

.custom-table th,
.custom-table td {
  padding: 12px 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.custom-table th {
  white-space: nowrap;
}

/* Use more vertical space for result tables while keeping the page manageable. */
#tabContentChildItems > .overflow-x-auto {
  max-height: 70vh;
  overflow-y: auto;
}

@media (max-width: 640px) {
  #tabContentChildItems > .overflow-x-auto {
    max-height: 65vh;
  }
}

.bravo-table tr:hover td {
  background-color: #f8fafc;
}

/* Value diff highlights */
.val-new {
  color: #0369a1;
  font-weight: 600;
  background-color: #f0f9ff;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid #bae6fd;
}

.val-old {
  color: #64748b;
  text-decoration: line-through;
  background-color: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-right: 4px;
  border: 1px solid #e2e8f0;
}

/* Row index yellow badge */
.row-idx {
  background-color: #fef08a;
  color: #854d0e;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 1px 6px;
  border-radius: 3px;
  display: inline-block;
  text-align: center;
  min-width: 20px;
}

/* Badge helpers */
.badge-action-new {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge-action-edit {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-action-delete {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
