/* AGYZ - Multi-Agent Workspace Platform Stylesheet */

* {
  -webkit-tap-highlight-color: transparent;
}

[x-cloak] {
  display: none !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Terminal Screen Styling */
#terminal-container {
  user-select: text !important;
  -webkit-user-select: text !important;
}

#terminal {
  width: 100%;
  height: 100%;
  user-select: text !important;
  -webkit-user-select: text !important;
}

.xterm {
  font-family: 'Noto Sans Arabic', 'JetBrains Mono', monospace !important;
  user-select: text !important;
  -webkit-user-select: text !important;
}

.xterm-screen {
  font-feature-settings: "liga" 1, "calt" 1, "dlig" 1 !important;
  letter-spacing: 0px !important;
  font-variant-ligatures: normal !important;
}

/* Chat Markdown Formatting */
.chat-prose {
  color: #e2e8f0;
  line-height: 1.7;
}
.chat-prose p {
  margin-bottom: 0.75rem;
}
.chat-prose p:last-child {
  margin-bottom: 0;
}
.chat-prose h1, .chat-prose h2, .chat-prose h3, .chat-prose h4 {
  color: #f8fafc;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.chat-prose h1 { font-size: 1.35rem; border-bottom: 1px solid #334155; padding-bottom: 0.25rem; }
.chat-prose h2 { font-size: 1.2rem; }
.chat-prose h3 { font-size: 1.05rem; }
.chat-prose ul, .chat-prose ol {
  padding-right: 1.5rem;
  margin-bottom: 0.75rem;
  list-style-type: disc;
}
.chat-prose ol {
  list-style-type: decimal;
}
.chat-prose li {
  margin-bottom: 0.25rem;
}
.chat-prose code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(51, 65, 85, 0.6);
  padding: 0.15rem 0.4rem;
  border-radius: 0.375rem;
  font-size: 0.85em;
  color: #38bdf8;
  direction: ltr;
  display: inline-block;
}
.chat-prose pre {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  overflow-x: auto;
  margin: 0.75rem 0;
  direction: ltr;
  text-align: left;
}
.chat-prose pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: #e2e8f0;
  font-size: 0.875rem;
  display: block;
}
.chat-prose blockquote {
  border-right: 3px solid #06b6d4;
  padding-right: 0.75rem;
  margin: 0.75rem 0;
  color: #94a3b8;
  font-style: italic;
}
.chat-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.875rem;
}
.chat-prose th, .chat-prose td {
  border: 1px solid #334155;
  padding: 0.5rem 0.75rem;
  text-align: right;
}
.chat-prose th {
  background: rgba(30, 41, 59, 0.7);
  color: #f1f5f9;
}
.chat-prose a {
  color: #38bdf8;
  text-decoration: underline;
}
.chat-prose a:hover {
  color: #7dd3fc;
}

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

.animate-fade-in {
  animation: fadeIn 0.2s ease-out forwards;
}

@keyframes pulseBorder {
  0%, 100% { border-color: rgba(6, 182, 212, 0.3); }
  50% { border-color: rgba(6, 182, 212, 0.8); }
}

.pulse-border {
  animation: pulseBorder 2s infinite;
}
