:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.login-container{min-height:100vh;width:100vw;display:flex;align-items:center;justify-content:center;background:#f5f5f5;padding:20px;position:fixed;top:0;left:0}.login-card{background:#fff;padding:40px;border-radius:16px;box-shadow:0 4px 20px #00000014;border:1px solid #e5e5e5;width:100%;max-width:400px}.login-card svg{display:block;margin:0 auto 8px}.login-card h1{font-size:32px;font-weight:600;color:#1a1a1a;margin:0 0 8px;text-align:center}.login-card>p{color:#666;font-size:14px;text-align:center;margin:0 0 32px}.login-form{display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{font-size:13px;font-weight:600;color:#1a1a1a}.form-group input{padding:12px 16px;border:1px solid #e5e7eb;background:#f9fafb;border-radius:8px;font-size:15px;transition:all .2s;outline:none;color:#1a1a1a}.form-group input:focus{border-color:#2563eb;background:#fff;box-shadow:0 0 0 3px #2563eb1a}.form-group input:disabled{background:#f3f4f6;cursor:not-allowed;opacity:.6}.error{color:#991b1b;background:#fee2e2;border:1px solid #fecaca;font-size:13px;text-align:center;margin:0;padding:12px;border-radius:8px}.login-btn{padding:14px;background:#2563eb;color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;transition:background .2s;margin-top:8px}.login-btn:hover:not(:disabled){background:#1d4ed8}.login-btn:disabled{background:#9ca3af;cursor:not-allowed;opacity:.6}@media(max-width:480px){.login-card{padding:30px 20px}.login-card h1{font-size:28px}}.header{height:68px;background:#fff;border-bottom:1px solid #e5e5e5;display:flex;align-items:center;justify-content:space-between;padding:0 20px;position:sticky;top:0;z-index:100}.menu-btn{background:none;border:none;cursor:pointer;padding:8px;color:#1a1a1a;display:flex;align-items:center;border-radius:8px;transition:background .2s}.menu-btn:hover{background:#f3f4f6}.header-right{display:flex;align-items:center;gap:16px}.teho-logo{height:20px;width:auto}.user-info{display:flex;align-items:center;gap:10px}.avatar{width:38px;height:38px;background:#dbeafe;color:#2563eb;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:16px;border:2px solid #e5e7eb}.user-info span{font-size:14px;font-weight:500;color:#1a1a1a}@media(max-width:480px){.header{padding:0 16px}.user-info span{display:none}.teho-logo{height:18px}}.sidebar-overlay{position:fixed;inset:0;background:#00000080;z-index:200;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}.sidebar-overlay.show{opacity:1;visibility:visible}.sidebar{position:fixed;top:0;left:0;width:280px;height:100vh;background:#fff;box-shadow:2px 0 12px #00000014;border-right:1px solid #e5e5e5;z-index:300;transform:translate(-100%);transition:transform .3s ease;display:flex;flex-direction:column;padding:20px;overflow-y:auto}.sidebar.open{transform:translate(0)}.sidebar-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid #e5e7eb}.sidebar-header h2{font-size:22px;color:#1a1a1a;margin:0;font-weight:600}.close-btn{background:none;border:none;cursor:pointer;padding:8px;color:#6b7280;display:flex;align-items:center;transition:all .2s;border-radius:6px}.close-btn:hover{color:#1a1a1a;background:#f3f4f6}.staff-info{text-align:center;padding:24px 16px;background:#fef3c7;border:1px solid #fde68a;border-radius:12px;margin-bottom:24px}.staff-avatar{width:72px;height:72px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 12px;color:#92400e;border:2px solid #fde68a}.staff-info h3{color:#78350f;margin:0 0 4px;font-size:17px;font-weight:600}.staff-info p{color:#92400e;margin:0;font-size:13px}.nav-item{display:flex;align-items:center;gap:12px;padding:12px 16px;background:none;border:none;border-radius:8px;cursor:pointer;font-size:15px;color:#6b7280;transition:all .2s;width:100%;text-align:left;margin-bottom:6px;font-weight:500}.nav-item:hover{background:#f9fafb;color:#1a1a1a}.nav-item.active{background:#dbeafe;color:#2563eb}.nav-item.active svg{color:#2563eb}.logout-btn{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fee2e2;border:1px solid #fecaca;border-radius:8px;cursor:pointer;font-size:15px;color:#991b1b;transition:all .2s;width:100%;text-align:left;margin-top:8px;font-weight:500}.logout-btn:hover{background:#fecaca}@media(max-width:480px){.sidebar{width:260px;padding:16px}}*{margin:0;padding:0;box-sizing:border-box}body,html{margin:0;padding:0;overflow:hidden;height:100vh;width:100vw}.attendance-container{height:100vh;width:100%;background:#f5f5f5;display:flex;flex-direction:column;overflow:hidden}.attendance-content{display:flex;flex-direction:column;height:100%;overflow:hidden;padding:12px;gap:12px}.attendance-card{background:#fff;border-radius:12px;padding:18px;width:100%;box-shadow:0 4px 20px #00000014;border:1px solid #e5e5e5;flex-shrink:0}.header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}.header-left{flex:1}.header h2{font-size:20px;color:#1a1a1a;margin:0 0 6px;font-weight:600}.status{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:500;color:#666}.dot{width:8px;height:8px;border-radius:50%;background:#d1d5db}.dot.active{background:#10b981}.verification-icons{display:flex;gap:10px}.verify-icon{position:relative;width:36px;height:36px;background:#f9fafb;border-radius:8px;display:flex;align-items:center;justify-content:center;border:1px solid #e5e7eb}.verify-icon svg{color:#9ca3af}.verify-dot{position:absolute;top:-4px;right:-4px;width:10px;height:10px;border-radius:50%;background:#ef4444;border:2px solid #ffffff}.verify-dot.verified{background:#10b981}.time-box{background:#fef3c7;border-radius:10px;padding:12px 14px;display:flex;align-items:center;gap:10px;color:#92400e;margin-bottom:12px;border:1px solid #fde68a}.time-box svg{flex-shrink:0;color:#92400e}.time{font-size:24px;font-weight:600;margin:0;line-height:1;color:#78350f}.date{font-size:12px;margin:3px 0 0;color:#92400e}.duration-box{background:#ecfdf5;border:1px solid #a7f3d0;border-radius:10px;padding:12px;text-align:center;margin-bottom:12px}.duration-box p{margin:0 0 6px;font-size:12px;color:#064e3b;font-weight:500}.duration-box h3{margin:0;font-size:28px;color:#059669;font-weight:600;font-family:Courier New,monospace}.error{background:#fee2e2;color:#991b1b;padding:10px;border-radius:8px;font-size:12px;text-align:center;margin-bottom:12px;border:1px solid #fecaca}.slider-container{margin:16px 0 0}.slider-label{display:flex;justify-content:space-between;margin-bottom:10px;font-size:12px;font-weight:600;color:#6b7280}.slider-label span.active{color:#2563eb}.slider-box{height:56px;background:#f3f4f6;border-radius:28px;position:relative;border:2px solid #f3d21a;display:flex;align-items:center}.slider-fill{position:absolute;left:0;top:0;height:100%;background:#93ed99;transition:width .3s ease;z-index:1;min-width:0;border-radius:28px 0 0 28px}.slider-thumb{position:absolute;width:48px;height:48px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px #0000001f;transition:left .1s ease;z-index:2;border:1px solid #e5e7eb;cursor:grab}.slider-thumb:active{cursor:grabbing}.thumb-arrow{width:0;height:0;border-left:8px solid #2563eb;border-top:6px solid transparent;border-bottom:6px solid transparent;transition:transform .2s ease}.thumb-arrow.reverse{transform:rotate(180deg)}.slider-input{position:absolute;width:100%;height:100%;opacity:0;cursor:pointer;z-index:3}.slider-input:disabled{cursor:not-allowed}.instruction{text-align:center;font-size:12px;color:#6b7280;margin:10px 0 0;font-weight:500}.attendance-history{background:#fff;border-radius:12px;padding:14px;width:100%;box-shadow:0 4px 20px #00000014;border:1px solid #e5e5e5;flex:1;display:flex;flex-direction:column;overflow:hidden;min-height:0;max-height:280px}.attendance-history h3{font-size:16px;color:#1a1a1a;margin:0 0 10px;font-weight:600;flex-shrink:0}.history-loading,.history-empty{text-align:center;color:#9ca3af;padding:20px;font-size:13px}.history-list{display:flex;flex-direction:column;gap:10px;overflow-y:auto;padding-right:4px;flex:1;min-height:0}.history-list::-webkit-scrollbar{width:5px}.history-list::-webkit-scrollbar-track{background:#f3f4f6;border-radius:3px}.history-list::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}.history-list::-webkit-scrollbar-thumb:hover{background:#9ca3af}.history-item{background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;padding:10px;flex-shrink:0}.history-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.history-date{font-size:12px;font-weight:600;color:#1f2937}.history-status{font-size:10px;font-weight:600;padding:2px 7px;border-radius:4px;text-transform:uppercase}.history-status.active{background:#d1fae5;color:#065f46}.history-status.completed{background:#e0e7ff;color:#3730a3}.history-details{display:flex;flex-direction:column;gap:3px}.history-time{display:flex;justify-content:space-between;font-size:11px}.time-label{color:#6b7280;font-weight:500}.time-value{color:#1f2937;font-weight:600}.history-duration{font-size:11px;color:#059669;font-weight:600;margin-top:3px;padding-top:6px;border-top:1px solid #e5e7eb}.camera-backdrop{position:fixed;inset:0;background:#00000080;z-index:999}.camera-popup{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:90%;max-width:380px;background:#fff;border-radius:16px;box-shadow:0 20px 40px #00000026;z-index:1000;overflow:hidden}.camera-header{background:#f9fafb;color:#1f2937;padding:16px;text-align:center;font-weight:600;font-size:16px;border-bottom:1px solid #e5e7eb}.camera-preview{position:relative;width:100%;height:320px;background:#000;display:flex;align-items:center;justify-content:center;overflow:hidden}.camera-preview video{width:100%;height:100%;object-fit:cover}.take-photo-btn{display:block;width:calc(100% - 32px);margin:16px;padding:14px;background:#2563eb;color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;transition:background .2s}.take-photo-btn:hover:not(:disabled){background:#1d4ed8}.take-photo-btn:disabled{opacity:.5;cursor:not-allowed}@media(max-width:480px){.attendance-content{padding:10px;gap:10px}.attendance-card{padding:16px}.attendance-history{padding:12px;max-height:240px}.header h2{font-size:18px}.attendance-history h3{font-size:15px;margin-bottom:8px}.time{font-size:22px}.duration-box h3{font-size:24px}.camera-popup{width:95%}.camera-preview{height:260px}.history-item{padding:9px}.history-date{font-size:11px}.history-status{font-size:9px;padding:2px 6px}.history-time,.history-duration{font-size:10px}}*{box-sizing:border-box;margin:0;padding:0}html,body{margin:0;padding:0;width:100%;height:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:hidden}#root{min-height:100vh;width:100%}button,input{font-family:inherit}input[type=tel]::-webkit-inner-spin-button,input[type=tel]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=tel]{-moz-appearance:textfield}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{background:#f1f1f1}::-webkit-scrollbar-thumb{background:#888;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#555}
