iris-ir-platform / src /app /globals.css
rajvivan's picture
sync: push iris-ir-platform to HuggingFace Space
94eb7c7 verified
Raw
History Blame Contribute Delete
32.9 kB
/* ============================================================
FinBot Global CSS β€” Emirates NBD Investor Relations Platform
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=JetBrains+Mono:wght@400;500&display=swap');
/* ─── CSS Variables ─── */
:root {
/* Brand */
--gold: #C9A84C;
--gold-light: #E8C96A;
--gold-dark: #A07830;
--gold-muted: rgba(201, 168, 76, 0.08);
--gold-border: rgba(0, 102, 204, 0.22);
--gold-glow: rgba(201, 168, 76, 0.04);
/* Navy */
--navy-deep: #003366;
--navy-mid: #004080;
--enbd-blue: #0055A5;
--enbd-blue-hover: #004485;
--enbd-blue-muted: rgba(0, 85, 165, 0.06);
--enbd-blue-border: rgba(0, 85, 165, 0.18);
/* Backgrounds */
--bg-base: #FFFFFF;
--bg-mid: #F8F9FC;
--bg-high: #EFF2F6;
--bg-card: #FFFFFF;
--bg-card-hover: #F1F4F9;
--bg-input: #FFFFFF;
/* Text */
--text-primary: #0A1124;
--text-secondary: #2C354A;
--text-muted: #647087;
--text-disabled: #9CA6BA;
/* Borders */
--border-subtle: rgba(0, 51, 102, 0.06);
--border-mid: rgba(0, 51, 102, 0.12);
--border-strong: rgba(0, 51, 102, 0.2);
/* Semantic */
--success: #2ECC71;
--success-muted: rgba(46, 204, 113, 0.1);
--warning: #F39C12;
--warning-muted: rgba(243, 156, 18, 0.1);
--danger: #E74C3C;
--danger-muted: rgba(231, 76, 60, 0.1);
--info: #3498DB;
--info-muted: rgba(52, 152, 219, 0.1);
/* Fonts */
--font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
--font-display: 'Playfair Display', Georgia, serif;
--font-mono: 'JetBrains Mono', 'Fira Code', monospace;
/* Radii */
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 14px;
--radius-xl: 20px;
--radius-full: 9999px;
/* Shadows */
--shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
--shadow-elevated: 0 12px 32px rgba(0, 51, 102, 0.06);
--shadow-glow-gold:0 0 20px rgba(201,168,76,0.08);
/* Transitions */
--ease-fast: 150ms ease;
--ease-base: 240ms ease;
--ease-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
/* Layout */
--nav-height: 60px;
--left-panel: 280px;
--right-panel: 480px;
}
/* ─── Reset ─── */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
font-size: 16px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
scroll-behavior: smooth;
}
body {
font-family: var(--font-body);
background: var(--bg-base);
color: var(--text-primary);
line-height: 1.6;
min-height: 100vh;
overflow-x: hidden;
}
/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,0.45); }
/* ─── Selection ─── */
::selection {
background: rgba(201,168,76,0.25);
color: var(--text-primary);
}
/* ─── Typography ─── */
h1, h2, h3, h4 { font-family: var(--font-display); }
/* ─── Layout Shell ─── */
.app-shell {
display: grid;
grid-template-rows: var(--nav-height) 1fr;
grid-template-columns: var(--left-panel) 1fr;
width: 100vw;
max-width: 100vw;
height: 100vh;
overflow: hidden;
}
.app-shell.panel-open {
grid-template-columns: var(--left-panel) 1fr var(--right-panel);
}
.app-nav {
grid-column: 1 / -1;
grid-row: 1;
z-index: 100;
width: 100vw;
max-width: 100vw;
overflow: hidden;
}
.app-left {
grid-column: 1;
grid-row: 2;
overflow-y: auto;
border-right: 1px solid var(--border-subtle);
background: var(--bg-mid);
}
.app-main {
grid-column: 2;
grid-row: 2;
overflow: hidden;
display: flex;
flex-direction: column;
min-width: 0;
}
.app-right {
grid-column: 3;
grid-row: 2;
border-left: 1px solid var(--border-subtle);
background: var(--bg-mid);
overflow-y: auto;
}
/* ─── Card Component ─── */
.card {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
padding: 1.25rem 1.5rem;
position: relative;
overflow: hidden;
}
.card-gold {
border-color: var(--gold-border);
box-shadow: var(--shadow-glow-gold);
}
.card-gold::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, var(--gold), transparent);
opacity: 0.6;
}
/* ─── Accordion ─── */
.accordion-header {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
background: none;
border: none;
cursor: pointer;
padding: 0.875rem 1.25rem;
color: var(--text-primary);
font-family: var(--font-body);
font-size: 0.875rem;
font-weight: 600;
letter-spacing: 0.02em;
text-align: left;
border-radius: var(--radius-md);
transition: background var(--ease-fast), color var(--ease-fast);
user-select: none;
}
.accordion-header:hover {
background: var(--bg-card-hover);
color: var(--enbd-blue);
}
.accordion-header.open {
color: var(--enbd-blue);
}
.accordion-icon {
transition: transform var(--ease-base);
color: var(--text-muted);
flex-shrink: 0;
}
.accordion-icon.open {
transform: rotate(180deg);
color: var(--enbd-blue);
}
.accordion-body {
overflow: hidden;
transition: max-height var(--ease-slow), opacity var(--ease-base);
}
/* ─── Badge ─── */
.badge {
display: inline-flex;
align-items: center;
gap: 0.25rem;
padding: 0.2rem 0.65rem;
border-radius: var(--radius-full);
font-size: 0.7rem;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.badge-gold {
background: var(--gold-muted);
color: var(--enbd-blue);
border: 1px solid var(--gold-border);
}
.badge-success {
background: var(--success-muted);
color: var(--success);
border: 1px solid rgba(46,204,113,0.2);
}
.badge-info {
background: var(--info-muted);
color: var(--info);
border: 1px solid rgba(52,152,219,0.2);
}
.badge-muted {
background: rgba(255,255,255,0.05);
color: var(--text-muted);
border: 1px solid var(--border-subtle);
}
/* ─── Buttons ─── */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.55rem 1.25rem;
border-radius: var(--radius-md);
font-family: var(--font-body);
font-size: 0.85rem;
font-weight: 600;
cursor: pointer;
border: none;
transition: all var(--ease-base);
letter-spacing: 0.01em;
white-space: nowrap;
}
.btn-primary {
background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
color: #0A0F1E;
}
.btn-primary:hover {
background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
transform: translateY(-1px);
box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}
.btn-ghost {
background: transparent;
color: var(--text-secondary);
border: 1px solid var(--border-mid);
}
.btn-ghost:hover {
background: var(--bg-card);
color: var(--text-primary);
border-color: var(--border-strong);
}
.btn-open-page {
background: var(--gold-muted);
color: var(--enbd-blue);
border: 1px solid var(--gold-border);
padding: 0.3rem 0.85rem;
font-size: 0.75rem;
border-radius: var(--radius-sm);
}
.btn-open-page:hover {
background: rgba(201,168,76,0.2);
box-shadow: 0 0 12px rgba(201,168,76,0.2);
transform: translateY(-1px);
}
/* ─── KPI Table ─── */
.kpi-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
font-size: 0.8125rem;
}
.kpi-table thead th {
text-align: left;
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--text-muted);
padding: 0.6rem 0.875rem;
background: var(--bg-mid);
border-bottom: 1px solid var(--border-mid);
}
.kpi-table thead th:first-child {
border-radius: var(--radius-sm) 0 0 0;
}
.kpi-table thead th:last-child {
border-radius: 0 var(--radius-sm) 0 0;
}
.kpi-table tbody tr {
transition: background var(--ease-fast);
}
.kpi-table tbody tr:hover {
background: var(--bg-card-hover);
}
.kpi-table tbody tr:nth-child(even) {
background: rgba(0, 51, 102, 0.015);
}
.kpi-table tbody td {
padding: 0.7rem 0.875rem;
border-bottom: 1px solid var(--border-subtle);
color: var(--text-secondary);
vertical-align: middle;
}
.kpi-table tbody td:first-child {
color: var(--text-primary);
font-weight: 500;
}
.kpi-table .change-positive { color: var(--success); font-weight: 600; }
.kpi-table .change-negative { color: var(--danger); font-weight: 600; }
.kpi-table .change-neutral { color: var(--text-muted); font-weight: 600; }
/* ─── Footnotes ─── */
.footnote-list {
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.footnote-item {
display: flex;
gap: 0.75rem;
align-items: flex-start;
padding: 0.65rem 0.875rem;
background: var(--bg-mid);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
transition: border-color var(--ease-fast), background var(--ease-fast);
}
.footnote-item:hover {
border-color: var(--gold-border);
background: var(--gold-glow);
}
.footnote-number {
flex-shrink: 0;
width: 20px;
height: 20px;
border-radius: 50%;
background: var(--gold-muted);
border: 1px solid var(--gold-border);
color: var(--enbd-blue);
font-size: 0.65rem;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
margin-top: 1px;
}
.footnote-content {
flex: 1;
min-width: 0;
}
.footnote-doc {
font-size: 0.78rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 0.15rem;
}
.footnote-support {
font-size: 0.72rem;
color: var(--text-muted);
margin-bottom: 0.35rem;
line-height: 1.4;
}
/* ─── Unsupported / Insufficient ─── */
.state-card {
display: grid;
grid-template-columns: 1fr;
gap: 1.5rem;
padding: 2rem;
border-radius: var(--radius-lg);
border: 1px solid;
box-shadow: 0 4px 20px rgba(0, 51, 102, 0.04), var(--shadow-card);
position: relative;
overflow: hidden;
transition: all var(--ease-base);
width: 100%;
}
@media (min-width: 768px) {
.state-card {
grid-template-columns: 1.3fr 1fr;
gap: 2rem;
}
}
.state-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 4px;
}
.state-card-warning {
background: linear-gradient(180deg, var(--bg-card) 0%, rgba(243,156,18,0.01) 100%);
border-color: rgba(243, 156, 18, 0.18);
}
.state-card-warning::before {
background: var(--warning);
}
.state-card-out-of-scope {
background: linear-gradient(180deg, var(--bg-card) 0%, rgba(0, 85, 165, 0.01) 100%);
border-color: var(--border-subtle);
}
.state-card-out-of-scope::before {
background: #d95b5b;
}
.state-card-out-of-scope .state-card-icon-wrapper {
background: rgba(217, 91, 91, 0.12);
color: #c84949;
}
.badge-out-of-scope {
background: rgba(217, 91, 91, 0.12);
color: #b43d3d;
border: 1px solid rgba(217, 91, 91, 0.24);
}
.state-card-info {
background: linear-gradient(180deg, var(--bg-card) 0%, rgba(0, 85, 165, 0.01) 100%);
border-color: var(--enbd-blue-border);
}
.state-card-info::before {
background: var(--enbd-blue);
}
.state-card-main {
display: flex;
flex-direction: column;
gap: 1rem;
width: 100%;
}
.state-card-sidebar {
display: flex;
flex-direction: column;
gap: 1.25rem;
padding-left: 0;
border-left: none;
width: 100%;
}
@media (min-width: 768px) {
.state-card-sidebar {
padding-left: 1.5rem;
border-left: 1px solid var(--border-subtle);
}
}
.state-card-header {
display: flex;
align-items: center;
gap: 0.75rem;
}
.state-card-icon-wrapper {
display: flex;
align-items: center;
justify-content: center;
width: 2.25rem;
height: 2.25rem;
border-radius: var(--radius-md);
font-size: 1.25rem;
flex-shrink: 0;
}
.state-card-warning .state-card-icon-wrapper {
background: var(--warning-muted);
color: var(--warning);
}
.state-card-info .state-card-icon-wrapper {
background: var(--enbd-blue-muted);
color: var(--enbd-blue);
}
.state-card-title {
font-family: var(--font-body);
font-size: 1.1rem;
font-weight: 700;
color: var(--text-primary);
margin: 0;
}
.state-card-desc {
font-size: 0.825rem;
color: var(--text-secondary);
line-height: 1.6;
}
.state-query-quote {
font-size: 0.78rem;
color: var(--text-muted);
font-style: italic;
background: var(--bg-mid);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
padding: 0.75rem 1rem;
line-height: 1.5;
position: relative;
word-break: break-word;
}
.state-card-features-grid {
display: grid;
grid-template-columns: 1fr;
gap: 0.75rem;
margin-top: 0.25rem;
}
@media (min-width: 480px) {
.state-card-features-grid {
grid-template-columns: 1fr 1fr;
}
}
.state-feature-item {
display: flex;
align-items: flex-start;
gap: 0.625rem;
padding: 0.75rem;
background: var(--bg-mid);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
}
.state-feature-icon {
font-size: 1rem;
line-height: 1;
margin-top: 0.1rem;
}
.state-feature-title {
font-size: 0.78rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 0.15rem;
}
.state-feature-desc {
font-size: 0.7rem;
color: var(--text-muted);
line-height: 1.4;
}
.state-section-title {
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
margin-bottom: 0.5rem;
}
.state-examples-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.state-example-btn {
display: block;
width: 100%;
text-align: left;
background: var(--bg-card);
border: 1px solid var(--border-mid);
border-radius: var(--radius-md);
padding: 0.625rem 0.875rem;
font-size: 0.78rem;
color: var(--text-secondary);
font-family: var(--font-body);
font-weight: 500;
cursor: pointer;
transition: all var(--ease-fast);
line-height: 1.4;
}
.state-example-btn:hover {
background: var(--enbd-blue-muted);
border-color: var(--enbd-blue-border);
color: var(--enbd-blue);
transform: translateX(2px);
}
/* ─── Chat Input ─── */
.chat-input-area {
border-top: 1px solid var(--border-subtle);
background: var(--bg-mid);
padding: 1rem 1.25rem;
}
.chat-input-wrapper {
display: flex;
gap: 0.75rem;
align-items: flex-end;
min-width: 0;
background: var(--bg-input);
border: 1px solid var(--border-mid);
border-radius: var(--radius-lg);
padding: 0.75rem 1rem;
transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
}
.chat-input-wrapper:focus-within {
border-color: var(--gold-border);
box-shadow: 0 0 0 3px rgba(201,168,76,0.07), var(--shadow-glow-gold);
}
.chat-textarea {
flex: 1;
min-width: 0;
background: none;
border: none;
outline: none;
color: var(--text-primary);
font-family: var(--font-body);
font-size: 0.9rem;
line-height: 1.55;
resize: none;
min-height: 24px;
max-height: 140px;
overflow-y: auto;
}
.chat-textarea::placeholder {
color: var(--text-disabled);
}
.chat-submit-btn {
flex-shrink: 0;
width: 38px;
height: 38px;
border-radius: var(--radius-md);
background: var(--enbd-blue);
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: #FFFFFF;
transition: all var(--ease-fast);
}
.chat-submit-btn:hover {
background: #004485;
color: #FFFFFF;
transform: scale(1.05);
box-shadow: 0 0 14px rgba(0,85,165,0.35);
}
.chat-input-hints {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 0.45rem;
padding-inline: 0.25rem;
gap: 0.75rem;
}
.chat-submit-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
/* ─── Response Section Labels ─── */
.section-label {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--enbd-blue);
margin-bottom: 0.75rem;
}
.section-label::before {
content: '';
display: block;
width: 3px;
height: 12px;
background: var(--enbd-blue);
border-radius: 2px;
}
/* ─── Executive Summary Text ─── */
.exec-summary-text {
font-size: 0.9375rem;
line-height: 1.75;
color: var(--text-secondary);
font-weight: 400;
}
.exec-summary-text strong {
color: var(--text-primary);
font-weight: 600;
}
/* ─── Document Panel ─── */
.doc-item {
display: flex;
align-items: flex-start;
gap: 0.75rem;
padding: 0.75rem;
border-radius: var(--radius-md);
cursor: pointer;
transition: background var(--ease-fast);
border: 1px solid transparent;
}
.doc-item:hover {
background: var(--bg-card);
border-color: var(--border-subtle);
}
.doc-item.active {
background: var(--gold-muted);
border-color: var(--gold-border);
}
.doc-item-icon {
width: 36px;
height: 36px;
border-radius: var(--radius-sm);
background: var(--gold-muted);
border: 1px solid var(--gold-border);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.1rem;
flex-shrink: 0;
}
.doc-item-name {
font-size: 0.8rem;
font-weight: 600;
color: var(--text-primary);
line-height: 1.3;
margin-bottom: 0.2rem;
}
.doc-item-meta {
font-size: 0.7rem;
color: var(--text-muted);
}
/* ─── Top Nav ─── */
.top-nav {
display: grid;
grid-template-columns: minmax(145px, auto) minmax(0, 1fr) auto;
align-items: center;
column-gap: clamp(0.75rem, 2vw, 2rem);
padding: 0 1.25rem;
height: var(--nav-height);
background: var(--bg-mid);
border-bottom: 1px solid var(--border-subtle);
position: relative;
}
.top-nav::after {
content: '';
position: absolute;
bottom: 0; left: 0; right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
opacity: 0.7;
}
.nav-brand {
display: flex;
align-items: center;
gap: 0.875rem;
justify-self: start;
min-width: 0;
position: relative;
z-index: 2;
}
.nav-center-title {
position: absolute;
top: 0;
bottom: 0;
left: var(--nav-main-left, 0px);
right: var(--nav-main-right, 0px);
display: flex;
align-items: center;
justify-content: center;
min-width: 0;
padding: 0 clamp(1rem, 5vw, 5rem);
text-align: center;
overflow: hidden;
pointer-events: none;
z-index: 1;
transition: left var(--ease-base), right var(--ease-base);
}
.nav-center-title-text {
display: inline-flex;
flex-wrap: wrap;
align-items: baseline;
justify-content: center;
min-width: min-content;
max-width: 100%;
overflow: hidden;
color: var(--enbd-blue);
font-size: clamp(0.82rem, 1.35vw, 1.28rem);
font-weight: 800;
letter-spacing: 0;
line-height: 1.08;
}
.nav-title-split {
display: inline-block;
width: 0.35em;
height: 1em;
flex: 0 0 auto;
}
.nav-logo {
width: 32px;
height: 32px;
border-radius: 8px;
background: linear-gradient(135deg, #003366 0%, #004080 100%);
border: 1px solid var(--gold-border);
display: flex;
align-items: center;
justify-content: center;
font-size: 0.75rem;
font-weight: 800;
color: var(--enbd-blue);
letter-spacing: -0.02em;
font-family: var(--font-mono);
}
.nav-title {
font-family: var(--font-display);
font-size: clamp(0.95rem, 1.1vw, 1.1rem);
font-weight: 700;
color: var(--text-primary);
letter-spacing: 0.01em;
white-space: nowrap;
}
.nav-actions {
display: flex;
align-items: center;
gap: 0.75rem;
justify-self: end;
min-width: 0;
z-index: 2;
}
.nav-avatar {
width: 32px;
height: 32px;
border-radius: 50%;
background: var(--enbd-blue-muted);
border: 1px solid var(--enbd-blue-border);
display: flex;
align-items: center;
justify-content: center;
color: var(--enbd-blue);
cursor: pointer;
}
@media (max-width: 1100px) {
.top-nav {
grid-template-columns: minmax(125px, auto) minmax(0, 1fr) auto;
column-gap: 0.75rem;
padding: 0 0.875rem;
}
.nav-center-title-text {
font-size: clamp(0.78rem, 1.45vw, 0.98rem);
}
.nav-actions {
gap: 0.45rem;
}
.nav-actions .btn {
width: 36px;
height: 34px;
padding: 0 !important;
justify-content: center;
font-size: 0 !important;
}
.nav-actions .btn svg {
width: 15px;
height: 15px;
}
}
@media (max-width: 820px) {
.top-nav {
grid-template-columns: minmax(115px, auto) minmax(0, 1fr) auto;
}
.nav-center-title {
left: 0;
right: 0;
padding: 0 4.5rem;
}
.nav-brand {
gap: 0.45rem !important;
}
.nav-brand img {
height: 20px !important;
}
.nav-title {
font-size: 0.78rem;
}
.nav-center-title-text {
font-size: 0.72rem;
}
}
@media (max-width: 640px) {
.top-nav {
grid-template-columns: auto minmax(0, 1fr) auto;
column-gap: 0.5rem;
padding: 0 0.625rem;
}
.nav-title {
display: none;
}
.nav-center-title {
padding: 0 3.25rem;
}
.nav-center-title-text {
font-size: 0.68rem;
line-height: 1.05;
}
.messages-scroll {
padding: 1rem;
}
.welcome-screen {
padding: calc(var(--nav-height) * 0.4) 1.25rem 1.25rem;
gap: 1.1rem;
}
.welcome-subtitle {
max-width: min(100%, 330px) !important;
overflow-wrap: anywhere;
}
.chat-input-area {
padding: 0.75rem 0.875rem;
}
.chat-input-wrapper {
gap: 0.5rem;
padding: 0.65rem 0.75rem;
}
.chat-textarea {
font-size: 0.84rem;
}
.chat-submit-btn {
width: 34px;
height: 34px;
}
.chat-input-hints {
flex-wrap: wrap;
justify-content: flex-start;
gap: 0.2rem 0.75rem;
}
.chat-input-hints span {
line-height: 1.35;
}
}
@media (max-width: 460px) {
.top-nav {
column-gap: 0.35rem;
padding: 0 0.5rem;
}
.nav-actions {
gap: 0.3rem;
}
.nav-center-title {
padding: 0 2.75rem;
}
.nav-actions .btn {
width: 32px;
height: 32px;
}
.nav-avatar {
display: none;
}
#toggle-doc-panel-btn {
display: none;
}
.chat-input-wrapper > div:first-child {
display: none !important;
}
.chat-input-hints {
display: none;
}
.nav-center-title-text {
font-size: 0.56rem;
}
.nav-title-split {
width: 0.2em;
}
}
@media (max-width: 380px) {
.nav-center-title-text {
font-size: 0.54rem;
}
}
/* ─── Loading Shimmer ─── */
@keyframes shimmer {
0% { background-position: -200% center; }
100% { background-position: 200% center; }
}
.loading-shimmer {
background: linear-gradient(
90deg,
var(--bg-card) 0%,
rgba(201,168,76,0.05) 50%,
var(--bg-card) 100%
);
background-size: 200% auto;
animation: shimmer 2s linear infinite;
border-radius: var(--radius-sm);
}
/* ─── Pulse dot ─── */
@keyframes pulse-dot {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.5; transform: scale(0.75); }
}
.pulse-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--gold);
animation: pulse-dot 1.4s ease infinite;
}
/* ─── Thinking indicator ─── */
.thinking-dots span {
display: inline-block;
width: 5px;
height: 5px;
border-radius: 50%;
background: var(--gold);
margin: 0 2px;
animation: pulse-dot 1.4s ease infinite;
}
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
/* ─── Fade-in animation ─── */
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
animation: fadeInUp 0.35s ease both;
}
/* ─── Driver items ─── */
.driver-item {
display: flex;
gap: 1rem;
padding: 0.875rem 0;
border-bottom: 1px solid var(--border-subtle);
}
.driver-item:last-child { border-bottom: none; }
.driver-number {
flex-shrink: 0;
width: 22px;
height: 22px;
border-radius: 50%;
background: var(--gold-muted);
border: 1px solid var(--gold-border);
color: var(--enbd-blue);
font-size: 0.7rem;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
margin-top: 1px;
}
.driver-title {
font-size: 0.84rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 0.25rem;
}
.driver-detail {
font-size: 0.815rem;
color: var(--text-muted);
line-height: 1.55;
}
/* ─── Visual Evidence ─── */
.visual-grid {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
}
.visual-item {
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
overflow: hidden;
background: var(--bg-card);
transition: border-color var(--ease-fast);
}
.visual-item:hover { border-color: var(--gold-border); }
.visual-placeholder {
height: 160px;
background: linear-gradient(135deg, rgba(0,51,102,0.06), rgba(201,168,76,0.04));
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0.5rem;
color: var(--text-muted);
font-size: 0.8rem;
}
/* ─── Sidebar section title ─── */
.panel-section-title {
font-size: 0.65rem;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--text-muted);
padding: 1rem 1rem 0.4rem;
}
/* ─── Welcome Screen ─── */
.welcome-screen {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 2rem;
text-align: center;
gap: 1.5rem;
}
.welcome-logo {
width: 72px;
height: 72px;
border-radius: 18px;
background: linear-gradient(135deg, #003366 0%, #004080 60%, #003366 100%);
border: 1px solid var(--gold-border);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
font-weight: 800;
color: var(--enbd-blue);
font-family: var(--font-mono);
box-shadow: var(--shadow-glow-gold), var(--shadow-elevated);
position: relative;
}
.welcome-logo::after {
content: '';
position: absolute;
inset: -1px;
border-radius: 19px;
background: linear-gradient(135deg, var(--gold-border), transparent, var(--gold-border));
z-index: -1;
}
.welcome-title {
font-family: var(--font-display);
font-size: 1.75rem;
font-weight: 700;
color: var(--text-primary);
letter-spacing: -0.02em;
}
.welcome-subtitle {
font-size: 0.9rem;
color: var(--text-muted);
max-width: 420px;
line-height: 1.65;
}
.sample-questions {
display: flex;
flex-direction: column;
gap: 0.5rem;
width: 100%;
max-width: 520px;
}
.sample-q {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
padding: 0.65rem 1rem;
font-size: 0.835rem;
color: var(--text-secondary);
cursor: pointer;
text-align: left;
transition: all var(--ease-fast);
font-family: var(--font-body);
}
.sample-q:hover {
border-color: var(--gold-border);
color: var(--text-primary);
background: var(--gold-glow);
}
/* ─── Scrollable messages ─── */
.messages-scroll {
flex: 1;
overflow-y: auto;
padding: 1.25rem;
display: flex;
flex-direction: column;
gap: 1.25rem;
}
.messages-inner {
margin: 0 auto;
}
/* ─── Question bubble ─── */
.question-bubble {
align-self: flex-end;
max-width: 70%;
background: var(--navy-deep);
border: 1px solid var(--gold-border);
border-radius: var(--radius-lg) var(--radius-lg) 4px var(--radius-lg);
padding: 0.875rem 1.125rem;
font-size: 0.9rem;
color: #FFFFFF;
line-height: 1.55;
}
/* ─── Response card ─── */
.response-card {
background: var(--bg-card);
border: 1px solid var(--gold-border);
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow-glow-gold);
animation: fadeInUp 0.3s ease both;
}
.response-card::before {
content: '';
display: block;
height: 1px;
background: linear-gradient(90deg, transparent, var(--gold), transparent);
opacity: 0.5;
}
/* ─── Divider ─── */
.divider {
height: 1px;
background: var(--border-subtle);
margin: 0.75rem 0;
}
/* ─── PDF viewer panel ─── */
.pdf-panel-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.875rem 1rem;
border-bottom: 1px solid var(--border-subtle);
background: var(--bg-high);
}
.pdf-panel-title {
font-size: 0.8rem;
font-weight: 600;
color: var(--text-primary);
}
.pdf-page-badge {
background: var(--enbd-blue-muted);
border: 1px solid var(--enbd-blue-border);
color: var(--enbd-blue);
border-radius: var(--radius-sm);
padding: 0.2rem 0.6rem;
font-size: 0.7rem;
font-weight: 600;
}
.pdf-screen-modal {
position: fixed;
inset: 0;
z-index: 2000;
display: flex;
flex-direction: column;
background: rgba(8, 16, 28, 0.92);
backdrop-filter: blur(8px);
}
.pdf-screen-modal-header {
min-height: 68px;
padding: 0.55rem 1rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
color: #fff;
border-bottom: 1px solid rgba(255, 255, 255, 0.16);
background: rgba(0, 51, 102, 0.82);
flex-wrap: wrap;
}
.pdf-screen-modal-title {
font-size: 0.86rem;
font-weight: 700;
max-width: 58vw;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.pdf-screen-modal-meta {
margin-top: 2px;
font-size: 0.68rem;
color: rgba(255, 255, 255, 0.72);
}
.pdf-screen-modal-actions {
display: flex;
align-items: center;
gap: 0.5rem;
}
.pdf-screen-zoom-value {
min-width: 42px;
text-align: center;
font: 700 0.72rem var(--font-mono);
color: rgba(255, 255, 255, 0.82);
}
.pdf-screen-page-nav {
display: flex;
align-items: center;
gap: 0.5rem;
}
.pdf-screen-page-nav {
padding: 0.25rem 0.4rem;
border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: var(--radius-sm);
background: rgba(255, 255, 255, 0.08);
}
.pdf-screen-page-nav input {
width: 42px;
height: 28px;
text-align: center;
border: 1px solid rgba(255, 255, 255, 0.24);
border-radius: var(--radius-sm);
background: rgba(255, 255, 255, 0.12);
color: #fff;
font: 700 0.75rem var(--font-mono);
}
.pdf-screen-page-nav span {
font-size: 0.72rem;
color: rgba(255, 255, 255, 0.72);
}
.pdf-screen-modal-actions button,
.pdf-screen-page-nav button {
border: 1px solid rgba(255, 255, 255, 0.28);
border-radius: var(--radius-sm);
background: rgba(255, 255, 255, 0.1);
color: #fff;
padding: 0.35rem 0.65rem;
font: 700 0.72rem var(--font-body);
cursor: pointer;
}
.pdf-screen-modal-actions button:hover,
.pdf-screen-page-nav button:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.18);
}
.pdf-screen-page-nav button:disabled {
opacity: 0.38;
cursor: not-allowed;
}
.pdf-screen-modal-body {
flex: 1;
min-height: 0;
overflow: auto;
padding: 1.25rem;
display: flex;
align-items: flex-start;
justify-content: center;
}
.pdf-screen-modal-page {
position: relative;
background: #fff;
border-radius: 6px;
overflow: hidden;
box-shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
touch-action: none;
transition: width var(--ease-fast);
}
.pdf-screen-modal-page img {
width: 100%;
display: block;
user-select: none;
-webkit-user-drag: none;
}
@media (max-width: 900px) {
.pdf-screen-modal-header {
align-items: stretch;
}
.pdf-screen-modal-title {
max-width: 88vw;
}
.pdf-screen-page-nav,
.pdf-screen-modal-actions {
width: 100%;
justify-content: flex-start;
}
}
/* ─── Utilities ─── */
.text-gold { color: var(--enbd-blue); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.8125rem; }
.text-xs { font-size: 0.72rem; }
.font-mono { font-family: var(--font-mono); }
.font-display{ font-family: var(--font-display); }
.fw-600 { font-weight: 600; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center{ align-items: center; }
.w-full { width: 100%; }
/* ─── Spin animation ─── */
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
/* ─── Responsive tweaks ─── */
@media (max-width: 1024px) {
:root {
--left-panel: 240px;
--right-panel: 340px;
}
}