/* Custom Omni-Sync UI Styles */

@keyframes pulse-slow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spin-slow 12s linear infinite;
}

.animate-pulse-slow {
  animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Theme Smooth Transitions */
body, header, nav, main, div, button, input, select, table, thead, tbody, tr, th, td {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Custom Scrollbar for Terminal & Tables - Light vs Dark */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.7);
}

.dark ::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.8);
  border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.8);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 1);
}

/* Terminal Console Styling */
.terminal-window {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background-color: #0b1120;
  border: 1px solid #1e293b;
  color: #f1f5f9;
}

.dark .terminal-window {
  background-color: #030712;
  border: 1px solid #1f2937;
  color: #f3f4f6;
}

.log-line {
  line-height: 1.5;
  word-break: break-all;
  white-space: pre-wrap;
  font-size: 0.8125rem;
}

.log-info { color: #38bdf8; }
.log-success { color: #4ade80; }
.log-warn { color: #facc15; }
.log-error { color: #f87171; }
.log-dim { color: #64748b; }

/* Status pill indicator */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.running {
  background-color: #0284c7;
  box-shadow: 0 0 10px #0284c7;
  animation: pulse-slow 1.5s infinite;
}

.dark .status-dot.running {
  background-color: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

.status-dot.success {
  background-color: #16a34a;
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.4);
}

.dark .status-dot.success {
  background-color: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.status-dot.failed {
  background-color: #dc2626;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
}

.dark .status-dot.failed {
  background-color: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.status-dot.idle {
  background-color: #94a3b8;
}

/* Badge styling for Table vs View */
.badge-table {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.dark .badge-table {
  background-color: rgba(30, 58, 138, 0.5);
  color: #93c5fd;
  border-color: rgba(30, 58, 138, 0.8);
}

.badge-view {
  background-color: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.dark .badge-view {
  background-color: rgba(76, 29, 149, 0.5);
  color: #c4b5fd;
  border-color: rgba(91, 33, 182, 0.8);
}
