dte / static /css /style.css
nielitropar's picture
Update static/css/style.css
aff2ae4 verified
/* ═══════════════════════════════════════════════════════════════════════
DTE Punjab Dashboard — style.css (v3 · Premium Redesign)
Aesthetic: Deep Intelligence — Navy/Slate + Cyan + Amber accents
Fonts: Syne (display) + DM Sans (body)
═══════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');
:root {
--sidebar-w: 260px;
--topbar-h: 68px;
--radius: 16px;
--radius-sm: 10px;
--radius-xs: 6px;
--transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
--font-display: 'Syne', system-ui, sans-serif;
--font: 'DM Sans', system-ui, sans-serif;
}
[data-theme="dark"] {
--bg: #060b18;
--bg-2: #080f1f;
--surface: #0d1526;
--surface-2: #111d33;
--surface-3: #162040;
--glass: rgba(13, 21, 38, 0.7);
--glass-border: rgba(0, 212, 255, 0.08);
--border: rgba(255, 255, 255, 0.07);
--border-2: rgba(255, 255, 255, 0.12);
--text: #e8f4ff;
--text-muted: #7a96c2;
--text-faint: #3d5580;
--cyan: #00d4ff;
--cyan-dim: rgba(0, 212, 255, 0.15);
--cyan-glow: rgba(0, 212, 255, 0.3);
--amber: #ffbe0b;
--amber-dim: rgba(255, 190, 11, 0.12);
--rose: #ff4d8d;
--rose-dim: rgba(255, 77, 141, 0.12);
--emerald: #00e5a0;
--emerald-dim: rgba(0, 229, 160, 0.12);
--violet: #a78bfa;
--violet-dim: rgba(167, 139, 250, 0.12);
--shadow-sm: 0 2px 8px rgba(0, 0, 0, .4);
--shadow: 0 8px 32px rgba(0, 0, 0, .5);
--shadow-lg: 0 20px 60px rgba(0, 0, 0, .7);
--shadow-cyan: 0 0 40px rgba(0, 212, 255, 0.12);
--sidebar-bg: #060d1a;
--topbar-bg: rgba(6, 11, 24, 0.95);
--grad-hero: linear-gradient(135deg, #060b18 0%, #0a1628 50%, #060b18 100%);
}
[data-theme="light"] {
--bg: #f0f5ff;
--bg-2: #e8effc;
--surface: #ffffff;
--surface-2: #f4f7ff;
--surface-3: #e8effc;
--glass: rgba(255, 255, 255, 0.85);
--glass-border: rgba(37, 99, 235, 0.1);
--border: rgba(0, 0, 0, 0.07);
--border-2: rgba(0, 0, 0, 0.12);
--text: #0f1929;
--text-muted: #4a6080;
--text-faint: #9ab0d0;
--cyan: #0077cc;
--cyan-dim: rgba(0, 119, 204, 0.08);
--cyan-glow: rgba(0, 119, 204, 0.2);
--amber: #d97706;
--amber-dim: rgba(217, 119, 6, 0.08);
--rose: #e11d68;
--rose-dim: rgba(225, 29, 104, 0.08);
--emerald: #059669;
--emerald-dim: rgba(5, 150, 105, 0.08);
--violet: #7c3aed;
--violet-dim: rgba(124, 58, 237, 0.08);
--shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
--shadow: 0 8px 32px rgba(0, 0, 0, .1);
--shadow-lg: 0 20px 60px rgba(0, 0, 0, .15);
--shadow-cyan: 0 0 40px rgba(0, 119, 204, 0.08);
--sidebar-bg: #071021;
--topbar-bg: rgba(240, 245, 255, 0.95);
--grad-hero: linear-gradient(135deg, #f0f5ff 0%, #e8effc 50%, #f0f5ff 100%);
}
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
scroll-behavior: smooth;
}
body {
font-family: var(--font);
background: var(--bg);
color: var(--text);
min-height: 100vh;
overflow-x: hidden;
transition: background var(--transition), color var(--transition);
background-image:
radial-gradient(ellipse 80% 50% at 20% 20%, rgba(0, 212, 255, 0.03) 0%, transparent 60%),
radial-gradient(ellipse 60% 40% at 80% 80%, rgba(167, 139, 250, 0.03) 0%, transparent 60%);
background-attachment: fixed;
}
/* ══════════════════════════════════════════════════════
SIDEBAR
══════════════════════════════════════════════════════ */
.sidebar {
position: fixed;
top: 0;
left: 0;
width: var(--sidebar-w);
height: 100vh;
background: var(--sidebar-bg);
display: flex;
flex-direction: column;
z-index: 200;
transition: transform var(--transition);
border-right: 1px solid rgba(0, 212, 255, 0.06);
overflow: hidden;
}
.sidebar::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 240px;
background: radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
pointer-events: none;
}
.sidebar::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 160px;
background: radial-gradient(ellipse at 50% 100%, rgba(167, 139, 250, 0.06) 0%, transparent 70%);
pointer-events: none;
}
.sidebar-brand {
display: flex;
align-items: center;
gap: 14px;
padding: 24px 22px 20px;
border-bottom: 1px solid rgba(0, 212, 255, 0.06);
position: relative;
z-index: 1;
}
.brand-logo {
width: 40px;
height: 40px;
background: linear-gradient(135deg, var(--cyan), rgba(0, 212, 255, 0.3));
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
flex-shrink: 0;
}
.brand-title {
display: block;
font-family: var(--font-display);
font-size: 1rem;
font-weight: 700;
color: #fff;
letter-spacing: 0.3px;
line-height: 1.2;
}
.brand-sub {
display: block;
font-size: 0.68rem;
color: rgba(0, 212, 255, 0.5);
margin-top: 3px;
letter-spacing: 0.5px;
text-transform: uppercase;
}
.sidebar-nav {
flex: 1;
padding: 20px 14px;
display: flex;
flex-direction: column;
gap: 3px;
position: relative;
z-index: 1;
overflow-y: auto;
}
.nav-section-label {
font-size: 0.6rem;
font-weight: 600;
letter-spacing: 1.5px;
text-transform: uppercase;
color: var(--text-faint);
padding: 12px 10px 6px;
}
.nav-item {
display: flex;
align-items: center;
gap: 12px;
padding: 11px 14px;
border-radius: var(--radius-sm);
color: var(--text-muted);
text-decoration: none;
font-size: 0.875rem;
font-weight: 500;
transition: all 0.2s ease;
position: relative;
overflow: hidden;
}
.nav-item::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(90deg, var(--cyan-dim), transparent);
opacity: 0;
transition: opacity 0.2s;
}
.nav-item:hover::before {
opacity: 1;
}
.nav-item:hover {
color: #fff;
}
.nav-item.active::before {
opacity: 1;
}
.nav-item.active {
color: var(--cyan);
border-left: 2px solid var(--cyan);
margin-left: -1px;
}
.nav-item.active .nav-icon {
color: var(--cyan);
}
.nav-icon {
font-size: 1rem;
width: 20px;
text-align: center;
flex-shrink: 0;
transition: transform 0.2s;
}
.nav-item:hover .nav-icon {
transform: scale(1.1);
}
.nav-badge {
margin-left: auto;
background: var(--cyan-dim);
color: var(--cyan);
font-size: 0.6rem;
font-weight: 700;
padding: 2px 7px;
border-radius: 20px;
letter-spacing: 0.3px;
}
.sidebar-footer {
padding: 16px 22px 20px;
border-top: 1px solid rgba(0, 212, 255, 0.06);
position: relative;
z-index: 1;
}
.sidebar-footer-info {
font-size: 0.68rem;
color: var(--text-faint);
line-height: 1.7;
}
.sidebar-footer-badge {
display: inline-flex;
align-items: center;
gap: 5px;
background: var(--amber-dim);
color: var(--amber);
font-size: 0.62rem;
font-weight: 700;
padding: 4px 10px;
border-radius: 20px;
margin-top: 8px;
letter-spacing: 0.5px;
text-transform: uppercase;
}
/* ══════════════════════════════════════════════════════
MAIN WRAPPER
══════════════════════════════════════════════════════ */
.main-wrapper {
margin-left: var(--sidebar-w);
min-height: 100vh;
display: flex;
flex-direction: column;
transition: margin-left var(--transition);
}
/* ══════════════════════════════════════════════════════
TOPBAR
══════════════════════════════════════════════════════ */
.topbar {
position: sticky;
top: 0;
height: var(--topbar-h);
background: var(--topbar-bg);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
gap: 16px;
padding: 0 28px;
z-index: 100;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}
.menu-btn {
display: none;
flex-direction: column;
gap: 5px;
background: none;
border: none;
cursor: pointer;
padding: 4px;
}
.menu-btn span {
width: 20px;
height: 2px;
background: var(--text);
border-radius: 2px;
transition: transform var(--transition);
}
.topbar-title {
flex: 1;
}
.topbar-title h1 {
font-family: var(--font-display);
font-size: 1.05rem;
font-weight: 700;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
letter-spacing: -0.2px;
}
.topbar-sub {
font-size: 0.7rem;
color: var(--text-muted);
margin-top: 2px;
display: flex;
align-items: center;
gap: 6px;
}
.topbar-sub::before {
content: '';
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--emerald);
box-shadow: 0 0 8px var(--emerald);
display: inline-block;
animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
0%,
100% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.6;
transform: scale(0.8);
}
}
.topbar-actions {
display: flex;
align-items: center;
gap: 8px;
}
.export-btn {
display: flex;
align-items: center;
gap: 7px;
background: linear-gradient(135deg, var(--cyan), rgba(0, 150, 200, 0.9));
border: none;
border-radius: var(--radius-sm);
color: #000;
padding: 9px 18px;
font-family: var(--font);
font-size: 0.8rem;
font-weight: 700;
cursor: pointer;
transition: all 0.2s;
box-shadow: 0 0 20px var(--cyan-glow);
letter-spacing: 0.3px;
}
.export-btn:hover {
transform: translateY(-1px);
box-shadow: 0 4px 24px var(--cyan-glow);
}
.export-btn:active {
transform: translateY(0);
}
.theme-toggle {
background: var(--surface-2);
border: 1px solid var(--border-2);
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 1rem;
transition: all 0.2s;
}
.theme-toggle:hover {
background: var(--surface-3);
border-color: var(--cyan);
}
/* ══════════════════════════════════════════════════════
CONTENT
══════════════════════════════════════════════════════ */
.content {
flex: 1;
padding: 28px;
max-width: 1440px;
width: 100%;
}
.section {
display: none;
}
.section.active {
display: block;
animation: fadeUp 0.35s ease;
}
@keyframes fadeUp {
from {
opacity: 0;
transform: translateY(12px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.section-header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 24px;
}
.section-title {
font-family: var(--font-display);
font-size: 1.4rem;
font-weight: 700;
letter-spacing: -0.3px;
}
.section-badge {
background: var(--surface-2);
border: 1px solid var(--border);
color: var(--text-muted);
font-size: 0.68rem;
font-weight: 600;
padding: 5px 12px;
border-radius: 20px;
letter-spacing: 0.3px;
}
/* ══════════════════════════════════════════════════════
KPI CARDS
══════════════════════════════════════════════════════ */
.kpi-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 16px;
margin-bottom: 28px;
}
.kpi-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 24px 22px;
display: flex;
align-items: center;
gap: 18px;
box-shadow: var(--shadow-sm);
position: relative;
overflow: hidden;
transition: all 0.25s ease;
cursor: default;
}
.kpi-card::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
opacity: 0;
transition: opacity 0.25s;
}
.kpi-card:hover {
transform: translateY(-3px);
box-shadow: var(--shadow);
border-color: var(--border-2);
}
.kpi-card:hover::after {
opacity: 1;
}
/* Card accent lines */
.kpi-cyan::after {
background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.kpi-amber::after {
background: linear-gradient(90deg, transparent, var(--amber), transparent);
}
.kpi-rose::after {
background: linear-gradient(90deg, transparent, var(--rose), transparent);
}
.kpi-emerald::after {
background: linear-gradient(90deg, transparent, var(--emerald), transparent);
}
.kpi-glow-bg {
position: absolute;
top: -30px;
right: -30px;
width: 120px;
height: 120px;
border-radius: 50%;
opacity: 0.06;
pointer-events: none;
}
.kpi-cyan .kpi-glow-bg {
background: var(--cyan);
}
.kpi-amber .kpi-glow-bg {
background: var(--amber);
}
.kpi-rose .kpi-glow-bg {
background: var(--rose);
}
.kpi-emerald .kpi-glow-bg {
background: var(--emerald);
}
.kpi-icon-wrap {
width: 52px;
height: 52px;
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.4rem;
flex-shrink: 0;
position: relative;
z-index: 1;
}
.kpi-cyan .kpi-icon-wrap {
background: var(--cyan-dim);
box-shadow: 0 0 20px var(--cyan-dim);
}
.kpi-amber .kpi-icon-wrap {
background: var(--amber-dim);
box-shadow: 0 0 20px var(--amber-dim);
}
.kpi-rose .kpi-icon-wrap {
background: var(--rose-dim);
box-shadow: 0 0 20px var(--rose-dim);
}
.kpi-emerald .kpi-icon-wrap {
background: var(--emerald-dim);
box-shadow: 0 0 20px var(--emerald-dim);
}
.kpi-body {
position: relative;
z-index: 1;
}
.kpi-value {
font-family: var(--font-display);
font-size: 2.2rem;
font-weight: 800;
line-height: 1;
letter-spacing: -1px;
font-variant-numeric: tabular-nums;
}
.kpi-cyan .kpi-value {
color: var(--cyan);
}
.kpi-amber .kpi-value {
color: var(--amber);
}
.kpi-rose .kpi-value {
color: var(--rose);
}
.kpi-emerald .kpi-value {
color: var(--emerald);
}
.kpi-unit {
font-size: 1.3rem;
font-weight: 700;
margin-left: 2px;
letter-spacing: 0;
}
.kpi-label {
font-size: 0.75rem;
color: var(--text-muted);
margin-top: 5px;
font-weight: 500;
}
/* ══════════════════════════════════════════════════════
BATCH STRIP
══════════════════════════════════════════════════════ */
.batch-strip {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
margin-bottom: 28px;
}
.batch-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px 22px;
text-align: center;
position: relative;
overflow: hidden;
transition: all 0.25s ease;
cursor: default;
}
.batch-card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow);
border-color: var(--border-2);
}
.batch-card:nth-child(1) .batch-num {
color: var(--cyan);
}
.batch-card:nth-child(2) .batch-num {
color: var(--violet);
}
.batch-card:nth-child(3) .batch-num {
color: var(--emerald);
}
.batch-num {
font-family: var(--font-display);
font-size: 0.8rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
}
.batch-title {
font-family: var(--font-display);
font-size: 1.8rem;
font-weight: 800;
margin: 8px 0 4px;
letter-spacing: -0.5px;
}
.batch-date {
font-size: 0.75rem;
color: var(--text-muted);
}
.batch-range {
font-size: 0.65rem;
color: var(--text-faint);
margin-top: 4px;
}
/* ══════════════════════════════════════════════════════
OVERVIEW MINI CHARTS
══════════════════════════════════════════════════════ */
.overview-mini-charts {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
margin-bottom: 8px;
}
/* ══════════════════════════════════════════════════════
CHARTS
══════════════════════════════════════════════════════ */
.charts-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}
.chart-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 22px;
box-shadow: var(--shadow-sm);
transition: all 0.25s ease;
}
.chart-card:hover {
box-shadow: var(--shadow);
border-color: var(--border-2);
}
.chart-wide {
grid-column: span 2;
}
.chart-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 18px;
}
.chart-header h3 {
font-family: var(--font-display);
font-size: 0.95rem;
font-weight: 600;
}
.chart-badge {
font-size: 0.62rem;
font-weight: 700;
letter-spacing: 0.8px;
background: var(--cyan-dim);
color: var(--cyan);
padding: 4px 10px;
border-radius: 20px;
text-transform: uppercase;
}
.chart-wrap {
position: relative;
height: 260px;
}
.chart-wrap-sm {
height: 220px;
}
/* ══════════════════════════════════════════════════════
INSIGHTS
══════════════════════════════════════════════════════ */
.insights-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 18px;
margin-bottom: 24px;
}
.insight-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 24px;
box-shadow: var(--shadow-sm);
display: flex;
flex-direction: column;
gap: 10px;
transition: all 0.25s ease;
position: relative;
overflow: hidden;
}
.insight-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(90deg, transparent, var(--cyan), transparent);
opacity: 0;
transition: opacity 0.25s;
}
.insight-card:hover::before {
opacity: 1;
}
.insight-card:hover {
transform: translateY(-3px);
box-shadow: var(--shadow);
border-color: var(--border-2);
}
.insight-icon {
font-size: 1.8rem;
line-height: 1;
width: 44px;
height: 44px;
background: var(--surface-2);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
}
.insight-title {
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--text-muted);
}
.insight-value {
font-family: var(--font-display);
font-size: 1.5rem;
font-weight: 700;
color: var(--text);
letter-spacing: -0.3px;
}
.insight-desc {
font-size: 0.82rem;
color: var(--text-muted);
line-height: 1.6;
}
.insight-bar {
height: 3px;
border-radius: 2px;
background: var(--surface-3);
overflow: hidden;
margin-top: 4px;
}
.insight-bar-fill {
height: 100%;
border-radius: 2px;
transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.insight-skeleton {
height: 180px;
border-radius: var(--radius);
background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
background-size: 800px 100%;
animation: shimmer 1.4s infinite linear;
}
/* ══════════════════════════════════════════════════════
MAP
══════════════════════════════════════════════════════ */
.map-container {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
margin-bottom: 18px;
box-shadow: var(--shadow-sm);
}
.map-fallback {
position: relative;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
}
#leafletMap {
width: 100%;
height: 520px;
border-radius: 0;
}
.bubble-legend {
padding: 12px 20px;
font-size: 0.75rem;
color: var(--text-muted);
display: flex;
align-items: center;
gap: 8px;
background: var(--surface-2);
border-top: 1px solid var(--border);
width: 100%;
}
.legend-dot {
width: 12px;
height: 12px;
border-radius: 50%;
background: radial-gradient(circle at 38% 35%, #6adfff 0%, var(--cyan) 60%, #0088bb 100%);
display: inline-block;
flex-shrink: 0;
}
.google-map {
width: 100%;
height: 520px;
}
/* ══════════════════════════════════════════════════════
DISTRICT/COLLEGE PANEL
══════════════════════════════════════════════════════ */
.district-panel {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 24px;
margin-bottom: 18px;
box-shadow: var(--shadow);
animation: slideDown 0.25s ease;
border-left: 3px solid var(--cyan);
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.dp-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 18px;
flex-wrap: wrap;
gap: 12px;
}
.dp-name {
font-family: var(--font-display);
font-size: 1.2rem;
font-weight: 700;
margin-right: 12px;
}
.dp-count {
background: var(--cyan-dim);
color: var(--cyan);
border: 1px solid rgba(0, 212, 255, 0.2);
border-radius: 20px;
padding: 4px 14px;
font-size: 0.78rem;
font-weight: 700;
}
.dp-actions {
display: flex;
gap: 10px;
align-items: center;
}
.dp-gmaps-btn {
background: linear-gradient(135deg, var(--emerald), rgba(0, 180, 120, 0.9));
color: #000;
border: none;
border-radius: var(--radius-sm);
padding: 9px 16px;
font-size: 0.8rem;
font-weight: 700;
cursor: pointer;
font-family: var(--font);
transition: all 0.2s;
box-shadow: 0 0 16px var(--emerald-dim);
}
.dp-gmaps-btn:hover {
transform: translateY(-1px);
}
.dp-close-btn {
background: var(--surface-2);
border: 1px solid var(--border-2);
border-radius: 50%;
width: 34px;
height: 34px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 0.85rem;
color: var(--text-muted);
font-family: var(--font);
transition: all 0.2s;
}
.dp-close-btn:hover {
color: var(--text);
border-color: var(--rose);
}
.dp-stat-row {
display: flex;
gap: 14px;
margin-bottom: 0;
flex-wrap: wrap;
}
.dp-stat {
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 14px 18px;
flex: 1;
min-width: 110px;
font-size: 0.82rem;
color: var(--text-muted);
line-height: 1.6;
}
.dp-stat strong {
display: block;
font-size: 1.3rem;
font-weight: 700;
color: var(--text);
}
/* ══════════════════════════════════════════════════════
MAP LEGEND GRID
══════════════════════════════════════════════════════ */
.map-legend-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
gap: 10px;
margin-bottom: 24px;
}
.map-legend-item {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 12px 14px;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 0.78rem;
cursor: pointer;
transition: all 0.2s;
}
.map-legend-item:hover {
background: var(--surface-2);
border-color: var(--cyan);
transform: translateY(-1px);
box-shadow: var(--shadow-sm);
}
.map-legend-district {
font-weight: 600;
color: var(--text);
}
.map-legend-count {
background: var(--cyan-dim);
color: var(--cyan);
border-radius: 20px;
padding: 3px 9px;
font-size: 0.68rem;
font-weight: 700;
flex-shrink: 0;
}
/* ══════════════════════════════════════════════════════
GALLERY
══════════════════════════════════════════════════════ */
.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-bottom: 28px;
}
.gallery-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
cursor: pointer;
box-shadow: var(--shadow-sm);
transition: all 0.3s ease;
}
.gallery-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow), 0 0 30px var(--cyan-dim);
border-color: rgba(0, 212, 255, 0.2);
}
.gallery-card:hover img {
opacity: 0.9;
transform: scale(1.03);
}
.gallery-card img {
width: 100%;
height: 240px;
object-fit: cover;
object-position: top;
display: block;
transition: all 0.4s ease;
}
.gallery-caption {
padding: 16px 18px;
font-family: var(--font-display);
font-weight: 600;
font-size: 0.88rem;
color: var(--text);
display: flex;
align-items: center;
gap: 8px;
}
.gallery-caption::before {
content: '';
width: 3px;
height: 16px;
border-radius: 2px;
background: var(--cyan);
display: inline-block;
}
/* ══════════════════════════════════════════════════════
CAROUSEL
══════════════════════════════════════════════════════ */
.carousel-section {
margin-top: 8px;
}
.carousel-wrapper {
display: flex;
align-items: center;
gap: 14px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 22px 18px;
box-shadow: var(--shadow-sm);
}
.carousel-track-container {
flex: 1;
overflow: hidden;
}
.carousel-track {
display: flex;
gap: 14px;
transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.carousel-item {
flex-shrink: 0;
width: 130px;
cursor: pointer;
text-align: center;
}
.carousel-item img {
width: 110px;
height: 110px;
border-radius: 50%;
object-fit: cover;
object-position: top;
border: 2px solid var(--border);
transition: all 0.25s ease;
display: block;
margin: 0 auto 8px;
background: var(--surface-2);
}
.carousel-item:hover img {
border-color: var(--cyan);
transform: scale(1.06);
box-shadow: 0 0 20px var(--cyan-dim);
}
.carousel-item-label {
font-size: 0.7rem;
font-weight: 600;
color: var(--text-muted);
}
.carousel-btn {
flex-shrink: 0;
width: 38px;
height: 38px;
border-radius: 50%;
background: var(--surface-2);
border: 1px solid var(--border-2);
color: var(--text);
font-size: 1rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
font-family: var(--font);
}
.carousel-btn:hover {
background: var(--cyan-dim);
border-color: var(--cyan);
color: var(--cyan);
}
.carousel-btn:disabled {
opacity: 0.3;
cursor: default;
}
.carousel-dots {
display: flex;
justify-content: center;
gap: 6px;
margin-top: 14px;
flex-wrap: wrap;
}
.carousel-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--surface-3);
border: none;
cursor: pointer;
transition: all 0.2s;
padding: 0;
}
.carousel-dot.active {
background: var(--cyan);
transform: scale(1.4);
box-shadow: 0 0 8px var(--cyan);
}
.carousel-empty {
text-align: center;
color: var(--text-muted);
font-size: 0.85rem;
padding: 24px;
width: 100%;
}
/* ══════════════════════════════════════════════════════
TABLE
══════════════════════════════════════════════════════ */
.table-toolbar {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 16px;
}
.search-input,
.filter-select {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text);
padding: 10px 16px;
font-size: 0.85rem;
font-family: var(--font);
transition: all 0.2s;
outline: none;
}
.search-input {
flex: 1;
min-width: 220px;
}
.search-input:focus,
.filter-select:focus {
border-color: var(--cyan);
box-shadow: 0 0 0 3px var(--cyan-dim);
}
.filter-select {
min-width: 155px;
cursor: pointer;
}
.export-table-btn {
background: var(--surface);
border: 1px solid var(--border-2);
border-radius: var(--radius-sm);
color: var(--text);
padding: 10px 16px;
font-size: 0.82rem;
font-weight: 600;
cursor: pointer;
font-family: var(--font);
transition: all 0.2s;
}
.export-table-btn:hover {
background: var(--cyan-dim);
border-color: var(--cyan);
color: var(--cyan);
}
.table-wrapper {
overflow-x: auto;
border-radius: var(--radius);
border: 1px solid var(--border);
box-shadow: var(--shadow-sm);
margin-bottom: 16px;
}
.data-table {
width: 100%;
border-collapse: collapse;
font-size: 0.83rem;
}
.data-table thead tr {
background: var(--surface-2);
border-bottom: 1px solid var(--border);
}
.data-table th {
padding: 13px 16px;
text-align: left;
font-family: var(--font);
font-weight: 600;
font-size: 0.7rem;
letter-spacing: 0.7px;
text-transform: uppercase;
color: var(--text-muted);
white-space: nowrap;
user-select: none;
}
.data-table th.sortable {
cursor: pointer;
}
.data-table th.sortable:hover {
color: var(--text);
}
.data-table th.sort-asc::after {
content: ' ↑';
color: var(--cyan);
}
.data-table th.sort-desc::after {
content: ' ↓';
color: var(--cyan);
}
.data-table tbody tr {
border-bottom: 1px solid var(--border);
transition: background 0.15s;
}
.data-table tbody tr:last-child {
border-bottom: none;
}
.data-table tbody tr:hover {
background: var(--surface-2);
}
.data-table td {
padding: 12px 16px;
color: var(--text);
vertical-align: middle;
}
.row-link {
cursor: pointer;
}
/* Pills & Badges */
.pill {
display: inline-block;
padding: 3px 10px;
border-radius: 20px;
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.3px;
}
.pill-female {
background: var(--rose-dim);
color: var(--rose);
}
.pill-male {
background: var(--cyan-dim);
color: var(--cyan);
}
.badge {
display: inline-block;
padding: 3px 9px;
border-radius: var(--radius-xs);
font-size: 0.67rem;
font-weight: 700;
}
.badge-hod {
background: var(--violet-dim);
color: var(--violet);
}
.badge-senior {
background: var(--emerald-dim);
color: var(--emerald);
}
.badge-lect {
background: var(--surface-3);
color: var(--text-muted);
}
.badge-other {
background: var(--amber-dim);
color: var(--amber);
}
.batch-tag {
font-size: 0.68rem;
font-weight: 600;
color: var(--text-muted);
}
.map-action-btn {
background: none;
border: 1px solid var(--border);
border-radius: var(--radius-xs);
color: var(--text-muted);
padding: 5px 11px;
font-size: 0.72rem;
cursor: pointer;
font-family: var(--font);
transition: all 0.2s;
}
.map-action-btn:hover {
border-color: var(--cyan);
color: var(--cyan);
background: var(--cyan-dim);
}
/* ══════════════════════════════════════════════════════
PAGINATION
══════════════════════════════════════════════════════ */
.pagination {
display: flex;
justify-content: center;
gap: 6px;
flex-wrap: wrap;
margin-bottom: 24px;
}
.page-btn {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text);
padding: 7px 13px;
font-size: 0.8rem;
font-weight: 500;
cursor: pointer;
transition: all 0.15s;
}
.page-btn:hover {
background: var(--surface-2);
border-color: var(--cyan);
color: var(--cyan);
}
.page-btn.active {
background: var(--cyan);
border-color: var(--cyan);
color: #000;
font-weight: 700;
box-shadow: 0 0 16px var(--cyan-glow);
}
.page-btn:disabled {
opacity: 0.4;
cursor: default;
}
/* ══════════════════════════════════════════════════════
MODALS
══════════════════════════════════════════════════════ */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.75);
z-index: 500;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
.modal-box {
background: var(--surface);
border: 1px solid var(--border-2);
border-radius: 20px;
padding: 36px;
max-width: 460px;
width: 100%;
position: relative;
box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 212, 255, 0.05);
animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
from {
opacity: 0;
transform: scale(0.9) translateY(10px);
}
to {
opacity: 1;
transform: scale(1) translateY(0);
}
}
.modal-close {
position: absolute;
top: 16px;
right: 16px;
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: 50%;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 0.8rem;
color: var(--text-muted);
transition: all 0.2s;
}
.modal-close:hover {
color: var(--text);
border-color: var(--rose);
}
.modal-avatar {
width: 72px;
height: 72px;
border-radius: 50%;
background: linear-gradient(135deg, var(--cyan), var(--violet));
display: flex;
align-items: center;
justify-content: center;
font-size: 1.8rem;
font-weight: 800;
color: #000;
margin: 0 auto 16px;
text-transform: uppercase;
box-shadow: 0 0 30px var(--cyan-glow);
overflow: hidden;
}
.modal-name {
font-family: var(--font-display);
font-size: 1.25rem;
font-weight: 700;
text-align: center;
margin-bottom: 4px;
}
.modal-sub {
font-size: 0.8rem;
color: var(--text-muted);
text-align: center;
margin-bottom: 16px;
}
.modal-tags {
display: flex;
gap: 8px;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 20px;
}
.modal-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
margin-bottom: 20px;
}
.modal-field {
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 12px 14px;
}
.modal-field-label {
font-size: 0.65rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.7px;
color: var(--text-faint);
margin-bottom: 4px;
}
.modal-field-value {
font-size: 0.85rem;
font-weight: 500;
color: var(--text);
}
.modal-map-btn {
width: 100%;
background: linear-gradient(135deg, var(--cyan), rgba(0, 150, 200, 0.9));
border: none;
border-radius: var(--radius-sm);
color: #000;
padding: 12px;
font-size: 0.88rem;
font-weight: 700;
cursor: pointer;
font-family: var(--font);
transition: all 0.2s;
box-shadow: 0 0 20px var(--cyan-glow);
}
.modal-map-btn:hover {
transform: translateY(-1px);
box-shadow: 0 4px 28px var(--cyan-glow);
}
/* ══════════════════════════════════════════════════════
FOOTER
══════════════════════════════════════════════════════ */
.footer {
padding: 18px 28px;
font-size: 0.72rem;
color: var(--text-faint);
border-top: 1px solid var(--border);
text-align: center;
background: var(--surface);
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
}
.footer-dot {
color: var(--cyan);
font-size: 0.5rem;
}
/* ══════════════════════════════════════════════════════
SIDEBAR OVERLAY (MOBILE)
══════════════════════════════════════════════════════ */
.sidebar-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
z-index: 150;
backdrop-filter: blur(4px);
}
/* ══════════════════════════════════════════════════════
ANIMATIONS
══════════════════════════════════════════════════════ */
@keyframes shimmer {
0% {
background-position: -400px 0;
}
100% {
background-position: 400px 0;
}
}
/* ══════════════════════════════════════════════════════
RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
.charts-grid {
grid-template-columns: 1fr;
}
.chart-wide {
grid-column: span 1;
}
.overview-mini-charts {
grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
:root {
--sidebar-w: 270px;
}
.sidebar {
transform: translateX(-100%);
box-shadow: 4px 0 40px rgba(0, 0, 0, .5);
}
.sidebar.open {
transform: translateX(0);
}
.sidebar-overlay.open {
display: block;
}
.main-wrapper {
margin-left: 0;
}
.menu-btn {
display: flex;
}
.topbar {
padding: 0 16px;
}
.topbar-title h1 {
font-size: 0.9rem;
}
.content {
padding: 16px;
}
.kpi-grid {
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}
.kpi-value {
font-size: 1.8rem;
}
.batch-strip {
grid-template-columns: 1fr;
gap: 10px;
}
#leafletMap {
height: 360px;
}
.table-toolbar {
flex-direction: column;
}
.search-input {
min-width: unset;
}
.export-btn span {
display: none;
}
.dp-header {
flex-direction: column;
align-items: flex-start;
}
.modal-grid {
grid-template-columns: 1fr;
}
.gallery-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 480px) {
.kpi-grid {
grid-template-columns: 1fr;
}
.content {
padding: 12px;
}
}