/* ===== AI Employees Page — eBiz Hub ===== */

/* Tab bar */
.tab-bar { position: sticky; top: 64px; z-index: 90; background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.tab-scroll { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.tab-scroll::-webkit-scrollbar { display: none; }
.tab-btn { flex: 0 0 auto; padding: 14px 18px; border: none; cursor: pointer; font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--text-secondary); background: transparent; border-bottom: 2px solid transparent; transition: all 0.2s; white-space: nowrap; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--teal); border-bottom-color: var(--teal); }

/* Panels */
.emp-panel { display: none; }
.emp-panel.active { display: block; animation: panelIn 0.35s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Employee header card */
.emp-head { display: flex; gap: 24px; align-items: flex-start; padding: 32px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 24px; }
.emp-emoji { font-size: 48px; flex-shrink: 0; line-height: 1; }
.emp-icon-lg { width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--teal-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.emp-icon-lg svg { width: 28px; height: 28px; stroke: var(--teal); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.emp-info h3 { font-size: 24px; font-weight: 700; line-height: 1.2; margin-bottom: 4px; }
.emp-info .role { font-size: 14px; color: var(--teal); font-weight: 600; margin-bottom: 12px; }
.emp-info p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.priority-tag { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-left: 8px; vertical-align: middle; }
.priority-tag.high { background: rgba(5,150,105,0.1); color: var(--success); }
.priority-tag.med { background: var(--orange-light); color: #C2410C; }

/* Feature cards */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 24px; }
.feat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; }
.feat-card h4 { font-size: 14px; font-weight: 600; color: var(--teal); margin-bottom: 6px; }
.feat-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* Chat demo */
.demo-label { font-size: 12px; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.demo-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.chat-window { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.chat-header { padding: 12px 16px; background: var(--off-white); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.chat-header span { font-size: 14px; font-weight: 600; color: var(--text); }
.chat-header small { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.chat-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.6; }
.msg.user { align-self: flex-end; background: var(--teal); color: var(--white); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--off-white); color: var(--text); border-bottom-left-radius: 4px; border: 1px solid var(--border); }
.msg .sender { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.msg.user .sender { color: rgba(255,255,255,0.7); }
.msg.bot .sender { color: var(--teal); }
.msg ul { margin: 4px 0 0 16px; font-size: 13px; }
.msg ul li { margin: 2px 0; }
.msg strong { font-weight: 600; }

/* KPI pills */
.kpi-row { display: flex; flex-wrap: wrap; gap: 8px; }
.kpi-pill { font-size: 12px; padding: 5px 14px; border-radius: 20px; background: var(--teal-light); color: var(--teal-dark); font-weight: 500; }

/* Overview grid */
.overview-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.ov-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; cursor: pointer; transition: all 0.25s; opacity: 0; transform: translateY(12px); animation: cardIn 0.5s ease-out forwards; }
.ov-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
@keyframes cardIn { to { opacity: 1; transform: translateY(0); } }
.ov-emoji { font-size: 36px; margin-bottom: 12px; }
.ov-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.ov-card .ov-role { font-size: 13px; color: var(--teal); font-weight: 600; margin-bottom: 8px; }
.ov-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 12px; }
.ov-cta { font-size: 13px; font-weight: 600; color: var(--teal); }
.ov-card:hover .ov-cta { text-decoration: underline; }

/* Integration pills on overview cards */
.ov-integrations { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.ov-int-pill { font-size: 10px; padding: 2px 8px; border-radius: 4px; background: var(--off-white); border: 1px solid var(--border); color: var(--text-muted); font-weight: 500; }
.ov-card:hover .ov-int-pill { border-color: var(--teal); color: var(--teal); }
.ov-int-more { font-size: 10px; padding: 2px 6px; color: var(--text-muted); font-weight: 600; }

/* Emoji header for individual panels */
.emp-emoji { font-size: 48px; flex-shrink: 0; }

/* Chat animation */
.chat-animate { opacity: 0; transform: translateY(8px); animation: msgIn 0.4s ease-out forwards; }
@keyframes msgIn { to { opacity: 1; transform: translateY(0); } }

/* Chief banner */
.chief-banner { background: var(--navy); border-radius: var(--radius); padding: 40px; text-align: center; margin-top: 24px; }
.chief-banner h3 { font-size: 24px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.chief-banner .role { font-size: 14px; color: #7BBAD9; font-weight: 600; margin-bottom: 12px; }
.chief-banner p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto; font-size: 15px; line-height: 1.6; }
.chief-badge { display: inline-block; background: rgba(30,99,141,0.2); color: #7BBAD9; font-size: 12px; font-weight: 600; padding: 4px 14px; border-radius: 12px; margin-top: 16px; }

/* Team scenarios */
.scenario-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sc-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.sc-tabs::-webkit-scrollbar { display: none; }
.sc-tab { flex: 0 0 auto; padding: 12px 20px; border: none; cursor: pointer; font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--text-secondary); background: transparent; border-bottom: 2px solid transparent; transition: all 0.2s; white-space: nowrap; }
.sc-tab:hover { color: var(--text); }
.sc-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.sc-body { padding: 24px; }
.sc-body h4 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.sc-body .sc-ctx { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }
.flow-step { display: flex; gap: 16px; padding: 12px 0; }
.flow-step + .flow-step { border-top: 1px dashed var(--border); }
.flow-num { width: 36px; height: 36px; border-radius: 50%; background: var(--teal-light); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--teal); flex-shrink: 0; }
.flow-content .fc-bot { font-size: 12px; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: 0.5px; }
.flow-content .fc-action { font-size: 14px; color: var(--text); margin-top: 2px; line-height: 1.55; }
.flow-content .fc-result { font-size: 13px; color: var(--text-secondary); margin-top: 6px; padding: 8px 12px; background: var(--off-white); border-radius: var(--radius-sm); border-left: 3px solid var(--teal); }

/* Before / After */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ba-col { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.ba-col.before { border-top: 3px solid #DC2626; }
.ba-col.after { border-top: 3px solid var(--success); }
.ba-col h4 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.ba-item { display: flex; gap: 8px; padding: 6px 0; font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

/* ROI Calculator */
.roi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.roi-inputs { display: flex; flex-direction: column; gap: 24px; }
.roi-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.roi-field input[type=range] { width: 100%; accent-color: var(--teal); }
.roi-field .rv { font-size: 28px; font-weight: 700; color: var(--teal); margin-top: 4px; }
.roi-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.roi-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.roi-row:last-child { border-bottom: none; }
.roi-row .rr-label { font-size: 13px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.3px; }
.roi-row .rr-val { font-size: 32px; font-weight: 700; color: var(--success); margin-top: 4px; }
.roi-row .rr-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.roi-row.cost .rr-val { color: var(--orange); font-size: 24px; }

/* Industry packs */
.pack-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.pk-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all 0.2s; }
.pk-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.05); transform: translateY(-2px); }
.pk-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.pk-card .pk-sub { font-size: 13px; color: var(--teal); font-weight: 500; margin-bottom: 12px; }
.pk-bots { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pk-bot { font-size: 11px; padding: 3px 10px; background: var(--teal-light); color: var(--teal-dark); border-radius: 12px; font-weight: 500; }
.pk-price { font-size: 24px; font-weight: 700; color: var(--text); }
.pk-price span { font-size: 14px; font-weight: 400; color: var(--text-secondary); }

/* Responsive */
@media (max-width: 768px) {
  .overview-grid, .feat-grid { grid-template-columns: 1fr; }
  .ba-grid, .roi-grid { grid-template-columns: 1fr; }
  .pack-grid { grid-template-columns: 1fr 1fr; }
  .emp-head { flex-direction: column; }
  .msg { max-width: 90%; }
}
@media (max-width: 480px) { .pack-grid { grid-template-columns: 1fr; } }

/* Integrations section */
.integrations-section { border-top: 1px solid var(--border); padding-top: 16px; }
.integrations-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.integrations-row { display: flex; flex-wrap: wrap; gap: 6px; }
.integration-pill {
  font-size: 12px; padding: 4px 12px; border-radius: 6px;
  background: var(--off-white); border: 1px solid var(--border);
  color: var(--text-secondary); font-weight: 500;
  transition: all 0.2s;
}
.integration-pill:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-light); }
