/* =========================================================================== Design system v3 — "Aurora Campus" Dark-first, refined glassmorphism (subtle blur + gradient borders, not the heavy frosted look), bento-grid layout utilities for dashboard/home. =========================================================================== */ :root { /* Surfaces -- deep charcoal-navy, never pure black */ --bg: #0a0b12; --bg-elevated: #0e0f1a; --surface: rgba(22, 24, 38, 0.65); --surface-solid: #14151f; --surface-hover: rgba(30, 33, 50, 0.8); --border: rgba(255, 255, 255, 0.08); --border-strong: rgba(255, 255, 255, 0.16); /* Text */ --text: #f1f2f8; --text-muted: #9297b0; --text-faint: #5c6180; /* Aurora brand gradient -- violet through fuchsia to amber */ --aurora-1: #8b5cf6; --aurora-2: #ec4899; --aurora-3: #f59e0b; --aurora-gradient: linear-gradient(120deg, var(--aurora-1) 0%, var(--aurora-2) 55%, var(--aurora-3) 100%); --aurora-gradient-soft: linear-gradient(120deg, rgba(139,92,246,0.16) 0%, rgba(236,72,153,0.14) 55%, rgba(245,158,11,0.12) 100%); --accent: #a78bfa; --accent-soft: rgba(167, 139, 250, 0.14); /* Location / geofence semantic color -- distinct from the brand gradient */ --geo: #2dd4bf; --geo-soft: rgba(45, 212, 191, 0.14); /* Status */ --success: #34d399; --success-bg: rgba(52, 211, 153, 0.12); --danger: #fb7185; --danger-bg: rgba(251, 113, 133, 0.12); --warning: #fbbf24; --warning-bg: rgba(251, 191, 36, 0.12); /* Geometry */ --radius-sm: 10px; --radius-md: 16px; --radius-lg: 22px; --radius-xl: 28px; --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.55); --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.65); --blur: blur(20px); /* Light theme variables */ --light-bg: #ffffff; --light-bg-elevated: #f8fafc; --light-surface: rgba(255, 255, 255, 0.85); --light-surface-solid: #ffffff; --light-surface-hover: rgba(241, 245, 249, 0.8); --light-border: rgba(0, 0, 0, 0.08); --light-border-strong: rgba(0, 0, 0, 0.16); --light-text: #0f172a; --light-text-muted: #64748b; --light-text-faint: #94a3b8; --light-success: #10b981; --light-success-bg: rgba(16, 185, 129, 0.12); --light-danger: #ef4444; --light-danger-bg: rgba(239, 68, 68, 0.12); --light-warning: #f59e0b; --light-warning-bg: rgba(245, 158, 11, 0.12); /* Fonts */ --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; } /* Light theme overrides */ [data-theme="light"] { /* Surfaces */ --bg: var(--light-bg); --bg-elevated: var(--light-bg-elevated); --surface: var(--light-surface); --surface-solid: var(--light-surface-solid); --surface-hover: var(--light-surface-hover); --border: var(--light-border); --border-strong: var(--light-border-strong); /* Text */ --text: var(--light-text); --text-muted: var(--light-text-muted); --text-faint: var(--light-text-faint); /* Status */ --success: var(--light-success); --success-bg: var(--light-success-bg); --danger: var(--light-danger); --danger-bg: var(--light-danger-bg); --warning: var(--light-warning); --warning-bg: var(--light-warning-bg); } * { box-sizing: border-box; } html, body { margin: 0; padding: 0; } body { background: var(--bg); background-image: radial-gradient(ellipse 900px 500px at 10% -10%, rgba(139, 92, 246, 0.16), transparent 60%), radial-gradient(ellipse 700px 500px at 100% 0%, rgba(236, 72, 153, 0.10), transparent 55%), radial-gradient(ellipse 800px 600px at 50% 100%, rgba(245, 158, 11, 0.06), transparent 60%); background-attachment: fixed; color: var(--text); font-family: var(--font-body); line-height: 1.6; min-height: 100vh; font-feature-settings: "liga" 1, "calt" 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* Light theme background removal */ [data-theme="light"] body { background: var(--light-bg); background-image: none; } h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; } h1 { font-size: 2rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1rem; color: var(--text-muted); font-weight: 500; } p { color: var(--text-muted); margin: 0 0 12px; } a { color: var(--aurora-1); text-decoration: none; } a:hover { text-decoration: underline; } small { color: var(--text-faint); } .text-gradient { background: var(--aurora-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; } /* --------------------------------------------------------------------- Layout --------------------------------------------------------------------- */ .navbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; background: rgba(10, 11, 18, 0.75); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 12px; } .navbar .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text); } /* Theme toggle button */ .theme-toggle-btn { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 8px; margin-left: 12px; transition: all 0.2s ease; } .theme-toggle-btn:hover { background: var(--surface-hover); transform: translateY(-2px); } .theme-icon { width: 20px; height: 20px; } .sun-icon { display: inline; } .moon-icon { display: none; } /* For light theme, swap the icon visibility */ [data-theme="light"] .sun-icon { display: none; } [data-theme="light"] .moon-icon { display: inline; } /* Light theme navbar */ [data-theme="light"] .navbar { background: rgba(255, 255, 255, 0.75); border-bottom: 1px solid var(--border); } /* Global loader overlay */ .loader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg); background-image: radial-gradient(ellipse 900px 500px at 10% -10%, rgba(139, 92, 246, 0.16), transparent 60%), radial-gradient(ellipse 700px 500px at 100% 0%, rgba(236, 72, 153, 0.10), transparent 55%), radial-gradient(ellipse 800px 600px at 50% 100%, rgba(245, 158, 11, 0.06), transparent 60%); display: flex; align-items: center; justify-content: center; z-index: 9999; flex-direction: column; gap: 16px; } [data-theme="light"] .loader-overlay { background: var(--bg); background-image: none; } .loader-spinner { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--text); padding: 32px; background: var(--surface); border-radius: var(--radius-lg); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--border); box-shadow: var(--shadow-lg); } .loader-icon { width: 32px; height: 32px; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; } .nav-links a { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.86rem; font-weight: 500; padding: 8px 12px; border-radius: var(--radius-sm); transition: background 0.15s, color 0.15s; text-decoration: none; } .nav-links a:hover { background: var(--surface-hover); color: var(--text); text-decoration: none; } .nav-links a.active { background: var(--aurora-gradient-soft); color: #fff; } .nav-links a svg { width: 15px; height: 15px; } .container { max-width: 1000px; margin: 0 auto; padding: 32px 24px 80px; } .container-wide { max-width: 1240px; } .page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; } .page-header p { margin: 0; } .page-header .actions { display: flex; gap: 10px; flex-wrap: wrap; } /* --------------------------------------------------------------------- Glass cards --------------------------------------------------------------------- */ .glass { background: var(--surface); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); } .card { padding: 22px; } .card.glass { background: var(--surface); } /* subtle gradient-border treatment for hero/emphasis cards */ .glow-border { position: relative; } .glow-border::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--aurora-gradient); opacity: 0.5; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; } /* --------------------------------------------------------------------- Bento grid --------------------------------------------------------------------- */ .bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-bottom: 16px; } .bento-tile { grid-column: span 12; background: var(--surface); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-md); position: relative; overflow: hidden; transition: transform 0.18s ease, border-color 0.18s ease; } .bento-tile:hover { transform: translateY(-2px); border-color: var(--border-strong); } /* span helpers -- desktop (12-col); collapse to full width under 860px */ .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-9 { grid-column: span 9; } .span-12 { grid-column: span 12; } .row-2 { grid-row: span 2; } .bento-hero { background: var(--aurora-gradient); color: #fff; border: none; } .bento-hero .stat-label { color: rgba(255,255,255,0.85); } .bento-hero .stat-value { color: #fff; } .bento-hero p { color: rgba(255,255,255,0.85); } .stat-label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint); margin-bottom: 8px; font-weight: 600; } .stat-value { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--text); line-height: 1.1; } .stat-sub { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; } .tile-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; } .bento-hero .tile-icon { background: rgba(255,255,255,0.2); color: #fff; } .action-tile { display: block; text-decoration: none; cursor: pointer; } .action-tile h3 { color: var(--text); font-size: 1.02rem; margin-bottom: 4px; } .action-tile p { font-size: 0.85rem; margin: 0; } .bento-hero.action-tile:hover { text-decoration: none; } @media (max-width: 860px) { .bento-tile { grid-column: span 12 !important; } } /* --------------------------------------------------------------------- Buttons --------------------------------------------------------------------- */ button, .btn { font-family: var(--font-body); cursor: pointer; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-hover); color: var(--text); padding: 10px 16px; font-size: 0.86rem; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: transform 0.1s, filter 0.15s, background 0.15s; text-decoration: none; } button:hover, .btn:hover { background: rgba(255,255,255,0.1); text-decoration: none; } button:active, .btn:active { transform: scale(0.98); } button:disabled { opacity: 0.5; cursor: not-allowed; } .btn-primary { background: var(--aurora-gradient); border: none; color: #fff; font-weight: 600; padding: 11px 20px; box-shadow: 0 8px 20px -8px rgba(139, 92, 246, 0.55); } .btn-primary:hover { filter: brightness(1.08); } .btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); } .btn-danger:hover { background: var(--danger-bg); } .btn-geo { background: transparent; border-color: var(--geo); color: var(--geo); } .btn-geo:hover { background: var(--geo-soft); } .btn-block { width: 100%; justify-content: center; } .btn-sm { padding: 6px 12px; font-size: 0.76rem; } /* --------------------------------------------------------------------- Forms --------------------------------------------------------------------- */ form.panel { background: var(--surface); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-md); } label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin: 16px 0 6px; } label:first-of-type { margin-top: 0; } input[type="text"], input[type="password"], input[type="date"], input[type="number"], input[type="file"], select { width: 100%; padding: 11px 13px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 0.9rem; font-family: var(--font-body); } input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } input[type="file"] { padding: 9px; cursor: pointer; } input[type="checkbox"] { width: auto; accent-color: var(--aurora-1); } .field-hint { font-size: 0.76rem; color: var(--text-faint); margin-top: 4px; } .field-row { display: flex; gap: 14px; flex-wrap: wrap; } .field-row > div { flex: 1; min-width: 140px; } .toggle-row { display: flex; align-items: center; gap: 10px; margin: 16px 0; } .toggle-row label { margin: 0; } /* --------------------------------------------------------------------- Toasts --------------------------------------------------------------------- */ #toast-stack { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 360px; } .toast { background: var(--surface-solid); border: 1px solid var(--border-strong); border-left: 3px solid var(--aurora-1); border-radius: var(--radius-sm); padding: 12px 16px; box-shadow: var(--shadow-lg); font-size: 0.85rem; color: var(--text); animation: toast-in 0.25s ease-out; } .toast.toast-success { border-left-color: var(--success); } .toast.toast-error { border-left-color: var(--danger); } .toast.toast-warning { border-left-color: var(--warning); } .toast.toast-hide { animation: toast-out 0.2s ease-in forwards; } @keyframes toast-in { from { opacity: 0; transform: translateX(20px);} to { opacity: 1; transform: translateX(0);} } @keyframes toast-out { to { opacity: 0; transform: translateX(20px);} } /* --------------------------------------------------------------------- Webcam / capture UI --------------------------------------------------------------------- */ .capture-frame { position: relative; width: 100%; max-width: 500px; border-radius: var(--radius-md); overflow: hidden; background: #000; border: 1px solid var(--border-strong); } .capture-frame video, .capture-frame img.preview { width: 100%; display: block; } .capture-guide { position: absolute; inset: 10%; border: 2px dashed rgba(255,255,255,0.35); border-radius: 50% / 40%; pointer-events: none; } /* Face detection status */ .face-status { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; padding: 8px; background: rgba(0, 0, 0, 0.6); color: white; font-size: 0.9rem; z-index: 10; } .face-status-detected { background: rgba(34, 197, 94, 0.8) !important; color: white !important; } .face-status-not-detected { background: rgba(0, 0, 0, 0.6) !important; } .capture-controls { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; } .thumbnails { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } .thumb { width: 62px; height: 62px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); } .progress-dots { display: flex; gap: 6px; margin: 10px 0; } .progress-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); } .progress-dots .dot.filled { background: var(--aurora-2); } /* --------------------------------------------------------------------- Location status pill (geofence UI) --------------------------------------------------------------------- */ .geo-status { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-md); font-size: 0.85rem; margin: 14px 0; border: 1px solid var(--border); background: rgba(255,255,255,0.03); } .geo-status .geo-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--text-faint); } .geo-status.checking .geo-dot { background: var(--warning); animation: pulse 1.2s infinite; } .geo-status.ok .geo-dot { background: var(--geo); } .geo-status.fail .geo-dot { background: var(--danger); } .geo-status.ok { border-color: rgba(45, 212, 191, 0.3); background: var(--geo-soft); } .geo-status.fail { border-color: rgba(251, 113, 133, 0.3); background: var(--danger-bg); } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } } /* --------------------------------------------------------------------- Attendance result card --------------------------------------------------------------------- */ .result-card { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: var(--radius-lg); margin-bottom: 22px; border: 1px solid var(--border); } .result-card.ok { background: var(--success-bg); border-color: rgba(52,211,153,0.35); } .result-card.fail { background: var(--danger-bg); border-color: rgba(251,113,133,0.35); } .result-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.2); flex-shrink: 0; } .result-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .result-card.ok .result-icon { background: rgba(52,211,153,0.2); color: var(--success); } .result-card.fail .result-icon { background: rgba(251,113,133,0.2); color: var(--danger); } .result-text p { margin: 0; color: var(--text); font-weight: 500; } .result-text small { color: var(--text-muted); } .confidence-meter { margin-top: 8px; height: 6px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; width: 180px; } .confidence-meter-fill { height: 100%; background: var(--aurora-gradient); border-radius: 4px; transition: width 0.6s ease-out; } /* --------------------------------------------------------------------- Tables --------------------------------------------------------------------- */ .table-wrap { background: var(--surface); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); } table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 12px 18px; font-size: 0.85rem; border-bottom: 1px solid var(--border); } th { background: rgba(255,255,255,0.03); color: var(--text-faint); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; } tr:last-child td { border-bottom: none; } tbody tr:hover { background: rgba(255,255,255,0.03); } .empty-state { text-align: center; color: var(--text-faint); padding: 40px 20px; } .pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; } .pill-geo-ok { background: var(--geo-soft); color: var(--geo); } .pill-geo-fail { background: var(--danger-bg); color: var(--danger); } .pill-geo-off { background: rgba(255,255,255,0.06); color: var(--text-faint); } /* --------------------------------------------------------------------- Filter bar --------------------------------------------------------------------- */ .filter-bar { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; background: var(--surface); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; } .filter-bar > div { min-width: 160px; } .filter-bar label { margin: 0 0 6px; } /* --------------------------------------------------------------------- Roster grid --------------------------------------------------------------------- */ .roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; } .roster-card { background: var(--surface); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; text-align: center; transition: transform 0.15s ease; } .roster-card:hover { transform: translateY(-2px); } .roster-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 2px solid var(--border-strong); display: block; } .roster-avatar-fallback { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 12px; background: var(--aurora-gradient); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: #fff; } .roster-card h3 { color: var(--text); font-size: 0.94rem; margin: 0 0 2px; } .roster-card .roster-id { font-size: 0.76rem; color: var(--text-faint); margin-bottom: 10px; } .badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; background: var(--accent-soft); color: var(--accent); margin-bottom: 10px; } /* --------------------------------------------------------------------- Login page --------------------------------------------------------------------- */ .login-wrap { max-width: 380px; margin: 12vh auto; padding: 0 20px; } .login-wrap .card-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--aurora-gradient); display: flex; align-items: center; justify-content: center; color: #fff; margin: 0 auto 18px; } .login-wrap h1 { text-align: center; font-size: 1.4rem; } .login-wrap p.subtitle { text-align: center; margin-bottom: 24px; } /* --------------------------------------------------------------------- Chart / map containers --------------------------------------------------------------------- */ .chart-card canvas { max-height: 220px; } #campus-map { height: 340px; border-radius: var(--radius-md); border: 1px solid var(--border); margin: 12px 0; z-index: 1; } .leaflet-container { background: #14151f !important; } /* --------------------------------------------------------------------- Misc --------------------------------------------------------------------- */ .text-center { text-align: center; } .mt-24 { margin-top: 24px; } .flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } footer.app-footer { text-align: center; color: var(--text-faint); font-size: 0.76rem; padding: 30px 20px 10px; } @media (max-width: 640px) { .navbar { padding: 12px 16px; } .container { padding: 20px 16px 60px; } .result-card { flex-direction: column; text-align: center; } .confidence-meter { margin: 8px auto 0; } }