* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #0a0a0a;
color: #e0e0e0;
min-height: 100vh;
padding: 20px;
}
.container {
max-width: 1200px;
margin: 0 auto;
}
/* Header */
header {
display: flex;
align-items: center;
gap: 20px;
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 1px solid #333;
}
h1 {
font-size: 2rem;
color: var(--accent-color, #8b5cf6);
}
/* Stats */
.stats {
display: flex;
gap: 15px;
margin-left: auto;
}
.stat {
background: #1a1a2e;
padding: 8px 16px;
border-radius: 8px;
font-size: 0.9rem;
}
.stat-value {
color: var(--accent-color, #8b5cf6);
font-weight: bold;
}
/* Buttons */
button {
padding: 12px 24px;
font-size: 1rem;
background: var(--accent-color, #8b5cf6);
color: #fff;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background 0.2s;
}
button:hover {
background: var(--accent-hover, #7c3aed);
}
button:disabled {
background: #333;
cursor: not-allowed;
opacity: 0.5;
}
.btn-secondary {
background: #333;
}
.btn-secondary:hover {
background: #444;
}
.btn-secondary.active {
background: var(--accent-color, #8b5cf6);
}
.btn-small {
padding: 8px 16px;
font-size: 0.85rem;
}
/* Input */
input[type="text"] {
flex: 1;
padding: 12px 16px;
font-size: 1rem;
background: #1a1a2e;
border: 1px solid #333;
border-radius: 8px;
color: #fff;
}
input:focus {
outline: none;
border-color: var(--accent-color, #8b5cf6);
}
textarea {
width: 100%;
padding: 12px;
font-size: 1rem;
background: #0a0a0a;
border: 1px solid #333;
border-radius: 8px;
color: #fff;
font-family: inherit;
resize: vertical;
min-height: 120px;
}
textarea:focus {
outline: none;
border-color: var(--accent-color, #8b5cf6);
}
/* Search box */
.search-box {
display: flex;
gap: 10px;
margin-bottom: 30px;
}
/* Tabs */
.tabs {
display: flex;
gap: 10px;
margin-bottom: 20px;
}
.tab {
padding: 8px 16px;
background: #1a1a2e;
border: 1px solid #333;
border-radius: 8px;
cursor: pointer;
color: #e0e0e0;
}
.tab.active {
background: var(--accent-color, #8b5cf6);
border-color: var(--accent-color, #8b5cf6);
}
/* Results */
.results {
display: grid;
gap: 15px;
}
.result-card {
background: #1a1a2e;
border: 1px solid #333;
border-radius: 12px;
padding: 20px;
cursor: pointer;
transition: border-color 0.2s;
}
.result-card:hover {
border-color: var(--accent-color, #8b5cf6);
}
.result-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 12px;
}
.result-type {
padding: 4px 10px;
border-radius: 4px;
font-size: 0.75rem;
font-weight: bold;
text-transform: uppercase;
}
.type-principle { background: #7c3aed; }
.type-learning { background: #059669; }
.type-retro { background: #d97706; }
.source-badge {
padding: 3px 8px;
border-radius: 4px;
font-size: 0.7rem;
font-weight: bold;
text-transform: uppercase;
margin-left: 8px;
}
.source-fts { background: #374151; color: #9ca3af; }
.source-vector { background: #1e40af; color: #93c5fd; }
.source-hybrid { background: #7c3aed; color: #c4b5fd; }
.result-source {
color: #666;
font-size: 0.85rem;
margin-left: auto;
}
.result-content {
color: #ccc;
line-height: 1.6;
white-space: pre-wrap;
}
.concepts {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 12px;
}
.concept {
padding: 3px 8px;
background: #333;
border-radius: 4px;
font-size: 0.75rem;
color: var(--accent-color, #8b5cf6);
}
/* Pagination */
.pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 15px;
margin-top: 20px;
padding-top: 15px;
border-top: 1px solid #333;
}
.page-info {
color: #9ca3af;
font-size: 0.9rem;
}
/* Loading/Error */
.loading {
text-align: center;
padding: 40px;
color: #666;
}
.error {
background: #7f1d1d;
border: 1px solid #dc2626;
padding: 15px;
border-radius: 8px;
color: #fca5a5;
}
/* Guidance box */
.guidance-box {
background: #1a1a2e;
border: 2px solid var(--accent-color, #8b5cf6);
border-radius: 12px;
padding: 20px;
margin-top: 20px;
}
.guidance-title {
color: var(--accent-color, #8b5cf6);
margin-bottom: 15px;
font-size: 1.1rem;
}
.guidance-content {
white-space: pre-wrap;
line-height: 1.8;
}
/* Modal */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
z-index: 1000;
align-items: center;
justify-content: center;
}
.modal.active {
display: flex;
}
.modal-content {
background: #1a1a2e;
border: 1px solid var(--accent-color, #8b5cf6);
border-radius: 12px;
padding: 30px;
max-width: 600px;
width: 90%;
max-height: 80vh;
overflow: auto;
}
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
}
.modal-title {
font-size: 1.5rem;
color: var(--accent-color, #8b5cf6);
}
.modal-close {
background: none;
border: none;
color: #666;
font-size: 1.5rem;
cursor: pointer;
padding: 0;
width: 30px;
height: 30px;
}
.modal-close:hover {
color: #fff;
background: none;
}
/* Form */
.form-group {
margin-bottom: 20px;
}
.form-label {
display: block;
margin-bottom: 8px;
color: #ccc;
font-size: 0.9rem;
}
.form-actions {
display: flex;
gap: 10px;
justify-content: flex-end;
}
.success-message {
background: #059669;
color: #fff;
padding: 12px;
border-radius: 8px;
margin-bottom: 15px;
}
/* Persona toggle */
.persona-toggle {
position: relative;
cursor: pointer;
opacity: 0.3;
transition: opacity 0.2s;
font-size: 0.7rem;
color: #666;
padding: 2px 6px;
border-radius: 4px;
user-select: none;
background: none;
border: none;
}
.persona-toggle:hover {
opacity: 0.8;
background: #222;
}
/* Graph */
.graph-container {
background: #1a1a2e;
border: 1px solid #333;
border-radius: 12px;
padding: 20px;
margin-top: 20px;
}
.graph-canvas {
width: 100%;
height: 600px;
border-radius: 8px;
background: #0a0a0a;
}
.graph-controls {
display: flex;
gap: 10px;
margin-top: 10px;
align-items: center;
}
.graph-legend {
display: flex;
gap: 15px;
margin-top: 10px;
font-size: 0.85rem;
}
.legend-item {
display: flex;
align-items: center;
gap: 6px;
}
.legend-dot {
width: 12px;
height: 12px;
border-radius: 50%;
}
.graph-details {
margin-top: 15px;
padding: 15px;
background: #0a0a0a;
border-radius: 8px;
display: none;
}
.graph-details.active {
display: block;
}
/* Footer */
footer {
margin-top: 40px;
padding-top: 20px;
border-top: 1px solid #333;
text-align: center;
color: #666;
font-size: 0.85rem;
}
/* Stale warning */
.stale-warning {
background: #7f1d1d !important;
border-color: #dc2626 !important;
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
/* Responsive */
@media (max-width: 768px) {
header {
flex-wrap: wrap;
}
.stats {
margin-left: 0;
flex-wrap: wrap;
}
.search-box {
flex-wrap: wrap;
}
.search-box input {
width: 100%;
}
.tabs {
flex-wrap: wrap;
}
}