gabrielchua's picture
Update app/frontend/style.css
0a7d484 verified
raw
history blame
29.1 kB
/* LionGuard 2 - Warm, Inviting, and Bright Design */
/* Icons alignment */
.bx {
vertical-align: middle;
line-height: 1;
}
:root {
/* Modern color palette inspired by logo */
--primary-red: #E14746;
--primary-dark: #1E293B;
--warm-beige: #F8FAFC;
--warm-cream: #F1F5F9;
--warm-tan: #E2E8F0;
--soft-white: #FFFFFF;
/* Accent colors - more sophisticated */
--accent-purple: #8B5CF6;
--accent-blue: #3B82F6;
--success-green: #10B981;
--warning-amber: #F59E0B;
--info-blue: #0EA5E9;
/* Text colors */
--text-primary: #0F172A;
--text-secondary: #475569;
--text-muted: #94A3B8;
/* UI elements - more subtle shadows, less rounded */
--shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
--shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
--shadow-strong: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
--border-radius: 8px;
--border-radius-sm: 6px;
--border-radius-lg: 12px;
}
/* Dark Mode */
body.dark-mode {
--primary-dark: #E2E8F0;
--warm-beige: #0F172A;
--warm-cream: #1E293B;
--warm-tan: #334155;
--soft-white: #1E293B;
--text-primary: #F1F5F9;
--text-secondary: #CBD5E1;
--text-muted: #64748B;
--shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
--shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
--shadow-strong: 0 10px 15px rgba(0, 0, 0, 0.5), 0 4px 6px rgba(0, 0, 0, 0.4);
}
/* Fix model selector gradient in dark mode */
body.dark-mode .model-selector-prominent {
background: transparent;
}
body.dark-mode .guardrail-intro {
background: var(--soft-white);
}
/* Reset & Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: var(--warm-beige);
color: var(--text-primary);
line-height: 1.6;
min-height: 100vh;
display: flex;
flex-direction: column;
}
.container {
width: 100%;
max-width: 1800px;
margin: 0 auto;
padding: 0 20px;
}
main {
flex: 1;
}
/* Header */
.header {
background: var(--soft-white);
box-shadow: var(--shadow-soft);
padding: 12px 0;
margin-bottom: 16px;
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 16px;
}
.header-controls {
margin-left: auto;
display: flex;
align-items: center;
gap: 24px; /* Increased gap for better spacing */
flex-wrap: wrap;
justify-content: flex-end;
background: transparent;
border: none;
border-radius: 0;
padding: 0;
box-shadow: none;
}
.logo-section {
display: flex;
align-items: center;
gap: 16px;
}
.logo {
width: 48px;
height: 48px;
border-radius: 0;
box-shadow: none;
}
.logo-text h1 {
font-family: 'Poppins', sans-serif;
font-size: 1.5rem;
font-weight: 700;
color: var(--primary-dark);
letter-spacing: -0.02em;
margin-bottom: 0px;
line-height: 1.2;
}
.logo-text p {
font-size: 0.8rem;
color: var(--text-secondary);
}
body.dark-mode .header-controls {
background: transparent;
}
/* Theme Toggle */
.theme-icon-button {
background: var(--warm-cream);
border: 1px solid var(--warm-tan);
border-radius: 50%;
width: 42px;
height: 42px;
padding: 0;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 0;
font-size: 1.1rem;
box-shadow: var(--shadow-soft);
transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.theme-icon-button:hover {
transform: translateY(-1px);
border-color: var(--primary-red);
background: var(--soft-white);
}
.theme-icon-button:focus-visible {
outline: 2px solid rgba(225, 71, 70, 0.4);
outline-offset: 3px;
}
.theme-icon {
font-size: 1.1rem;
line-height: 1;
}
body.dark-mode .theme-icon-button {
background: var(--warm-cream);
border-color: #475569;
}
body.dark-mode .toggle-icon-moon {
opacity: 0.8;
}
/* Hero Section */
.hero {
background: linear-gradient(135deg, var(--soft-white) 0%, var(--warm-cream) 100%);
border: 2px solid var(--warm-tan);
border-radius: var(--border-radius-lg);
padding: 48px;
margin-bottom: 32px;
box-shadow: var(--shadow-medium);
display: flex;
gap: 48px;
align-items: center;
flex-wrap: wrap;
}
.hero-content {
flex: 1 1 400px;
}
.hero-eyebrow {
text-transform: uppercase;
letter-spacing: 0.1em;
font-size: 0.75rem;
font-weight: 600;
color: var(--primary-red);
margin-bottom: 12px;
}
.hero-content h2 {
font-family: 'Poppins', sans-serif;
font-size: 2.2rem;
color: var(--primary-dark);
margin-bottom: 16px;
line-height: 1.3;
}
.hero-content p {
color: var(--text-secondary);
font-size: 1.05rem;
margin-bottom: 24px;
}
.hero-badges {
display: flex;
flex-wrap: wrap;
gap: 12px;
}
.badge {
background: var(--soft-white);
border: 1px solid var(--warm-tan);
padding: 6px 14px;
border-radius: 6px;
font-size: 0.85rem;
font-weight: 500;
color: var(--text-primary);
box-shadow: var(--shadow-soft);
}
.hero-stats {
display: flex;
gap: 20px;
flex: 0 0 auto;
}
.stat-card {
background: var(--soft-white);
border: 2px solid var(--warm-tan);
border-radius: var(--border-radius);
padding: 24px 32px;
text-align: center;
box-shadow: var(--shadow-soft);
}
.stat-card strong {
display: block;
font-size: 2.5rem;
color: var(--primary-red);
font-family: 'Poppins', sans-serif;
line-height: 1;
margin-bottom: 8px;
}
.stat-card span {
font-size: 0.9rem;
color: var(--text-muted);
}
/* Info Strip */
.info-strip {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 16px;
margin-bottom: 24px;
}
.info-pill {
background: var(--soft-white);
border: 1px solid var(--warm-tan);
border-radius: var(--border-radius);
padding: 14px 18px;
color: var(--text-primary);
font-size: 0.9rem;
box-shadow: var(--shadow-soft);
transition: all 0.2s ease;
}
.info-pill:hover {
transform: translateY(-1px);
box-shadow: var(--shadow-medium);
border-color: var(--primary-red);
}
/* Warning Card */
.warning-card {
background: #FEF3C7;
border-left: 3px solid var(--warning-amber);
border-right: 1px solid var(--warm-tan);
border-top: 1px solid var(--warm-tan);
border-bottom: 1px solid var(--warm-tan);
color: #78350F;
padding: 8px 14px;
border-radius: var(--border-radius);
margin-bottom: 12px;
font-weight: 500;
font-size: 0.85rem;
box-shadow: var(--shadow-soft);
}
/* Tabs */
.tabs {
display: inline-flex;
align-items: center;
flex-wrap: wrap;
gap: 24px; /* Increased gap for better spacing */
margin-bottom: 0;
background: transparent;
border: none;
border-radius: 0;
padding: 0;
box-shadow: none;
}
.nav-dropdown {
position: relative;
}
.tab {
flex: 0 0 auto;
background: transparent;
border: none;
border-bottom: 2px solid transparent;
padding: 6px 0;
border-radius: 0;
font-size: 0.95rem;
font-weight: 600;
color: var(--text-secondary);
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
white-space: nowrap;
appearance: none;
-webkit-appearance: none;
}
.tab:hover {
background: transparent;
border-bottom-color: var(--warm-tan);
color: var(--text-primary);
}
.tab.active {
background: transparent;
border-bottom-color: var(--primary-red);
color: var(--primary-red);
}
.tab:focus-visible {
outline: 2px solid rgba(225, 71, 70, 0.4);
outline-offset: 2px;
}
.tab-icon {
font-size: 1.25rem;
margin-bottom: 1px;
}
.dropdown-toggle {
/* padding-right: 22px; removed to fix gap */
}
.dropdown-caret {
font-size: 0.75rem;
margin-left: auto;
}
.dropdown-menu {
position: absolute;
top: calc(100% + 6px);
left: 0;
background: var(--soft-white);
border: 1px solid var(--warm-tan);
border-radius: var(--border-radius);
box-shadow: var(--shadow-medium);
padding: 8px;
display: none;
flex-direction: column;
min-width: 200px;
z-index: 10;
}
.nav-dropdown.open .dropdown-menu {
display: flex;
}
.dropdown-item {
width: 100%;
justify-content: flex-start;
border-radius: var(--border-radius-sm);
}
.dropdown-item + .dropdown-item {
margin-top: 4px;
}
.nav-link {
font-weight: 600;
}
/* Tab Content */
.tab-content {
display: none;
width: 100%;
}
.tab-content.active {
display: block;
animation: fadeIn 0.4s ease;
width: 100%;
}
/* Ensure consistent content width across all tabs */
#detector-content {
width: 100%;
max-width: 1800px;
margin: 0 auto;
}
#chat-content {
width: 100%;
max-width: none;
margin: 0;
}
#about-content {
width: 100%;
max-width: 1400px;
margin: 0 auto;
}
/* Keep model selector full width */
.model-selector-prominent {
width: 100%;
max-width: none;
}
.full-width-section {
width: 100vw;
margin-left: calc(50% - 50vw);
margin-right: calc(50% - 50vw);
padding-left: clamp(16px, 4vw, 64px);
padding-right: clamp(16px, 4vw, 64px);
}
/* Ensure consistent inner content widths */
#detector-content .analysis-grid,
#chat-content .guardrail-intro,
#chat-content .chat-grid,
#chat-content .message-input-section {
width: 100%;
max-width: none;
margin-left: auto;
margin-right: auto;
}
#about-content .about-intro-section,
#about-content .about-resources-grid {
width: 100%;
max-width: 1000px;
margin-left: auto;
margin-right: auto;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
/* Model Selector */
.model-selector-prominent {
background: transparent;
border: none;
border-radius: 0;
padding: 0;
margin-bottom: 28px;
box-shadow: none;
}
.model-selector-header {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 12px;
margin-bottom: 12px;
}
.model-selector-header h3 {
font-family: 'Poppins', sans-serif;
font-size: 1.15rem;
color: var(--primary-dark);
margin: 0;
}
.model-selector-subtitle {
color: var(--text-secondary);
font-size: 0.9rem;
margin: 0;
}
.model-dropdown {
position: relative;
max-width: 520px;
}
.model-select {
width: 100%;
padding: 16px 18px;
border: 2px solid var(--warm-tan);
border-radius: var(--border-radius);
background: var(--soft-white);
color: var(--primary-dark);
font-size: 1rem;
font-weight: 600;
box-shadow: var(--shadow-soft);
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
cursor: pointer;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.model-dropdown::after {
content: '▾';
position: absolute;
right: 16px;
top: 50%;
transform: translateY(-50%);
pointer-events: none;
color: var(--text-secondary);
font-size: 1rem;
}
.model-select:focus {
outline: none;
border-color: var(--primary-red);
box-shadow: 0 0 0 2px rgba(225, 71, 70, 0.15);
}
.model-select option {
font-weight: 500;
}
/* Analysis Grid */
.analysis-grid {
display: grid;
grid-template-columns: 1fr;
gap: 16px;
margin-bottom: 10px;
width: 100%;
max-width: 100%;
}
@media (min-width: 900px) {
.analysis-grid {
grid-template-columns: 1fr 1fr;
gap: 20px;
}
}
/* Panel */
.panel {
background: var(--soft-white);
border: 1px solid var(--warm-tan);
border-radius: var(--border-radius);
padding: 20px;
box-shadow: var(--shadow-medium);
display: flex;
flex-direction: column;
}
.panel h3 {
font-family: 'Poppins', sans-serif;
color: var(--primary-dark);
margin-bottom: 16px;
font-size: 1.1rem;
}
/* Input Panel */
.input-panel {
height: 100%;
}
.input-panel textarea {
width: 100%;
background: var(--warm-cream);
border: 1px solid var(--warm-tan);
border-radius: var(--border-radius);
padding: 14px;
font-family: inherit;
font-size: 0.95rem;
color: var(--text-primary);
margin-bottom: 16px;
resize: vertical;
min-height: 200px;
flex: 1;
transition: all 0.2s ease;
}
@media (min-width: 900px) {
.input-panel textarea {
min-height: 300px;
}
}
.input-panel textarea:focus {
outline: none;
border-color: var(--primary-red);
box-shadow: 0 0 0 2px rgba(225, 71, 70, 0.1);
}
/* Buttons */
.btn {
padding: 10px 18px;
border: none;
border-radius: var(--border-radius-sm);
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
box-shadow: var(--shadow-soft);
}
.btn:hover {
transform: translateY(-1px);
box-shadow: var(--shadow-medium);
}
.btn-primary {
background: var(--primary-red);
color: var(--soft-white);
}
.btn-primary:hover {
background: #B91C1C;
}
.btn-success {
background: var(--success-green);
color: var(--soft-white);
}
.btn-success:hover {
background: #059669;
}
.btn-secondary {
background: var(--warm-cream);
border: 1px solid var(--warm-tan);
color: var(--text-primary);
}
.btn-danger {
background: #EF4444;
color: var(--soft-white);
}
.btn-danger:hover {
background: #DC2626;
}
.btn-icon {
font-size: 1.2rem;
}
/* Binary Result */
.binary-placeholder {
text-align: center;
padding: 16px 12px;
border: 1px dashed var(--warm-tan);
border-radius: var(--border-radius);
color: var(--text-muted);
margin-bottom: 10px;
font-size: 0.8rem;
}
.placeholder-icon {
font-size: 1.6rem;
margin-bottom: 4px;
}
.binary-card {
display: flex;
align-items: center;
gap: 10px;
border-radius: var(--border-radius);
padding: 10px 12px;
margin-bottom: 6px;
box-shadow: var(--shadow-soft);
border: 1px solid;
}
.binary-card.pass {
background: #ECFDF5;
border-color: var(--success-green);
border-left-width: 4px;
}
.binary-card.warn {
background: #FEF3C7;
border-color: var(--warning-amber);
border-left-width: 4px;
}
.binary-card.fail {
background: #FEE2E2;
border-color: var(--primary-red);
border-left-width: 4px;
}
body.dark-mode .binary-card.pass {
background: rgba(34, 197, 94, 0.15);
border-color: #4ADE80;
}
body.dark-mode .binary-card.warn {
background: rgba(251, 191, 36, 0.18);
border-color: #FBBF24;
}
body.dark-mode .binary-card.fail {
background: rgba(248, 113, 113, 0.18);
border-color: #F87171;
}
.binary-icon {
font-size: 1.6rem;
}
.binary-label {
font-size: 0.6rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-muted);
margin-bottom: 2px;
}
.binary-score-line {
display: flex;
align-items: baseline;
gap: 6px;
flex-wrap: wrap;
margin-bottom: 2px;
}
.binary-score-line h2 {
font-family: 'Poppins', sans-serif;
font-size: 1rem;
line-height: 1.1;
margin: 0;
}
.binary-card.pass .binary-score-line h2 {
color: #15803D;
}
.binary-card.warn .binary-score-line h2 {
color: #92400E;
}
.binary-card.fail .binary-score-line h2 {
color: #B91C1C;
}
body.dark-mode .binary-card.pass .binary-score-line h2 {
color: #86EFAC;
}
body.dark-mode .binary-card.warn .binary-score-line h2 {
color: #FCD34D;
}
body.dark-mode .binary-card.fail .binary-score-line h2 {
color: #FCA5A5;
}
.binary-percentage {
font-size: 0.85rem;
font-weight: 600;
color: var(--text-secondary);
}
.binary-body p {
color: var(--text-secondary);
font-size: 0.75rem;
}
body.dark-mode .binary-label,
body.dark-mode .binary-percentage,
body.dark-mode .binary-body p {
color: #E2E8F0;
}
/* Category Results */
.category-placeholder {
text-align: center;
padding: 16px 12px;
border: 1px dashed var(--warm-tan);
border-radius: var(--border-radius);
color: var(--text-muted);
font-size: 0.8rem;
}
.category-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
}
@media (max-width: 900px) {
.category-grid {
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
}
.category-card {
background: var(--warm-cream);
border: 1px solid var(--warm-tan);
border-radius: var(--border-radius-sm);
padding: 10px 12px;
transition: all 0.2s ease;
display: flex;
flex-direction: column;
gap: 6px;
align-items: center;
text-align: center;
}
body.dark-mode .category-card {
background: rgba(15, 23, 42, 0.85);
border-color: rgba(148, 163, 184, 0.4);
}
.category-card:hover {
transform: translateY(-1px);
box-shadow: var(--shadow-soft);
}
.category-label {
font-weight: 600;
color: var(--text-primary);
margin-bottom: 4px;
font-size: 0.75rem;
}
.category-meter {
display: grid;
grid-template-columns: repeat(10, minmax(0, 1fr));
gap: 2px;
margin-bottom: 4px;
width: 100%;
}
.category-meter-segment {
height: 6px;
border-radius: 2px;
background: var(--warm-tan);
transition: background 0.2s ease;
}
.category-meter-segment.filled.good {
background: rgba(16, 185, 129, 0.8);
}
.category-meter-segment.filled.warn {
background: rgba(245, 158, 11, 0.8);
}
.category-meter-segment.filled.bad {
background: rgba(225, 71, 70, 0.9);
}
.category-score {
display: flex;
justify-content: flex-start;
}
.score-chip {
display: inline-block;
padding: 2px 6px;
border-radius: 4px;
font-weight: 600;
font-size: 0.65rem;
}
.score-chip.good {
background: rgba(6, 214, 160, 0.15);
color: #007A5A;
}
.score-chip.warn {
background: rgba(255, 183, 3, 0.15);
color: #A67C00;
}
.score-chip.bad {
background: rgba(230, 57, 70, 0.15);
color: #A81017;
}
body.dark-mode .score-chip.good {
background: rgba(34, 197, 94, 0.25);
color: #A7F3D0;
}
body.dark-mode .score-chip.warn {
background: rgba(251, 191, 36, 0.25);
color: #FDE68A;
}
body.dark-mode .score-chip.bad {
background: rgba(248, 113, 113, 0.25);
color: #FCA5A5;
}
/* Feedback Section */
.feedback-section {
background: var(--warm-cream);
border: 1px solid var(--warm-tan);
border-radius: var(--border-radius);
padding: 16px 20px; /* Increased padding */
margin-top: 12px;
text-align: center;
}
.feedback-prompt {
color: var(--text-secondary);
margin-bottom: 12px; /* Balanced spacing */
font-weight: 500;
font-size: 0.85rem; /* Slightly larger */
}
.feedback-buttons {
display: flex;
gap: 12px; /* More gap between buttons */
margin-bottom: 0; /* Remove bottom margin, let padding handle it unless message appears */
flex-wrap: wrap;
justify-content: center;
}
.feedback-message {
/* Removed default padding to avoid ghost space */
border-radius: var(--border-radius-sm);
font-weight: 600;
text-align: center;
font-size: 0.85rem;
margin-top: 0;
transition: all 0.3s ease;
opacity: 0;
height: 0;
overflow: hidden;
}
.feedback-message.success,
.feedback-message.info {
padding: 10px;
margin-top: 12px; /* Add space only when message appears */
opacity: 1;
height: auto;
}
.feedback-message.success {
background: rgba(6, 214, 160, 0.15);
color: var(--success-green);
}
.feedback-message.info {
background: rgba(255, 183, 3, 0.15);
color: var(--warning-amber);
}
/* Guardrail Comparison */
.guardrail-intro {
margin-bottom: 16px;
background: var(--soft-white);
border: 1px solid var(--warm-tan);
border-radius: var(--border-radius);
padding: 20px;
box-shadow: var(--shadow-soft);
}
.guardrail-intro h3 {
font-family: 'Poppins', sans-serif;
color: var(--primary-dark);
margin-bottom: 8px;
font-size: 1.1rem;
}
.guardrail-intro p {
color: var(--text-secondary);
font-size: 0.95rem;
}
.chat-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 22px;
margin-bottom: 24px;
}
.chat-panel {
background: var(--soft-white);
border: 1px solid var(--warm-tan);
border-radius: var(--border-radius);
overflow: hidden;
box-shadow: var(--shadow-medium);
}
.chat-header {
background: var(--warm-cream);
padding: 10px 14px;
display: flex;
align-items: center;
gap: 10px;
border-bottom: 1px solid var(--warm-tan);
}
.chat-icon {
font-size: 1.2rem;
}
.chat-header h4 {
font-family: 'Poppins', sans-serif;
color: var(--primary-dark);
font-size: 1.05rem;
}
.chat-messages {
padding: 16px;
min-height: 320px;
max-height: 380px;
overflow-y: auto;
background: var(--warm-cream);
}
@media (min-width: 900px) {
.chat-messages {
min-height: 400px;
max-height: 500px;
}
}
.chat-message {
margin-bottom: 8px;
padding: 8px 12px;
border-radius: var(--border-radius-sm);
max-width: 85%;
word-wrap: break-word;
font-size: 0.85rem;
}
.chat-message.user {
background: var(--primary-red);
color: var(--soft-white);
margin-left: auto;
}
.chat-message.assistant {
background: var(--soft-white);
border: 1px solid var(--warm-tan);
color: var(--text-primary);
}
/* Message Input Section */
.message-input-section {
background: var(--soft-white);
border: 1px solid var(--warm-tan);
border-radius: var(--border-radius);
padding: 14px;
box-shadow: var(--shadow-medium);
margin-bottom: 16px;
}
.message-input-section h4 {
font-family: 'Poppins', sans-serif;
color: var(--primary-dark);
margin-bottom: 10px;
font-size: 0.95rem;
}
.message-input-group {
display: flex;
gap: 8px;
}
.message-input-group input {
flex: 1;
background: var(--warm-cream);
border: 1px solid var(--warm-tan);
border-radius: var(--border-radius-sm);
padding: 10px 14px;
font-family: inherit;
font-size: 0.9rem;
color: var(--text-primary);
transition: all 0.2s ease;
}
.message-input-group input:focus {
outline: none;
border-color: var(--primary-red);
box-shadow: 0 0 0 2px rgba(225, 71, 70, 0.1);
}
/* Footer */
.footer {
background: var(--soft-white);
border-top: 1px solid var(--warm-tan);
padding: 10px 0;
margin-top: 12px;
text-align: center;
}
.footer p {
color: var(--text-secondary);
font-size: 0.85rem;
}
.footer a {
color: var(--primary-red);
text-decoration: none;
font-weight: 600;
}
.footer a:hover {
text-decoration: underline;
}
/* Loading State */
.loading {
opacity: 0.6;
pointer-events: none;
}
/* About Page Styles */
.about-intro-section {
background: transparent;
border: none;
border-radius: 0;
padding: 10px 0 30px;
margin-bottom: 16px;
box-shadow: none;
text-align: center;
}
.about-intro-section h2 {
font-family: 'Poppins', sans-serif;
font-size: 1.4rem;
color: var(--primary-dark);
margin-bottom: 10px;
}
.about-intro-section .lead {
font-size: 0.95rem;
color: var(--text-secondary);
line-height: 1.6;
margin: 0 auto;
max-width: 900px;
}
.about-intro-section .lead + .lead {
margin-top: 14px;
}
.about-resources-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 16px;
margin-bottom: 16px;
}
@media (min-width: 900px) {
.about-resources-grid {
gap: 20px;
}
}
.resource-card {
background: var(--soft-white);
border: 1px solid var(--warm-tan);
border-radius: var(--border-radius);
padding: 16px;
box-shadow: var(--shadow-soft);
transition: all 0.2s ease;
}
.resource-card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-medium);
}
.resource-card h3 {
font-family: 'Poppins', sans-serif;
font-size: 1rem;
color: var(--primary-dark);
margin-bottom: 12px;
}
.resource-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.resource-list a {
color: var(--primary-red);
text-decoration: none;
font-weight: 500;
padding: 6px 10px;
background: var(--warm-cream);
border-radius: var(--border-radius-sm);
border-left: 3px solid var(--primary-red);
transition: all 0.2s ease;
font-size: 0.85rem;
outline: none;
}
.resource-list a:hover {
background: var(--warm-tan);
border-left-color: var(--primary-red);
transform: translateX(4px);
}
.resource-list a:focus-visible {
outline: none;
box-shadow: 0 0 0 2px rgba(225, 71, 70, 0.3);
background: var(--soft-white);
}
/* Responsive Design */
@media (max-width: 768px) {
.about-intro-section {
padding: 20px;
}
.about-intro-section h2 {
font-size: 1.4rem;
}
.analysis-grid {
grid-template-columns: 1fr;
}
.chat-grid {
grid-template-columns: 1fr;
}
.tabs {
flex-wrap: wrap;
}
#detector-content,
#chat-content {
width: 100%;
}
.message-input-group {
flex-direction: column;
}
.feedback-buttons {
flex-direction: column;
}
.model-dropdown {
max-width: 100%;
}
.about-resources-grid {
grid-template-columns: 1fr;
}
}
/* Get Started Tab Styles */
.get-started-container {
max-width: 1000px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 20px;
}
.option-card.full-width-card {
width: 100%;
background: var(--soft-white);
border: 1px solid var(--warm-tan);
border-radius: var(--border-radius);
padding: 16px; /* Restored to a slightly larger padding */
box-shadow: var(--shadow-soft);
display: flex;
flex-direction: column;
gap: 12px; /* Slightly reduced gap */
}
.option-header {
display: flex;
gap: 12px;
align-items: flex-start; /* Reverted to align-items: flex-start */
}
.option-icon {
font-size: 1.5rem;
color: var(--primary-red);
background: var(--warm-cream);
padding: 8px;
border-radius: 50%;
}
.option-header h2 {
font-family: 'Poppins', sans-serif;
font-size: 1.4rem;
color: var(--primary-dark);
margin-bottom: 4px;
}
.option-header p {
color: var(--text-secondary);
font-size: 0.9rem;
}
.code-section {
background: #2d2d2d; /* Prism Tomorrow bg match */
border-radius: var(--border-radius);
overflow: hidden;
margin-top: 4px;
}
.code-tabs-header {
display: flex;
justify-content: space-between;
align-items: center;
background: #1f1f1f; /* Slightly darker */
border-bottom: 1px solid #3d3d3d;
padding-right: 10px;
}
.code-tabs {
display: flex;
overflow-x: auto;
}
.code-tab {
background: transparent;
border: none;
color: #94A3B8;
padding: 8px 16px;
cursor: pointer;
font-size: 0.8rem;
font-family: 'Inter', sans-serif;
font-weight: 500;
border-bottom: 2px solid transparent;
transition: all 0.2s ease;
white-space: nowrap;
}
.code-tab:hover {
color: #E2E8F0;
background: rgba(255, 255, 255, 0.05);
}
.code-tab.active {
color: #FFFFFF;
border-bottom-color: var(--primary-red);
background: rgba(255, 255, 255, 0.08);
}
.copy-btn {
background: transparent;
border: 1px solid #475569;
color: #cbd5e1;
padding: 4px 10px;
border-radius: 4px;
font-size: 0.75rem;
cursor: pointer;
display: flex;
align-items: center;
gap: 6px;
transition: all 0.2s ease;
}
.copy-btn:hover {
background: rgba(255, 255, 255, 0.1);
border-color: #94a3b8;
color: white;
}
.code-display {
padding: 16px;
background: #2d2d2d; /* Match Prism theme */
overflow-x: auto;
}
.code-block {
display: none;
}
.code-block.active {
display: block;
animation: fadeIn 0.3s ease;
}
/* Override Prism margins */
.code-block pre[class*="language-"] {
margin: 0 !important;
padding: 0 !important;
background: transparent !important;
text-shadow: none !important;
border-radius: 0 !important;
box-shadow: none !important;
}
.code-block code[class*="language-"] {
font-family: 'Menlo', 'Monaco', 'Courier New', monospace !important;
font-size: 0.85rem !important;
line-height: 1.5 !important;
}
.option-action {
display: flex;
justify-content: flex-start; /* Align button to the left */
margin-top: 0; /* Relies on parent gap */
}