/* ===== RESET AND BASE STYLES ===== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background: #f5f5f5;
color: #333;
line-height: 1.6;
height: 100vh;
overflow: hidden;
}
/* ===== FULL-SCREEN APP LAYOUT ===== */
.app-container {
display: flex;
flex-direction: column;
height: 100vh;
width: 100vw;
}
/* Header */
.app-header {
background: linear-gradient(135deg, #4a9eff 0%, #3b7dd6 100%);
color: white;
padding: 15px 30px;
display: flex;
justify-content: space-between;
align-items: center;
flex-shrink: 0;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.header-content h1 {
font-size: 1.8em;
margin-bottom: 2px;
font-weight: 600;
}
.subtitle {
font-size: 0.85em;
opacity: 0.85;
}
.header-info {
font-size: 0.9em;
opacity: 0.9;
}
.header-right {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 4px;
}
.config-tip {
cursor: help;
padding: 3px 8px;
background: rgba(255, 255, 255, 0.15);
border-radius: 3px;
transition: all 0.2s;
font-size: 0.8em;
opacity: 0.85;
}
.config-tip:hover {
background: rgba(255, 255, 255, 0.25);
opacity: 1;
}
/* Main Content Area: Flex Row */
.app-content {
display: flex;
flex: 1;
overflow: hidden;
gap: 0;
}
/* ===== SIDEBAR (Left 30%) ===== */
.sidebar {
width: 30%;
background: white;
border-right: 1px solid #e0e0e0;
display: flex;
flex-direction: column;
overflow-y: auto;
overflow-x: hidden;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.sidebar-divider {
height: 1px;
background: #e0e0e0;
margin: 0;
}
/* --- Filters Section (Collapsible) --- */
.toggle-icon {
font-size: 0.8em;
transition: transform 0.2s;
}
.filters-section {
padding: 0;
flex-shrink: 0;
}
.filters-toggle {
width: 100%;
padding: 12px 15px;
background: #f5f7fa;
border: none;
border-bottom: 1px solid #e0e0e0;
cursor: pointer;
font-size: 0.95em;
font-weight: 600;
color: #4a9eff;
display: flex;
justify-content: space-between;
align-items: center;
transition: background 0.2s;
}
.filters-toggle:hover {
background: #f0f2f5;
}
.filters-section.collapsed .toggle-icon {
transform: rotate(-90deg);
}
.filters-content {
padding: 15px;
border-bottom: 1px solid #e0e0e0;
}
.filters-section.collapsed .filters-content {
display: none;
}
/* Keywords for Dashboard (sidebar styles removed) */
.keyword {
background: #4a9eff;
color: white;
padding: 4px 10px;
border-radius: 15px;
font-size: 0.8em;
white-space: nowrap;
transition: background 0.2s;
}
.keyword:hover {
background: #3b7dd6;
}
/* --- Filters Section --- */
.filters-section {
padding: 15px;
flex-shrink: 0;
}
.filters-section h3 {
font-size: 1em;
color: #4a9eff;
margin-bottom: 10px;
}
.filter-group {
margin-bottom: 12px;
}
.filter-group label {
display: block;
font-size: 0.8em;
font-weight: 600;
color: #666;
margin-bottom: 4px;
}
.search-input,
select,
input[type="date"] {
width: 100%;
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 0.9em;
background: white;
transition: border-color 0.2s;
}
.search-input:focus,
select:focus,
input[type="date"]:focus {
outline: none;
border-color: #4a9eff;
box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.1);
}
.filter-buttons {
display: flex;
gap: 8px;
margin-top: 10px;
}
.btn-primary,
.btn-secondary {
padding: 8px 12px;
border: none;
border-radius: 4px;
font-size: 0.85em;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
flex: 1;
}
.btn-primary {
background: #4a9eff;
color: white;
}
.btn-primary:hover {
background: #3b7dd6;
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(74, 158, 255, 0.3);
}
.btn-secondary {
background: #e0e0e0;
color: #333;
}
.btn-secondary:hover {
background: #d0d0d0;
}
/* --- Conversations List Section --- */
.conversations-section {
padding: 15px;
display: flex;
flex-direction: column;
flex: 1;
overflow: hidden;
}
.conversations-section h3 {
font-size: 1em;
color: #4a9eff;
margin-bottom: 10px;
flex-shrink: 0;
}
.conversations-list {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
border: 1px solid #e0e0e0;
border-radius: 6px;
background: #fafafa;
}
.conversation-item {
padding: 12px;
border-bottom: 1px solid #e0e0e0;
cursor: pointer;
transition: background 0.15s;
display: flex;
flex-direction: column;
gap: 4px;
}
.conversation-item:last-child {
border-bottom: none;
}
.conversation-item:hover {
background: #f0f0f0;
}
.conversation-item.selected {
background: #e3f2fd;
}
/* Subagent styles */
.conversation-item.subagent-item {
background: linear-gradient(90deg, #fff3e0 0%, #ffffff 100%);
border-left: 4px solid #ff9800;
padding-left: 16px;
}
.conversation-item.subagent-item:hover {
background: linear-gradient(90deg, #ffe0b2 0%, #f5f5f5 100%);
}
.conversation-item.subagent-item .preview {
color: #e65100;
font-style: italic;
}
.conversation-item.subagent-item.selected {
background: linear-gradient(90deg, #ffcc80 0%, #e3f2fd 100%);
border-left: 3px solid #4a9eff;
padding-left: 9px;
}
.conversation-item .timestamp {
font-size: 0.8em;
color: #999;
}
.conversation-item .username {
font-size: 0.9em;
font-weight: 600;
color: #4a9eff;
}
.conversation-item .preview {
font-size: 0.85em;
color: #666;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.conversation-item .meta {
font-size: 0.75em;
color: #999;
}
/* --- Pagination --- */
.pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
padding: 12px;
flex-shrink: 0;
border-top: 1px solid #e0e0e0;
}
.pagination button {
padding: 6px 12px;
font-size: 0.85em;
}
#page-info {
font-weight: 600;
color: #666;
font-size: 0.9em;
}
/* ===== DETAILS PANEL (Right 70%) ===== */
.details-panel {
flex: 1;
display: flex;
flex-direction: column;
background: white;
overflow: hidden;
}
/* Empty State */
.empty-state {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
text-align: center;
color: #999;
}
.empty-state-icon {
font-size: 4em;
margin-bottom: 20px;
opacity: 0.5;
}
.empty-state h2 {
color: #999;
font-size: 1.5em;
margin-bottom: 10px;
}
.empty-state p {
color: #bbb;
font-size: 1em;
}
/* Conversation Details */
.conversation-details {
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
}
.details-header {
padding: 15px;
border-bottom: 2px solid #e0e0e0;
background: #f5f7fa;
flex-shrink: 0;
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
}
.details-metadata {
display: flex;
flex-wrap: wrap;
gap: 15px;
flex: 1;
}
.metadata-item {
display: flex;
gap: 6px;
font-size: 0.9em;
}
.metadata-label {
font-weight: 600;
color: #4a9eff;
}
.session-id-short {
color: #666;
font-family: monospace;
font-size: 0.85em;
}
.details-close-btn {
padding: 6px 12px;
background: #e0e0e0;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 0.85em;
white-space: nowrap;
transition: background 0.2s;
}
.details-close-btn:hover {
background: #d0d0d0;
}
/* Conversation Thread */
.conversation-thread {
flex: 1;
overflow-y: auto;
padding: 20px;
display: flex;
flex-direction: column;
gap: 4px;
}
.message {
padding: 12px 15px;
border-radius: 6px;
border-left: 3px solid;
background: white;
}
.message-user {
background: #f5f5f5;
border-left-color: #1976d2;
}
.message-assistant {
background: #fafafa;
border-left-color: #2c3e50;
}
.message-tool_use {
background: #fafafa;
border-left-color: #d97706;
padding: 4px 8px !important;
}
.message-tool_use .message-header {
margin: 0 0 3px 0 !important;
padding: 0 !important;
font-size: 0.8em !important;
line-height: 1.3 !important;
}
.message-tool_use .message-content {
margin: 0 !important;
padding: 0 !important;
}
.message-tool_use pre {
padding: 5px 8px !important;
margin: 0 !important;
font-size: 0.8em !important;
line-height: 1.3 !important;
}
.message-tool_use pre code {
padding: 0 !important;
margin: 0 !important;
}
.message-tool_result {
background: #f5f5f5;
border-left-color: #059669;
padding: 4px 8px !important;
}
.message-tool_result .message-header {
margin: 0 0 3px 0 !important;
padding: 0 !important;
font-size: 0.8em !important;
line-height: 1.3 !important;
}
.message-tool_result .message-content {
margin: 0 !important;
padding: 0 !important;
}
.message-tool_result pre {
padding: 5px 8px !important;
margin: 0 !important;
font-size: 0.8em !important;
line-height: 1.3 !important;
}
.message-tool_result pre code {
padding: 0 !important;
margin: 0 !important;
}
.message-header {
display: flex;
gap: 10px;
align-items: center;
margin-bottom: 8px;
font-size: 0.85em;
font-weight: 600;
}
.message-role {
color: #666;
}
.message-model {
background: #2c3e50;
color: white;
padding: 3px 10px;
border-radius: 4px;
font-size: 0.7em;
font-weight: 600;
letter-spacing: 0.5px;
}
.message-time {
color: #888;
font-size: 0.8em;
margin-left: auto;
}
.message-content {
line-height: 1.5;
white-space: pre-wrap;
word-wrap: break-word;
color: #2c3e50;
}
/* Removed duplicate rules - now handled by .message-tool_use and .message-tool_result */
.text-block {
margin-bottom: 8px;
}
.thinking-block {
margin: 5px 0;
padding: 10px;
background: #f0f4f8;
border: 1px solid #cbd5e0;
border-radius: 4px;
}
.thinking-block summary {
cursor: pointer;
font-weight: 600;
color: #2c3e50;
user-select: none;
}
.thinking-block summary:hover {
color: #1976d2;
}
.thinking-block pre {
margin-top: 8px;
padding: 10px;
background: #f5f7fa;
border-radius: 3px;
overflow-x: auto;
font-size: 0.85em;
color: #2c3e50;
}
/* Base styles for tool pre elements - overridden by specific .message-tool_use rules */
.tool-input pre,
.tool-result pre {
background: #2c3e50;
color: #e0e6ed;
border-radius: 4px;
overflow-x: auto;
}
.tool-result.tool-error pre {
background: #fee;
color: #c33;
}
.tool-use-block {
margin: 3px 0;
padding: 6px 8px;
background: #fafafa;
border: 1px solid #d97706;
border-radius: 4px;
}
.tool-use-block strong {
color: #d97706;
}
.tool-use-block pre {
margin-top: 4px;
background: #2c3e50;
color: #e0e6ed;
padding: 6px 8px;
border-radius: 3px;
overflow-x: auto;
font-size: 0.8em;
}
/* ===== FOOTER ===== */
.app-footer {
background: #f5f7fa;
padding: 10px 20px;
text-align: center;
color: #999;
font-size: 0.8em;
border-top: 1px solid #e0e0e0;
flex-shrink: 0;
}
/* ===== UTILITY CLASSES ===== */
.loading {
text-align: center;
padding: 40px;
color: #4a9eff;
}
.error {
text-align: center;
padding: 40px;
color: #c62828;
}
.no-data {
text-align: center;
padding: 20px;
color: #999;
}
mark {
background: #ffeb3b;
padding: 2px 4px;
border-radius: 3px;
}
/* ===== ANIMATIONS ===== */
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.loading-spinner {
animation: pulse 1.5s ease-in-out infinite;
}
/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
.sidebar {
width: 35%;
}
.details-panel {
width: 65%;
}
.stats-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.app-content {
flex-direction: column;
}
.sidebar {
width: 100%;
border-right: none;
border-bottom: 1px solid #e0e0e0;
max-height: 40%;
}
.details-panel {
width: 100%;
}
.app-header {
padding: 10px 15px;
flex-direction: column;
align-items: flex-start;
gap: 5px;
}
.header-content h1 {
font-size: 1.4em;
}
.subtitle {
display: none;
}
.stats-grid {
grid-template-columns: 1fr;
}
.details-header {
flex-direction: column;
align-items: stretch;
}
.details-metadata {
flex-direction: column;
gap: 8px;
}
.conversation-thread {
padding: 12px;
}
.message {
padding: 10px;
}
}
@media (max-width: 480px) {
.header-content h1 {
font-size: 1.2em;
}
.filter-buttons {
flex-direction: column;
}
.details-header {
padding: 10px;
}
.metadata-item {
flex-direction: column;
gap: 2px;
}
}
/* Subagent Styles */
.subagent-details {
margin-top: 10px;
padding: 12px;
background: linear-gradient(135deg, #fff3e0 0%, #ffffff 100%);
border: 2px solid #ff9800;
border-radius: 8px;
box-shadow: 0 2px 6px rgba(255, 152, 0, 0.15);
}
.subagent-summary {
cursor: pointer;
font-weight: 600;
color: #e65100;
user-select: none;
display: flex;
align-items: center;
gap: 10px;
padding: 8px;
border-radius: 4px;
transition: background 0.2s;
}
.subagent-summary:hover {
background: rgba(255, 152, 0, 0.1);
}
.subagent-summary strong {
color: #e65100;
font-size: 1em;
}
.subagent-badge {
background: #ff9800;
color: white;
padding: 3px 10px;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.subagent-stats {
color: #666;
font-size: 0.85rem;
font-weight: 500;
margin-left: auto;
}
.subagent-content {
margin-top: 12px;
padding: 12px;
background: white;
border-radius: 6px;
border: 1px solid #ffcc80;
}
.subagent-details[open] .subagent-summary {
margin-bottom: 8px;
border-bottom: 2px solid #ffcc80;
padding-bottom: 12px;
}
/* Nested messages within subagent */
.subagent-content .message {
font-size: 0.95em;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.subagent-content .message-header {
font-size: 0.9em;
}
.subagent-content .message-time {
font-size: 0.8em;
}
.subagent-content pre {
font-size: 0.85em;
max-height: 300px;
overflow-y: auto;
}
/* ===== TAB NAVIGATION ===== */
.tab-navigation {
display: flex;
border-bottom: 2px solid #e0e0e0;
background: #f5f7fa;
flex-shrink: 0;
}
.tab-btn {
flex: 1;
padding: 15px 20px;
border: none;
background: transparent;
font-size: 1em;
font-weight: 600;
color: #666;
cursor: pointer;
transition: all 0.2s;
border-bottom: 3px solid transparent;
}
.tab-btn:hover {
background: #eef1f5;
color: #4a9eff;
}
.tab-btn.active {
color: #4a9eff;
background: white;
border-bottom-color: #4a9eff;
}
/* ===== TAB CONTENT ===== */
.tab-content {
display: none;
flex: 1;
overflow: hidden;
}
.tab-content.active {
display: flex;
flex-direction: column;
}
/* ===== DASHBOARD VIEW ===== */
.dashboard-container {
flex: 1;
overflow-y: auto;
padding: 30px;
background: #f9fafb;
}
.dashboard-container h2 {
font-size: 1.8em;
color: #2c3e50;
margin-bottom: 25px;
}
.dashboard-container h3 {
font-size: 1.2em;
color: #4a9eff;
margin-bottom: 15px;
}
/* Dashboard Grid (4 cards) */
.dashboard-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
.dashboard-card {
background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
padding: 25px;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
text-align: center;
transition: transform 0.2s, box-shadow 0.2s;
}
.dashboard-card:hover {
transform: translateY(-4px);
box-shadow: 0 4px 16px rgba(74, 158, 255, 0.15);
}
.card-value {
font-size: 2.5em;
font-weight: bold;
color: #4a9eff;
margin-bottom: 8px;
}
.card-label {
font-size: 0.9em;
color: #666;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Dashboard Section */
.dashboard-section {
background: white;
padding: 25px;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
margin-bottom: 25px;
}
/* Token Breakdown */
.token-breakdown {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}
.token-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
background: #f5f7fa;
border-radius: 8px;
border-left: 4px solid #4a9eff;
}
.token-label {
font-weight: 600;
color: #666;
font-size: 0.95em;
}
.token-value {
font-size: 1.4em;
font-weight: bold;
color: #4a9eff;
}
/* Charts Row */
.dashboard-charts {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-bottom: 25px;
}
.chart-card {
background: white;
padding: 20px;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.chart-card h3 {
font-size: 1em;
color: #4a9eff;
margin-bottom: 15px;
border-bottom: 2px solid #e0e0e0;
padding-bottom: 10px;
}
#dash-daily-chart {
width: 100%;
height: 200px;
}
/* Stats List (Models, Tools) */
.stats-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.stats-list-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 15px;
background: #f5f7fa;
border-radius: 6px;
transition: background 0.2s;
}
.stats-list-item:hover {
background: #e8f0fe;
}
.stats-list-item .label {
font-weight: 500;
color: #2c3e50;
}
.stats-list-item .value {
font-weight: bold;
color: #4a9eff;
font-size: 1.1em;
}
/* User Stats Grid */
.user-stats-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 15px;
}
.user-stat-card {
background: #f5f7fa;
padding: 15px 20px;
border-radius: 8px;
border-left: 4px solid #4a9eff;
display: flex;
flex-direction: column;
gap: 8px;
}
.user-stat-card .username {
font-weight: 600;
color: #2c3e50;
font-size: 1.1em;
}
.user-stat-card .stats {
display: flex;
justify-content: space-between;
font-size: 0.9em;
color: #666;
}
.user-stat-card .stats span {
display: flex;
flex-direction: column;
}
.user-stat-card .stats .value {
font-weight: bold;
color: #4a9eff;
font-size: 1.2em;
}
/* Keywords Cloud (Dashboard) */
.keywords-cloud {
display: flex;
flex-wrap: wrap;
gap: 10px;
padding: 10px 0;
}
/* Responsive adjustments for dashboard */
@media (max-width: 1024px) {
.dashboard-grid {
grid-template-columns: repeat(2, 1fr);
}
.dashboard-charts {
grid-template-columns: 1fr;
}
.token-breakdown {
grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
.dashboard-container {
padding: 15px;
}
.dashboard-grid {
grid-template-columns: 1fr;
}
.card-value {
font-size: 2em;
}
}