/* XCar overrides layered on top of the FitNexus (elementar_seller) theme. */

/* ---- Login: notched floating-label inputs (from seller.css, XCar teal) ---- */
.input-group { position: relative; width: 100%; }
.input-group > input {
  width: 100%; padding: 16px 14px; border: 2px solid #d1d5db; border-radius: 12px;
  outline: none; font-size: 16px; background: #fff; transition: .25s;
}
.input-group > label {
  position: absolute; top: 0; left: 22px; transform: translateY(-50%);
  font-size: 13px; font-weight: 600; background: #fff; padding: 0 8px;
  color: #6b7280; pointer-events: none; transition: .25s;
}
.input-group > input:focus { border-color: #2bbbad; }
.input-group > input:focus + label,
.input-group > input:valid + label { color: #2bbbad; }

/* ---- Login page ---- */
body.xcar-login-page {
  min-height: 100vh; display: flex; align-items: center; margin: 0; overflow-x: hidden;
  font-family: "Manrope", system-ui, -apple-system, sans-serif; background: #fff;
}
.xcar-login-section { width: 100%; padding: 1.5rem 0; }
.codex-authbox { max-width: 410px; margin: 0 auto; }
.xcar-wordmark { font-size: 30px; font-weight: 800; color: #1f2738; letter-spacing: -.5px; }
.xcar-wordmark span { color: #2bbbad; }
.codex-authbox h3 { font-weight: 700; color: #1f2738; }
.xcar-login-btn {
  margin-top: 8px; height: 56px; border-radius: 12px; font-size: 18px; font-weight: 600;
  background: #2bbbad; border: 0; color: #fff; transition: background .2s; width: 100%;
}
.xcar-login-btn:hover { background: #249f93; color: #fff; }

/* ---- Login welcome panel (right column), XCar-branded ---- */
.xcar-welcome {
  background: linear-gradient(150deg, #2bbbad 0%, #1f9c90 55%, #16766c 100%);
  color: #fff; border-radius: 22px; padding: 52px 46px; min-height: 540px;
  display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.xcar-welcome::before { content: ""; position: absolute; right: -70px; top: -70px; width: 230px; height: 230px; background: rgba(255,255,255,.08); border-radius: 50%; }
.xcar-welcome::after { content: ""; position: absolute; left: -50px; bottom: -50px; width: 180px; height: 180px; background: rgba(255,255,255,.06); border-radius: 50%; }
.xcar-welcome-brand { font-size: 26px; font-weight: 800; margin-bottom: 26px; position: relative; z-index: 1; }
.xcar-welcome h2 { font-size: 29px; font-weight: 800; line-height: 1.25; margin-bottom: 14px; position: relative; z-index: 1; }
.xcar-welcome > p { font-size: 15px; opacity: .92; margin-bottom: 30px; max-width: 350px; position: relative; z-index: 1; }
.xcar-feat { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; position: relative; z-index: 1; }
.xcar-feat .ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.xcar-feat .ic svg { width: 22px; height: 22px; fill: #fff; }
.xcar-feat b { display: block; font-size: 15px; font-weight: 700; }
.xcar-feat span { font-size: 13px; opacity: .85; }

/* ---- App shell (FitNexus): XCar brand, avatar, page title ---- */
.xcar-side-brand { font-size: 20px; font-weight: 800; color: #1f2738; letter-spacing: -.3px; white-space: nowrap; }
.xcar-side-brand span { color: #2bbbad; }
.codex-header .xcar-side-brand { font-size: 19px; }
.seller-avatar-fallback { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #2bbbad; color: #fff; font-weight: 700; font-size: 15px; }
.seller-avatar-fallback--lg { width: 52px; height: 52px; font-size: 20px; }
.xcar-pagehead { margin-bottom: 18px; }
.xcar-pagetitle { font-size: 20px; font-weight: 700; color: #1f2738; margin: 0; }

/* ---- Dashboard KPI cards (theme .card + colored variants) ---- */
.kpi-teal   { background: linear-gradient(135deg, #2bbbad, #1f9c90); }
.kpi-orange { background: linear-gradient(135deg, #f6845a, #ef6c3f); }
.kpi-blue   { background: linear-gradient(135deg, #4a90d9, #357abd); }
.kpi-pink   { background: linear-gradient(135deg, #ec5f8a, #e23e72); }
.kpi-card .card-body { padding: 22px 24px; }
.kpi-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kpi-label { font-size: 14px; font-weight: 600; opacity: .92; }
.kpi-value { font-size: 34px; font-weight: 800; line-height: 1.1; margin: 4px 0; }
.kpi-sub { font-size: 12.5px; opacity: .9; }
.themebody-wrap .card-header h4 { font-size: 16px; font-weight: 700; color: #1f2738; margin: 0; }
.themebody-wrap .card-header .link { font-size: 12px; }

/* ---- Reconcile Bootstrap (theme reboot) with XCar content (app.css) ---- */
.themebody-wrap, .themebody-wrap .panel, .themebody-wrap .table { font-family: "Manrope", system-ui, -apple-system, sans-serif; }
.cards .card { border: 0; }
.themebody-wrap .table > :not(caption) > * > * { box-shadow: none; background-color: transparent; }
.themebody-wrap a.link { text-decoration: none; }
.themebody-wrap .btn-sm, .themebody-wrap .btn-primary { line-height: normal; }
