Spaces:
Sleeping
Sleeping
Download frontend/src/styles/01-base.css from jinksQspider/FaceMarkPro2: direct link, hf CLI and curl.
- Browser
- Download file 21.5 kB
-
https://huggingface.co/spaces/jinksQspider/FaceMarkPro2/resolve/main/frontend/src/styles/01-base.css
- Command line
-
hf download hf://spaces/jinksQspider/FaceMarkPro2/frontend/src/styles/01-base.css
-
curl -L -o 01-base.css https://huggingface.co/spaces/jinksQspider/FaceMarkPro2/resolve/main/frontend/src/styles/01-base.css
21.5 kB
* {
box-sizing: border-box;
font-family: "Roboto", sans-serif;
}
html,
body,
#root {
min-height: 100%;
}
body {
margin: 0;
min-height: 100vh;
transition:
background 0.4s ease,
color 0.4s ease;
}
body.light {
background: linear-gradient(to right, #4facfe, #00f2fe);
color: #111827;
}
body.dark {
background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
color: #f8fafc;
}
:root {
--ui-bg: #f5f7fb;
--ui-card: #ffffff;
--ui-card-muted: #f8fafc;
--ui-border: #e2e8f0;
--ui-text: #1f2937;
--ui-text-muted: #64748b;
--ui-sidebar-bg: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
--ui-sidebar-shadow: 2px 0 20px rgba(0, 0, 0, 0.06);
--ui-input-bg: #ffffff;
--motion-fast: 160ms cubic-bezier(0.22, 1, 0.36, 1);
--motion-base: 240ms cubic-bezier(0.22, 1, 0.36, 1);
--motion-slow: 420ms cubic-bezier(0.22, 1, 0.36, 1);
--motion-bounce: 420ms cubic-bezier(0.2, 0.85, 0.24, 1.08);
}
body.light {
--ui-bg: #f5f7fb;
--ui-card: #ffffff;
--ui-card-muted: #f8fafc;
--ui-border: #e2e8f0;
--ui-text: #1f2937;
--ui-text-muted: #64748b;
--ui-sidebar-bg: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
--ui-sidebar-shadow: 2px 0 20px rgba(0, 0, 0, 0.06);
--ui-input-bg: #ffffff;
}
body.dark {
--ui-bg: #0f172a;
--ui-card: #111827;
--ui-card-muted: #1f2937;
--ui-border: #334155;
--ui-text: #e5e7eb;
--ui-text-muted: #94a3b8;
--ui-sidebar-bg: linear-gradient(160deg, #111827 0%, #1f2937 100%);
--ui-sidebar-shadow: 2px 0 20px rgba(0, 0, 0, 0.35);
--ui-input-bg: #0f172a;
}
a {
color: inherit;
text-decoration: none;
}
button,
input {
font: inherit;
}
img {
max-width: 100%;
display: block;
}
#root {
min-height: 100vh;
}
.portal-shell {
min-height: 100vh;
display: flex;
background: var(--ui-bg);
color: var(--ui-text);
}
.portal-shell.faculty {
background: var(--ui-bg);
}
.portal-shell.admin {
background: var(--ui-bg);
}
.portal-shell.student {
background: var(--ui-bg);
}
.portal-shell {
overflow-x: hidden;
}
.portal-sidebar {
width: 306px;
padding: 22px 18px 26px;
position: fixed;
inset: 0 auto 0 0;
z-index: 1200;
overflow: hidden;
display: flex;
flex-direction: column;
gap: 18px;
box-shadow: var(--ui-sidebar-shadow);
}
.portal-shell.admin .portal-sidebar,
.portal-shell.faculty .portal-sidebar {
background: var(--ui-sidebar-bg);
}
.portal-shell.student .portal-sidebar {
background: var(--ui-sidebar-bg);
color: var(--ui-text);
}
.sidebar-brand,
.profile-section {
display: flex;
gap: 12px;
align-items: center;
}
.sidebar-brand {
padding: 14px 10px 16px;
border-bottom: 1px solid rgba(148, 163, 184, 0.2);
margin-bottom: 2px;
gap: 10px;
}
.sidebar-logo-img {
width: 42px;
height: 42px;
object-fit: contain;
display: block;
flex-shrink: 0;
}
.sidebar-brand-text {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.sidebar-brand-name {
font-size: 18px;
font-weight: 800;
color: #1565c0;
letter-spacing: -0.3px;
line-height: 1.1;
white-space: nowrap;
}
body.dark .sidebar-brand-name {
color: #60a5fa;
}
.sidebar-brand-tagline {
font-size: 11px;
color: #64748b;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
body.dark .sidebar-brand-tagline {
color: #94a3b8;
}
.brand-mark,
.profile-photo {
width: 52px;
height: 52px;
display: grid;
place-items: center;
border-radius: 16px;
font-weight: 700;
}
.brand-mark {
background: linear-gradient(135deg, #f8fbff, #e6f0ff);
color: #1976d2;
border: 1px solid rgba(59, 130, 246, 0.18);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
body.dark .brand-mark {
background: linear-gradient(135deg, #151c2b, #273451);
color: #60a5fa;
border: 1px solid rgba(96, 165, 250, 0.25);
box-shadow: inset 0 1px 0 rgba(96, 165, 250, 0.1);
}
.profile-photo {
width: 74px;
height: 74px;
border-radius: 50%;
background: radial-gradient(circle at 35% 30%, #6a3f2c, #22130d 72%);
color: #f9d39c;
font-size: 24px;
flex-shrink: 0;
box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
}
.profile-photo img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 50%;
display: block;
}
.portal-shell.student .profile-photo {
background: rgba(25, 118, 210, 0.1);
}
.brand-title {
display: flex;
gap: 2px;
font-weight: 900;
font-size: 18px;
color: var(--ui-text);
}
.brand-title .accent {
color: #4facfe;
}
body.dark .brand-title .accent {
color: #60a5fa;
}
.brand-subtitle,
.profile-copy p {
margin: 4px 0 0;
font-size: 12px;
opacity: 0.72;
}
.brand-subtitle {
color: var(--ui-text-muted);
font-weight: 500;
}
.profile-copy h5 {
margin: 0;
font-size: 16px;
font-weight: 700;
color: var(--ui-text);
}
.profile-copy p {
color: var(--ui-text-muted);
font-size: 12px;
font-weight: 500;
}
.profile-section {
margin: 2px 2px 12px;
padding: 16px 12px 18px;
border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}
.profile-section.profile-trigger {
cursor: pointer;
border-radius: 14px;
transition: background 0.2s ease;
}
.profile-section.profile-trigger:hover {
background: rgba(79, 172, 254, 0.08);
}
.profile-dropdown {
margin: -6px 2px 12px;
padding: 8px;
border-radius: 12px;
border: 1px solid var(--ui-border);
background: var(--ui-card);
display: flex;
flex-direction: column;
gap: 6px;
}
.profile-dropdown-link {
display: block;
padding: 10px 12px;
border-radius: 10px;
font-weight: 600;
color: var(--ui-text);
}
.profile-dropdown-link:hover {
background: rgba(79, 172, 254, 0.12);
}
.nav-links {
display: flex;
flex: 1 1 auto;
min-height: 0;
flex-direction: column;
gap: 8px;
overflow-y: auto;
padding-right: 4px;
scrollbar-gutter: stable;
}
.page-loading {
min-height: 100vh;
display: grid;
place-items: center;
color: var(--ui-text);
font-weight: 600;
}
.page-loading-shell {
width: min(420px, calc(100vw - 40px));
padding: 28px 24px;
border-radius: 20px;
background: var(--ui-card);
box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
display: grid;
gap: 14px;
}
.portal-loading-screen {
min-height: 100vh;
background: var(--ui-bg);
}
.portal-sidebar-skeleton,
.portal-main-skeleton {
pointer-events: none;
}
.portal-skeleton-copy {
display: grid;
gap: 10px;
flex: 1;
min-width: 0;
}
.portal-skeleton-fill {
width: 100%;
height: 100%;
border-radius: inherit;
}
.portal-skeleton-square,
.portal-skeleton-avatar,
.portal-skeleton-icon {
overflow: hidden;
}
.portal-skeleton-nav {
padding-right: 0;
}
.portal-skeleton-nav-item {
background: transparent;
box-shadow: none;
}
.portal-skeleton-nav-item.active {
background: linear-gradient(135deg, rgba(77, 152, 219, 0.2) 0%, rgba(45, 126, 210, 0.18) 100%);
}
.portal-skeleton-nav-item .skeleton-line {
width: 72%;
}
.portal-skeleton-nav-item.active .skeleton-line {
width: 56%;
}
.portal-skeleton-footer {
align-items: center;
}
.portal-skeleton-logout {
width: 132px;
height: 48px;
border-radius: 16px;
}
.portal-skeleton-toggle {
width: 66px;
height: 36px;
border-radius: 999px;
}
.portal-skeleton-header {
margin-bottom: 20px;
}
.portal-skeleton-heading {
align-items: center;
}
.portal-skeleton-page-title {
width: min(340px, 42vw);
height: 30px;
margin-bottom: 10px;
}
.portal-skeleton-page-subtitle {
width: min(520px, 56vw);
height: 16px;
}
.portal-skeleton-header-action {
width: 146px;
height: 42px;
border-radius: 12px;
}
.portal-skeleton-dashboard {
display: grid;
gap: 20px;
}
.portal-skeleton-grid {
display: grid;
gap: 20px;
}
.portal-skeleton-grid.top {
grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
}
.portal-skeleton-column {
display: grid;
gap: 20px;
}
.portal-skeleton-grid.compact {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
}
.portal-skeleton-grid.middle {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.portal-skeleton-grid.bottom {
grid-template-columns: 1.05fr 0.8fr 1fr;
}
.portal-skeleton-card {
min-width: 0;
}
.portal-skeleton-card.wide {
min-height: 322px;
}
.portal-skeleton-card.compact {
min-height: 152px;
}
.portal-skeleton-widget-bar {
width: 100%;
height: 20px;
border-radius: 999px;
}
.portal-skeleton-timetable {
width: 100%;
min-height: 220px;
border-radius: 18px;
}
.portal-skeleton-hero-card {
width: 100%;
min-height: 96px;
border-radius: 18px;
}
.portal-skeleton-chart-tall {
height: 250px;
}
.portal-skeleton-chart-medium {
height: 210px;
}
.portal-skeleton-calendar {
width: 100%;
min-height: 180px;
border-radius: 18px;
}
.skeleton-block,
.skeleton-line,
.skeleton-input,
.skeleton-chart,
.skeleton-table-bars,
.portal-skeleton-timetable,
.portal-skeleton-hero-card,
.portal-skeleton-widget-bar,
.portal-skeleton-header-action,
.portal-skeleton-logout,
.portal-skeleton-toggle,
.portal-skeleton-calendar {
position: relative;
overflow: hidden;
background: linear-gradient(90deg, #e9eef6 0%, #f7f9fc 50%, #e9eef6 100%);
background-size: 200% 100%;
animation: skeletonShimmer 1.3s linear infinite;
}
body.dark .page-loading-shell,
body.dark .dashboard-skeleton-card {
background: #111827;
border-color: #334155;
box-shadow: 0 20px 40px rgba(2, 6, 23, 0.34);
}
body.dark .skeleton-block,
body.dark .skeleton-line,
body.dark .skeleton-input,
body.dark .skeleton-chart,
body.dark .skeleton-table-bars,
body.dark .portal-skeleton-timetable,
body.dark .portal-skeleton-hero-card,
body.dark .portal-skeleton-widget-bar,
body.dark .portal-skeleton-header-action,
body.dark .portal-skeleton-logout,
body.dark .portal-skeleton-toggle,
body.dark .portal-skeleton-calendar {
background: linear-gradient(90deg, #1e293b 0%, #334155 50%, #1e293b 100%);
background-size: 200% 100%;
}
.skeleton-line {
height: 14px;
border-radius: 999px;
}
.skeleton-title {
height: 20px;
width: 58%;
}
.skeleton-text {
width: 86%;
}
.skeleton-line.short,
.skeleton-title.short {
width: 36%;
}
.skeleton-input {
width: 100%;
height: 42px;
border-radius: 12px;
}
.skeleton-label {
width: 42%;
height: 12px;
}
.skeleton-chart {
width: 100%;
height: 150px;
border-radius: 16px;
}
.skeleton-cell-head {
width: 80%;
height: 12px;
}
.skeleton-cell {
width: 100%;
height: 12px;
}
.skeleton-table-wrap,
.skeleton-table {
width: 100%;
}
.table-skeleton-grid {
display: grid;
gap: 10px;
}
.table-skeleton-row {
display: grid;
gap: 12px;
align-items: center;
}
.table-skeleton-row-head {
margin-bottom: 2px;
}
.table-skeleton-cell {
min-width: 0;
}
.skeleton-filter-item {
pointer-events: none;
}
.dashboard-skeleton {
margin-bottom: 18px;
}
.dashboard-skeleton-stats {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 16px;
margin-bottom: 16px;
}
.dashboard-skeleton.student .dashboard-skeleton-grid.student-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
}
.dashboard-skeleton.student .dashboard-skeleton-card.stat {
min-height: 112px;
}
.dashboard-skeleton.student .dashboard-skeleton-card.schedule,
.dashboard-skeleton.student .dashboard-skeleton-card.timetable,
.dashboard-skeleton.student .dashboard-skeleton-card.attendance {
min-height: 220px;
}
.dashboard-skeleton.student .dashboard-skeleton-card.actions,
.dashboard-skeleton.student .dashboard-skeleton-card.summary {
min-height: 176px;
}
.dashboard-skeleton-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
}
.dashboard-skeleton-card {
background: var(--ui-card);
border: 1px solid rgba(148, 163, 184, 0.18);
border-radius: 18px;
padding: 18px;
display: grid;
gap: 12px;
box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}
.dashboard-skeleton-card.hero,
.dashboard-skeleton-card.chart {
min-height: 220px;
}
.dashboard-skeleton-card.side,
.dashboard-skeleton-card.table {
min-height: 180px;
}
.skeleton-table-bars {
height: 12px;
border-radius: 999px;
}
.skeleton-table-bars.short {
width: 65%;
}
@media (max-width: 1024px) {
.dashboard-skeleton-stats {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 768px) {
.dashboard-skeleton.student .dashboard-skeleton-grid.student-grid,
.dashboard-skeleton-grid {
grid-template-columns: 1fr;
}
}
.sidebar-top-action-row {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
gap: 14px;
margin-bottom: 4px;
}
.nav-link {
display: flex;
align-items: center;
gap: 14px;
padding: 14px 18px;
border-radius: 14px;
transition: all 0.25s ease;
font-size: 15px;
font-weight: 500;
}
.nav-icon {
width: 22px;
height: 22px;
border-radius: 8px;
display: inline-grid;
place-items: center;
text-align: center;
opacity: 0.9;
color: #64748b;
font-size: 15px;
font-weight: 700;
flex-shrink: 0;
}
.nav-icon svg {
width: 18px;
height: 18px;
}
.portal-shell.student .nav-link {
color: var(--ui-text);
}
.portal-shell.student .nav-link.active,
.portal-shell.student .nav-link:hover {
background: linear-gradient(135deg, #4d98db 0%, #2d7ed2 100%);
color: #374151;
box-shadow: 0 8px 20px rgba(59, 130, 246, 0.24);
transform: translateX(4px);
}
.portal-shell.admin .nav-link.active,
.portal-shell.faculty .nav-link.active {
background: linear-gradient(135deg, #4d98db 0%, #2d7ed2 100%);
color: #374151;
box-shadow: 0 8px 20px rgba(59, 130, 246, 0.24);
}
.portal-shell.admin .nav-link:hover,
.portal-shell.faculty .nav-link:hover {
background: rgba(79, 172, 254, 0.12);
color: inherit;
transform: translateX(4px);
}
.portal-shell.admin .nav-link.active:hover,
.portal-shell.faculty .nav-link.active:hover {
color: #374151;
background: linear-gradient(135deg, #4d98db 0%, #2d7ed2 100%);
box-shadow: 0 8px 20px rgba(59, 130, 246, 0.24);
transform: translateX(4px);
/* transform: none; */
}
.portal-shell.admin .nav-link.active .nav-icon,
.portal-shell.faculty .nav-link.active .nav-icon,
.portal-shell.student .nav-link.active .nav-icon {
color: #fff;
}
.portal-shell.faculty .nav-links {
position: relative;
padding: 10px 6px 0;
}
.portal-shell.student .nav-links {
position: relative;
padding: 10px 6px 0;
}
.portal-shell.faculty .nav-link {
padding: 13px 16px;
color: var(--ui-text);
font-weight: 500;
}
.portal-shell.student .nav-link {
padding: 13px 16px;
color: var(--ui-text);
font-weight: 500;
}
.portal-shell.faculty .nav-link:not(.active) {
background: transparent;
box-shadow: none;
}
.portal-shell.faculty .nav-link:not(.active):hover {
background: rgba(79, 172, 254, 0.08);
color: var(--ui-text);
transform: translateX(2px);
}
.nav-section-divider {
height: 1px;
background: rgba(148, 163, 184, 0.22);
margin: 8px 4px 6px;
border-radius: 999px;
}
.nav-link-dashboard {
opacity: 0.82;
font-size: 14px !important;
}
.nav-link-dashboard:hover,
.nav-link-dashboard.active {
opacity: 1;
}
.sidebar-footer {
margin-top: auto;
}
.sidebar-footer-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 16px 4px 2px;
border-top: 1px solid rgba(148, 163, 184, 0.24);
}
.logout-link {
justify-content: center;
background: linear-gradient(135deg, #ff4b4b, #df2d2d) !important;
color: #fff !important;
box-shadow: 0 8px 20px rgba(220, 38, 38, 0.22);
min-width: 130px;
}
.logout-link .nav-icon {
color: #fff;
}
.sidebar-mini-switch {
width: 66px;
height: 36px;
border-radius: 999px;
border: 0;
background: #d1d5db;
position: relative;
cursor: pointer;
flex-shrink: 0;
}
.sidebar-mini-switch span {
position: absolute;
top: 4px;
left: 4px;
width: 28px;
height: 28px;
border-radius: 50%;
background: #fff;
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.sidebar-mini-switch.is-dark {
background: #475569;
}
.sidebar-mini-switch.is-dark span {
left: calc(100% - 32px);
background: #111827;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.portal-main {
flex: 1;
margin-left: 306px;
width: calc(100% - 306px);
padding-left: 0;
padding: 14px 18px 24px;
color: var(--ui-text);
}
.page-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 16px;
margin-bottom: 24px;
}
.page-heading {
display: flex;
gap: 14px;
align-items: flex-start;
}
.page-heading h1 {
margin: 0;
font-size: 30px;
}
.page-heading p {
margin: 6px 0 0;
color: var(--ui-text-muted);
}
.page-actions {
display: flex;
align-items: center;
gap: 12px;
}
.sidebar-toggle {
display: none;
width: 42px;
height: 42px;
border: 1px solid var(--ui-border);
border-radius: 12px;
background: var(--ui-card);
cursor: pointer;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 20px;
margin-bottom: 24px;
}
.stat-card {
background: var(--ui-card);
border-radius: 18px;
padding: 24px;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.stat-copy {
display: flex;
flex-direction: column;
gap: 4px;
}
.stat-copy strong {
font-size: 30px;
}
.stat-copy span {
color: var(--ui-text-muted);
font-size: 14px;
}
.stat-icon {
width: 56px;
height: 56px;
border-radius: 16px;
display: inline-flex;
align-items: center;
justify-content: center;
color: rgba(255, 255, 255, 0.9);
}
.stat-icon svg {
width: 22px;
height: 22px;
}
.tone-blue {
background: rgba(79, 172, 254, 0.16);
}
.tone-green {
background: rgba(16, 185, 129, 0.16);
}
.tone-purple {
background: rgba(108, 92, 231, 0.16);
}
.tone-amber {
background: rgba(255, 152, 0, 0.18);
}
.tone-cyan {
background: rgba(23, 162, 184, 0.16);
}
.content-grid {
display: grid;
gap: 24px;
}
.content-grid.two {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.content-grid.faculty-grid {
grid-template-columns: 1.1fr 0.9fr;
}
.content-card {
background: var(--ui-card);
border-radius: 18px;
padding: 24px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
min-width: 0;
}
.content-card.wide {
grid-column: 1 / -1;
}
.section-head {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
margin-bottom: 18px;
}
.section-head h3 {
margin: 0;
font-size: 20px;
}
.muted-copy {
margin: 0;
color: var(--ui-text-muted);
}
.timeline-list {
display: flex;
flex-direction: column;
gap: 18px;
}
.timeline-item {
border-left: 2px solid var(--ui-border);
padding-left: 16px;
display: flex;
flex-direction: column;
gap: 4px;
}
.timeline-time {
color: var(--ui-text-muted);
font-size: 13px;
}
.table-wrap {
overflow: auto;
width: 100%;
max-width: 100%;
min-width: 0;
}
.simple-table,
.matrix-table {
width: 100%;
border-collapse: collapse;
min-width: 0;
table-layout: fixed;
}
.simple-table th,
.simple-table td,
.matrix-table th,
.matrix-table td {
padding: clamp(6px, 1.2vw, 12px) clamp(6px, 1.4vw, 14px);
border-bottom: 1px solid #edf2f7;
text-align: left;
font-size: clamp(10px, 1vw, 14px);
word-break: break-word;
overflow-wrap: anywhere;
vertical-align: middle;
}
.simple-table th,
.matrix-table th {
color: #64748b;
background: #f8fafc;
font-weight: 600;
}
.matrix-table .day-cell {
font-weight: 700;
background: #f4f6fa;
}
.slot-cell {
border-radius: 10px;
}
.faculty-slot {
background: #eef7ff;
}
.timetable.faculty td:not(.day-cell) {
text-align: center;
}
.matrix-table.timetable.dashboard {
table-layout: fixed;
font-size: 12px;
}
.matrix-table.timetable.dashboard th,
.matrix-table.timetable.dashboard td {
padding: 4px 6px;
text-align: center;
height: clamp(44px, 7vw, 66px);
}
.matrix-table.timetable.dashboard thead th {
font-size: clamp(10px, 1vw, 13px);
font-weight: 700;
white-space: nowrap;
}
.matrix-table.timetable.dashboard .day-cell {
width: clamp(52px, 10%, 74px);
min-width: 52px;
font-size: clamp(10px, 1vw, 12px);
font-weight: 700;
white-space: nowrap;
}
.badge {
display: inline-flex;
padding: 6px 12px;
border-radius: 999px;
font-size: 12px;
font-weight: 700;
}
.badge.present {
background: rgba(40, 167, 69, 0.12);
color: #1f8f44;
}
.badge.absent {
background: rgba(220, 53, 69, 0.12);
color: #d83a4f;
}
.profile-fields {
display: flex;
flex-direction: column;
gap: 14px;
}
.field-row {
display: flex;
justify-content: space-between;
gap: 20px;
border-bottom: 1px solid #eef2f7;
padding-bottom: 10px;
}
.field-row span {
color: #64748b;
}
.settings-form {
display: flex;
flex-direction: column;
gap: 18px;
}
.field-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
}
.field-label {
display: flex;
flex-direction: column;
gap: 8px;
color: #475569;
}
.field-label input {
width: 100%;
border: 1px solid #dbe4ee;
border-radius: 12px;
padding: 12px 14px;
background: #fff;
}
.primary-btn,
.submit-btn {
background: linear-gradient(135deg, #4facfe, #00c6fb);
color: #fff;
border: 0;
border-radius: 12px;
padding: 12px 18px;
cursor: pointer;
box-shadow: 0 10px 24px rgba(79, 172, 254, 0.22);
}
.submit-btn:disabled {
opacity: 0.72;
cursor: not-allowed;
}
.camera-box {
min-height: 260px;
border-radius: 18px;
border: 2px dashed rgba(79, 172, 254, 0.45);
background: linear-gradient(
135deg,
rgba(79, 172, 254, 0.08),
rgba(0, 198, 251, 0.12)
);
display: grid;
place-items: center;
color: #2563eb;
font-weight: 600;
}
* {
box-sizing: border-box;
font-family: "Roboto", sans-serif;
}
html,
body,
#root {
min-height: 100%;
}
body {
margin: 0;
min-height: 100vh;
transition:
background 0.4s ease,
color 0.4s ease;
}
body.light {
background: linear-gradient(to right, #4facfe, #00f2fe);
color: #111827;
}
body.dark {
background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
color: #f8fafc;
}
:root {
--ui-bg: #f5f7fb;
--ui-card: #ffffff;
--ui-card-muted: #f8fafc;
--ui-border: #e2e8f0;
--ui-text: #1f2937;
--ui-text-muted: #64748b;
--ui-sidebar-bg: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
--ui-sidebar-shadow: 2px 0 20px rgba(0, 0, 0, 0.06);
--ui-input-bg: #ffffff;
--motion-fast: 160ms cubic-bezier(0.22, 1, 0.36, 1);
--motion-base: 240ms cubic-bezier(0.22, 1, 0.36, 1);
--motion-slow: 420ms cubic-bezier(0.22, 1, 0.36, 1);
--motion-bounce: 420ms cubic-bezier(0.2, 0.85, 0.24, 1.08);
}
body.light {
--ui-bg: #f5f7fb;
--ui-card: #ffffff;
--ui-card-muted: #f8fafc;
--ui-border: #e2e8f0;
--ui-text: #1f2937;
--ui-text-muted: #64748b;
--ui-sidebar-bg: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
--ui-sidebar-shadow: 2px 0 20px rgba(0, 0, 0, 0.06);
--ui-input-bg: #ffffff;
}
body.dark {
--ui-bg: #0f172a;
--ui-card: #111827;
--ui-card-muted: #1f2937;
--ui-border: #334155;
--ui-text: #e5e7eb;
--ui-text-muted: #94a3b8;
--ui-sidebar-bg: linear-gradient(160deg, #111827 0%, #1f2937 100%);
--ui-sidebar-shadow: 2px 0 20px rgba(0, 0, 0, 0.35);
--ui-input-bg: #0f172a;
}
a {
color: inherit;
text-decoration: none;
}
button,
input {
font: inherit;
}
img {
max-width: 100%;
display: block;
}
#root {
min-height: 100vh;
}
.portal-shell {
min-height: 100vh;
display: flex;
background: var(--ui-bg);
color: var(--ui-text);
}
.portal-shell.faculty {
background: var(--ui-bg);
}
.portal-shell.admin {
background: var(--ui-bg);
}
.portal-shell.student {
background: var(--ui-bg);
}
.portal-shell {
overflow-x: hidden;
}