StockSense-AI / frontend /dashboard.css
PROSTLE's picture
docs: upgrade to StockSense-AI 3.0 with enterprise features, trading bot integration, and premium UI
e2bee6b
Raw History Blame Contribute Delete
6.52 kB
/* Use the same core variables defined in style.css */
.dashboard-grid {
display: grid;
grid-template-columns: 1fr 2fr;
grid-template-rows: auto auto minmax(400px, auto);
gap: 1.5rem;
width: 100%;
max-width: 1600px;
margin: 1.5rem auto;
padding: 0 1rem 3rem 1rem;
box-sizing: border-box;
}
/* Zone 1: Header */
.zone-header {
grid-column: 1 / 3;
grid-row: 1;
display: flex;
justify-content: space-between;
align-items: center;
background: var(--glass-bg);
backdrop-filter: var(--glass-blur);
-webkit-backdrop-filter: var(--glass-blur);
padding: 1.2rem 2.5rem;
border-radius: 12px;
border: 1px solid var(--border);
border-top-color: var(--border-light);
border-left-color: var(--border-light);
box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.header-left, .header-center, .header-right {
display: flex;
align-items: center;
gap: 1.5rem;
}
.company-logo {
width: 50px;
height: 50px;
background: linear-gradient(135deg, var(--bg3), var(--border));
border-radius: 12px;
display: flex;
justify-content: center;
align-items: center;
font-size: 1.5rem;
color: var(--cyan);
}
.company-name {
margin: 0;
font-size: 1.5rem;
font-weight: 700;
color: #fff;
}
.company-ticker {
color: var(--text-dim);
font-size: 0.9rem;
}
.real-time-metric {
display: flex;
flex-direction: column;
padding: 0 1.5rem;
border-right: 1px solid var(--border);
}
.real-time-metric:last-child {
border-right: none;
}
.metric-label {
font-size: 0.75rem;
color: var(--text-dim);
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 0.25rem;
}
.metric-value {
font-size: 1.2rem;
font-weight: 700;
color: #fff;
}
.metric-value.positive { color: var(--green); text-shadow: 0 0 10px rgba(34,197,94,0.3); }
.metric-value.negative { color: var(--red); text-shadow: 0 0 10px rgba(239,68,68,0.3); }
/* Circular Ring */
.reliability-label {
font-size: 0.8rem;
color: var(--text-dim);
font-weight: 600;
}
.circular-progress {
width: 60px;
height: 60px;
}
.circular-chart {
display: block;
margin: 0 auto;
max-width: 100%;
max-height: 250px;
}
.circle-bg {
fill: none;
stroke: var(--bg3);
stroke-width: 3.8;
}
.circle {
fill: none;
stroke-width: 2.8;
stroke-linecap: round;
transition: stroke-dasharray 1.5s cubic-bezier(0.65, 0, 0.35, 1), stroke 0.5s ease;
}
.percentage {
fill: #fff;
font-family: inherit;
font-size: 0.6em;
font-weight: 700;
text-anchor: middle;
}
/* Zone Structure */
.bento-card {
background: var(--glass-bg);
backdrop-filter: var(--glass-blur);
-webkit-backdrop-filter: var(--glass-blur);
border: 1px solid var(--border);
border-top-color: var(--border-light);
border-left-color: var(--border-light);
border-radius: 12px;
padding: 1.5rem;
overflow: hidden;
display: flex;
flex-direction: column;
min-height: 0;
}
.bento-card h2 {
font-size: 1.05rem;
color: #fff;
margin: 0 0 1rem 0;
border-bottom: 1px solid var(--border);
padding-bottom: 0.75rem;
}
.zone-news { grid-column: 1; grid-row: 2; }
.zone-parameters { grid-column: 2; grid-row: 2; }
.zone-profile { grid-column: 1; grid-row: 3; }
.zone-chart { grid-column: 2; grid-row: 3; }
/* News List */
.news-list {
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 0.75rem;
padding-right: 0.5rem;
min-height: 0;
}
.news-card {
background: var(--bg3);
padding: 1rem;
border-radius: 8px;
border-left: 3px solid transparent;
transition: transform 0.2s, border-left-color 0.2s;
}
.news-card:hover {
transform: translateX(4px);
}
.news-card[data-sentiment="Bullish"] { border-left-color: var(--green); }
.news-card[data-sentiment="Bearish"] { border-left-color: var(--red); }
.news-card[data-sentiment="Neutral"] { border-left-color: var(--blue); }
.news-card h3 {
font-size: 0.9rem;
margin: 0 0 0.5rem;
color: #fff;
line-height: 1.4;
}
.news-meta {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.75rem;
color: var(--text-dim);
}
.sentiment-badge {
padding: 0.2rem 0.5rem;
border-radius: 4px;
font-weight: 600;
background: rgba(255,255,255,0.05);
}
.badge-Bullish { color: var(--green); }
.badge-Bearish { color: var(--red); }
.badge-Neutral { color: var(--blue); }
/* Parameters Bento Box */
.params-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(2, 1fr);
gap: 1rem;
height: 100%;
}
.param-card {
background: rgba(255, 255, 255, 0.01);
border-radius: 8px;
padding: 1rem;
display: flex;
flex-direction: column;
justify-content: space-between;
border: 1px solid var(--border);
position: relative;
cursor: default;
}
.param-card:hover {
border-color: var(--cyan);
}
.param-label {
font-size: 0.8rem;
color: var(--text-dim);
text-transform: uppercase;
font-weight: 600;
}
.param-value {
font-size: 1.5rem;
font-weight: 700;
color: #fff;
}
/* Tooltip implementation */
.param-card[title]:hover::after {
content: attr(title);
position: absolute;
bottom: 110%; left: 50%; transform: translateX(-50%);
background: var(--bg);
padding: 0.5rem;
border-radius: 4px;
border: 1px solid var(--border);
font-size: 0.75rem;
color: #fff;
white-space: nowrap;
z-index: 100;
}
/* Profile */
.company-desc {
font-size: 0.85rem;
line-height: 1.7;
color: #cbd5e1;
}
/* Chart */
.chart-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
border-bottom: 1px solid var(--border);
padding-bottom: 0.75rem;
}
.chart-header h2 {
border-bottom: none;
margin: 0;
padding: 0;
}
.generate-btn {
background: linear-gradient(135deg, var(--blue), var(--cyan));
color: #000;
border: none;
padding: 0.5rem 1rem;
border-radius: 6px;
font-size: 0.8rem;
font-weight: 700;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
font-family: inherit;
}
.generate-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}
.chart-container {
flex: 1;
position: relative;
min-height: 380px;
width: 100%;
}