Rankmate / static /css /analyze.css
sumit1901's picture
Fixed some ui and rendering bugs
0fc32ad
Raw History Blame Contribute Delete
3.15 kB
/* --- THEME CONSTANTS --- */
:root {
--dark-bg: #111827;
--primary: #6366f1;
--primary-hover: #4f46e5;
--text-muted: #6b7280;
--border-color: #e5e7eb;
}
body {
background-color: #f9fafb;
}
.main-content {
padding-top: 0 !important;
margin-top: 0 !important;
}
.dashboard-container {
font-family: 'Poppins', sans-serif;
max-width: 1200px;
padding-bottom: 50px;
}
.dashboard-title {
color: var(--dark-bg);
font-weight: 700;
}
/* --- FIXED FILTER HEADER --- */
.filter-header {
background-color: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-bottom: 1px solid var(--border-color);
z-index: 100;
}
.theme-label {
font-weight: 600;
color: var(--text-muted);
text-transform: uppercase;
}
.theme-input {
border: 1px solid var(--border-color);
border-radius: 8px;
font-size: 0.9rem;
transition: 0.2s;
}
.btn-theme {
background-color: var(--primary);
color: white;
font-weight: 600;
border-radius: 8px;
transition: 0.2s;
border: none;
}
.btn-theme:hover {
background-color: var(--primary-hover);
transform: translateY(-2px);
box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
/* --- STAT CARDS --- */
.stat-card {
padding: 24px;
border-radius: 16px;
color: white;
text-align: left;
transition: 0.3s;
margin-bottom: 1rem;
}
.stat-card h6 {
font-size: 0.85rem;
opacity: 0.9;
font-weight: 600;
margin-bottom: 8px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.stat-card h3 {
font-size: 2.2rem;
font-weight: 700;
margin: 0;
}
.stat-primary { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.stat-success { background: linear-gradient(135deg, #10b981, #059669); }
.stat-info { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.stat-dark { background: linear-gradient(135deg, #1f2937, #111827); }
/* --- CHART CARDS (Height Fixed to prevent growth loop) --- */
.chart-card {
background: white;
border-radius: 16px;
transition: 0.3s;
border: 1px solid var(--border-color) !important;
position: relative;
height: 440px;
overflow: hidden;
display: flex;
flex-direction: column;
}
.chart-title {
font-weight: 700;
color: var(--dark-bg);
font-size: 1rem;
letter-spacing: -0.3px;
margin-bottom: 15px;
}
/* Wrapper to help the doughnut chart fill space correctly */
.doughnut-wrapper {
flex-grow: 1;
width: 100%;
min-height: 280px;
display: flex;
align-items: center;
justify-content: center;
}
.chart-card canvas {
flex-grow: 1;
width: 100% !important;
max-height: 330px !important;
}
#needsFocusContainer {
max-height: 320px;
overflow-y: auto;
}
/* --- EMPTY STATE --- */
.empty-state {
background: white;
border-radius: 16px;
padding: 60px 20px;
text-align: center;
border: 2px dashed var(--border-color) !important;
}