:root {
--bg-primary: #0d1117;
--bg-secondary: #161b22;
--bg-tertiary: #21262d;
--text-primary: #c9d1d9;
--text-secondary: #8b949e;
--accent: #58a6ff;
--accent-hover: #79c0ff;
--border: #30363d;
--success: #238636;
--warning: #f0883e;
--danger: #da3633;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
line-height: 1.6;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
header {
text-align: center;
margin-bottom: 2rem;
padding-bottom: 2rem;
border-bottom: 1px solid var(--border);
}
header h1 {
font-size: 2.5rem;
margin-bottom: 0.5rem;
background: linear-gradient(135deg, var(--accent), #a371f7);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
header p {
color: var(--text-secondary);
font-size: 1.1rem;
}
.tabs {
display: flex;
gap: 0.5rem;
margin-bottom: 2rem;
border-bottom: 1px solid var(--border);
padding-bottom: 1rem;
}
.tab-btn {
background: var(--bg-secondary);
border: 1px solid var(--border);
color: var(--text-secondary);
padding: 0.75rem 1.5rem;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s;
font-size: 0.9rem;
}
.tab-btn:hover {
background: var(--bg-tertiary);
color: var(--text-primary);
}
.tab-btn.active {
background: var(--accent);
color: white;
border-color: var(--accent);
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
margin-bottom: 2rem;
}
.stat-card {
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 8px;
padding: 1.5rem;
text-align: center;
}
.stat-card h3 {
font-size: 0.875rem;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 0.5rem;
}
.stat-card div {
font-size: 2rem;
font-weight: 600;
color: var(--accent);
}
.search-box {
display: flex;
gap: 1rem;
margin-bottom: 1rem;
}
#search-input {
flex: 1;
background: var(--bg-secondary);
border: 1px solid var(--border);
color: var(--text-primary);
padding: 0.75rem 1rem;
border-radius: 6px;
font-size: 1rem;
}
#search-input:focus {
outline: none;
border-color: var(--accent);
}
button {
background: var(--accent);
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 6px;
cursor: pointer;
font-size: 0.9rem;
transition: background 0.2s;
}
button:hover {
background: var(--accent-hover);
}
.filters {
margin-bottom: 1rem;
}
.filters select {
background: var(--bg-secondary);
border: 1px solid var(--border);
color: var(--text-primary);
padding: 0.5rem 1rem;
border-radius: 6px;
}
.results-container {
display: flex;
flex-direction: column;
gap: 1rem;
}
.result-item {
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 8px;
padding: 1.5rem;
}
.result-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.75rem;
}
.result-file {
font-family: 'Monaco', 'Menlo', monospace;
color: var(--accent);
font-size: 0.9rem;
}
.result-score {
background: var(--bg-tertiary);
padding: 0.25rem 0.75rem;
border-radius: 12px;
font-size: 0.8rem;
color: var(--text-secondary);
}
.result-content {
background: var(--bg-primary);
border-radius: 6px;
padding: 1rem;
overflow-x: auto;
}
.result-content pre {
margin: 0;
font-family: 'Monaco', 'Menlo', monospace;
font-size: 0.85rem;
line-height: 1.5;
}
.chat-container {
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 8px;
height: 500px;
display: flex;
flex-direction: column;
margin-bottom: 2rem;
}
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 1rem;
}
.message {
margin-bottom: 1rem;
padding: 1rem;
border-radius: 8px;
max-width: 80%;
}
.message.user {
background: var(--accent);
color: white;
margin-left: auto;
}
.message.assistant {
background: var(--bg-tertiary);
border: 1px solid var(--border);
}
.message.system {
background: var(--bg-primary);
border: 1px dashed var(--border);
color: var(--text-secondary);
text-align: center;
max-width: 100%;
}
.chat-input {
display: flex;
gap: 0.5rem;
padding: 1rem;
border-top: 1px solid var(--border);
}
.chat-input input {
flex: 1;
background: var(--bg-primary);
border: 1px solid var(--border);
color: var(--text-primary);
padding: 0.75rem 1rem;
border-radius: 6px;
}
.quick-actions {
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 8px;
padding: 1.5rem;
}
.quick-actions h3 {
margin-bottom: 1rem;
color: var(--text-secondary);
}
.action-btn {
background: var(--bg-tertiary);
border: 1px solid var(--border);
color: var(--text-primary);
margin: 0.5rem 0.5rem 0.5rem 0;
padding: 0.5rem 1rem;
font-size: 0.85rem;
}
.action-btn:hover {
background: var(--border);
}
.team-selector {
display: flex;
gap: 1rem;
margin-bottom: 2rem;
}
.team-selector select {
flex: 1;
background: var(--bg-secondary);
border: 1px solid var(--border);
color: var(--text-primary);
padding: 0.75rem 1rem;
border-radius: 6px;
}
.hidden {
display: none;
}
.section {
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 8px;
padding: 1.5rem;
margin-bottom: 2rem;
}
.section h2 {
margin-bottom: 1rem;
color: var(--text-primary);
}
footer {
text-align: center;
padding-top: 2rem;
border-top: 1px solid var(--border);
color: var(--text-secondary);
font-size: 0.9rem;
}
.loading {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid var(--bg-tertiary);
border-radius: 50%;
border-top-color: var(--accent);
animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
@media (max-width: 768px) {
.container {
padding: 1rem;
}
.tabs {
flex-wrap: wrap;
}
.tab-btn {
flex: 1;
min-width: 120px;
}
.stats-grid {
grid-template-columns: repeat(2, 1fr);
}
}