/* ResonArch Premium Console Styles */

* {
  box-sizing: border-box;
}

body {
  background-color: #0B0F19;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Scrollbars */
.scrollbar-thin::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Sidebar Navigation Items */
.nav-item {
  color: #94a3b8;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.nav-item:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
  color: #ffffff;
  background-color: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.15);
}

.nav-item.active svg {
  color: #a78bfa;
}

/* Terminal Log Console */
#terminal {
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
  font-family: 'Fira Code', monospace;
  line-height: 1.6;
}

.log-line {
  display: block;
  white-space: pre-wrap;
  word-break: break-all;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  padding: 2px 0;
}

.log-stdout {
  color: #cbd5e1;
}

.log-stderr {
  color: #f87171;
}

.log-system {
  color: #a78bfa;
  font-weight: 500;
}

/* Tailwind CSS Utility Polyfills for clean layouts */
.h-full { height: 100%; }
.w-full { width: 100%; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.hidden { display: none !important; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0 { left: 0; right: 0; }
.top-0 { top: 0; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Styling & Spacing utilities */
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-2.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-1.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Backgrounds & Borders */
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }
.bg-black\/35 { background-color: rgba(0, 0, 0, 0.35); }
.bg-white\/2 { background-color: rgba(255, 255, 255, 0.02); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-violet-600 { background-color: #7c3aed; }
.bg-violet-600\/10 { background-color: rgba(124, 58, 237, 0.1); }
.bg-sky-400\/5 { background-color: rgba(56, 189, 248, 0.05); }
.bg-amber-500\/10 { background-color: rgba(245, 158, 11, 0.1); }
.bg-green-500\/10 { background-color: rgba(34, 197, 94, 0.1); }
.bg-red-500\/10 { background-color: rgba(239, 68, 68, 0.1); }

.border { border-style: solid; border-width: 1px; }
.border-r { border-right-style: solid; border-right-width: 1px; }
.border-b { border-bottom-style: solid; border-bottom-width: 1px; }
.border-t { border-top-style: solid; border-top-width: 1px; }
.border-none { border-style: none; }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-violet-500\/20 { border-color: rgba(139, 92, 246, 0.2); }
.border-amber-500\/20 { border-color: rgba(245, 158, 11, 0.2); }
.border-green-500\/20 { border-color: rgba(34, 197, 94, 0.2); }
.border-red-500\/20 { border-color: rgba(239, 68, 68, 0.2); }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-mono { font-family: 'Fira Code', monospace; }
.tracking-tight { tracking-spacing: -0.025em; }
.tracking-wider { tracking-spacing: 0.05em; }
.text-slate-200 { color: #cbd5e1; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-white { color: #ffffff; }
.text-amber-400 { color: #fbbf24; }
.text-green-400 { color: #4ade80; }
.text-red-400 { color: #f87171; }
.text-violet-400 { color: #a78bfa; }
.text-rose-400 { color: #fb7185; }
.uppercase { text-transform: uppercase; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Rounding & Transitions */
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-md { border-radius: 0.375rem; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Status Badges */
.bg-green-400 { background-color: #4ade80; }
.bg-amber-400 { background-color: #fbbf24; }
.bg-red-400 { background-color: #f87171; }
.bg-sky-400 { background-color: #38bdf8; }

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* Toast Message animations */
@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(20px); opacity: 0; }
}

.toast-show {
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 1 !important;
}

.toast-hide {
  animation: slideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
