/* ═══════════════════════════════════════════════════
   WebSitter Enterprise · enterprise.css
   Extends styles.css — enterprise-specific overrides
   ═══════════════════════════════════════════════════ */

/* ── Enterprise accent (indigo/violet) ───────────── */
:root {
  --ent:        #7C3AED;
  --ent-dark:   #6D28D9;
  --ent-light:  #A78BFA;
  --ent-pale:   #F5F3FF;
  --ent-mid:    #EDE9FE;
}

/* Override blue CTA buttons with enterprise violet */
.ent-cta.btn-primary             { background: var(--ent); }
.ent-cta.btn-primary:hover       { background: var(--ent-dark); }
.ent-label                       { background: var(--ent-pale); color: var(--ent); }
.ent-hero-hl                     { background: linear-gradient(135deg, #A78BFA 0%, #60A5FA 100%);
                                   -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Badge pill variant */
.ent-badge-pill { background: rgba(124,58,237,.15); border-color: rgba(124,58,237,.3); color: #C4B5FD; }
.ent-badge-dot  { background: #A78BFA; box-shadow: 0 0 8px #A78BFA; }

/* Section label override */
.section-label.ent-sl { background: var(--ent-pale); color: var(--ent); }

/* ── Dept badge ───────────────────────────────────── */
.dept-badge {
  display: inline-block; font-size: .7rem; font-weight: 700;
  padding: 2px 8px; border-radius: 100px; white-space: nowrap;
}
.dept-badge.marketing   { background: #DBEAFE; color: #1D4ED8; }
.dept-badge.engineering { background: #DCFCE7; color: #065F46; }
.dept-badge.hr          { background: #FCE7F3; color: #9D174D; }
.dept-badge.exec        { background: #F3E8FF; color: #5B21B6; }
.dept-badge.all         { background: rgba(255,255,255,.12); color: rgba(255,255,255,.75); }

/* Dark versions for inside demo windows */
.dark-dept.marketing   { background: rgba(59,130,246,.18);  color: #93C5FD; }
.dark-dept.engineering { background: rgba(16,185,129,.15);  color: #6EE7B7; }
.dark-dept.hr          { background: rgba(236,72,153,.15);  color: #F9A8D4; }
.dark-dept.exec        { background: rgba(167,139,250,.18); color: #C4B5FD; }

/* ── Hero enterprise window override ─────────────── */
/* Sidebar nav items use indigo active state */
.ent-page .aws-item.is-active {
  background: rgba(124,58,237,.22);
  color: #C4B5FD;
}
.ent-page .aws-status-foot { color: #A78BFA; }
.ent-page .aws-status-foot::before { background: #A78BFA; box-shadow: 0 0 6px #A78BFA; }

/* Stat cards in hero */
.aw-stat.violet { background: rgba(124,58,237,.15); border-color: rgba(124,58,237,.25); }
.aw-stat.violet .aw-stat-num { color: #C4B5FD; }

/* Feed items (enterprise style — dense, tabular) */
.fi-user  { font-family: monospace; font-size: .72rem; color: rgba(255,255,255,.55); }
.fi-badge { font-size: .67rem; font-weight: 700; padding: 1px 7px; border-radius: 100px; white-space: nowrap; }

/* ── Fleet table (Fleet Overview tab) ────────────── */
.fleet-tbl { width: 100%; border-collapse: collapse; font-size: .82rem; }
.fleet-tbl th {
  text-align: left; font-size: .7rem; font-weight: 700;
  color: rgba(255,255,255,.38); letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.fleet-row { border-bottom: 1px solid rgba(255,255,255,.05); transition: background .15s ease; }
.fleet-row:hover { background: rgba(255,255,255,.04); }
.fleet-row td { padding: 9px 10px; vertical-align: middle; }
.fleet-device { font-family: monospace; font-size: .78rem; color: rgba(255,255,255,.7); }
.fleet-user   { font-size: .8rem; color: rgba(255,255,255,.75); }
.fleet-policy { font-size: .78rem; color: rgba(255,255,255,.5); }
.fleet-status { display: flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.fleet-dot    { width: 6px; height: 6px; border-radius: 50%; background: #10B981; box-shadow: 0 0 5px #10B981; flex-shrink: 0; }
.fleet-dot.alert { background: #F59E0B; box-shadow: 0 0 5px #F59E0B; }

/* ── Group policy cards ───────────────────────────── */
.group-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 2px; }
.group-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.group-card-hdr { display: flex; align-items: center; justify-content: space-between; }
.group-card-name { font-size: .88rem; font-weight: 700; color: rgba(255,255,255,.88); }
.group-count { font-size: .72rem; color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); padding: 2px 8px; border-radius: 100px; }
.group-cats { display: flex; flex-wrap: wrap; gap: 5px; }
.group-cat  { font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: 100px; }
.cat-block  { background: rgba(239,68,68,.18); color: #FCA5A5; border: 1px solid rgba(239,68,68,.2); }
.cat-allow  { background: rgba(16,185,129,.15); color: #6EE7B7; border: 1px solid rgba(16,185,129,.18); }
.group-edit { font-size: .72rem; font-weight: 600; color: #A78BFA; background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.22); border-radius: 6px; padding: 3px 9px; cursor: pointer; width: fit-content; }

/* ── Audit log table ─────────────────────────────── */
.audit-tbl { width: 100%; border-collapse: collapse; font-size: .79rem; }
.audit-tbl th {
  text-align: left; font-size: .68rem; font-weight: 700;
  color: rgba(255,255,255,.35); letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.audit-row { border-bottom: 1px solid rgba(255,255,255,.045); }
.audit-row:hover { background: rgba(255,255,255,.04); }
.audit-row td { padding: 8px 8px; vertical-align: middle; }
.audit-time   { font-size: .72rem; color: rgba(255,255,255,.35); font-family: monospace; white-space: nowrap; }
.audit-user   { font-size: .78rem; color: rgba(255,255,255,.7); }
.audit-domain { font-size: .78rem; color: rgba(255,255,255,.55); }
.audit-policy { font-size: .7rem; color: rgba(255,255,255,.38); }
.audit-export {
  font-size: .73rem; font-weight: 600; color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; padding: 4px 12px; cursor: pointer;
}

/* ── Report section ──────────────────────────────── */
.report-stats { display: flex; gap: 10px; margin-bottom: 14px; }
.report-stat  { flex: 1; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 10px 12px; }
.report-stat-num { font-size: 1.15rem; font-weight: 800; color: rgba(255,255,255,.9); }
.report-stat-lbl { font-size: .7rem; color: rgba(255,255,255,.38); margin-top: 2px; }
.report-cats-lbl { font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.38); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.report-cat-row  { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.report-cat-name { font-size: .79rem; color: rgba(255,255,255,.65); width: 100px; flex-shrink: 0; }
.report-bar-wrap { flex: 1; height: 7px; background: rgba(255,255,255,.07); border-radius: 4px; overflow: hidden; }
.report-bar-fill { height: 100%; border-radius: 4px; transition: width .8s cubic-bezier(.4,0,.2,1); }
.report-cat-pct  { font-size: .73rem; color: rgba(255,255,255,.4); width: 36px; text-align: right; flex-shrink: 0; }

/* ── Features enterprise variant ─────────────────── */
.ent-page .feature-icon-wrap.purple { color: var(--ent); background: var(--ent-pale); }

/* ── Steps (deployment) ──────────────────────────── */
.ent-page .step-num   { color: var(--ent); }
.ent-page .step-arrow svg path { stroke: #A78BFA; }

/* ── Platform section on enterprise ─────────────── */
.ent-page .platform-version { background: var(--ent); }

/* ── Demo section on enterprise ─────────────────── */
.ent-page .demo-label  { background: var(--ent-pale); color: var(--ent); }
.ent-page .demo-title  { color: #F0F6FF; }
.ent-page .demo-orb-1  { background: radial-gradient(circle, #6D28D9, transparent 70%); }
.ent-page .tab-btn.active { color: #C4B5FD; border-bottom-color: #A78BFA; }
.ent-page .tab-progress-bar { background: linear-gradient(90deg, #7C3AED, #A78BFA); }

/* ── FAQ on enterprise ───────────────────────────── */
.ent-page .faq-item[open] > summary { background: var(--ent-pale); }
.ent-page .faq-item summary::after  { color: var(--ent); }

/* ── Contact / CTA section on enterprise ─────────── */
.ent-page .dl-label  { background: rgba(124,58,237,.15); color: #C4B5FD; border-color: rgba(124,58,237,.25); }
.ent-page .dl-orb-1  { background: radial-gradient(circle, #6D28D9, transparent 70%); }
.ent-page .dl-orb-2  { background: radial-gradient(circle, #2563EB, transparent 70%); }
.ent-page .dl-btn    { border-color: rgba(167,139,250,.3); }
.ent-page .dl-btn:hover { border-color: rgba(167,139,250,.6); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .group-cards { grid-template-columns: 1fr; }
  .fleet-tbl th:nth-child(3),
  .fleet-row td:nth-child(3) { display: none; } /* hide Policy col on mobile */
  .audit-tbl th:nth-child(4),
  .audit-row td:nth-child(4) { display: none; } /* hide Policy col on mobile */
  .report-stats { flex-direction: column; }
}
