/* 
 * RMRP Bots Platform - ReactBits Dark Theme
 * Inspired by reactbits.dev & modern glassmorphism
 */

:root {
  --bg-main: #08090e;
  --bg-card: rgba(16, 19, 29, 0.75);
  --bg-card-hover: rgba(22, 27, 42, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.35);
  --accent-primary: #6366f1;
  --accent-secondary: #06b6d4;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 12px 40px 0 rgba(99, 102, 241, 0.12);
}

/* Navigation */
.navbar-custom {
  background: rgba(10, 12, 19, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.5rem;
}

.brand-badge {
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Tabs */
.nav-pills-custom .nav-link {
  color: var(--text-muted);
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-pills-custom .nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.nav-pills-custom .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(6, 182, 212, 0.2));
  border-color: var(--border-glow);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

/* Status Indicators */
.badge-online {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-online::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.badge-stopped {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-stopped::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #f43f5e;
}

/* Custom Buttons */
.btn-neon-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-neon-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-neon-emerald {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-neon-emerald:hover {
  background: rgba(16, 185, 129, 0.35);
  color: #fff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.btn-neon-rose {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-neon-rose:hover {
  background: rgba(244, 63, 94, 0.35);
  color: #fff;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.3);
}

.btn-neon-amber {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-neon-amber:hover {
  background: rgba(245, 158, 11, 0.35);
  color: #fff;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

/* Terminal / Log Viewer */
.terminal-window {
  background: #050608;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.terminal-header {
  background: #0e111a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-body {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #e2e8f0;
  padding: 1rem;
  height: 520px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.log-line-err {
  color: #f87171;
}

.log-line-status {
  color: #38bdf8;
  font-style: italic;
}

/* Inputs */
.form-control-custom {
  background: rgba(13, 16, 25, 0.8);
  border: 1px solid var(--border-subtle);
  color: #f8fafc;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-mono);
  transition: all 0.2s ease;
}

.form-control-custom:focus {
  background: rgba(18, 22, 34, 0.95);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  outline: none;
}

/* Knowledge base editor textarea */
.editor-textarea {
  background: #090b12;
  border: 1px solid var(--border-subtle);
  color: #f1f5f9;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  border-radius: 10px;
  padding: 1rem;
  min-height: 520px;
  resize: vertical;
}

.editor-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
