Vion / frontend /src /styles.css
MonicaCarter's picture
Claude Opus 4.8
Update sign-in/sign-up visual with new advisor photo + bias crop to face
78ba236
Raw History Blame Contribute Delete
19.1 kB
/* Dark palette (default + when Mantine sets the dark scheme). Values mirror
Mantine's own dark surfaces (body=dark.7, card=dark.6, border=dark.4, …) so
the plain-CSS panels blend seamlessly with the Mantine sidebar/cards. */
:root,
:root[data-mantine-color-scheme="dark"] {
--bg: #1a1b1e;
--panel: #25262b;
--panel-2: #2c2e33;
--text: #c1c2c5;
--muted: #909296;
--accent: #4faae4; /* brand blue, brightened for contrast on dark surfaces */
--danger: #ff6b6b;
--ok: #51cf66;
--border: #373a40;
}
/* Light palette β€” applied when Mantine switches to the light scheme. This is
what makes the scenario/brief/objection panels (plain-CSS, not Mantine) turn
white-on-dark-text together with the rest of the app. */
:root[data-mantine-color-scheme="light"] {
--bg: #ffffff;
--panel: #ffffff;
--panel-2: #f2f4f9;
--text: #1f2430;
--muted: #6b7280;
--accent: #2387d0; /* brand blue (matches Mantine primary + smokey bg) */
--danger: #e03131;
--ok: #2f9e44;
--border: #e3e6ef;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
background: var(--bg);
color: var(--text);
}
.app {
max-width: 1100px;
margin: 0 auto;
padding: 24px;
}
header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
}
header h1 {
font-size: 20px;
margin: 0;
}
nav button,
.controls button,
.filters select {
cursor: pointer;
}
nav button {
background: transparent;
color: var(--muted);
border: 1px solid var(--border);
border-radius: 8px;
padding: 8px 14px;
margin-left: 8px;
}
nav button.active {
color: var(--text);
border-color: var(--accent);
}
.header-right {
display: flex;
align-items: center;
gap: 16px;
}
.lang-toggle {
display: inline-flex;
border: 1px solid var(--border);
border-radius: 8px;
overflow: hidden;
}
.lang-toggle button {
background: transparent;
color: var(--muted);
border: none;
padding: 8px 12px;
cursor: pointer;
font-size: 13px;
}
.lang-toggle button.active {
background: var(--accent);
color: #fff;
}
.lang-note {
color: var(--muted);
font-size: 12px;
margin-top: 10px;
}
.grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
/* Single column on tablet/phone so the two panels never get cramped. */
@media (max-width: 768px) {
.grid {
grid-template-columns: 1fr;
}
.scenario-list {
max-height: none;
}
}
.panel {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 12px;
padding: 16px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.panel h2 {
margin-top: 0;
font-size: 15px;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.04em;
}
.filters {
display: flex;
gap: 16px;
margin-bottom: 12px;
}
.filters label {
display: flex;
flex-direction: column;
font-size: 12px;
color: var(--muted);
gap: 4px;
}
.filters select {
background: var(--panel-2);
color: var(--text);
border: 1px solid var(--border);
border-radius: 8px;
padding: 6px 10px;
}
.scenario-list {
list-style: none;
margin: 0;
padding: 0;
max-height: 70vh;
overflow-y: auto;
}
.scenario-list li {
display: grid;
grid-template-columns: auto auto auto 1fr auto;
align-items: center;
gap: 10px;
padding: 10px 12px;
border: 1px solid transparent;
border-radius: 10px;
cursor: pointer;
transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
/* Favorite (star) toggle */
.scenario-list .fav {
background: transparent;
border: none;
padding: 2px;
cursor: pointer;
color: var(--muted);
display: inline-flex;
align-items: center;
transition: color 0.15s ease, transform 0.1s ease;
}
.scenario-list .fav:hover { color: #f59000; transform: scale(1.15); }
.scenario-list .fav.on { color: #f59000; }
/* Per-scenario status pill */
.scenario-list .status {
justify-self: end;
font-size: 11px;
font-weight: 700;
padding: 2px 9px;
border-radius: 999px;
white-space: nowrap;
}
.scenario-list .status.notstarted {
background: color-mix(in srgb, var(--muted) 16%, transparent);
color: var(--muted);
}
.scenario-list .status.inprogress {
background: color-mix(in srgb, #f59000 18%, transparent);
color: #f59000;
}
.scenario-list .status.passed {
background: color-mix(in srgb, #2f9e44 22%, transparent);
color: #37b24d;
}
.scenario-list li:hover {
background: var(--panel-2);
}
.scenario-list li.selected {
border-color: transparent;
background: color-mix(in srgb, var(--accent) 14%, transparent);
box-shadow: inset 3px 0 0 var(--accent);
}
.badge {
background: var(--accent);
color: #fff;
border-radius: 6px;
padding: 2px 8px;
font-size: 12px;
font-weight: 600;
}
.sid {
color: var(--muted);
font-variant-numeric: tabular-nums;
font-size: 13px;
}
.stype {
font-size: 14px;
}
.sp {
color: var(--muted);
font-size: 13px;
text-align: right;
}
.brief {
background: var(--panel-2);
border-radius: 10px;
padding: 14px 14px 14px 16px;
margin-bottom: 16px;
border-left: 3px solid #f59000;
}
.brief-head {
display: flex;
gap: 10px;
align-items: center;
margin-bottom: 8px;
}
.brief h3 {
margin: 4px 0;
}
.brief small {
color: var(--muted);
font-weight: 400;
}
.setup {
line-height: 1.5;
}
.hint,
.note {
color: var(--muted);
font-size: 13px;
border-left: 3px solid var(--border);
padding-left: 10px;
}
.callpanel {
border-top: 1px solid var(--border);
padding-top: 16px;
}
.status-row {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 12px;
}
.call-timer {
margin-left: auto;
font-variant-numeric: tabular-nums;
font-weight: 700;
font-size: 14px;
letter-spacing: 0.5px;
color: var(--accent, #2387d0);
background: color-mix(in srgb, var(--accent, #2387d0) 12%, transparent);
padding: 3px 10px;
border-radius: 999px;
}
.dot {
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--muted);
}
.dot.on {
background: var(--ok);
box-shadow: 0 0 0 4px rgba(65, 209, 150, 0.18);
}
.dot.off {
background: var(--muted);
}
.controls {
display: flex;
gap: 10px;
}
.controls button {
background: var(--panel-2);
color: var(--text);
border: 1px solid var(--border);
border-radius: 10px;
padding: 10px 18px;
font-size: 14px;
font-weight: 600;
transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.controls button:not(:disabled):hover {
transform: translateY(-1px);
}
.controls button:not(:disabled):active {
transform: translateY(0);
}
.controls button.primary {
background: linear-gradient(135deg, #f59000, #f69a17);
border: none;
color: #fff;
box-shadow: 0 4px 14px rgba(245, 144, 0, 0.35);
}
.controls button.primary:not(:disabled):hover {
box-shadow: 0 6px 20px rgba(245, 144, 0, 0.45);
}
.controls button.danger {
background: var(--danger);
border-color: var(--danger);
color: #fff;
}
.controls button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.meta {
color: var(--muted);
font-size: 12px;
margin-top: 10px;
}
.warning {
color: #ffce5b;
font-size: 13px;
}
.error {
color: var(--danger);
font-size: 13px;
}
.empty {
color: var(--muted);
}
.objections {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.objections th,
.objections td {
text-align: left;
padding: 8px 10px;
border-bottom: 1px solid var(--border);
vertical-align: top;
}
.objections th {
color: var(--muted);
font-weight: 600;
}
/* Header user menu (auth) */
.user-menu {
display: flex;
align-items: center;
gap: 0.5rem;
}
.user-menu .user-email {
color: var(--muted);
font-size: 0.85rem;
}
/* Post-call scorecard */
.call-result {
margin-top: 1rem;
padding: 1rem;
border: 1px solid var(--border, #2a2a35);
border-radius: 10px;
background: var(--panel, rgba(255, 255, 255, 0.02));
}
.call-result .result-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
}
.call-result h3 { margin: 0; }
.call-result .badge {
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.04em;
padding: 0.2rem 0.6rem;
border-radius: 999px;
}
.call-result .badge.pass { background: #18794e; color: #fff; }
.call-result .badge.fail { background: #b42318; color: #fff; }
.call-result .score {
display: flex;
align-items: baseline;
gap: 0.3rem;
margin: 0.5rem 0;
}
.call-result .score-num { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.call-result .score-den { color: var(--muted); font-size: 0.9rem; }
.call-result .result-summary { margin: 0.5rem 0; }
.call-result .result-section { margin-top: 0.75rem; }
.call-result .result-section h4 {
margin: 0 0 0.3rem;
font-size: 0.9rem;
color: var(--muted);
}
.call-result .result-section ul { margin: 0; padding-left: 1.1rem; }
.call-result .result-section li { margin: 0.15rem 0; }
.call-result > button { margin-top: 0.9rem; }
/* ── Auth pages (smokey background + glassmorphism card) ─────────────────── */
.auth-wrap {
position: relative;
min-height: 100dvh;
width: 100%;
background: #0b1020;
overflow: hidden;
}
.auth-center {
position: relative;
z-index: 10;
min-height: 100dvh;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
}
.auth-card {
width: 100%;
max-width: 380px;
padding: 2rem;
display: flex;
flex-direction: column;
gap: 1.5rem;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(16px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 1rem;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
color: #fff;
}
.auth-head { text-align: center; }
.auth-head h2 { margin: 0; font-size: 1.75rem; font-weight: 700; color: #fff; }
.auth-head p { margin: 0.4rem 0 0; font-size: 0.85rem; color: #cbd5e1; }
.auth-form { display: flex; flex-direction: column; gap: 1.75rem; }
/* Floating-label fields */
.float-field { position: relative; }
.float-field input {
display: block;
width: 100%;
padding: 0.6rem 0;
font-size: 0.9rem;
color: #fff;
background: transparent;
border: 0;
border-bottom: 2px solid #9ca3af;
outline: none;
}
.float-field input:focus { border-bottom-color: #2387d0; }
.float-field label {
position: absolute;
top: 0.6rem;
left: 0;
display: inline-flex;
align-items: center;
gap: 0.4rem;
font-size: 0.9rem;
color: #cbd5e1;
pointer-events: none;
transform-origin: 0 0;
transition: transform 0.3s, color 0.3s;
}
.float-field input:focus + label,
.float-field input:not(:placeholder-shown) + label {
transform: translateY(-1.4rem) scale(0.8);
color: #4faae4;
}
.auth-row { display: flex; align-items: center; justify-content: flex-end; }
.auth-link { color: #cbd5e1; font-size: 0.78rem; text-decoration: none; }
.auth-link:hover { color: #fff; }
.auth-submit {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
width: 100%;
padding: 0.8rem 1rem;
background: linear-gradient(135deg, #f59000, #f69a17);
color: #fff;
font-weight: 600;
font-size: 0.95rem;
letter-spacing: 0.01em;
border: 0;
border-radius: 0.625rem;
cursor: pointer;
box-shadow: 0 6px 18px rgba(245, 144, 0, 0.4);
transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.auth-submit:hover {
transform: translateY(-1px);
box-shadow: 0 10px 26px rgba(245, 144, 0, 0.5);
filter: brightness(1.05);
}
.auth-submit:active { transform: translateY(0); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }
.auth-submit .arrow { transition: transform 0.25s; }
.auth-submit:hover .arrow { transform: translateX(4px); }
.auth-foot { text-align: center; font-size: 0.78rem; color: #9ca3af; margin: 0; }
.auth-foot a { color: #4faae4; font-weight: 600; text-decoration: none; }
.auth-foot a:hover { color: #7bc0e9; }
/* ── Premium button polish (applies to all Mantine buttons) ──────────────── */
.mantine-Button-root {
font-weight: 600;
letter-spacing: 0.01em;
transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease,
background-color 0.15s ease;
}
.mantine-Button-root:active {
transform: translateY(1px);
}
/* Solid buttons (filled + gradient): soft layered elevation + micro-lift. */
.mantine-Button-root[data-variant="filled"],
.mantine-Button-root[data-variant="gradient"] {
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.1);
}
.mantine-Button-root[data-variant="filled"]:hover,
.mantine-Button-root[data-variant="gradient"]:hover {
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.14), 0 10px 24px rgba(0, 0, 0, 0.16);
filter: brightness(1.04) saturate(1.03);
}
/* Glossy sheen gives solid colors depth. Filled only β€” the gradient variant
already paints its own background-image, so we leave it untouched. */
.mantine-Button-root[data-variant="filled"] {
background-image: linear-gradient(
180deg,
rgba(255, 255, 255, 0.14),
rgba(0, 0, 0, 0.05)
);
}
/* Subtle lift for the quieter variants too (no heavy shadow). */
.mantine-Button-root[data-variant="light"]:hover,
.mantine-Button-root[data-variant="default"]:hover,
.mantine-Button-root[data-variant="outline"]:hover {
transform: translateY(-1px);
}
/* Call-result actions (Retry + Done) */
.call-result .result-actions {
display: flex;
gap: 10px;
margin-top: 1rem;
}
.call-result .result-actions button {
border: none;
border-radius: 8px;
padding: 9px 16px;
font-weight: 600;
cursor: pointer;
transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.call-result .result-actions .retry {
background: linear-gradient(135deg, #f59000, #f69a17);
color: #fff;
box-shadow: 0 4px 14px rgba(245, 144, 0, 0.35);
}
.call-result .result-actions .retry:hover {
transform: translateY(-1px);
filter: brightness(1.05);
}
.call-result .result-actions .close {
background: var(--panel-2);
color: var(--text);
border: 1px solid var(--border);
}
/* ── Split-panel auth (sign in / sign up) ────────────────────────────────── */
.auth-page { display: flex; min-height: 100dvh; width: 100%; background: #fff; }
.auth-visual { position: relative; overflow: hidden; display: none; }
@media (min-width: 860px) { .auth-visual { display: block; flex: 1; } }
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.auth-visual .auth-visual-grad {
position: absolute; inset: 0;
background: linear-gradient(180deg, rgba(15,32,57,0) 55%, rgba(15,32,57,0.55) 100%);
}
.auth-visual .auth-visual-brand {
position: absolute; left: 0; right: 0; bottom: 0; padding: 40px; color: #fff;
}
.auth-visual .auth-visual-brand h2 { font-size: 1.9rem; font-weight: 800; margin: 0 0 8px; }
.auth-visual .auth-visual-brand p { margin: 0; opacity: 0.92; max-width: 400px; line-height: 1.5; }
.auth-pane { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; background: #fff; }
.auth-box { width: 100%; max-width: 410px; }
.auth-box h1 { font-size: 1.85rem; font-weight: 800; color: #111827; margin: 0 0 6px; }
.auth-box-sub { color: #6b7280; margin: 0 0 28px; font-size: 0.95rem; }
.auth-box .link { color: #2387d0; font-weight: 600; cursor: pointer; background: none; border: none; padding: 0; font: inherit; }
.auth-box .link:hover { color: #1f77b6; text-decoration: underline; }
.auth-field { margin-bottom: 18px; }
.auth-field > label { display: block; font-size: 0.85rem; font-weight: 600; color: #374151; margin-bottom: 6px; }
.auth-field input[type="email"], .auth-field input[type="password"], .auth-field input[type="text"] {
width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 12px;
outline: none; font-size: 0.95rem; color: #111827; background: #fff;
transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-field input:focus { border-color: #2387d0; box-shadow: 0 0 0 3px rgba(35,135,208,0.15); }
.auth-pw { position: relative; }
.auth-pw input { padding-right: 44px; }
.auth-pw-toggle {
position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
background: none; border: none; cursor: pointer; color: #6b7280;
display: inline-flex; padding: 6px; border-radius: 999px;
}
.auth-pw-toggle:hover { background: #f3f4f6; }
.auth-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; font-size: 0.85rem; }
.auth-meta label { display: flex; align-items: center; gap: 8px; color: #4b5563; cursor: pointer; }
.auth-primary {
width: 100%; padding: 12px; border: none; border-radius: 12px; font-weight: 700;
font-size: 0.95rem; color: #fff; cursor: pointer;
background: linear-gradient(135deg, #f59000, #f69a17);
box-shadow: 0 6px 18px rgba(245,144,0,0.35);
transition: transform 0.12s, filter 0.2s, box-shadow 0.2s;
}
.auth-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.auth-primary:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: #9ca3af; font-size: 0.8rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: #e5e7eb; }
.auth-social {
width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
padding: 11px; border: 1px solid #d1d5db; border-radius: 12px; background: #fff;
color: #374151; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: background 0.15s;
}
.auth-social:hover { background: #f9fafb; }
.auth-err { color: #dc2626; font-size: 0.85rem; margin-top: 12px; }
/* ── Web Interface Guidelines: color-scheme, focus, motion, touch ────────── */
:root { color-scheme: light; }
:root[data-mantine-color-scheme="dark"] { color-scheme: dark; }
button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
/* Visible keyboard focus for the plain-CSS interactive elements
(Mantine components already ship :focus-visible rings). */
.auth-primary:focus-visible,
.auth-social:focus-visible,
.auth-pw-toggle:focus-visible,
.auth-field input:focus-visible,
.controls button:focus-visible,
.scenario-list .fav:focus-visible,
.lang-toggle button:focus-visible,
.call-result .result-actions button:focus-visible {
outline: 2px solid #2387d0;
outline-offset: 2px;
}
/* Honor reduced-motion: neutralize transitions/animations. */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.001ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.001ms !important;
scroll-behavior: auto !important;
}
}
/* More orange: an orange indicator bar on the active sidebar item. */
.mantine-NavLink-root[data-active] {
box-shadow: inset 3px 0 0 #f59000;
}