/* ============================================================================
   SentinelLabeler Theme & Component Stylesheet
   Commercial AI Platform Standard (Roboflow / Ultralytics Grade)
   ========================================================================== */

html[data-page-theme="labeler"] {
  --accent: #FFB000;
  --accent-2: #FF7A3D;
  --accent-purple: #c084fc;
  --accent-cyan: #00e5ff;
  --accent-hue: 38;
  --grad: linear-gradient(100deg, var(--accent), var(--accent-2));
  --grad-ai: linear-gradient(100deg, #c084fc 0%, #a855f7 50%, #00e5ff 100%);
}

/* Brand Mark SL */
.brand.labeler-brand .mark {
  background: var(--grad);
  box-shadow: 0 6px 18px -6px rgba(255, 176, 0, .5);
}

.brand.labeler-brand .mark-text b {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Top Suite Banner */
.suite-banner {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.08), rgba(255, 176, 0, 0.08) 50%, rgba(192, 132, 252, 0.12) 100%);
  border-bottom: 1px solid rgba(255, 176, 0, 0.2);
  padding: 8px 16px;
  text-align: center;
  font-size: 12.5px;
  color: #cbd5e1;
}

.suite-banner a {
  color: #00e5ff;
  font-weight: 700;
  margin-left: 8px;
  text-decoration: none;
}

.suite-banner a:hover {
  text-decoration: underline;
}

/* Interactive Playground Canvas Card */
.labeler-interactive-card {
  max-width: 1040px;
  margin: 32px auto 0 auto;
  background: #090b14;
  border: 1px solid rgba(255, 176, 0, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.8), 0 0 40px -10px rgba(255, 176, 0, 0.1);
}

.labeler-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(14, 17, 28, 0.95);
  border-bottom: 1px solid var(--hair);
  flex-wrap: wrap;
  gap: 12px;
}

.labeler-card-header .title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13.5px;
  color: #ffffff;
}

.labeler-tool-tabs {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--hair);
}

.labeler-tool-tab {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.labeler-tool-tab.active {
  background: rgba(255, 176, 0, 0.15);
  border: 1px solid rgba(255, 176, 0, 0.35);
  color: #ffffff;
}

.labeler-card-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  min-height: 480px;
}

@media (max-width: 860px) {
  .labeler-card-body {
    grid-template-columns: 1fr;
  }
}

.labeler-canvas-stage {
  position: relative;
  background: #04060c;
  border-right: 1px solid var(--hair);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.labeler-canvas-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.labeler-sidebar {
  padding: 20px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.labeler-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 176, 0, 0.1);
  border: 1px solid rgba(255, 176, 0, 0.3);
  padding: 3px 8px;
  border-radius: 100px;
}

/* Feature Comparison Table */
.cmp-container {
  max-width: 980px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--panel);
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.cmp-table th, .cmp-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--hair);
}

.cmp-table thead th {
  background: rgba(0, 0, 0, 0.3);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cmp-table th.col-feature { width: 36%; }
.cmp-table th.col-highlight {
  background: rgba(255, 176, 0, 0.08);
  border-left: 1px solid rgba(255, 176, 0, 0.2);
  border-right: 1px solid rgba(255, 176, 0, 0.2);
  color: var(--accent);
}

.cmp-table td.col-highlight {
  background: rgba(255, 176, 0, 0.04);
  border-left: 1px solid rgba(255, 176, 0, 0.15);
  border-right: 1px solid rgba(255, 176, 0, 0.15);
  font-weight: 600;
  color: #ffffff;
}

.cmp-check {
  color: #2be08b;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cmp-cross {
  color: #64748b;
}

/* Documentation Layout */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  max-width: 1140px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
}

.docs-sidebar {
  position: sticky;
  top: 90px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-nav-link {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all .15s ease;
  border-left: 2px solid transparent;
}

.docs-nav-link:hover, .docs-nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--accent);
}

.docs-content {
  color: var(--text);
  line-height: 1.7;
}

.docs-content h2 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  margin: 36px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hair);
  color: #ffffff;
}

.docs-content h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px 0;
  color: #ffffff;
}

.docs-content p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px;
}

.docs-callout {
  padding: 16px 20px;
  border-radius: 10px;
  background: rgba(255, 176, 0, 0.08);
  border-left: 4px solid var(--accent);
  margin: 20px 0;
  font-size: 14px;
  color: #cbd5e1;
}

.docs-callout.tip {
  background: rgba(0, 229, 255, 0.08);
  border-left-color: #00e5ff;
}

.docs-code {
  background: #05060b;
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: 14px 18px;
  font-family: "Cascadia Code", monospace;
  font-size: 13px;
  color: #e2e8f0;
  overflow-x: auto;
  margin: 16px 0;
}

/* Keyboard Shortcut Chip */
.kbd-chip {
  display: inline-block;
  background: #181b28;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}
