Cybersecurity-Panel / frontend /src /styles /components.css
NeonClary's picture
Workspace widget preview, multi-source reference search, and arXiv CORS proxy.
d0878a6 verified
Raw
History Blame Contribute Delete
30.7 kB
/* CSS Custom Properties for Theming
Palette from the Cybersecurity Advisor mark: cyan/teal primary,
muted magenta secondary, cream (light) / charcoal (dark) surfaces. */
:root[data-theme="light"] {
/* Background / surfaces — warm cream */
--bg-primary: #FAF7F1;
--bg-secondary: #F3EEE6;
--bg-tertiary: #EBE4D8;
--bg-gradient: linear-gradient(165deg, #FBF8F3 0%, #F5EFE6 55%, #F0E9DF 100%);
--card-bg: #FFFFFF;
--card-hover: #F7F3EC;
--sidebar-bg: #E8E0D4;
/* Soft cyan-teal tint over cream — readable with dark sidebar text */
--sidebar-active-bg: #E4EEF0;
--sidebar-active-hover: #D7E8EB;
--header-bg: #FBF9F5;
--header-border: #DDD5C8;
--header-shadow: var(--shadow-md);
--surface: #FFFFFF;
--brand-mark-ring: rgba(18, 20, 23, 0.12);
/* Text */
--text-primary: #1A1714;
--text-secondary: #4A453E;
--text-tertiary: #6A645C;
--text-muted: #6A645C;
--text-accent: #4A453E;
/* Borders */
--border-primary: #DDD5C8;
--border-secondary: #D1C9BB;
--border-tertiary: #E8E1D6;
--border-muted: #E8E1D6;
--border: #DDD5C8;
/* Accent — cyan-teal primary; magenta used sparingly */
--accent-primary: #0B7A8A;
--accent-secondary: #8B3DB8;
--accent-gradient: linear-gradient(135deg, #0B7A8A, #6B3AA8);
--accent-light: #DCEEF1;
--accent-soft: #DCEEF1;
--accent-fill: #0B7A8A;
--accent-on-accent: #FFFFFF;
--accent: #0B7A8A;
--primary-color: #0B7A8A;
--primary-color-hover: #096875;
/* Warm-tinted shadows */
--shadow-sm: 0 1px 2px rgba(40, 30, 10, 0.06);
--shadow-md: 0 4px 10px -2px rgba(40, 30, 10, 0.08), 0 2px 4px -2px rgba(40, 30, 10, 0.05);
--shadow-lg: 0 12px 24px -6px rgba(40, 30, 10, 0.12), 0 4px 8px -4px rgba(40, 30, 10, 0.06);
--shadow-xl: 0 20px 40px -12px rgba(40, 30, 10, 0.16);
/* Feature / muted accent fills */
--feature-bg: #DCEEF1;
--feature-icon-color: #0B7A8A;
/* Error */
--error-bg: #FEF2F2;
--error-border: #FECACA;
--error-text: #DC2626;
/* Inputs */
--input-bg: #FFFFFF;
--input-border: #DDD5C8;
--input-focus: #0B7A8A;
--input-focus-shadow: 0 0 0 2px var(--card-bg), 0 0 0 4px var(--accent-primary);
/* Type scale */
--font-body: 15px;
--font-small: 13px;
--font-caption: 12px;
--font-section: 18px;
--line-height-body: 1.5;
}
:root[data-theme="dark"] {
/* Charcoal with cool steel — not pure black, not violet-tinted */
--bg-primary: #14181C;
--bg-secondary: #1B2128;
--bg-tertiary: #252C34;
--bg-gradient: linear-gradient(165deg, #181D22 0%, #12161A 55%, #1B2128 100%);
--card-bg: #222830;
--card-hover: #2A323C;
--sidebar-bg: #161B20;
/* Muted teal wash on charcoal — not a neon fill */
--sidebar-active-bg: #1E2C31;
--sidebar-active-hover: #25383E;
--header-bg: #181D22;
--header-border: rgba(90, 170, 185, 0.22);
--header-shadow: var(--shadow-md);
--surface: #222830;
--brand-mark-ring: rgba(78, 202, 214, 0.28);
--text-primary: #F5F2EC;
--text-secondary: #C9C2B6;
--text-tertiary: #9A9288;
--text-muted: #9A9288;
--text-accent: #E8E1D6;
--border-primary: #3A424C;
--border-secondary: #4A545E;
--border-tertiary: #2C333C;
--border-muted: #2C333C;
--border: #3A424C;
/* Bright cyan for text/icons; darker fill for white-on-accent CTAs */
--accent-primary: #4ECAD6;
--accent-secondary: #C084E0;
--accent-gradient: linear-gradient(135deg, #0D7A86, #6B3AA8);
--accent-light: #1A3036;
--accent-soft: #1A3036;
--accent-fill: #0D7A86;
--accent-on-accent: #FFFFFF;
--accent: #4ECAD6;
--primary-color: #0D7A86;
--primary-color-hover: #0F8F9C;
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
--shadow-md: 0 4px 10px -2px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.25);
--shadow-lg: 0 12px 24px -6px rgba(0, 0, 0, 0.5), 0 4px 8px -4px rgba(0, 0, 0, 0.3);
--shadow-xl: 0 20px 40px -12px rgba(0, 0, 0, 0.55);
--feature-bg: #1A3036;
--feature-icon-color: #4ECAD6;
--error-bg: #3F1414;
--error-border: #7F1D1D;
--error-text: #FCA5A5;
--input-bg: #252C34;
--input-border: #3A424C;
--input-focus: #4ECAD6;
--input-focus-shadow: 0 0 0 2px var(--card-bg), 0 0 0 4px var(--accent-primary);
--font-body: 15px;
--font-small: 13px;
--font-caption: 12px;
--font-section: 18px;
--line-height-body: 1.5;
}
/* Base typography & page surface */
html {
font-size: 16px;
}
body {
font-size: var(--font-body, 15px);
line-height: var(--line-height-body, 1.5);
color: var(--text-primary);
background: var(--bg-gradient);
}
.App {
min-height: 100vh;
background: var(--bg-gradient);
color: var(--text-primary);
}
/* Accessibility: focus rings */
:focus-visible {
outline: none;
box-shadow: var(--input-focus-shadow);
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
/* Theme Toggle Button */
.theme-toggle {
padding: 10px;
background: var(--bg-primary);
border: 1px solid var(--border-primary);
border-radius: 12px;
cursor: pointer;
transition: all 0.2s ease;
color: var(--text-secondary);
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.theme-toggle:hover {
background: var(--bg-secondary);
border-color: var(--accent-primary);
color: var(--accent-primary);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.theme-icon {
width: 20px;
height: 20px;
}
/* Homepage Styles */
.homepage {
min-height: 100vh;
background: var(--bg-gradient);
}
/* The landing page has no tabs or hamburger, so the space-saving rules that
hide the header brand on Chat/Canvas would leave its header empty. Keep the
brand visible at every width here. */
.homepage .header-left .header-brand {
display: flex !important;
}
.homepage .header-left .modern-home-btn {
display: flex !important;
}
.homepage .app-header .brand-text {
display: block !important;
}
.homepage .app-header .brand-text p {
display: block !important;
}
.header {
background-color: var(--bg-primary);
box-shadow: var(--shadow-sm);
border-bottom: 1px solid var(--border-primary);
}
.header-content {
max-width: 1280px;
margin: 0 auto;
padding: 16px 24px;
display: flex;
align-items: center;
justify-content: space-between;
}
.header-left {
display: flex;
align-items: center;
gap: 12px;
}
.header-right {
display: flex;
align-items: center;
gap: 12px;
}
.logo-container {
width: 40px;
height: 40px;
background: var(--accent-gradient);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
}
.logo-icon {
width: 24px;
height: 24px;
color: var(--accent-on-accent, #FFFFFF);
}
.logo-title {
font-size: 20px;
font-weight: bold;
color: var(--text-primary);
margin: 0;
}
.logo-subtitle {
font-size: 14px;
color: var(--text-secondary);
margin: 0;
}
.main {
max-width: 1280px;
margin: 0 auto;
padding: 64px 24px;
}
.hero-section {
text-align: center;
margin-bottom: 64px;
}
.hero-title {
font-size: 48px;
font-weight: bold;
color: var(--text-primary);
margin-bottom: 24px;
line-height: 1.1;
}
.hero-highlight {
background: var(--accent-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
[data-theme="dark"] .hero-highlight {
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero-subtitle {
font-size: 20px;
color: var(--text-secondary);
max-width: 768px;
margin: 0 auto 32px auto;
line-height: 1.6;
}
/* CTA Button */
.cta-button {
display: inline-flex;
align-items: center;
gap: 12px;
background: var(--accent-gradient);
color: #FFFFFF;
padding: 16px 32px;
border-radius: 12px;
font-size: 18px;
font-weight: 600;
border: none;
cursor: pointer;
box-shadow: var(--shadow-md);
transition: all 0.3s ease;
text-decoration: none;
}
.cta-button:hover {
transform: scale(1.05);
}
.cta-icon {
width: 24px;
height: 24px;
}
.cta-arrow {
width: 20px;
height: 20px;
}
/* Advisors Grid */
.advisors-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 32px;
margin-bottom: 64px;
}
.advisor-card {
background-color: var(--bg-primary);
border-radius: 16px;
padding: 32px;
box-shadow: var(--shadow-md);
border: 1px solid var(--border-primary);
text-align: center;
transition: all 0.3s ease;
}
.advisor-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-xl);
}
.advisor-card-icon {
width: 64px;
height: 64px;
border-radius: 16px;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 24px auto;
}
.advisor-card-icon svg {
width: 32px;
height: 32px;
}
.advisor-card-title {
font-size: 24px;
font-weight: bold;
color: var(--text-primary);
margin-bottom: 8px;
}
.advisor-card-role {
font-size: 16px;
font-weight: 600;
margin-bottom: 16px;
}
.advisor-card-description {
font-size: 16px;
color: var(--text-secondary);
line-height: 1.6;
margin: 0;
}
/* Features Section */
.features-section {
margin-bottom: 64px;
}
.features-title {
font-size: 32px;
font-weight: bold;
color: var(--text-primary);
text-align: center;
margin-bottom: 48px;
}
.features-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 32px;
}
.feature-card {
text-align: center;
padding: 24px;
}
.feature-icon {
width: 48px;
height: 48px;
background-color: transparent;
border: 1px solid var(--border-primary);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 20px auto;
color: var(--feature-icon-color);
box-shadow: var(--shadow-sm);
background: var(--card-bg);
}
.feature-icon svg {
width: 32px;
height: 32px;
color: var(--feature-icon-color);
}
.feature-title {
font-size: 20px;
font-weight: bold;
color: var(--text-primary);
margin-bottom: 12px;
}
.feature-description {
font-size: 16px;
color: var(--text-secondary);
line-height: 1.6;
margin: 0;
}
/* Suggestions Panel */
.suggestions-panel {
padding: 8px 0 0;
max-width: 900px;
margin: 0 auto;
}
.suggestions-header {
text-align: center;
margin-bottom: 12px;
}
.suggestions-title {
font-size: 18px;
font-weight: bold;
color: var(--text-primary);
margin: 0;
}
.suggestions-subtitle {
font-size: 16px;
color: var(--text-secondary);
margin: 0;
}
.suggestions-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 8px;
}
.suggestion-category {
background-color: var(--bg-primary);
border-radius: 12px;
border: 1px solid var(--border-primary);
padding: 12px;
box-shadow: var(--shadow-sm);
transition: box-shadow 0.2s ease;
min-height: 0;
display: flex;
flex-direction: column;
}
.suggestion-category:hover {
box-shadow: var(--shadow-md);
}
.category-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
padding-bottom: 8px;
border-bottom: 1px solid var(--border-tertiary);
}
.category-icon {
width: 28px;
height: 28px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.category-title {
font-size: 16px;
font-weight: 600;
margin: 0;
}
.suggestion-buttons {
display: flex;
flex-direction: column;
gap: 6px;
flex: 1;
}
.suggestion-button {
text-align: left;
padding: 8px 12px;
border: 1px solid var(--border-secondary);
border-radius: 8px;
background-color: transparent;
color: var(--text-accent);
font-size: 13px;
line-height: 1.35;
cursor: pointer;
transition: all 0.2s ease;
}
.suggestion-button:hover {
background-color: var(--hover-bg, var(--bg-secondary));
border-color: var(--hover-border, var(--accent-primary));
color: var(--hover-text, var(--text-primary));
transform: translateY(-1px);
}
.suggestion-button.suggestion-pending {
min-height: 2.25rem;
color: var(--text-tertiary, var(--text-secondary));
font-style: italic;
}
/* Message Components */
.user-message-container {
display: flex;
justify-content: flex-end;
margin-bottom: 16px;
}
.user-message {
background: var(--accent-gradient);
color: #FFFFFF;
border-radius: 16px;
padding: 12px 24px;
max-width: 384px;
}
.user-message p {
margin: 0;
}
.reply-indicator {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
padding: 4px 8px;
background-color: var(--bg-tertiary);
border-radius: 8px;
font-size: 12px;
color: var(--text-secondary);
}
.advisor-message-container {
display: flex;
align-items: flex-start;
gap: 12px;
margin-bottom: 16px;
}
.advisor-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.advisor-avatar svg {
width: 20px;
height: 20px;
}
.advisor-message-bubble {
border-radius: 12px;
box-shadow: var(--shadow-sm);
border: 1px solid;
padding: 16px;
max-width: 512px;
transition: all 0.2s ease;
}
.advisor-message-bubble.clickable:hover {
transform: translateY(-1px);
box-shadow: var(--shadow-md);
}
.advisor-message-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 8px;
}
.advisor-message-name {
font-weight: 600;
font-size: 1rem;
line-height: 1.6;
margin: 0;
}
.reply-badge {
font-size: 10px;
background: var(--accent-fill);
color: var(--accent-on-accent, #FFFFFF);
padding: 2px 6px;
border-radius: 4px;
margin-left: 4px;
}
.message-time {
font-size: 12px;
}
.advisor-message-text {
font-size: 1rem;
line-height: 1.6;
}
.advisor-message-text.is-collapsed {
max-height: 18rem;
overflow: hidden;
mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
-webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.message-show-more {
display: inline-block;
margin-top: 6px;
padding: 0;
border: none;
background: none;
font-size: 0.85rem;
font-weight: 600;
cursor: pointer;
text-decoration: underline;
text-underline-offset: 2px;
}
.message-show-more:hover {
opacity: 0.85;
}
/* Advisor icon in message header: circular badge, theme-aware fill */
.advisor-message-avatar-ring {
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
overflow: hidden;
background: #ffffff;
border: 1px solid rgba(15, 23, 42, 0.1);
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
[data-theme="dark"] .advisor-message-avatar-ring {
background: #1e293b;
border-color: rgba(248, 250, 252, 0.12);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.advisor-message-avatar-ring img {
width: 100%;
height: 100%;
object-fit: cover;
}
.advisor-message-avatar-icon {
flex-shrink: 0;
}
.advisor-message-avatar-initial {
font-weight: 700;
line-height: 1;
}
.advisor-message-text > div:last-child p:last-child {
margin-bottom: 0; /* Remove bottom margin from last paragraph */
}
.advisor-message-text strong {
font-weight: 600;
}
.advisor-message-text em {
font-style: italic;
}
.advisor-message-text ul,
.advisor-message-text ol {
margin: 0.75rem 0;
padding-left: 1.5rem;
}
.advisor-message-text li {
margin-bottom: 0.25rem;
}
.advisor-message-text p {
margin-bottom: 0.75rem;
}
.advisor-message-text p:last-child {
margin-bottom: 0;
}
/* Updated Message Actions Styles */
.message-actions {
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid var(--border-tertiary);
}
.message-action-buttons {
display: flex;
align-items: center;
gap: 8px;
}
.message-action-button {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
background: none;
border: 1px solid;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s ease;
position: relative;
}
.message-action-button:hover {
background: var(--bg-secondary);
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.message-action-button:active {
transform: translateY(0);
}
.message-action-button svg {
width: 14px;
height: 14px;
color: inherit;
}
/* Tooltip Styles */
.tooltip-container {
position: relative;
display: inline-block;
}
.tooltip {
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
margin-bottom: 8px;
padding: 6px 10px;
background: var(--bg-primary);
color: var(--text-primary);
border: 1px solid var(--border-secondary);
border-radius: 6px;
font-size: 12px;
font-weight: 500;
white-space: nowrap;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
z-index: 1000;
opacity: 0;
animation: tooltipFadeIn 0.2s ease-out forwards;
}
.tooltip::after {
content: '';
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
border: 4px solid transparent;
border-top-color: var(--border-secondary);
}
.tooltip::before {
content: '';
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
margin-top: -1px;
border: 4px solid transparent;
border-top-color: var(--bg-primary);
}
/* Tooltip Animation */
@keyframes tooltipFadeIn {
from {
opacity: 0;
transform: translateX(-50%) translateY(4px);
}
to {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
}
/* Dark theme tooltip adjustments */
[data-theme="dark"] .tooltip {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
/* Focus states for accessibility */
.message-action-button:focus-visible {
outline: 2px solid var(--accent-primary);
outline-offset: 2px;
}
/* Copy button success state */
.message-action-button.copied {
color: #10B981 !important;
border-color: #10B98140 !important;
}
.reply-button {
display: flex;
align-items: center;
gap: 6px;
background: none;
border: 1px solid;
padding: 6px 12px;
border-radius: 6px;
font-size: 12px;
cursor: pointer;
transition: all 0.2s ease;
}
.reply-button:hover {
background: var(--bg-secondary);
}
.reference-search-popover {
margin-top: 8px;
background: var(--bg-primary);
border: 1px solid var(--border-primary);
border-radius: 12px;
padding: 14px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.reference-search-popover-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
font-weight: 600;
font-size: 13px;
color: var(--text-primary);
}
.reference-search-popover-header button {
background: none;
border: none;
cursor: pointer;
color: var(--text-secondary);
}
.reference-search-query {
background: var(--bg-secondary);
border-radius: 8px;
padding: 8px 10px;
font-size: 12px;
color: var(--text-primary);
margin-bottom: 8px;
line-height: 1.45;
max-height: 9em;
overflow: auto;
}
.reference-search-actions {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.reference-search-btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
border-radius: 8px;
font-size: 11px;
font-weight: 600;
cursor: pointer;
border: 1px solid var(--border-primary);
background: var(--bg-secondary);
color: var(--text-primary);
}
.reference-search-btn-primary {
background: var(--accent-fill, var(--accent-primary));
color: var(--accent-on-accent, #fff);
border: none;
}
.reference-search-btn.is-copied {
background: #10B98120;
color: #10B981;
border-color: #10B98140;
}
.reference-search-engine {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
margin-top: 10px;
font-size: 11px;
color: var(--text-secondary);
}
.reference-search-engine select {
border: 1px solid var(--border-primary);
background: var(--bg-secondary);
color: var(--text-primary);
border-radius: 6px;
padding: 4px 6px;
font-size: 11px;
}
.reference-search-engine em {
flex-basis: 100%;
font-style: normal;
opacity: 0.85;
}
/* Error Messages */
.error-message-container {
display: flex;
justify-content: center;
margin-bottom: 16px;
}
.error-message {
background-color: var(--error-bg);
border: 1px solid var(--error-border);
color: var(--error-text);
border-radius: 12px;
padding: 12px 16px;
max-width: 384px;
}
.error-message p {
margin: 0;
}
/* Thinking Indicators */
.thinking-container {
display: flex;
align-items: flex-start;
gap: 12px;
margin-bottom: 16px;
opacity: 0.8;
}
.thinking-bubble {
border-radius: 12px;
box-shadow: var(--shadow-sm);
border: 1px solid;
padding: 16px;
max-width: 288px;
}
.thinking-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
}
.advisor-name {
font-weight: 600;
font-size: 1rem;
line-height: 1.6;
margin: 0;
}
.thinking-indicator {
display: flex;
align-items: center;
gap: 8px;
color: var(--text-secondary);
font-style: italic;
margin-bottom: 8px;
}
.thinking-dots {
display: flex;
gap: 4px;
}
.thinking-dot {
width: 8px;
height: 8px;
border-radius: 50%;
animation: bounce 1.4s ease-in-out infinite both;
}
.thinking-text {
font-size: 14px;
margin-top: 4px;
margin-bottom: 0;
}
/* Basic Chat Input - SCOPED TO AVOID CONFLICTS */
.input-area {
border-top: 1px solid var(--border-primary);
padding: 16px;
}
.input-container {
display: flex;
gap: 16px;
}
.message-input {
flex: 1;
resize: none;
border: 1px solid var(--input-border);
border-radius: 12px;
padding: 12px 16px;
font-size: 14px;
font-family: inherit;
outline: none;
transition: border-color 0.2s ease;
background-color: var(--input-bg);
color: var(--text-primary);
}
.message-input::placeholder {
color: var(--text-secondary);
}
.message-input:focus {
border-color: var(--input-focus);
box-shadow: var(--input-focus-shadow);
}
/* IMPORTANT: Make send button styles specific to basic ChatInput only */
.input-container .send-button {
background: var(--accent-gradient);
color: #FFFFFF;
padding: 12px 24px;
border-radius: 12px;
border: none;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 8px;
}
.input-container .send-button:hover:not(:disabled) {
transform: translateY(-1px);
box-shadow: var(--shadow-md);
}
.input-container .send-button:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
}
.input-container .send-icon {
width: 20px;
height: 20px;
}
.input-container .send-text {
display: none;
}
/* Footer Styles */
.footer {
background-color: var(--bg-primary);
border-top: 1px solid var(--border-primary);
margin-top: auto;
}
.footer-content {
max-width: 1280px;
margin: 0 auto;
padding: 24px;
text-align: center;
}
.footer-text {
color: var(--text-secondary);
font-size: 14px;
margin: 0;
}
.footer-neon-link {
color: var(--text-secondary);
text-decoration: none;
transition: opacity 0.2s ease;
}
.footer-neon-link:hover {
opacity: 0.8;
}
.footer-neon-logo {
height: 1em;
width: auto;
vertical-align: text-bottom;
margin-right: 2px;
}
.footer-patents-link {
color: var(--text-secondary);
text-decoration: underline;
transition: opacity 0.2s ease;
}
.footer-patents-link:hover {
opacity: 0.8;
}
.rag-info-overlay {
position: absolute;
top: 100%;
right: 0;
z-index: 1000;
width: 320px;
max-width: 90vw;
border: 1px solid;
border-radius: 8px;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
margin-top: 8px;
backdrop-filter: blur(10px);
animation: ragOverlaySlideIn 0.2s ease-out;
}
@keyframes ragOverlaySlideIn {
from {
opacity: 0;
transform: translateY(-10px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.rag-overlay-header {
display: flex;
align-items: center;
gap: 8px;
padding: 12px 16px;
font-weight: 600;
font-size: 14px;
border-bottom: 1px solid var(--border-color);
background: var(--bg-secondary);
border-radius: 8px 8px 0 0;
}
.rag-overlay-content {
padding: 16px;
max-height: 400px;
overflow-y: auto;
}
.rag-stat-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
padding: 8px 0;
border-bottom: 1px solid var(--border-secondary);
}
.rag-stat-row:last-child {
border-bottom: none;
margin-bottom: 0;
}
.rag-stat-label {
font-size: 13px;
color: var(--text-secondary);
font-weight: 500;
}
.rag-stat-value {
font-size: 13px;
font-weight: 600;
color: var(--text-primary);
}
.rag-stat-value.positive {
color: #10B981;
}
.rag-stat-value.negative {
color: #6B7280;
}
.rag-documents-section {
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid var(--border-secondary);
}
.rag-section-title {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
font-weight: 600;
color: var(--text-secondary);
margin-bottom: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.rag-document-item {
background: var(--bg-tertiary);
border: 1px solid var(--border-secondary);
border-radius: 6px;
padding: 10px;
margin-bottom: 8px;
}
.rag-document-item:last-child {
margin-bottom: 0;
}
.rag-document-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 6px;
}
.rag-filename {
font-size: 12px;
font-weight: 600;
color: var(--text-primary);
flex: 1;
margin-right: 8px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.rag-relevance {
display: flex;
align-items: center;
gap: 3px;
font-size: 11px;
font-weight: 600;
color: var(--accent-color);
background: var(--accent-color)15;
padding: 2px 6px;
border-radius: 10px;
white-space: nowrap;
}
.rag-chunk-preview {
font-size: 11px;
line-height: 1.4;
color: var(--text-tertiary);
background: var(--bg-quaternary);
padding: 6px 8px;
border-radius: 4px;
border-left: 2px solid var(--accent-color);
margin-top: 6px;
}
.rag-no-documents {
display: flex;
align-items: center;
gap: 8px;
padding: 12px;
background: var(--bg-secondary);
border: 1px dashed var(--border-secondary);
border-radius: 6px;
color: var(--text-secondary);
font-size: 12px;
font-style: italic;
margin-top: 8px;
}
/* Accessibility improvements */
.rag-info-overlay:focus-within {
outline: 2px solid var(--accent-color);
outline-offset: 2px;
}
/* Smooth transitions */
.message-action-button {
transition: all 0.2s ease;
}
.message-action-button:hover {
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* Custom scrollbar for overlay content */
.rag-overlay-content::-webkit-scrollbar {
width: 4px;
}
.rag-overlay-content::-webkit-scrollbar-track {
background: var(--bg-secondary);
border-radius: 2px;
}
.rag-overlay-content::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 2px;
}
.rag-overlay-content::-webkit-scrollbar-thumb:hover {
background: var(--text-secondary);
}
/* Dark theme adjustments */
[data-theme="dark"] .rag-info-overlay {
background: #1f2937;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .rag-overlay-header {
background: #374151;
}
[data-theme="dark"] .rag-document-item {
background: #374151;
border-color: #4B5563;
}
[data-theme="dark"] .rag-chunk-preview {
background: #4B5563;
color: #D1D5DB;
}
[data-theme="dark"] .rag-no-documents {
background: #374151;
border-color: #4B5563;
}
/* Animations */
@keyframes bounce {
0%, 80%, 100% {
transform: scale(0);
}
40% {
transform: scale(1);
}
}
/* Responsive Design */
@media (max-width: 1024px) {
.suggestions-panel {
padding: 8px 16px 0;
}
.suggestion-category {
padding: 12px;
min-height: 0;
}
}
@media (max-width: 768px) {
.suggestions-grid {
grid-template-columns: 1fr;
gap: 16px;
}
.suggestions-panel {
padding: 8px 12px 0;
}
.suggestions-title {
font-size: 16px;
}
.suggestion-category {
padding: 10px;
min-height: 0;
}
.suggestion-button {
padding: 10px 14px;
font-size: 13px;
}
.advisor-message-text {
font-size: 1rem;
}
.advisor-message-name {
font-size: 1rem;
}
/* Basic ChatInput mobile styles */
.input-container .send-text {
display: inline;
}
.hero-title {
font-size: 36px;
}
.hero-subtitle {
font-size: 18px;
}
.advisors-grid {
grid-template-columns: 1fr;
}
.features-grid {
grid-template-columns: 1fr;
}
.message-action-buttons {
gap: 6px;
}
.message-action-button {
width: 28px;
height: 28px;
}
.tooltip {
font-size: 11px;
padding: 4px 8px;
}
.rag-info-overlay {
width: 280px;
left: 0;
right: auto;
}
.rag-document-header {
flex-direction: column;
align-items: flex-start;
gap: 4px;
}
.rag-filename {
margin-right: 0;
white-space: normal;
overflow: visible;
text-overflow: initial;
}
}