Spaces:
Sleeping
Sleeping
Download frontend/src/styles/04-dashboard-widgets.css from jinksQspider/FaceMarkPro2: direct link, hf CLI and curl.
- Browser
- Download file 39.3 kB
-
https://huggingface.co/spaces/jinksQspider/FaceMarkPro2/resolve/main/frontend/src/styles/04-dashboard-widgets.css
- Command line
-
hf download hf://spaces/jinksQspider/FaceMarkPro2/frontend/src/styles/04-dashboard-widgets.css
-
curl -L -o 04-dashboard-widgets.css https://huggingface.co/spaces/jinksQspider/FaceMarkPro2/resolve/main/frontend/src/styles/04-dashboard-widgets.css
39.3 kB
/* --- PORTAL COMPONENTS --- */
.sidebar-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.45);
z-index: 1100;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
}
.sidebar-overlay.show {
opacity: 1;
pointer-events: auto;
}
.widget-add-trigger {
width: 44px;
height: 44px;
border-radius: 50%;
border: 2px solid #1976d2;
background: #fff;
color: #1976d2;
font-size: 22px;
line-height: 1;
cursor: pointer;
box-shadow: none;
flex-shrink: 0;
display: inline-grid;
place-items: center;
transition:
transform var(--motion-bounce),
box-shadow var(--motion-base),
background var(--motion-fast),
border-color var(--motion-fast),
color var(--motion-fast);
}
.widget-add-trigger svg {
width: 20px;
height: 20px;
}
.widget-add-trigger:hover {
transform: translateY(-2px) scale(1.05);
box-shadow: 0 12px 24px rgba(25, 118, 210, 0.16);
background: #eff6ff;
}
.widget-add-trigger:active {
transform: scale(0.97);
}
.mobile-layout-toggle {
display: none;
}
.faculty-widget-grid {
min-height: 70vh;
width: 100%;
max-width: none;
touch-action: pan-y;
}
.faculty-widget-grid.mobile-unlocked {
touch-action: none;
}
.faculty-widget-grid .react-grid-item {
transition:
transform var(--motion-base),
width var(--motion-base),
height var(--motion-base);
}
.faculty-widget-grid .react-grid-item.react-draggable-dragging,
.faculty-widget-grid .react-grid-item.resizing {
transition: none;
}
.faculty-widget-grid .react-grid-item.react-draggable-dragging {
z-index: 40;
}
.faculty-widget-grid .react-grid-item.react-draggable-dragging .faculty-widget-card {
opacity: 0.96;
transform: scale(1.02);
box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
}
.faculty-widget-grid .react-grid-placeholder {
border-radius: 16px;
border: 2px dashed rgba(56, 189, 248, 0.85);
background: repeating-linear-gradient(
-45deg,
rgba(56, 189, 248, 0.2),
rgba(56, 189, 248, 0.2) 10px,
rgba(56, 189, 248, 0.08) 10px,
rgba(56, 189, 248, 0.08) 20px
);
opacity: 1 !important;
}
.faculty-widget-card {
height: 100%;
background: #fff;
border-radius: 18px;
box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
overflow: hidden;
border: 1px solid rgba(148, 163, 184, 0.18);
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
transition:
transform var(--motion-base),
box-shadow var(--motion-base),
border-color var(--motion-base),
background var(--motion-base);
}
.faculty-widget-card.size-compact {
border-radius: 16px;
}
.faculty-widget-card.size-tiny {
border-radius: 14px;
}
.faculty-widget-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 10px 12px 8px;
border-bottom: 1px solid #eef2f7;
color: #334155;
}
.faculty-widget-card.size-compact .faculty-widget-header {
padding: 8px 10px 6px;
}
.faculty-widget-card.size-tiny .faculty-widget-header {
padding: 6px 8px 5px;
}
.widget-drag-handle {
display: flex;
align-items: center;
gap: 10px;
cursor: move;
color: #334155;
}
.widget-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: #60a5fa;
display: inline-block;
}
.widget-remove-btn {
width: 28px;
height: 28px;
border-radius: 50%;
border: 0;
background: rgba(239, 68, 68, 0.12);
color: #dc2626;
cursor: pointer;
transition:
transform var(--motion-fast),
background var(--motion-fast),
color var(--motion-fast),
box-shadow var(--motion-fast);
}
.widget-remove-btn:hover {
transform: scale(1.08);
background: rgba(239, 68, 68, 0.2);
box-shadow: 0 8px 18px rgba(220, 38, 38, 0.18);
}
.widget-remove-btn:active {
transform: scale(0.94);
}
.widget-header-actions {
display: inline-flex;
align-items: center;
gap: 8px;
}
.widget-mobile-move-controls {
display: inline-flex;
align-items: center;
gap: 6px;
}
.widget-move-btn {
width: 26px;
height: 26px;
border-radius: 999px;
border: 1px solid rgba(37, 99, 235, 0.25);
background: rgba(37, 99, 235, 0.1);
color: #1d4ed8;
display: inline-grid;
place-items: center;
cursor: pointer;
transition: transform var(--motion-fast), background var(--motion-fast), border-color var(--motion-fast);
}
.widget-move-btn:hover {
transform: translateY(-1px);
background: rgba(37, 99, 235, 0.16);
border-color: rgba(37, 99, 235, 0.4);
}
.widget-move-btn:active {
transform: translateY(0);
}
.widget-hover-hint {
opacity: 0;
transform: translateY(4px);
pointer-events: none;
transition: opacity 0.2s ease, transform 0.2s ease;
font-size: 11px;
font-weight: 600;
color: #0369a1;
background: rgba(14, 165, 233, 0.14);
border: 1px solid rgba(14, 165, 233, 0.24);
border-radius: 999px;
padding: 4px 8px;
white-space: nowrap;
}
.graph-widget {
transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.graph-widget:hover {
transform: translateY(-3px);
border-color: rgba(56, 189, 248, 0.42);
box-shadow: 0 14px 30px rgba(14, 116, 144, 0.18);
}
.graph-widget:hover .widget-hover-hint {
opacity: 1;
transform: translateY(0);
}
.graph-widget .chart-card,
.graph-widget .heatmap-card {
transition: background 0.22s ease;
}
.graph-widget:hover .chart-card,
.graph-widget:hover .heatmap-card {
background: linear-gradient(180deg, rgba(186, 230, 253, 0.12), rgba(255, 255, 255, 0));
}
.graph-widget:hover .bar-spark span {
filter: saturate(1.2) brightness(1.05);
}
.graph-widget:hover .heatmap-bars {
border-color: #bae6fd;
}
.graph-widget:hover .bar-segment {
filter: saturate(1.15);
}
.graph-widget:hover .chart-x-labels span,
.graph-widget:hover .heatmap-label {
color: #0f172a;
}
body.dark .graph-widget:hover {
border-color: rgba(56, 189, 248, 0.55);
box-shadow: 0 16px 32px rgba(2, 132, 199, 0.24);
}
body.dark .graph-widget:hover .chart-card,
body.dark .graph-widget:hover .heatmap-card {
background: transparent;
}
body.dark .graph-widget:hover .chart-card,
body.dark .graph-widget:hover .heatmap-card,
body.dark .graph-widget:hover .chart-card > *,
body.dark .graph-widget:hover .heatmap-card > * {
box-shadow: none;
}
body.dark .widget-hover-hint {
color: #7dd3fc;
background: rgba(56, 189, 248, 0.15);
border-color: rgba(56, 189, 248, 0.35);
}
body.dark .graph-widget:hover .chart-x-labels span,
body.dark .graph-widget:hover .heatmap-label {
color: #e2e8f0;
}
body.dark .faculty-widget-grid .react-grid-placeholder {
border-color: rgba(125, 211, 252, 0.95);
background: repeating-linear-gradient(
-45deg,
rgba(56, 189, 248, 0.26),
rgba(56, 189, 248, 0.26) 10px,
rgba(56, 189, 248, 0.12) 10px,
rgba(56, 189, 248, 0.12) 20px
);
}
body.dark .faculty-widget-grid .react-grid-item.react-draggable-dragging .faculty-widget-card {
box-shadow: 0 18px 42px rgba(2, 6, 23, 0.45);
}
body.dark .trend-area {
fill: rgba(56, 189, 248, 0.2);
}
body.dark .trend-point {
stroke: #0f172a;
}
body.dark .chart-hover-tooltip,
body.dark .bar-spark span[data-tooltip]::after,
body.dark .bar-segment[data-tooltip]::after {
background: rgba(2, 6, 23, 0.95);
border-color: rgba(71, 85, 105, 0.8);
}
body.dark .chart-hover-tooltip::after,
body.dark .bar-spark span[data-tooltip]::before,
body.dark .bar-segment[data-tooltip]::before {
background: rgba(2, 6, 23, 0.95);
border-color: rgba(71, 85, 105, 0.8);
}
@media (max-width: 768px) {
.mobile-layout-toggle {
display: inline-flex;
align-items: center;
gap: 8px;
}
.faculty-widget-grid.mobile-locked {
touch-action: pan-y;
}
.faculty-widget-grid.mobile-unlocked {
touch-action: none;
}
.widget-hover-hint {
display: none;
}
.graph-widget:hover {
transform: none;
}
.faculty-widget-grid .react-grid-item.react-draggable-dragging .faculty-widget-card {
transform: scale(1.015);
}
}
.faculty-widget-body {
flex: 1;
min-height: 0;
min-width: 0;
padding: 8px 10px 10px;
overflow: hidden;
scrollbar-width: none;
-ms-overflow-style: none;
display: flex;
flex-direction: column;
}
.faculty-widget-body::-webkit-scrollbar {
display: none;
}
.faculty-widget-body > * {
min-width: 0;
max-width: 100%;
}
.faculty-widget-body .table-wrap,
.faculty-widget-body .trend-chart,
.faculty-widget-body .overview-chart,
.faculty-widget-body .chart-card,
.faculty-widget-body .heatmap-card,
.faculty-widget-body .timetable-grid-card {
overflow: hidden;
}
.widget-attendance-heatmap .faculty-widget-body,
.widget-attendance-heatmap .heatmap-card,
.widget-attendance-heatmap .heatmap-rows,
.widget-attendance-heatmap .heatmap-row,
.widget-attendance-heatmap .heatmap-bars {
overflow: visible;
}
.faculty-widget-card.size-compact .faculty-widget-body {
padding: 6px 8px 8px;
}
.faculty-widget-card.size-tiny .faculty-widget-body {
padding: 4px 6px 6px;
}
.widget-picker-overlay {
position: fixed;
inset: 0;
background: rgba(15, 23, 42, 0.38);
backdrop-filter: blur(4px);
display: grid;
place-items: center;
z-index: 1400;
}
.widget-picker-modal {
width: min(880px, calc(100vw - 32px));
max-height: min(720px, calc(100vh - 32px));
overflow: auto;
background: #fff;
border-radius: 22px;
padding: 34px 36px;
box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
}
.widget-picker-modal h2 {
margin: 0 0 8px;
text-align: left;
font-size: 30px;
}
.widget-picker-modal p {
margin: 0 0 22px;
color: #475569;
}
.widget-picker-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 18px;
}
.widget-picker-item {
border: 1px solid #dbe4ee;
background: #fff;
border-radius: 16px;
min-height: 104px;
padding: 18px;
display: flex;
flex-direction: column;
gap: 12px;
align-items: center;
justify-content: center;
cursor: pointer;
transition:
transform var(--motion-base),
box-shadow var(--motion-base),
border-color var(--motion-fast),
background var(--motion-fast);
}
.widget-picker-item:hover {
transform: translateY(-2px);
border-color: #93c5fd;
box-shadow: 0 12px 30px rgba(59, 130, 246, 0.12);
}
.widget-picker-item.disabled {
opacity: 0.45;
cursor: not-allowed;
}
.widget-picker-icon {
width: 46px;
height: 46px;
border-radius: 14px;
display: grid;
place-items: center;
background: rgba(96, 165, 250, 0.14);
color: #3b82f6;
font-size: 14px;
font-weight: 700;
}
.widget-picker-close {
margin-top: 18px;
padding: 12px 16px;
border: 0;
border-radius: 10px;
background: #6b7280;
color: #fff;
cursor: pointer;
transition:
transform var(--motion-fast),
background var(--motion-fast),
box-shadow var(--motion-base);
}
.widget-picker-close:hover {
transform: translateY(-1px);
background: #4b5563;
box-shadow: 0 12px 24px rgba(75, 85, 99, 0.22);
}
.dashboard-slot {
text-align: center !important;
min-width: 0;
background: #fff;
}
.dashboard-slot strong {
display: block;
font-size: clamp(9px, 0.95vw, 13px);
margin-bottom: 2px;
font-weight: 700;
color: #222;
line-height: 1.05;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.dashboard-slot small {
color: #475569;
font-size: clamp(7px, 0.75vw, 10px);
line-height: 1.05;
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.faculty-widget-card.size-compact .dashboard-slot strong {
font-size: 10px;
}
.faculty-widget-card.size-compact .dashboard-slot small {
font-size: 7px;
}
.faculty-widget-card.size-tiny .dashboard-slot strong {
font-size: 8px;
}
.faculty-widget-card.size-tiny .dashboard-slot small {
display: none;
}
.timetable-grid-card {
height: 100%;
min-height: 0;
overflow: hidden;
display: flex;
}
.timetable-grid {
flex: 1;
min-width: 0;
min-height: 0;
display: grid;
grid-template-columns: minmax(44px, 0.9fr) repeat(6, minmax(0, 1fr));
grid-template-rows: minmax(22px, 0.65fr) repeat(5, minmax(0, 1fr));
border: 1px solid #e5eaf1;
border-radius: 12px;
overflow: hidden;
background: #fff;
}
.tt-corner,
.tt-head,
.tt-time,
.tt-cell {
display: flex;
align-items: center;
justify-content: center;
text-align: center;
min-width: 0;
min-height: 0;
border-right: 1px solid #e5eaf1;
border-bottom: 1px solid #e5eaf1;
padding: 2px;
overflow: hidden;
}
.tt-head {
background: #f8fafc;
color: #3f4752;
font-size: clamp(8px, 0.9vw, 12px);
font-weight: 700;
white-space: nowrap;
}
.tt-corner {
background: #f8fafc;
}
.tt-time {
background: #fbfcfe;
color: #5d6777;
font-size: clamp(7px, 0.85vw, 11px);
font-weight: 700;
white-space: nowrap;
}
.tt-cell {
flex-direction: column;
gap: 1px;
background: #fff;
transition:
background-color 0.2s ease,
box-shadow 0.2s ease,
transform 0.2s ease,
border-radius 0.2s ease;
}
.tt-cell-filled {
cursor: pointer;
}
.tt-cell-filled:hover {
background: linear-gradient(180deg, #dbeeff 0%, #cde5fa 100%);
box-shadow: inset 0 0 0 1px rgba(93, 157, 214, 0.35), 0 6px 14px rgba(73, 124, 170, 0.22);
transform: translateY(-1px);
border-radius: 10px;
z-index: 1;
}
.tt-cell-filled:hover strong {
color: #1f3b55;
}
.tt-cell-filled:hover small {
color: #355a7c;
}
.tt-cell strong {
font-size: clamp(8px, 1vw, 13px);
line-height: 1.05;
font-weight: 700;
color: #222;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}
.tt-cell small {
font-size: clamp(6px, 0.7vw, 9px);
line-height: 1;
color: #657184;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}
.timetable-grid > :nth-child(7n) {
border-right: 0;
}
.timetable-grid > :nth-last-child(-n + 7) {
border-bottom: 0;
}
.faculty-widget-card.size-compact .timetable-grid {
grid-template-columns: minmax(38px, 0.85fr) repeat(6, minmax(0, 1fr));
grid-template-rows: minmax(20px, 0.6fr) repeat(5, minmax(0, 1fr));
}
.faculty-widget-card.size-compact .tt-head {
font-size: 9px;
}
.faculty-widget-card.size-compact .tt-time {
font-size: 8px;
}
.faculty-widget-card.size-compact .tt-cell strong {
font-size: 9px;
}
.faculty-widget-card.size-compact .tt-cell small {
font-size: 6px;
}
.faculty-widget-card.size-tiny .timetable-grid {
grid-template-columns: minmax(34px, 0.8fr) repeat(6, minmax(0, 1fr));
grid-template-rows: minmax(18px, 0.55fr) repeat(5, minmax(0, 1fr));
}
.faculty-widget-card.size-tiny .tt-corner,
.faculty-widget-card.size-tiny .tt-head,
.faculty-widget-card.size-tiny .tt-time,
.faculty-widget-card.size-tiny .tt-cell {
padding: 1px;
}
body.dark .tt-cell-filled:hover {
background: linear-gradient(180deg, rgba(59, 130, 246, 0.34) 0%, rgba(37, 99, 235, 0.3) 100%);
box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.34), 0 6px 14px rgba(14, 116, 144, 0.28);
}
body.dark .tt-cell-filled:hover strong {
color: #e2f2ff;
}
body.dark .tt-cell-filled:hover small {
color: #cce6ff;
}
.faculty-widget-card.size-tiny .tt-head {
font-size: 7px;
}
.faculty-widget-card.size-tiny .tt-time {
font-size: 6px;
}
.faculty-widget-card.size-tiny .tt-cell strong {
font-size: 7px;
}
.faculty-widget-card.size-tiny .tt-cell small {
font-size: 5px;
}
.lecture-panel {
height: 100%;
border-radius: 14px;
background: linear-gradient(135deg, #5d76eb 0%, #7b53b6 100%);
color: #fff;
padding: 14px 16px;
position: relative;
min-height: 0;
overflow: hidden;
display: flex;
flex-direction: column;
gap: 12px;
}
.lecture-panel-hero {
position: relative;
padding: 4px 0 0 16px;
}
.lecture-panel h3 {
margin: 2px 0 10px;
font-size: clamp(14px, 1.5vw, 18px);
line-height: 1.15;
}
.lecture-panel p {
margin: 0 0 6px;
opacity: 0.95;
font-size: clamp(10px, 1vw, 12px);
line-height: 1.2;
}
.lecture-badge {
position: absolute;
right: 14px;
top: 14px;
padding: 6px 10px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.16);
font-size: 11px;
font-weight: 700;
}
.lecture-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: #fbbf24;
position: absolute;
top: 16px;
left: 16px;
}
.lecture-room-pill {
display: inline-flex;
margin-top: 4px;
padding: 5px 10px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.18);
font-size: 11px;
font-weight: 700;
}
.lecture-timeline {
display: grid;
gap: 8px;
min-height: 0;
}
.lecture-slot {
border-radius: 12px;
padding: 10px 12px;
background: rgba(255, 255, 255, 0.14);
border: 1px solid rgba(255, 255, 255, 0.14);
display: grid;
gap: 2px;
}
.lecture-slot-label {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.08em;
opacity: 0.78;
}
.lecture-slot strong {
font-size: 13px;
line-height: 1.15;
}
.lecture-slot small {
font-size: 11px;
opacity: 0.9;
}
.lecture-slot-current {
background: rgba(255, 255, 255, 0.2);
}
.lecture-slot-upcoming {
background: rgba(251, 191, 36, 0.18);
}
.lecture-slot-later {
background: rgba(15, 23, 42, 0.16);
}
.lecture-slot.is-empty {
opacity: 0.78;
}
.student-roster {
height: 100%;
min-height: 0;
display: flex;
flex-direction: column;
gap: 12px;
}
.student-roster-summary {
display: flex;
align-items: baseline;
gap: 10px;
padding: 12px 14px;
border-radius: 14px;
background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(125, 211, 252, 0.16));
}
.student-roster-summary strong {
font-size: 28px;
line-height: 1;
color: #1d4ed8;
}
.student-roster-summary span {
color: #475569;
font-weight: 600;
}
.student-roster-list {
display: flex;
flex-direction: column;
gap: 8px;
min-height: 0;
overflow: auto;
}
.student-roster-item {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: center;
gap: 10px;
padding: 10px 12px;
border-radius: 12px;
background: #f8fafc;
transition:
transform var(--motion-fast),
background var(--motion-fast),
box-shadow var(--motion-base);
}
.student-roster-item:hover {
transform: translateY(-1px);
background: #f1f5f9;
box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}
.student-avatar {
width: 38px;
height: 38px;
border-radius: 50%;
display: grid;
place-items: center;
background: linear-gradient(135deg, #60a5fa, #2563eb);
color: #fff;
font-size: 12px;
font-weight: 800;
}
.student-copy {
min-width: 0;
display: grid;
gap: 2px;
}
.student-copy strong,
.student-copy span,
.student-meta span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.student-copy strong {
color: #0f172a;
font-size: 13px;
}
.student-copy span {
color: #64748b;
font-size: 11px;
}
.student-meta span {
display: inline-flex;
padding: 4px 8px;
border-radius: 999px;
background: rgba(59, 130, 246, 0.1);
color: #1d4ed8;
font-size: 11px;
font-weight: 700;
}
.mini-metric-list {
display: grid;
gap: 12px;
}
.mini-metric-item {
position: relative;
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 14px;
border-radius: 14px;
background: #f8fafc;
overflow: hidden;
isolation: isolate;
}
.mini-metric-item::before {
content: "";
position: absolute;
inset: 0;
width: var(--metric-fill, 0%);
background: linear-gradient(90deg, rgba(59, 130, 246, 0.14), rgba(96, 165, 250, 0.22));
border-radius: inherit;
z-index: -1;
transition: width var(--motion-slow);
}
.mini-metric-item.metric-present::before {
background: linear-gradient(90deg, rgba(34, 197, 94, 0.18), rgba(74, 222, 128, 0.28));
}
.mini-metric-item.metric-absent::before {
background: linear-gradient(90deg, rgba(248, 113, 113, 0.18), rgba(252, 165, 165, 0.28));
}
.mini-metric-item span {
color: #64748b;
position: relative;
z-index: 1;
}
.mini-metric-item strong {
font-size: 20px;
position: relative;
z-index: 1;
}
.bar-spark {
height: 100%;
min-height: 160px;
display: flex;
align-items: end;
gap: 10px;
padding-top: 16px;
}
.bar-spark span {
flex: 1;
min-height: 18px;
border-radius: 10px 10px 4px 4px;
background: linear-gradient(180deg, #60a5fa, #2563eb);
cursor: pointer;
position: relative;
}
.bar-spark span[data-tooltip]::after,
.bar-segment[data-tooltip]::after {
content: attr(data-tooltip);
position: absolute;
left: 50%;
bottom: calc(100% + 8px);
transform: translateX(-50%) translateY(4px);
background: rgba(15, 23, 42, 0.92);
color: #f8fafc;
border: 1px solid rgba(148, 163, 184, 0.22);
border-radius: 8px;
padding: 6px 8px;
font-size: 11px;
font-weight: 600;
line-height: 1.2;
white-space: nowrap;
box-shadow: 0 10px 22px rgba(2, 6, 23, 0.28);
opacity: 0;
pointer-events: none;
z-index: 8;
transition: opacity 0.14s ease, transform 0.14s ease;
}
.bar-spark span[data-tooltip]::before,
.bar-segment[data-tooltip]::before {
content: "";
position: absolute;
left: 50%;
bottom: calc(100% + 3px);
width: 8px;
height: 8px;
background: rgba(15, 23, 42, 0.92);
border-right: 1px solid rgba(148, 163, 184, 0.22);
border-bottom: 1px solid rgba(148, 163, 184, 0.22);
transform: translateX(-50%) rotate(45deg);
opacity: 0;
pointer-events: none;
z-index: 7;
transition: opacity 0.14s ease;
}
.bar-spark span[data-tooltip]:hover::after,
.bar-spark span[data-tooltip]:hover::before,
.bar-segment[data-tooltip]:hover::after,
.bar-segment[data-tooltip]:hover::before {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
.faculty-widget-card.size-compact .lecture-panel {
padding: 10px 12px;
}
.faculty-widget-card.size-compact .lecture-panel h3 {
font-size: 15px;
margin-bottom: 8px;
}
.faculty-widget-card.size-compact .lecture-slot {
padding: 8px 10px;
}
.faculty-widget-card.size-compact .lecture-slot strong {
font-size: 12px;
}
.faculty-widget-card.size-compact .lecture-slot small {
font-size: 10px;
}
.faculty-widget-card.size-tiny .lecture-panel {
padding: 8px 10px;
}
.faculty-widget-card.size-tiny .lecture-panel h3 {
font-size: 13px;
margin-bottom: 6px;
}
.faculty-widget-card.size-tiny .lecture-panel p {
font-size: 9px;
margin-bottom: 4px;
}
.faculty-widget-card.size-tiny .lecture-badge {
top: 8px;
right: 8px;
padding: 3px 6px;
font-size: 9px;
}
.faculty-widget-card.size-tiny .lecture-dot {
top: 10px;
left: 10px;
width: 7px;
height: 7px;
}
.faculty-widget-card.size-tiny .lecture-timeline {
gap: 6px;
}
.faculty-widget-card.size-tiny .lecture-slot {
padding: 7px 8px;
}
.faculty-widget-card.size-tiny .lecture-slot strong {
font-size: 11px;
}
.faculty-widget-card.size-tiny .lecture-slot small,
.faculty-widget-card.size-tiny .lecture-room-pill {
font-size: 9px;
}
.faculty-widget-card.size-tiny .lecture-stack-widget {
min-height: 0;
border-radius: 10px;
}
.faculty-widget-card.size-tiny .lecture-stack-card {
padding: 10px;
}
.faculty-widget-card.size-tiny .lecture-stack-title {
font-size: 0.92rem;
}
.faculty-widget-card.size-tiny .lecture-stack-tag {
padding: 3px 8px;
font-size: 0.65rem;
}
.faculty-widget-card.size-tiny .lecture-stack-info {
font-size: 0.72rem;
}
.faculty-widget-card.size-tiny .lecture-stack-time {
font-size: 0.82rem;
}
.faculty-widget-card.size-tiny .lecture-stack-indicator {
right: 10px;
bottom: 10px;
gap: 6px;
}
.faculty-widget-card.size-tiny .lecture-stack-indicator-dot {
width: 8px;
height: 8px;
}
.faculty-widget-card.size-compact .student-roster-summary strong {
font-size: 24px;
}
.faculty-widget-card.size-tiny .student-roster {
gap: 8px;
}
.faculty-widget-card.size-tiny .student-roster-summary {
padding: 10px;
}
.faculty-widget-card.size-tiny .student-roster-summary strong {
font-size: 22px;
}
.faculty-widget-card.size-tiny .student-roster-item {
grid-template-columns: auto minmax(0, 1fr);
padding: 8px 10px;
}
.faculty-widget-card.size-tiny .student-meta {
display: none;
}
.faculty-widget-card.size-tiny .student-avatar {
width: 32px;
height: 32px;
font-size: 11px;
}
.chart-card {
height: 100%;
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
position: relative;
}
.chart-card.compact.tiny .trend-chart,
.chart-card.compact.tiny .overview-chart,
.chart-card.tiny .trend-chart,
.chart-card.tiny .overview-chart {
min-height: 90px;
}
.chart-card.compact {
min-height: 0;
}
.chart-legend {
align-self: center;
margin: 2px 0 6px;
font-size: clamp(9px, 0.9vw, 11px);
color: #64748b;
padding: 4px 10px;
border-radius: 999px;
background: rgba(79, 206, 214, 0.1);
white-space: nowrap;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
}
.trend-chart,
.overview-chart {
width: 100%;
height: 100%;
min-height: 120px;
overflow: visible;
flex: 1;
}
.chart-grid-line {
stroke: rgba(148, 163, 184, 0.22);
stroke-width: 1;
}
.chart-grid-line.vertical {
stroke: rgba(148, 163, 184, 0.14);
}
.chart-axis-line {
stroke: rgba(148, 163, 184, 0.4);
stroke-width: 1;
}
.trend-line {
fill: none;
stroke: #53c8d1;
stroke-width: 2.2;
}
.trend-area {
fill: rgba(83, 200, 209, 0.2);
}
.trend-point {
fill: #53c8d1;
stroke: #fff;
stroke-width: 1.5;
transition: r 0.16s ease, filter 0.16s ease;
cursor: pointer;
}
.trend-point:hover {
r: 5.5;
filter: brightness(1.05);
}
.chart-hover-tooltip {
position: absolute;
z-index: 6;
transform: translate(-50%, -120%);
background: rgba(15, 23, 42, 0.92);
color: #f8fafc;
border: 1px solid rgba(148, 163, 184, 0.22);
border-radius: 8px;
padding: 8px 10px;
box-shadow: 0 10px 24px rgba(2, 6, 23, 0.32);
pointer-events: none;
min-width: 150px;
}
.chart-hover-tooltip::after {
content: "";
position: absolute;
left: 50%;
bottom: -6px;
width: 10px;
height: 10px;
background: rgba(15, 23, 42, 0.92);
border-right: 1px solid rgba(148, 163, 184, 0.22);
border-bottom: 1px solid rgba(148, 163, 184, 0.22);
transform: translateX(-50%) rotate(45deg);
}
.chart-hover-tooltip span {
display: block;
font-size: 11px;
color: #cbd5e1;
margin-bottom: 2px;
}
.chart-hover-tooltip strong {
display: block;
font-size: 13px;
font-weight: 700;
color: #e2e8f0;
}
.axis-label {
fill: #7c8798;
font-size: 9px;
}
.axis-label.x {
font-size: 10px;
}
.chart-x-labels {
display: grid;
grid-template-columns: repeat(11, minmax(0, 1fr));
gap: 4px;
margin-top: 4px;
color: #7c8798;
font-size: clamp(8px, 0.8vw, 10px);
}
.chart-card.compact .chart-x-labels {
gap: 2px;
}
.chart-card.tiny .chart-x-labels {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.heatmap-card {
display: flex;
flex-direction: column;
gap: 12px;
min-width: 0;
min-height: 0;
}
.heatmap-card.compact {
gap: 8px;
}
.heatmap-card.tiny {
gap: 6px;
}
.heatmap-legend {
display: flex;
gap: 10px;
justify-content: center;
flex-wrap: wrap;
}
.legend-chip {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: clamp(9px, 0.85vw, 11px);
color: #64748b;
}
.legend-chip::before {
content: "";
width: 14px;
height: 10px;
border-radius: 2px;
display: inline-block;
background: var(--chip-color, #66b4eb);
}
.heatmap-rows {
display: flex;
flex-direction: column;
gap: 10px;
}
.heatmap-row {
display: grid;
grid-template-columns: minmax(56px, 88px) 1fr;
align-items: center;
gap: 8px;
}
.heatmap-card.compact .heatmap-row {
grid-template-columns: minmax(46px, 64px) 1fr;
}
.heatmap-card.tiny .heatmap-row {
grid-template-columns: 1fr;
gap: 3px;
}
.heatmap-card.tiny .heatmap-label {
text-align: left;
}
.heatmap-label {
font-size: clamp(9px, 0.95vw, 12px);
color: #5b6472;
text-align: right;
line-height: 1.1;
}
.heatmap-bars {
height: clamp(18px, 2.2vw, 28px);
display: flex;
border: 1px solid #e5ebf2;
background: linear-gradient(
to right,
rgba(148, 163, 184, 0.08) 1px,
transparent 1px
);
background-size: calc(100% / var(--heatmap-grid-cols, 10)) 100%;
min-width: 0;
position: relative;
z-index: 1;
}
.bar-segment {
height: 100%;
cursor: pointer;
position: relative;
background: var(--segment-color, #66b4eb);
}
.heatmap-bars .bar-segment:hover {
z-index: 3;
}
.heatmap-bars .bar-segment[data-tooltip]::before {
display: none;
}
.heatmap-bars .bar-segment[data-tooltip]::after {
top: 50%;
bottom: auto;
left: 50%;
transform: translate(-50%, -50%) scale(0.98);
white-space: normal;
width: max-content;
max-width: min(220px, 70vw);
text-align: left;
}
.heatmap-bars .bar-segment[data-tooltip]:hover::after {
transform: translate(-50%, -50%) scale(1);
}
.heatmap-scale {
display: grid;
grid-template-columns: repeat(10, 1fr);
font-size: clamp(8px, 0.8vw, 10px);
color: #7c8798;
margin-left: 98px;
}
.heatmap-card.compact .heatmap-scale {
margin-left: 72px;
}
.heatmap-card.tiny .heatmap-scale {
margin-left: 0;
grid-template-columns: repeat(5, 1fr);
}
.calendar-card {
height: 100%;
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
position: relative;
}
.calendar-card.compact .calendar-top {
margin-bottom: 6px;
}
.calendar-card.tiny .calendar-top {
gap: 6px;
margin-bottom: 4px;
}
.calendar-top {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: 10px;
margin-bottom: 8px;
}
.calendar-top strong {
text-align: center;
color: #2b88df;
font-size: clamp(11px, 1.1vw, 14px);
}
.calendar-mini-icon {
font-size: clamp(9px, 0.9vw, 11px);
color: #5b6b80;
}
.calendar-top-actions {
display: flex;
align-items: center;
gap: 8px;
}
.today-chip {
min-width: clamp(20px, 2vw, 24px);
height: clamp(20px, 2vw, 24px);
border-radius: 6px;
display: inline-grid;
place-items: center;
border: 1px solid #4da0ff;
color: #4da0ff;
background: rgba(77, 160, 255, 0.08);
font-size: clamp(9px, 0.9vw, 12px);
}
.calendar-arrow {
border: 0;
background: transparent;
cursor: pointer;
padding: 0 2px;
color: #4da0ff;
font-size: clamp(11px, 1vw, 14px);
transition:
transform var(--motion-fast),
color var(--motion-fast),
opacity var(--motion-fast);
}
.calendar-arrow:hover {
transform: translateY(-1px) scale(1.08);
color: #2563eb;
}
.calendar-arrow:active {
transform: scale(0.94);
}
.mini-calendar {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 10px 6px;
align-items: center;
flex: 1;
position: relative;
}
.mini-calendar strong,
.calendar-day-btn,
.calendar-day-empty {
text-align: center;
padding: 4px 0;
border-radius: 999px;
}
.mini-calendar strong {
color: #64748b;
font-size: clamp(8px, 0.8vw, 11px);
font-weight: 500;
}
.calendar-day-btn,
.calendar-day-empty {
min-height: clamp(24px, 3vw, 34px);
display: grid;
place-items: center;
font-size: clamp(9px, 1vw, 13px);
color: #334155;
}
.calendar-day-empty {
opacity: 0.25;
}
.calendar-day-btn {
border: 0;
background: transparent;
cursor: pointer;
position: relative;
transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.calendar-day-btn:hover {
background: rgba(77, 160, 255, 0.16);
transform: translateY(-1px);
}
.calendar-day-btn.today {
background: #53a7ff;
color: #fff;
width: clamp(28px, 4vw, 52px);
height: clamp(28px, 4vw, 52px);
justify-self: center;
}
.calendar-day-btn.has-event {
box-shadow: inset 0 0 0 1px rgba(77, 160, 255, 0.4);
}
.calendar-event-pill {
position: absolute;
top: -3px;
right: -4px;
min-width: 14px;
height: 14px;
border-radius: 999px;
padding: 0 4px;
background: #ef4444;
color: #fff;
font-size: 9px;
line-height: 14px;
font-style: normal;
}
.calendar-hover-tip {
position: absolute;
left: 50%;
bottom: calc(100% + 8px);
transform: translateX(-50%) translateY(4px);
background: rgba(15, 23, 42, 0.92);
color: #f8fafc;
border: 1px solid rgba(148, 163, 184, 0.22);
border-radius: 8px;
padding: 6px 8px;
min-width: 120px;
max-width: min(210px, 70vw);
text-align: left;
font-size: 11px;
line-height: 1.25;
font-style: normal;
box-shadow: 0 10px 22px rgba(2, 6, 23, 0.28);
opacity: 0;
pointer-events: none;
transition: opacity 0.14s ease, transform 0.14s ease;
z-index: 10;
}
.calendar-day-btn:hover .calendar-hover-tip {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
.calendar-event-overlay {
position: fixed;
inset: 0;
background: rgba(2, 6, 23, 0.5);
z-index: 3200;
display: grid;
place-items: start center;
padding: 32px 14px 20px;
}
.calendar-event-modal {
width: min(560px, calc(100vw - 24px));
max-height: calc(100vh - 64px);
overflow: hidden;
background: #fff;
border: 1px solid #dbe3ef;
border-radius: 14px;
padding: 14px;
box-shadow: 0 20px 50px rgba(15, 23, 42, 0.24);
display: flex;
flex-direction: column;
gap: 12px;
}
.calendar-event-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
position: sticky;
top: 0;
z-index: 1;
background: inherit;
padding-bottom: 2px;
}
.calendar-event-head h4 {
margin: 0;
color: #0f172a;
}
.calendar-event-close {
border: 0;
width: 30px;
height: 30px;
border-radius: 999px;
background: rgba(239, 68, 68, 0.16);
color: #b91c1c;
cursor: pointer;
}
.calendar-event-form {
display: grid;
gap: 8px;
}
.calendar-event-time-row {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.calendar-event-field {
display: grid;
gap: 6px;
}
.calendar-event-field span {
color: #475569;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.calendar-event-form input,
.calendar-event-form textarea,
.calendar-event-form select {
width: 100%;
border: 1px solid #cbd5e1;
border-radius: 12px;
padding: 11px 12px;
background: #f8fafc;
color: #0f172a;
transition:
border-color var(--motion-fast),
box-shadow var(--motion-fast),
background var(--motion-fast);
}
.calendar-event-form input:focus,
.calendar-event-form textarea:focus,
.calendar-event-form select:focus {
outline: none;
border-color: rgba(59, 130, 246, 0.55);
box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
background: #ffffff;
}
.calendar-event-form input[type="time"] {
min-height: 46px;
font-weight: 600;
letter-spacing: 0.02em;
color-scheme: light;
}
.calendar-event-form input[type="time"]::-webkit-calendar-picker-indicator {
opacity: 1;
cursor: pointer;
}
.calendar-event-form select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-image: none;
padding-right: 12px;
}
.calendar-save-btn {
border: 0;
border-radius: 8px;
background: #0284c7;
color: #fff;
padding: 10px 12px;
cursor: pointer;
font-weight: 700;
}
.calendar-error-copy {
margin: 2px 0 0;
font-size: 12px;
color: #b91c1c;
font-weight: 600;
}
.calendar-event-list {
display: grid;
gap: 8px;
max-height: 210px;
overflow: auto;
padding-right: 2px;
}
.calendar-event-item {
border: 1px solid #dbe3ef;
border-radius: 10px;
padding: 10px;
background: #f8fbff;
}
.calendar-event-item.active {
border-color: #60a5fa;
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.16);
}
.calendar-event-item header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.calendar-event-item header strong {
color: #0f172a;
}
.calendar-event-item p {
margin: 4px 0 0;
font-size: 12px;
color: #64748b;
}
.calendar-event-item-actions {
display: inline-flex;
align-items: center;
gap: 6px;
}
.calendar-event-item-actions button,
.calendar-event-details button {
border: 1px solid #cbd5e1;
background: #fff;
color: #334155;
border-radius: 7px;
padding: 4px 8px;
font-size: 11px;
cursor: pointer;
}
.calendar-empty-state {
margin: 0;
color: #64748b;
font-size: 13px;
}
.calendar-event-details {
border: 1px solid #dbe3ef;
border-radius: 10px;
padding: 10px;
background: #f8fbff;
}
.calendar-event-details,
.calendar-event-form,
.calendar-event-list {
min-width: 0;
}
.calendar-event-details h5 {
margin: 0 0 6px;
color: #0f172a;
}
.calendar-event-details p {
margin: 3px 0;
color: #334155;
font-size: 13px;
}
.calendar-event-footer {
display: flex;
justify-content: flex-end;
}
.calendar-close-btn {
border: 1px solid #cbd5e1;
background: #fff;
color: #334155;
border-radius: 8px;
padding: 8px 12px;
font-size: 12px;
cursor: pointer;
}
body.dark .calendar-top strong,
body.dark .calendar-mini-icon,
body.dark .calendar-arrow,
body.dark .today-chip {
color: #7dd3fc;
}
body.dark .today-chip {
border-color: rgba(125, 211, 252, 0.45);
background: rgba(56, 189, 248, 0.12);
}
body.dark .mini-calendar strong {
color: #7f92ad;
}
body.dark .calendar-day-btn,
body.dark .calendar-day-empty {
color: #c3d1e6;
}
body.dark .calendar-day-btn:hover {
background: rgba(56, 189, 248, 0.18);
}
body.dark .calendar-day-btn.has-event {
box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.45);
}
body.dark .calendar-day-btn.today {
background: #38bdf8;
color: #062033;
}
body.dark .calendar-hover-tip {
background: rgba(2, 6, 23, 0.95);
border-color: rgba(71, 85, 105, 0.8);
}
body.dark .calendar-event-modal {
background: #0f172a;
border-color: #334155;
}
body.dark .calendar-event-head {
background: #0f172a;
}
body.dark .calendar-event-head h4 {
color: #e2e8f0;
}
body.dark .calendar-event-form input,
body.dark .calendar-event-form textarea,
body.dark .calendar-event-form select {
background: #111827;
border-color: #334155;
color: #e2e8f0;
}
body.dark .calendar-event-field span {
color: #94a3b8;
}
body.dark .calendar-event-form input:focus,
body.dark .calendar-event-form textarea:focus,
body.dark .calendar-event-form select:focus {
border-color: rgba(125, 211, 252, 0.6);
box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
background: #0f172a;
}
body.dark .calendar-event-form input[type="time"] {
color-scheme: dark;
}
body.dark .calendar-event-form input[type="time"]::-webkit-calendar-picker-indicator {
filter: invert(1) brightness(1.25);
}
body.dark .calendar-event-form select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-image: none;
}
body.dark .calendar-event-item,
body.dark .calendar-event-details {
background: #111827;
border-color: #334155;
}
body.dark .calendar-error-copy {
color: #fca5a5;
}
body.dark .calendar-event-item header strong,
body.dark .calendar-event-details h5 {
color: #e2e8f0;
}
body.dark .calendar-event-item p,
body.dark .calendar-event-details p,
body.dark .calendar-empty-state {
color: #9fb2cc;
}
body.dark .calendar-event-item-actions button,
body.dark .calendar-event-details button,
body.dark .calendar-close-btn {
background: #0f172a;
border-color: #334155;
color: #cfe2f5;
}
.calendar-card.compact .mini-calendar {
gap: 6px 4px;
}
.calendar-card.tiny .mini-calendar {
gap: 4px 2px;
}
.calendar-card.tiny .mini-calendar strong {
font-size: 7px;
}
.calendar-card.tiny .calendar-day-btn,
.calendar-card.tiny .calendar-day-empty {
min-height: 20px;
font-size: 9px;
}
.calendar-card.tiny .calendar-day-btn.today {
width: 24px;
height: 24px;
}
@media (max-width: 640px) {
.calendar-event-time-row {
grid-template-columns: 1fr;
}
}
.plain-list.compact {
margin-bottom: 0;
gap: 12px;
}
.react-grid-item > .react-resizable-handle::after {
border-right: 2px solid #60a5fa;
border-bottom: 2px solid #60a5fa;
}
/* --- PORTAL COMPONENTS --- */
.sidebar-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.45);
z-index: 1100;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
}
.sidebar-overlay.show {
opacity: 1;
pointer-events: auto;
}
.widget-add-trigger {
width: 44px;
height: 44px;
border-radius: 50%;
border: 2px solid #1976d2;
background: #fff;
color: #1976d2;
font-size: 22px;
line-height: 1;
cursor: pointer;
box-shadow: none;
flex-shrink: 0;
display: inline-grid;
place-items: center;
transition:
transform var(--motion-bounce),
box-shadow var(--motion-base),
background var(--motion-fast),
border-color var(--motion-fast),
color var(--motion-fast);
}
.widget-add-trigger svg {
width: 20px;
height: 20px;
}
.widget-add-trigger:hover {
transform: translateY(-2px) scale(1.05);
box-shadow: 0 12px 24px rgba(25, 118, 210, 0.16);
background: #eff6ff;
}
.widget-add-trigger:active {
transform: scale(0.97);
}
.mobile-layout-toggle {
display: none;
}
.faculty-widget-grid {
min-height: 70vh;
width: 100%;
max-width: none;
touch-action: pan-y;
}
.faculty-widget-grid.mobile-unlocked {
touch-action: none;
}
.faculty-widget-grid .react-grid-item {
transition:
transform var(--motion-base),
width var(--motion-base),
height var(--motion-base);
}
.faculty-widget-grid .react-grid-item.react-draggable-dragging,
.faculty-widget-grid .react-grid-item.resizing {
transition: none;
}
.faculty-widget-grid .react-grid-item.react-draggable-dragging {
z-index: 40;
}
.faculty-widget-grid .react-grid-item.react-draggable-dragging .faculty-widget-card {
opacity: 0.96;
transform: scale(1.02);
box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
}
.faculty-widget-grid .react-grid-placeholder {
border-radius: 16px;
border: 2px dashed rgba(56, 189, 248, 0.85);
background: repeating-linear-gradient(
-45deg,
rgba(56, 189, 248, 0.2),
rgba(56, 189, 248, 0.2) 10px,
rgba(56, 189, 248, 0.08) 10px,
rgba(56, 189, 248, 0.08) 20px
);
opacity: 1 ;
}
.faculty-widget-card {
height: 100%;
background: #fff;
border-radius: 18px;
box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
overflow: hidden;
border: 1px solid rgba(148, 163, 184, 0.18);
display: flex;