/* ==========================================================================
 * FILE: css/alphacp-v27.css — HostPlux AlphaCP v27.0 Styles
 * Covers: Unified Agent 3 Layout Modes, Social Sign-In, Node.js Apps,
 *         WP 2026 Toggle Suite, Reach HTML/WhatsApp Studio, DNS Propagation,
 *         VPS Terminal AI Console, and Dark Mode Harmony across Themes 1/2/3.
 * ========================================================================== */

/* 1. Unified AlphaCP Agent — 3 Layout Modes (Float, Docked Sidebar, Full Page) */
.kd-head-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.kd-modes {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}
.kd-mode-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.78;
}
.kd-mode-btn.is-on {
  background: rgba(103, 61, 230, 0.92);
  color: #fff;
  opacity: 1;
}
.kd-chip-exec {
  border-color: rgba(103, 61, 230, 0.42) !important;
  font-weight: 600 !important;
}
#kodee-host.kd-host-side .kd-wrap,
.kd-wrap.kd-mode-side {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: 400px !important;
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  z-index: 1200 !important;
  display: flex !important;
  flex-direction: column !important;
}
#kodee-host.kd-host-full .kd-wrap,
.kd-wrap.kd-mode-full {
  position: fixed !important;
  inset: 16px !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  border-radius: 16px !important;
  z-index: 1250 !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.42) !important;
}
.kd-head .icon-btn {
  color: #334155 !important;
  background: rgba(15, 23, 42, 0.08) !important;
  border-radius: 8px !important;
  width: 28px !important;
  height: 28px !important;
  font-weight: 700 !important;
}
.hc-kodee-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #673de6, #5025d1);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(103, 61, 230, 0.38);
}
body[data-page="Client Panel"] .hc-kodee-fab,
body[data-page="Owner WHM Control"] .hc-kodee-fab {
  display: none !important;
}
body.hc-kodee-sb-open #app {
  padding-right: 400px !important;
  box-sizing: border-box !important;
}
#reach-html-code,
#nd-app-env,
#nd-err-log,
.card textarea {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-bottom: 12px !important;
  padding: 12px 14px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.5;
}
.kd-wrap.kd-mode-side .kd-log,
.kd-wrap.kd-mode-full .kd-log {
  flex: 1 1 auto !important;
  max-height: none !important;
}

/* 2. Social Sign-In Buttons on Login / Sign-Up */
.v27-oauth-box {
  margin: 0 0 14px;
}
.v27-oauth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.v27-oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--card, #ffffff);
  color: var(--ink, #1d1e20);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.v27-oauth-btn:hover {
  border-color: #673de6;
  background: rgba(103, 61, 230, 0.05);
}
.v27-oauth-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted, #6d7081);
  font-size: 12px;
}
.v27-oauth-sep::before,
.v27-oauth-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border, #e5e7eb);
}

/* 3. v27 Studio Grids, Toggle Rows, Code Editors & Terminal Console */
.v27-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.v27-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.v27-kpi {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--card, #ffffff);
}
.v27-kpi b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 3px;
}
.v27-kpi span {
  font-size: 12.5px;
  color: var(--muted, #6d7081);
}
.v27-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.v27-toggle-row:last-child {
  border-bottom: 0;
}
.v27-switch {
  min-width: 52px;
  height: 28px;
  border-radius: 99px;
  border: 0;
  background: #cbd5e1;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
  padding: 0;
}
.v27-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.18s;
}
.v27-switch.is-on {
  background: #673de6;
}
.v27-switch.is-on::after {
  transform: translateX(24px);
}
.v27-term {
  background: #0d1117;
  color: #e6edf3;
  border-radius: 12px;
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
}
html[data-dark="1"] .v27-kpi,
html[data-dark="1"] .v27-oauth-btn {
  background: #171a26;
  border-color: #2b3147;
  color: #f3f4f6;
}
