businesslawrag / frontend /style.css
veltrixcode's picture
Upload 17 files
3950291 verified
Raw History Blame Contribute Delete
17.7 kB
/* ==========================================================================
JurisAI β€” Legal Study Assistant
Design: Ink-warm dark, Instrument Serif + Inter, legal-gold accent
========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600&display=swap');
:root {
/* Core palette β€” ink-warm, not cool zinc */
--bg: #0F0D0B;
--surface: #181410;
--surface-2: #221D17;
--border: #2E2720;
--border-hi: #3D342A;
/* Text */
--fg: #F0EDE8;
--fg-mid: #A89880;
--fg-dim: #6B5E52;
/* Gold accent β€” legal seal, parchment highlight */
--gold: #C9A96E;
--gold-dim: rgba(201, 169, 110, 0.12);
--gold-border: rgba(201, 169, 110, 0.25);
/* Type */
--serif: 'Instrument Serif', Georgia, serif;
--sans: 'Inter', -apple-system, sans-serif;
/* Radii */
--r-sm: 4px;
--r-md: 8px;
--r-lg: 12px;
}
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html { height: 100%; }
body {
font-family: var(--sans);
background: var(--bg);
color: var(--fg);
height: 100%;
overflow: hidden;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* ─── Layout shell ─────────────────────────────────────────────────────── */
.aui-root {
display: flex;
width: 100vw;
height: 100vh;
}
/* ─── Sidebar ───────────────────────────────────────────────────────────── */
.aui-sidebar {
width: 272px;
min-width: 272px;
background: var(--surface);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
padding: 20px 14px;
gap: 18px;
overflow-y: auto;
}
/* Brand */
.aui-sidebar-brand {
display: flex;
align-items: center;
gap: 10px;
padding-bottom: 16px;
border-bottom: 1px solid var(--border);
}
.aui-logo {
width: 30px;
height: 30px;
border: 1px solid var(--gold-border);
border-radius: var(--r-sm);
display: flex;
align-items: center;
justify-content: center;
color: var(--gold);
background: var(--gold-dim);
flex-shrink: 0;
}
.aui-brand-meta { display: flex; flex-direction: column; gap: 1px; }
.aui-brand-title {
font-family: var(--serif);
font-size: 0.95rem;
color: var(--fg);
letter-spacing: 0.01em;
}
.aui-brand-sub {
font-size: 0.68rem;
color: var(--fg-dim);
font-weight: 400;
}
/* Sidebar groups */
.aui-group {
display: flex;
flex-direction: column;
gap: 6px;
}
.aui-label {
font-size: 0.67rem;
font-weight: 500;
color: var(--fg-dim);
letter-spacing: 0.03em;
}
.aui-select-wrapper select {
width: 100%;
padding: 7px 10px;
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: var(--r-sm);
color: var(--fg-mid);
font-family: var(--sans);
font-size: 0.78rem;
outline: none;
cursor: pointer;
transition: border-color 0.15s, color 0.15s;
-webkit-appearance: none;
appearance: none;
}
.aui-select-wrapper select:focus,
.aui-select-wrapper select:hover {
border-color: var(--border-hi);
color: var(--fg);
}
/* System state badge */
.aui-badge-card {
display: flex;
align-items: center;
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: var(--r-sm);
padding: 10px 14px;
justify-content: space-around;
}
.aui-badge-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
}
.aui-badge-val {
font-size: 0.92rem;
font-weight: 600;
color: var(--gold);
font-variant-numeric: tabular-nums;
}
.aui-badge-lbl {
font-size: 0.64rem;
color: var(--fg-dim);
}
.aui-badge-divider {
width: 1px;
height: 22px;
background: var(--border);
}
/* Preset list */
.aui-preset-list {
display: flex;
flex-direction: column;
gap: 3px;
}
.aui-preset-item {
background: transparent;
border: none;
border-left: 2px solid transparent;
padding: 7px 10px;
border-radius: 0 var(--r-sm) var(--r-sm) 0;
text-align: left;
cursor: pointer;
display: flex;
flex-direction: column;
gap: 2px;
transition: border-color 0.15s, background 0.15s;
}
.aui-preset-item:hover {
border-left-color: var(--gold);
background: var(--surface-2);
}
.aui-preset-title {
font-size: 0.78rem;
font-weight: 500;
color: var(--fg-mid);
transition: color 0.15s;
}
.aui-preset-item:hover .aui-preset-title {
color: var(--fg);
}
.aui-preset-desc {
font-size: 0.68rem;
color: var(--fg-dim);
}
/* Footer */
.aui-sidebar-footer {
padding-top: 12px;
border-top: 1px solid var(--border);
}
.aui-clear-btn {
width: 100%;
background: transparent;
border: 1px solid var(--border);
color: var(--fg-dim);
padding: 7px 12px;
border-radius: var(--r-sm);
font-size: 0.78rem;
font-family: var(--sans);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 7px;
transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.aui-clear-btn:hover {
background: var(--surface-2);
border-color: var(--border-hi);
color: var(--fg-mid);
}
/* ─── Thread main ───────────────────────────────────────────────────────── */
.aui-thread-main {
flex-grow: 1;
display: flex;
flex-direction: column;
height: 100vh;
background: var(--bg);
min-width: 0;
}
/* Header */
.aui-header {
height: 52px;
padding: 0 24px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.aui-header-info {
display: flex;
align-items: center;
gap: 10px;
}
.aui-header-pill {
font-size: 0.67rem;
font-weight: 500;
color: var(--gold);
background: var(--gold-dim);
border: 1px solid var(--gold-border);
padding: 2px 8px;
border-radius: 2px;
letter-spacing: 0.01em;
}
.aui-header-info h2 {
font-size: 0.82rem;
font-weight: 400;
color: var(--fg-mid);
}
.aui-header-status {
display: flex;
align-items: center;
gap: 6px;
font-size: 0.72rem;
color: var(--fg-dim);
}
.aui-status-dot {
width: 5px;
height: 5px;
background: #4CAF72;
border-radius: 50%;
}
/* ─── Thread viewport ───────────────────────────────────────────────────── */
.aui-thread-viewport {
flex-grow: 1;
overflow-y: auto;
padding: 40px 20% 24px;
display: flex;
flex-direction: column;
gap: 32px;
scroll-behavior: smooth;
}
.aui-thread-viewport::-webkit-scrollbar { width: 4px; }
.aui-thread-viewport::-webkit-scrollbar-track { background: transparent; }
.aui-thread-viewport::-webkit-scrollbar-thumb {
background: var(--border-hi);
border-radius: 2px;
}
/* ─── Welcome state ─────────────────────────────────────────────────────── */
.aui-welcome {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
max-width: 560px;
margin: 48px auto 0;
animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
.aui-welcome-badge {
display: inline-flex;
align-items: center;
gap: 5px;
font-size: 0.67rem;
color: var(--fg-dim);
margin-bottom: 22px;
letter-spacing: 0.02em;
}
/* The bold serif headline β€” the single memorable element */
.aui-welcome h1 {
font-family: var(--serif);
font-size: 2.8rem;
font-weight: 400;
line-height: 1.2;
letter-spacing: -0.01em;
color: var(--fg);
margin-bottom: 14px;
}
.aui-welcome h1 em {
font-style: italic;
color: var(--gold);
}
.aui-welcome p {
font-size: 0.875rem;
color: var(--fg-dim);
line-height: 1.6;
max-width: 420px;
margin-bottom: 28px;
}
/* Starter cards */
.aui-starter-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
width: 100%;
}
.aui-starter-card {
background: var(--surface);
border: 1px solid var(--border);
padding: 13px 15px;
border-radius: var(--r-md);
text-align: left;
cursor: pointer;
transition: border-color 0.15s, background 0.15s;
}
.aui-starter-card:hover {
border-color: var(--border-hi);
background: var(--surface-2);
}
.aui-starter-card h3 {
font-size: 0.82rem;
font-weight: 500;
color: var(--fg-mid);
margin-bottom: 3px;
}
.aui-starter-card p {
font-size: 0.72rem;
color: var(--fg-dim);
margin: 0;
line-height: 1.4;
}
/* ─── Messages ──────────────────────────────────────────────────────────── */
.aui-messages-container {
display: flex;
flex-direction: column;
gap: 28px;
width: 100%;
}
.aui-message-row {
display: flex;
flex-direction: column;
gap: 10px;
width: 100%;
animation: msgIn 0.2s ease-out;
}
@keyframes msgIn {
from { opacity: 0; transform: translateY(5px); }
to { opacity: 1; transform: translateY(0); }
}
/* User bubble */
.aui-message-user {
align-self: flex-end;
max-width: 72%;
}
.aui-message-user .aui-bubble {
background: var(--surface-2);
border: 1px solid var(--border);
color: var(--fg);
padding: 10px 16px;
border-radius: var(--r-lg) var(--r-lg) 2px var(--r-lg);
font-size: 0.9rem;
line-height: 1.55;
}
/* Assistant bubble */
.aui-message-assistant {
align-self: flex-start;
width: 100%;
}
.aui-message-assistant .aui-bubble {
background: transparent;
color: var(--fg);
font-size: 0.91rem;
line-height: 1.7;
}
/* Markdown content inside bubbles */
.aui-bubble p { margin-bottom: 10px; }
.aui-bubble p:last-child { margin-bottom: 0; }
.aui-bubble strong {
font-weight: 600;
color: var(--fg);
}
.aui-bubble em { color: var(--fg-mid); }
.aui-bubble h1,
.aui-bubble h2,
.aui-bubble h3 {
font-family: var(--serif);
font-weight: 400;
color: var(--fg);
margin: 18px 0 8px;
line-height: 1.3;
}
.aui-bubble h3 { font-size: 1.1rem; }
.aui-bubble ul,
.aui-bubble ol {
margin: 8px 0 12px 18px;
}
.aui-bubble li { margin-bottom: 5px; line-height: 1.55; }
.aui-bubble code {
font-size: 0.82em;
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: 3px;
padding: 1px 5px;
font-family: 'SFMono-Regular', Consolas, monospace;
color: var(--gold);
}
.aui-bubble pre {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--r-md);
padding: 14px 16px;
overflow-x: auto;
margin: 10px 0;
}
.aui-bubble pre code {
background: none;
border: none;
padding: 0;
color: var(--fg-mid);
font-size: 0.82rem;
}
/* Markdown tables */
.aui-bubble table {
width: 100%;
border-collapse: collapse;
margin: 12px 0;
font-size: 0.84rem;
}
.aui-bubble th {
text-align: left;
padding: 7px 12px;
background: var(--surface-2);
border: 1px solid var(--border);
color: var(--fg-mid);
font-weight: 500;
font-size: 0.78rem;
}
.aui-bubble td {
padding: 7px 12px;
border: 1px solid var(--border);
color: var(--fg-mid);
vertical-align: top;
line-height: 1.5;
}
.aui-bubble tr:nth-child(even) td {
background: rgba(255,255,255,0.015);
}
/* ─── Thinking block ────────────────────────────────────────────────────── */
.aui-thinking-box {
border: 1px solid var(--gold-border);
border-radius: var(--r-md);
margin-bottom: 14px;
overflow: hidden;
background: var(--surface);
}
.aui-thinking-header {
display: flex;
align-items: center;
gap: 8px;
padding: 9px 14px;
font-size: 0.76rem;
font-weight: 500;
color: var(--gold);
cursor: pointer;
user-select: none;
list-style: none;
transition: background 0.15s;
}
.aui-thinking-header:hover { background: var(--gold-dim); }
.aui-thinking-header svg {
transition: transform 0.2s ease;
flex-shrink: 0;
}
details[open] .aui-thinking-header svg { transform: rotate(90deg); }
.aui-thinking-content {
padding: 12px 14px;
font-family: 'SFMono-Regular', Consolas, monospace;
font-size: 0.76rem;
color: var(--fg-dim);
line-height: 1.55;
white-space: pre-wrap;
border-top: 1px solid var(--gold-border);
background: var(--surface-2);
}
/* Loading pulse */
.aui-thinking-pulse {
display: inline-flex;
align-items: center;
gap: 10px;
color: var(--fg-dim);
font-size: 0.82rem;
padding: 10px 14px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--r-md);
}
.aui-shimmer-spark {
width: 12px;
height: 12px;
border: 1.5px solid var(--gold);
border-top-color: transparent;
border-radius: 50%;
animation: spin 0.75s linear infinite;
flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* ─── Citations ─────────────────────────────────────────────────────────── */
.aui-citations-box {
margin-top: 16px;
border-top: 1px solid var(--border);
padding-top: 12px;
}
.aui-citations-header {
display: flex;
align-items: center;
gap: 6px;
font-size: 0.75rem;
font-weight: 500;
color: var(--gold);
cursor: pointer;
user-select: none;
}
.aui-citation-list {
margin-top: 10px;
display: flex;
flex-direction: column;
gap: 7px;
}
.aui-citation-card {
background: var(--surface);
border: 1px solid var(--border);
border-left: 2px solid var(--gold);
padding: 9px 12px;
border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.aui-citation-meta {
display: flex;
justify-content: space-between;
align-items: baseline;
font-size: 0.76rem;
font-weight: 500;
color: var(--fg-mid);
margin-bottom: 4px;
}
.aui-citation-score {
font-size: 0.67rem;
color: var(--fg-dim);
font-variant-numeric: tabular-nums;
}
.aui-citation-text {
font-size: 0.74rem;
color: var(--fg-dim);
line-height: 1.5;
}
/* ─── Composer ──────────────────────────────────────────────────────────── */
.aui-composer-wrapper {
padding: 10px 20% 18px;
background: var(--bg);
flex-shrink: 0;
}
.aui-composer {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--r-lg);
padding: 8px 10px 8px 16px;
display: flex;
align-items: flex-end;
gap: 8px;
transition: border-color 0.15s;
box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.aui-composer:focus-within {
border-color: var(--border-hi);
}
.aui-composer-input {
flex-grow: 1;
background: transparent;
border: none;
outline: none;
color: var(--fg);
font-family: var(--sans);
font-size: 0.88rem;
line-height: 1.5;
resize: none;
max-height: 140px;
padding: 2px 0 2px;
}
.aui-composer-input::placeholder { color: var(--fg-dim); }
.aui-composer-send {
background: var(--gold);
color: #0F0D0B;
border: none;
width: 30px;
height: 30px;
border-radius: var(--r-sm);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
flex-shrink: 0;
transition: opacity 0.15s, transform 0.15s;
}
.aui-composer-send:hover { opacity: 0.85; transform: scale(1.04); }
.aui-composer-send:disabled {
background: var(--border);
color: var(--fg-dim);
cursor: not-allowed;
transform: none;
opacity: 1;
}
.aui-composer-footer {
text-align: center;
margin-top: 7px;
font-size: 0.65rem;
color: var(--fg-dim);
}
/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
.aui-thread-viewport,
.aui-composer-wrapper {
padding-left: 8%;
padding-right: 8%;
}
}
@media (max-width: 768px) {
.aui-sidebar { display: none; }
.aui-thread-viewport,
.aui-composer-wrapper {
padding-left: 16px;
padding-right: 16px;
}
.aui-starter-grid { grid-template-columns: 1fr; }
.aui-welcome h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
}
}