/* Shared styles for the AI Agents section. */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8f9fa; color: #333; min-height: 100vh;
}

/* Nav */
.nav {
  background: #fff; border-bottom: 1px solid #e0e0e0; padding: 0 32px;
  display: flex; align-items: center; height: 56px; position: sticky; top: 0; z-index: 10;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: #1a1a2e; text-decoration: none; }
.nav-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 4px; margin-left: 32px; }
.nav-link { padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; color: #666; text-decoration: none; transition: all 0.15s; }
.nav-link:hover { background: #f0f0f0; color: #333; }
.nav-link.active { background: #6c63ff10; color: #6c63ff; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-badge {
  padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 600;
  background: linear-gradient(135deg,#6c63ff,#4ecdc4); color: #fff;
}

/* Sub-nav for the AI Agents section */
.subnav {
  background: #fff; border-bottom: 1px solid #e8e8e8;
  padding: 0 32px; display: flex; align-items: center; height: 42px;
  gap: 4px; position: sticky; top: 56px; z-index: 9;
}
.subnav a {
  padding: 6px 14px; border-radius: 6px; font-size: 12.5px; color: #888;
  text-decoration: none; font-weight: 500; transition: all 0.15s;
}
.subnav a:hover { background: #f0f0f0; color: #333; }
.subnav a.active { background: #6c63ff15; color: #6c63ff; font-weight: 600; }

/* Layout */
.wrap { max-width: 1200px; margin: 0 auto; padding: 32px; }
h1 { font-size: 28px; font-weight: 700; color: #1a1a2e; margin-bottom: 6px; }
.sub { font-size: 14px; color: #666; margin-bottom: 24px; }

/* Panels */
.panel {
  background: #fff; border: 1px solid #e8e8e8; border-radius: 12px;
  padding: 20px; margin-bottom: 16px;
}
.panel h2 {
  font-size: 15px; font-weight: 600; color: #1a1a2e; margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.panel h2 .subtext { font-size: 11px; color: #999; font-weight: 400; }

/* Stat grid */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { background: #fafafa; border: 1px solid #efefef; padding: 14px; border-radius: 8px; }
.stat-k { font-size: 10px; color: #999; text-transform: uppercase; letter-spacing: 1px; }
.stat-v { font-size: 22px; font-weight: 700; color: #1a1a2e; margin-top: 4px; }
.stat-s { font-size: 11px; color: #4ecdc4; margin-top: 2px; }
.stat-v.g { color: #22c55e; }
.stat-v.r { color: #ef4444; }
.stat-v.a { color: #f59e0b; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #f0f0f0; }
th {
  font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: 1px;
  font-weight: 600; background: #fafafa;
}
td.mono { font-family: 'SF Mono', Consolas, monospace; font-size: 12px; color: #666; }
td a { color: #6c63ff; text-decoration: none; }
td a:hover { text-decoration: underline; }

/* Badges */
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 6px;
  font-size: 11px; font-weight: 600;
}
.b-high  { background: #4caf5015; color: #4caf50; }
.b-med   { background: #ff980015; color: #ff9800; }
.b-low   { background: #9e9e9e15; color: #9e9e9e; }
.b-ok    { background: #22c55e15; color: #22c55e; }
.b-warn  { background: #f59e0b15; color: #f59e0b; }
.b-err   { background: #ef444415; color: #ef4444; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 8px; border: none;
  background: linear-gradient(135deg,#6c63ff,#7a72ff);
  color: #fff; font-weight: 600; font-size: 13px; cursor: pointer;
  transition: all 0.15s; box-shadow: 0 1px 3px rgba(108,99,255,0.2);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(108,99,255,0.3); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-ghost { background: #f0f0f0; color: #333; box-shadow: none; }
.btn-ghost:hover { background: #e8e8e8; box-shadow: none; }
.btn-danger { background: linear-gradient(135deg,#ef4444,#dc2626); }

/* Inputs */
input[type="text"], input[type="password"], select {
  padding: 9px 12px; border: 1px solid #ddd; border-radius: 8px;
  font-size: 13px; font-family: inherit; background: #fff;
}
input:focus, select:focus { outline: 2px solid #6c63ff40; border-color: #6c63ff; }

/* Code */
code.inline {
  background: #f0f0f0; padding: 2px 7px; border-radius: 4px;
  font-family: 'SF Mono', Consolas, monospace; font-size: 12px;
  color: #6c63ff;
}
pre {
  background: #0d0d18; color: #d4d4dc; border-radius: 8px; padding: 14px;
  overflow: auto; font-family: 'SF Mono', Consolas, monospace;
  font-size: 12px; line-height: 1.6;
}

/* Hero with gradient */
.hero {
  background: linear-gradient(135deg, #6c63ff10, #4ecdc410);
  padding: 28px; border-radius: 12px; margin-bottom: 20px;
  border: 1px solid #e8e8e8;
}
.hero h1 { margin-bottom: 4px; }
.hero .sub { margin-bottom: 0; }

/* Cards (sub-page navigation) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.card {
  background: #fff; border: 1px solid #e8e8e8; border-radius: 12px;
  padding: 18px; cursor: pointer; transition: all 0.2s;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
}
.card:hover { border-color: #6c63ff; box-shadow: 0 6px 20px rgba(108,99,255,0.1); transform: translateY(-2px); }
.card-icon { font-size: 28px; margin-bottom: 10px; }
.card-title { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.card-desc { font-size: 12.5px; color: #888; line-height: 1.5; flex: 1; }

/* Search bar */
.search {
  position: relative; margin-bottom: 14px;
}
.search input {
  width: 100%; padding: 11px 14px 11px 40px; font-size: 14px;
  border-radius: 24px;
}
.search .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 14px; color: #999;
}

/* Status dots */
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 6px; vertical-align: middle;
}
.dot-green { background: #22c55e; box-shadow: 0 0 0 3px #22c55e20; }
.dot-amber { background: #f59e0b; box-shadow: 0 0 0 3px #f59e0b20; }
.dot-red { background: #ef4444; box-shadow: 0 0 0 3px #ef444420; }

/* Shared standard nav markup */
.nav-logo-svg {
  width: 28px; height: 28px;
}
