256 lines
5.5 KiB
CSS
256 lines
5.5 KiB
CSS
|
|
/* Dashboard CSS */
|
||
|
|
:root {
|
||
|
|
--bg-color: #0f172a;
|
||
|
|
--card-bg: #1e293b;
|
||
|
|
--card-border: #334155;
|
||
|
|
--text-primary: #f1f5f9;
|
||
|
|
--text-secondary: #94a3b8;
|
||
|
|
--accent-color: #3b82f6;
|
||
|
|
--accent-hover: #2563eb;
|
||
|
|
--success-color: #10b981;
|
||
|
|
--table-header-bg: #0f172a;
|
||
|
|
--table-row-hover: #334155;
|
||
|
|
--scrollbar-thumb: #475569;
|
||
|
|
--scrollbar-track: #0f172a;
|
||
|
|
}
|
||
|
|
|
||
|
|
body {
|
||
|
|
margin: 0;
|
||
|
|
font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||
|
|
background-color: var(--bg-color);
|
||
|
|
color: var(--text-primary);
|
||
|
|
height: 100vh;
|
||
|
|
overflow: hidden;
|
||
|
|
background-image: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 100%);
|
||
|
|
}
|
||
|
|
|
||
|
|
#app {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
height: 100vh;
|
||
|
|
padding: 16px;
|
||
|
|
gap: 16px;
|
||
|
|
box-sizing: border-box;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Header */
|
||
|
|
.dashboard-header {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
padding: 0 8px;
|
||
|
|
flex: 0 0 auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
.dashboard-title {
|
||
|
|
font-size: 24px;
|
||
|
|
font-weight: 700;
|
||
|
|
background: linear-gradient(to right, #60a5fa, #a78bfa);
|
||
|
|
-webkit-background-clip: text;
|
||
|
|
-webkit-text-fill-color: transparent;
|
||
|
|
cursor: pointer;
|
||
|
|
text-decoration: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.home-link {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 8px;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
text-decoration: none;
|
||
|
|
font-size: 14px;
|
||
|
|
font-weight: 600;
|
||
|
|
transition: color 0.2s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.home-link:hover {
|
||
|
|
color: var(--text-primary);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Controls */
|
||
|
|
.controls {
|
||
|
|
display: flex;
|
||
|
|
gap: 12px;
|
||
|
|
align-items: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-primary {
|
||
|
|
padding: 8px 16px;
|
||
|
|
border-radius: 8px;
|
||
|
|
border: none;
|
||
|
|
background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
|
||
|
|
color: white;
|
||
|
|
font-weight: 600;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: all 0.2s ease;
|
||
|
|
box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
|
||
|
|
font-size: 14px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-primary:hover:not(:disabled) {
|
||
|
|
transform: translateY(-1px);
|
||
|
|
box-shadow: 0 4px 6px rgba(59, 130, 246, 0.4);
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-primary:disabled {
|
||
|
|
opacity: 0.6;
|
||
|
|
cursor: not-allowed;
|
||
|
|
transform: none;
|
||
|
|
filter: grayscale(0.5);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Layout */
|
||
|
|
.main-content {
|
||
|
|
display: flex;
|
||
|
|
flex: 1;
|
||
|
|
gap: 16px;
|
||
|
|
min-height: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.left-panel {
|
||
|
|
flex: 3;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 16px;
|
||
|
|
min-width: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.right-panel {
|
||
|
|
flex: 2;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
background-color: var(--card-bg);
|
||
|
|
border-radius: 12px;
|
||
|
|
border: 1px solid var(--card-border);
|
||
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
||
|
|
padding: 20px;
|
||
|
|
min-width: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Station List */
|
||
|
|
.station-list {
|
||
|
|
flex: 1;
|
||
|
|
min-height: 0;
|
||
|
|
background-color: var(--card-bg);
|
||
|
|
border: 1px solid var(--card-border);
|
||
|
|
border-radius: 12px;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
overflow: hidden;
|
||
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
||
|
|
}
|
||
|
|
|
||
|
|
.station-list-header {
|
||
|
|
padding: 16px 20px;
|
||
|
|
border-bottom: 1px solid var(--card-border);
|
||
|
|
font-size: 16px;
|
||
|
|
font-weight: 600;
|
||
|
|
color: var(--text-primary);
|
||
|
|
background-color: rgba(15, 23, 42, 0.5);
|
||
|
|
}
|
||
|
|
|
||
|
|
.station-table-container {
|
||
|
|
flex: 1;
|
||
|
|
overflow-y: auto;
|
||
|
|
scrollbar-width: thin;
|
||
|
|
scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
|
||
|
|
}
|
||
|
|
|
||
|
|
.station-table {
|
||
|
|
width: 100%;
|
||
|
|
border-collapse: collapse;
|
||
|
|
font-size: 14px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.station-table th {
|
||
|
|
background-color: var(--table-header-bg);
|
||
|
|
color: var(--text-secondary);
|
||
|
|
font-weight: 600;
|
||
|
|
padding: 12px 16px;
|
||
|
|
position: sticky;
|
||
|
|
top: 0;
|
||
|
|
z-index: 10;
|
||
|
|
border-bottom: 1px solid var(--card-border);
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.station-table td {
|
||
|
|
padding: 12px 16px;
|
||
|
|
border-bottom: 1px solid var(--card-border);
|
||
|
|
color: var(--text-primary);
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.station-table tbody tr:hover td {
|
||
|
|
background-color: var(--table-row-hover);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Chart */
|
||
|
|
#chart {
|
||
|
|
flex: 1;
|
||
|
|
min-height: 300px;
|
||
|
|
background-color: var(--card-bg);
|
||
|
|
border: 1px solid var(--card-border);
|
||
|
|
border-radius: 12px;
|
||
|
|
padding: 16px;
|
||
|
|
box-sizing: border-box;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* AI Analysis */
|
||
|
|
.ai-title {
|
||
|
|
font-size: 18px;
|
||
|
|
font-weight: 700;
|
||
|
|
color: var(--text-primary);
|
||
|
|
margin-bottom: 16px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-title::before {
|
||
|
|
content: '';
|
||
|
|
display: block;
|
||
|
|
width: 4px;
|
||
|
|
height: 18px;
|
||
|
|
background-color: var(--accent-color);
|
||
|
|
border-radius: 2px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-box {
|
||
|
|
flex: 1;
|
||
|
|
background-color: rgba(15, 23, 42, 0.3);
|
||
|
|
border-radius: 8px;
|
||
|
|
border: 1px solid var(--card-border);
|
||
|
|
padding: 16px;
|
||
|
|
overflow-y: auto;
|
||
|
|
font-size: 14px;
|
||
|
|
line-height: 1.7;
|
||
|
|
color: #cbd5e1;
|
||
|
|
scrollbar-width: thin;
|
||
|
|
scrollbar-color: var(--scrollbar-thumb) transparent;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Markdown */
|
||
|
|
.markdown-body {
|
||
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
|
||
|
|
font-size: 16px;
|
||
|
|
line-height: 1.6;
|
||
|
|
word-wrap: break-word;
|
||
|
|
color: #cbd5e1;
|
||
|
|
}
|
||
|
|
|
||
|
|
.markdown-body ul, .markdown-body ol {
|
||
|
|
padding-left: 2em;
|
||
|
|
margin-top: 0;
|
||
|
|
margin-bottom: 16px;
|
||
|
|
}
|
||
|
|
.markdown-body li { margin: 0.25em 0; }
|
||
|
|
.markdown-body strong { font-weight: 600; color: #f1f5f9; }
|
||
|
|
.markdown-body h3 { font-size: 1.1em; font-weight: bold; margin-top: 16px; margin-bottom: 8px; color: #f1f5f9; }
|
||
|
|
|
||
|
|
/* Custom Scrollbar */
|
||
|
|
::-webkit-scrollbar { width: 8px; height: 8px; }
|
||
|
|
::-webkit-scrollbar-track { background: transparent; }
|
||
|
|
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
|
||
|
|
::-webkit-scrollbar-thumb:hover { background: #64748b; }
|