/* ======================================== ATTENDAI PRO - Main Stylesheet Production-Ready Attendance System ======================================== */ :root { --primary: #4F46E5; --primary-dark: #3730A3; --primary-light: #818CF8; --secondary: #06B6D4; --success: #10B981; --danger: #EF4444; --warning: #F59E0B; --info: #3B82F6; --dark: #0F172A; --dark-2: #1E293B; --dark-3: #334155; --gray: #64748B; --gray-light: #94A3B8; --border: #E2E8F0; --bg: #F8FAFC; --bg-card: #FFFFFF; --text: #1E293B; --text-light: #64748B; --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06); --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25); --radius-sm: 6px; --radius: 12px; --radius-lg: 16px; --radius-xl: 24px; --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; } *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; } body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 15px; min-height: 100vh; -webkit-font-smoothing: antialiased; } /* ---- Typography ---- */ h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--text); } h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); } h2 { font-size: clamp(1.4rem, 3vw, 2rem); } h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); } p { color: var(--text-light); } a { color: var(--primary); text-decoration: none; } /* ---- Buttons ---- */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: var(--transition); white-space: nowrap; font-family: var(--font); text-decoration: none; } .btn:disabled { opacity: 0.6; cursor: not-allowed; } .btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 14px rgba(79,70,229,0.35); } .btn-primary:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,70,229,0.45); } .btn-secondary { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); } .btn-secondary:hover:not(:disabled) { background: var(--border); } .btn-success { background: var(--success); color: white; box-shadow: 0 4px 14px rgba(16,185,129,0.3); } .btn-success:hover:not(:disabled) { background: #059669; transform: translateY(-1px); } .btn-danger { background: var(--danger); color: white; box-shadow: 0 4px 14px rgba(239,68,68,0.3); } .btn-danger:hover:not(:disabled) { background: #DC2626; transform: translateY(-1px); } .btn-warning { background: var(--warning); color: white; } .btn-warning:hover:not(:disabled) { background: #D97706; } .btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); } .btn-ghost:hover:not(:disabled) { background: rgba(79,70,229,0.08); } .btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-lg); } .btn-sm { padding: 6px 14px; font-size: 13px; border-radius: var(--radius-sm); } .btn-xl { padding: 16px 36px; font-size: 17px; border-radius: var(--radius-lg); } .btn-icon { padding: 10px; border-radius: 50%; } .btn-full { width: 100%; } .btn-google { background: white; color: #333; border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); font-size: 15px; padding: 13px 24px; border-radius: var(--radius-lg); } .btn-google:hover:not(:disabled) { box-shadow: var(--shadow); transform: translateY(-1px); border-color: #c5c5c5; } .btn-google img { width: 20px; height: 20px; } /* ---- Cards ---- */ .card { background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border); padding: 24px; } .card-hover { transition: var(--transition); cursor: pointer; } .card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); } .card-dark { background: var(--dark-2); border-color: var(--dark-3); color: white; } .card-gradient { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); color: white; border: none; } /* ---- Forms ---- */ .form-group { margin-bottom: 18px; } .form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; } .form-control { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: var(--font); color: var(--text); background: white; transition: var(--transition); outline: none; } .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.12); } .form-control::placeholder { color: var(--gray-light); } .form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748B'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; } /* ---- Badges ---- */ .badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; } .badge-success { background: rgba(16,185,129,0.1); color: var(--success); } .badge-danger { background: rgba(239,68,68,0.1); color: var(--danger); } .badge-warning { background: rgba(245,158,11,0.1); color: var(--warning); } .badge-info { background: rgba(59,130,246,0.1); color: var(--info); } .badge-primary { background: rgba(79,70,229,0.1); color: var(--primary); } .badge-gray { background: rgba(100,116,139,0.1); color: var(--gray); } /* ---- Alerts ---- */ .alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: var(--radius); font-size: 14px; border-left: 4px solid; } .alert-success { background: rgba(16,185,129,0.08); border-color: var(--success); color: #065F46; } .alert-danger { background: rgba(239,68,68,0.08); border-color: var(--danger); color: #991B1B; } .alert-warning { background: rgba(245,158,11,0.08); border-color: var(--warning); color: #92400E; } .alert-info { background: rgba(59,130,246,0.08); border-color: var(--info); color: #1E40AF; } .alert-icon { font-size: 18px; margin-top: 1px; } /* ---- Tables ---- */ .table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); } .table { width: 100%; border-collapse: collapse; font-size: 14px; } .table th { background: var(--bg); padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); } .table td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; } .table tr:last-child td { border-bottom: none; } .table tr:hover td { background: var(--bg); } .table-striped tr:nth-child(even) td { background: rgba(248,250,252,0.7); } /* ---- Stats Grid ---- */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; } .stat-card { background: white; border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); position: relative; overflow: hidden; } .stat-card::before { content: ''; position: absolute; top: 0; right: 0; width: 80px; height: 80px; border-radius: 50%; transform: translate(20px, -20px); opacity: 0.08; } .stat-card.green::before { background: var(--success); } .stat-card.red::before { background: var(--danger); } .stat-card.blue::before { background: var(--info); } .stat-card.purple::before { background: var(--primary); } .stat-card.yellow::before { background: var(--warning); } .stat-value { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; } .stat-label { font-size: 13px; color: var(--gray); font-weight: 500; margin-top: 4px; } .stat-icon { font-size: 1.8rem; margin-bottom: 10px; } /* ---- Progress ---- */ .progress { height: 8px; background: var(--border); border-radius: 20px; overflow: hidden; } .progress-bar { height: 100%; border-radius: 20px; transition: width 0.5s ease; } .progress-bar-success { background: linear-gradient(90deg, var(--success), #34D399); } .progress-bar-danger { background: linear-gradient(90deg, var(--danger), #F87171); } .progress-bar-warning { background: linear-gradient(90deg, var(--warning), #FCD34D); } /* ---- Avatar ---- */ .avatar { border-radius: 50%; object-fit: cover; border: 2px solid var(--border); } .avatar-sm { width: 32px; height: 32px; } .avatar-md { width: 40px; height: 40px; } .avatar-lg { width: 56px; height: 56px; } .avatar-xl { width: 72px; height: 72px; } /* ---- Spinners ---- */ .spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; } .spinner-dark { border-color: rgba(79,70,229,0.2); border-top-color: var(--primary); } @keyframes spin { to { transform: rotate(360deg); } } /* ---- Loading Screen ---- */ .loading-screen { position: fixed; inset: 0; background: var(--dark); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9999; color: white; gap: 20px; } .loading-logo { font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; } .loading-logo span { color: var(--primary-light); } .loading-bar { width: 200px; height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; } .loading-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--secondary)); border-radius: 2px; animation: loadbar 1.5s ease-in-out infinite; } @keyframes loadbar { 0% { width: 0%; } 50% { width: 100%; } 100% { width: 0%; } } /* ---- Empty State ---- */ .empty-state { text-align: center; padding: 60px 20px; } .empty-state-icon { font-size: 4rem; margin-bottom: 16px; opacity: 0.4; } .empty-state h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 8px; } .empty-state p { color: var(--gray); font-size: 14px; max-width: 300px; margin: 0 auto; } /* ---- Modal ---- */ .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; opacity: 0; visibility: hidden; transition: var(--transition); } .modal-overlay.open { opacity: 1; visibility: visible; } .modal { background: white; border-radius: var(--radius-xl); max-width: 500px; width: 100%; box-shadow: var(--shadow-xl); transform: scale(0.95) translateY(10px); transition: var(--transition); max-height: 90vh; overflow-y: auto; } .modal-overlay.open .modal { transform: scale(1) translateY(0); } .modal-header { padding: 24px 24px 0; display: flex; align-items: center; justify-content: space-between; } .modal-header h3 { font-size: 1.1rem; } .modal-body { padding: 20px 24px 24px; } .modal-footer { padding: 0 24px 24px; display: flex; gap: 12px; justify-content: flex-end; } .modal-close { background: none; border: none; cursor: pointer; color: var(--gray); font-size: 20px; padding: 4px; border-radius: 6px; } .modal-close:hover { background: var(--bg); color: var(--text); } /* ---- Sidebar ---- */ .sidebar { width: 260px; background: var(--dark); min-height: 100vh; display: flex; flex-direction: column; position: fixed; left: 0; top: 0; z-index: 100; transition: transform 0.3s ease; } .sidebar-logo { padding: 24px 20px; font-size: 1.3rem; font-weight: 800; color: white; letter-spacing: -0.5px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 10px; } .sidebar-logo .logo-icon { font-size: 1.6rem; } .sidebar-logo span { color: var(--primary-light); } .sidebar-nav { padding: 16px 12px; flex: 1; } .nav-section-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.3); padding: 12px 8px 6px; } .nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius); color: rgba(255,255,255,0.65); font-size: 14px; font-weight: 500; cursor: pointer; transition: var(--transition); margin-bottom: 2px; text-decoration: none; border: none; background: none; width: 100%; text-align: left; } .nav-item:hover { background: rgba(255,255,255,0.08); color: white; } .nav-item.active { background: rgba(79,70,229,0.25); color: white; } .nav-item.active .nav-icon { color: var(--primary-light); } .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; } .sidebar-footer { padding: 16px 12px; border-top: 1px solid rgba(255,255,255,0.08); } .sidebar-user { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: var(--radius); } .sidebar-user-info { flex: 1; min-width: 0; } .sidebar-user-name { font-size: 13px; font-weight: 600; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sidebar-user-role { font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.05em; } /* ---- Main Content ---- */ .main-content { margin-left: 260px; min-height: 100vh; } .topbar { background: white; border-bottom: 1px solid var(--border); padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm); } .topbar-title { font-size: 1.1rem; font-weight: 700; color: var(--text); } .topbar-actions { display: flex; align-items: center; gap: 12px; } .page-content { padding: 28px; } /* ---- QR Code Styles ---- */ .qr-container { text-align: center; padding: 32px; } .qr-code { display: inline-block; padding: 20px; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-bottom: 16px; } .qr-timer { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; color: var(--gray); } .qr-countdown { font-size: 1.8rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; } .qr-countdown.urgent { color: var(--danger); animation: pulse 0.8s ease-in-out infinite; } @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } } /* ---- Camera/Selfie ---- */ .camera-container { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--dark); aspect-ratio: 4/3; max-width: 400px; margin: 0 auto; } .camera-video { width: 100%; height: 100%; object-fit: cover; } .camera-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; } .face-guide { width: 180px; height: 180px; border: 3px solid rgba(255,255,255,0.7); border-radius: 50%; box-shadow: 0 0 0 2000px rgba(0,0,0,0.35); } .face-guide.detected { border-color: var(--success); box-shadow: 0 0 0 2000px rgba(0,0,0,0.35), 0 0 20px rgba(16,185,129,0.5); } .camera-status { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.7); color: white; padding: 6px 16px; border-radius: 20px; font-size: 13px; white-space: nowrap; } /* ---- Live Dot ---- */ .live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--danger); } .live-dot::before { content: ''; width: 8px; height: 8px; background: var(--danger); border-radius: 50%; animation: livePulse 1.5s ease-in-out infinite; } @keyframes livePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } } /* ---- Attendance Roll Cards ---- */ .roll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; } .roll-card { padding: 12px 8px; border-radius: var(--radius); text-align: center; font-weight: 700; font-size: 13px; border: 2px solid transparent; transition: var(--transition); } .roll-card.present { background: rgba(16,185,129,0.1); color: var(--success); border-color: rgba(16,185,129,0.3); } .roll-card.absent { background: rgba(239,68,68,0.1); color: var(--danger); border-color: rgba(239,68,68,0.3); } .roll-card.late { background: rgba(245,158,11,0.1); color: var(--warning); border-color: rgba(245,158,11,0.3); } .roll-card.fraudulent { background: rgba(124,58,237,0.1); color: #7C3AED; border-color: rgba(124,58,237,0.3); } .roll-number { display: block; font-size: 15px; font-weight: 800; } .roll-name { display: block; font-size: 10px; font-weight: 500; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* ---- Fraud Alert ---- */ .fraud-alert-card { background: rgba(239,68,68,0.05); border: 1.5px solid rgba(239,68,68,0.25); border-radius: var(--radius); padding: 14px 18px; display: flex; align-items: flex-start; gap: 12px; animation: alertSlide 0.3s ease; } @keyframes alertSlide { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } } .fraud-alert-icon { font-size: 1.4rem; margin-top: 1px; } .fraud-alert-content h4 { font-size: 13px; font-weight: 700; color: var(--danger); } .fraud-alert-content p { font-size: 12px; color: var(--gray); margin-top: 2px; } /* ---- Chart Container ---- */ .chart-container { position: relative; } .chart-wrapper { min-height: 250px; } /* ---- Toast Notifications ---- */ .toast-container { position: fixed; top: 20px; right: 20px; z-index: 9000; display: flex; flex-direction: column; gap: 10px; max-width: 360px; } .toast { background: white; border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-lg); border-left: 4px solid; display: flex; align-items: flex-start; gap: 12px; animation: toastIn 0.3s ease; font-size: 14px; max-width: 360px; } @keyframes toastIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } } .toast.success { border-color: var(--success); } .toast.error { border-color: var(--danger); } .toast.warning { border-color: var(--warning); } .toast.info { border-color: var(--info); } .toast-close { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--gray); font-size: 16px; padding: 0; line-height: 1; } /* ---- Responsive ---- */ .mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; } .hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--text); font-size: 1.4rem; padding: 8px; border-radius: var(--radius-sm); } @media (max-width: 1024px) { .sidebar { transform: translateX(-100%); } .sidebar.open { transform: translateX(0); } .main-content { margin-left: 0; } .hamburger { display: flex; } .mobile-overlay { display: block; opacity: 0; pointer-events: none; transition: opacity 0.3s; } .mobile-overlay.open { opacity: 1; pointer-events: auto; } } @media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .page-content { padding: 16px; } .topbar { padding: 12px 16px; } .roll-grid { grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)); } .card { padding: 16px; } } @media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr 1fr; } h1 { font-size: 1.6rem; } } /* ---- Utilities ---- */ .flex { display: flex; } .flex-1 { flex: 1; } .items-center { align-items: center; } .items-start { align-items: flex-start; } .justify-between { justify-content: space-between; } .justify-center { justify-content: center; } .justify-end { justify-content: flex-end; } .gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .flex-col { flex-direction: column; } .text-center { text-align: center; } .text-right { text-align: right; } .w-full { width: 100%; } .h-full { height: 100%; } .mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .p-0 { padding: 0; } .font-bold { font-weight: 700; } .font-semibold { font-weight: 600; } .text-sm { font-size: 13px; } .text-xs { font-size: 11px; } .text-lg { font-size: 17px; } .text-gray { color: var(--gray); } .text-success { color: var(--success); } .text-danger { color: var(--danger); } .text-warning { color: var(--warning); } .text-primary { color: var(--primary); } .hidden { display: none !important; } .grid { display: grid; } .grid-2 { grid-template-columns: 1fr 1fr; gap: 20px; } .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } .divider { height: 1px; background: var(--border); margin: 20px 0; } .rounded-full { border-radius: 50%; } .shadow { box-shadow: var(--shadow); } .overflow-hidden { overflow: hidden; } .relative { position: relative; } .absolute { position: absolute; } /* Fade/slide animations */ .fade-in { animation: fadeIn 0.4s ease; } @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } /* Skeleton loading */ .skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: skeleton 1.5s infinite; border-radius: var(--radius-sm); } @keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } /* Number animation */ @keyframes countUp { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } } .count-animate { animation: countUp 0.4s ease; } /* Gradient text */ .gradient-text { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } /* Notification badge */ .notif-badge { position: absolute; top: -4px; right: -4px; background: var(--danger); color: white; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid white; } /* Section header */ .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; } .section-title { font-size: 1rem; font-weight: 700; color: var(--text); }