@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0d0d0f;
  --surface: #18181b;
  --surface-2: #202024;
  --border: #2a2a2f;
  --border-soft: #232327;
  --text: #ece9e4;
  --text-dim: #8c8a86;
  --text-faint: #5a5955;
  --accent: #e8590c;
  --accent-soft: #f2864d;
  --accent-bg: rgba(232, 89, 12, 0.1);
  --success: #5fd88f;
  --success-bg: rgba(95, 216, 143, 0.1);
  --radius: 10px;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 24px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.sidebar-logo .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.sidebar-section-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  padding: 16px 8px 8px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 2px;
  transition: background 0.12s ease, color 0.12s ease;
}

.sidebar-nav a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.sidebar-nav a.active {
  background: var(--accent-bg);
  color: var(--accent-soft);
}

.sidebar-nav .icon {
  width: 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  opacity: 0.7;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.sidebar-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

.sidebar-account-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
}

/* Main content */
.main {
  padding: 40px 48px;
  max-width: 1120px;
}

.page-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.page-sub {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0 0 36px;
  max-width: 560px;
  line-height: 1.6;
}

/* Tool cards grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.tool-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-bg);
  color: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
}

.tool-card h3 {
  font-size: 15px;
  margin: 0;
  font-weight: 600;
}

.tool-card p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.55;
  flex: 1;
}

.tool-card-status {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tool-card-status .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.tool-card.soon {
  opacity: 0.55;
}

.tool-card.soon .tool-card-status {
  color: var(--text-faint);
}

.tool-card.soon .tool-card-status .pulse {
  background: var(--text-faint);
}

/* Terminal panel - signature element */
.terminal {
  background: #0a0a0b;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.terminal-bar .tdot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}

.terminal-bar .label {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
}

.terminal-body {
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-dim);
  min-height: 140px;
}

.terminal-body .prompt { color: var(--accent-soft); }
.terminal-body .ok { color: var(--success); }
.terminal-body .cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent-soft);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* Buttons and forms */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: opacity 0.12s ease, transform 0.05s ease;
}

.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text-faint); color: var(--text); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
}
.input:focus { border-color: var(--accent); }
.input::placeholder { color: var(--text-faint); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.badge {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--accent-bg);
  color: var(--accent-soft);
}

.error-text {
  color: #f16060;
  font-size: 13px;
  margin-top: 10px;
}

@media (max-width: 800px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 28px 20px; }
}


/* Dashboard two-column layout */
.dashboard-layout { display:grid; grid-template-columns: 1fr 300px; gap:28px; align-items:start; }
.dashboard-side { position:sticky; top:24px; }
.dashboard-side .terminal-body { font-size:12px; line-height:1.8; }
@media (max-width:900px) { .dashboard-layout { grid-template-columns: 1fr; } .dashboard-side { position:static; } }
