:root{--red: #b91c1c;--dark-red: #7f1212;--muted: #f8d7d7;--bg: #fff5f5;--text: #2b2b2b;--card: #ffffff;--accent: #ef4444}*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:linear-gradient(180deg,var(--bg),#fff);color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-height:100vh}.app{max-width:1100px;margin:28px auto;padding:20px}.navbar{display:flex;align-items:center;justify-content:space-between;background:var(--card);padding:14px 18px;border-radius:10px;border:1px solid rgba(185,28,28,.12);box-shadow:0 6px 18px #b91c1c0f}.brand{display:flex;gap:12px;align-items:center}.logo{width:44px;height:44px;background:var(--red);border-radius:8px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;box-shadow:0 4px 10px #00000014}.logo-img{width:52px;height:52px;object-fit:contain;border-radius:8px;transition:transform .25s ease,box-shadow .25s ease}.logo-img:hover{transform:scale(1.12);box-shadow:0 4px 12px #b91c1c40,0 0 10px #ef444480}.nav-actions{display:flex;gap:8px;align-items:center}.btn{background:var(--red);color:#fff;border:none;padding:8px 12px;border-radius:8px;cursor:pointer;font-weight:600;box-shadow:0 3px 8px #b91c1c2e;transition:all .2s ease}.btn:hover{background:var(--dark-red)}.btn.ghost{background:transparent;color:var(--red);border:1px solid var(--red);box-shadow:none}.btn.ghost:hover{background:var(--red);color:#fff}.admin-buttons{display:flex;gap:9px;margin-top:20px;margin-bottom:20px}@media(max-width:768px){.admin-buttons{flex-direction:column;gap:6px;align-items:stretch}}@media(max-width:480px){.admin-buttons{flex-direction:column;gap:4px;align-items:stretch}}.card{background:var(--card);padding:16px;border-radius:10px;margin-top:16px;border:1px solid rgba(0,0,0,.04);box-shadow:0 3px 10px #0000000a}.columns{display:flex;gap:18px;margin-top:16px}.col{flex:1}.form-row{display:flex;gap:10px;margin-bottom:10px}.input,textarea,select{padding:10px;border-radius:8px;border:1px solid #cc2c2c;flex:1;font-size:14px}.input{width:100%;margin-bottom:1rem}textarea{min-height:90px;resize:vertical}label{font-size:13px;color:#666;margin-bottom:6px;display:block}.table{width:100%;border-collapse:collapse;margin-top:8px}.table th,.table td{padding:10px 8px;border-bottom:1px solid #f2f2f2;text-align:left;font-size:14px}.table th{background:#fff3f3;color:var(--red)}.table tr:hover{background:#fff7f7;transition:.2s ease}.table tr.active-row{background:#fef2f2!important;font-weight:600}.attendance-photo{width:60px;height:60px;object-fit:cover;border-radius:6px;border:1px solid #eee;box-shadow:0 2px 4px #0000001a}.camera-modal{position:fixed;top:0;left:0;width:100%;height:100%;background:#0009;display:flex;justify-content:center;align-items:center;z-index:1000;animation:fadeIn .3s ease}.camera-box{background:#fff;padding:20px;border-radius:12px;width:360px;box-shadow:0 0 20px #0006;text-align:center}.camera-box video{width:100%;border-radius:8px;margin-bottom:12px;background:#000}.camera-box button{margin-top:10px;padding:8px 12px;margin-left:10px}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.small{font-size:13px;color:#777}.center{display:flex;align-items:center;gap:10px}.right{margin-left:auto}.alert{background:linear-gradient(90deg,#ef444414,#ef444405);color:var(--dark-red);border:1px solid rgba(239,68,68,.12);padding:10px;border-radius:8px}.search{padding:8px 10px;border-radius:8px;border:1px solid rgba(0,0,0,.06)}.footer{margin-top:18px;font-size:13px;color:#666;text-align:center}.leave-table-wrapper{overflow-x:auto;margin-top:8px;display:block}.leave-table{width:100%;border-collapse:collapse}.leave-table th,.leave-table td{padding:10px 8px;border-bottom:1px solid #f2f2f2;text-align:left;font-size:14px}.leave-table th{background:#fff3f3;color:var(--red)}.leave-table tr:hover{background:#fff7f7;transition:.2s ease}.leave-actions{display:flex;gap:6px}.leave-cards{display:none;flex-direction:column;gap:12px;margin-top:12px}.leave-card{background:#fff;border:1px solid rgba(185,28,28,.1);border-radius:10px;padding:14px;box-shadow:0 2px 8px #0000000a}.leave-card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #f2f2f2}.leave-card-name{font-weight:600;font-size:16px;color:var(--text);margin-bottom:4px}.leave-card-date{font-size:13px;color:#666}.leave-card-status{font-weight:600;font-size:14px;padding:4px 10px;border-radius:6px;background:#b91c1c14}.leave-card-body{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}.leave-card-row{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;font-size:14px}.leave-card-label{font-weight:500;color:#666;min-width:80px}.leave-card-value{color:var(--text);text-align:right;flex:1}.leave-card-link{color:#2563eb;text-decoration:none;font-size:14px}.leave-card-link:hover{text-decoration:underline}.leave-card-actions{display:flex;gap:8px;margin-top:12px}.leave-card-btn{flex:1;padding:10px;font-size:14px;font-weight:600}.leave-card-btn.approve{background:green}.leave-card-btn.approve:hover{background:#15803d}.leave-card-btn.reject{background:#b91c1c}.leave-card-btn.reject:hover{background:var(--dark-red)}@media(max-width:768px){.leave-table-wrapper{display:none}.leave-cards{display:flex}}@media(min-width:769px){.leave-table-wrapper{display:block}.leave-cards{display:none}}@media(max-width:480px){.leave-card{padding:12px}.leave-card-name{font-size:15px}.leave-card-row{font-size:13px;flex-direction:column;gap:4px}.leave-card-label{min-width:auto}.leave-card-value{text-align:left}.leave-card-actions{flex-direction:column;gap:6px}.leave-card-btn{width:100%}}@media(max-width:800px){.columns,.form-row{flex-direction:column}.table th,.table td{font-size:12px}}@media(max-width:768px){body{font-size:14px}.app{padding:10px;margin:10px auto}.navbar{flex-direction:column;gap:10px;padding:10px}.columns{flex-direction:column;gap:12px}.form-row{flex-direction:column;gap:8px}.table th,.table td{font-size:12px;padding:8px}.splash-card{width:90%;padding:12px}.splash-logo{width:72px;height:72px}}@media(max-width:480px){body{font-size:12px}.app{padding:8px;margin:8px auto}.navbar{flex-direction:column;gap:8px;padding:8px}.columns{flex-direction:column;gap:10px}.form-row{flex-direction:column;gap:6px}.table th,.table td{font-size:10px;padding:6px}.splash-card{width:100%;padding:8px}.splash-logo{width:60px;height:60px}}.splash-root{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#fffffff2,#ffffffe6);z-index:2000;pointer-events:none}.splash-card{pointer-events:auto;display:flex;flex-direction:column;gap:10px;align-items:center;padding:18px 22px;border-radius:12px;background:#fff;box-shadow:0 10px 30px #0000001f;border:1px solid rgba(0,0,0,.04);animation:splashPop .42s cubic-bezier(.2,.9,.3,1)}.splash-logo{width:96px;height:96px;object-fit:contain}.splash-title{font-weight:700;color:var(--red);font-size:18px}@keyframes splashPop{0%{transform:translateY(8px) scale(.96);opacity:0}to{transform:translateY(0) scale(1); opacity: 1 }}.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000059;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:flex;justify-content:center;align-items:center;z-index:2000}.modal-box{background:var(--card);width:320px;padding:22px;border-radius:12px;text-align:center;border:1px solid rgba(185,28,28,.15);box-shadow:0 8px 20px #00000014;animation:fadeScale .25s ease}.modal-actions{margin-top:15px;display:flex;gap:10px;justify-content:center}.btn.danger{background:#b91c1c;color:#fff}@keyframes fadeScale{0%{transform:scale(.85);opacity:0}to{transform:scale(1);opacity:1}}.overview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:15px}.overview-card{background:#fff;padding:12px;border-radius:12px;box-shadow:0 2px 8px #0000000f;text-align:center;transition:transform .25s ease,box-shadow .25s ease,border .25s ease;border:2px solid transparent}.overview-card:hover{transform:translateY(-4px) scale(1.02);box-shadow:0 6px 18px #b91c1c40}.overview-title{font-size:16px;font-weight:600;margin-bottom:8px}.overview-count{font-size:26px;font-weight:700;margin-top:5px}.green-text{color:#16a34a}.red-text{color:#dc2626}.red-dark-text{color:#b91c1c}.orange-text{color:#d97706}@media(max-width:480px){.overview-card{padding:14px}.overview-title{font-size:14px}.overview-count{font-size:22px}}.dashboard-grid-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;margin-top:20px}.dashboard-widget{min-height:280px;display:flex;flex-direction:column;padding:20px;margin-top:0!important;border-top:3px solid var(--red)}.widget-title{margin-top:0;margin-bottom:20px;font-size:18px;color:#444;font-weight:600;border-bottom:1px solid #eee;padding-bottom:10px}.quick-launch-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;height:100%}.quick-launch-item{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:10px;border-radius:10px;cursor:pointer;transition:all .2s ease;background:#fff;border:1px solid transparent}.quick-launch-item:hover{background-color:#fff5f5;border-color:#b91c1c1a;transform:translateY(-2px);box-shadow:0 4px 12px #0000000d}.quick-launch-icon{font-size:24px;color:var(--red);margin-bottom:8px;background:#b91c1c14;width:50px;height:50px;display:flex;align-items:center;justify-content:center;border-radius:50%}.quick-launch-label{font-size:12px;color:#555;font-weight:500}.stats-list{display:flex;flex-direction:column;gap:15px;justify-content:center;flex:1}.stat-row{display:flex;align-items:center;gap:15px;padding:10px;border-radius:8px;background:#fdfdfd;border:1px solid #f0f0f0}.stat-icon-box{width:40px;height:40px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:18px}.stat-info{display:flex;flex-direction:column}.stat-count{font-weight:700;font-size:18px;color:#333}.stat-label{font-size:12px;color:#777}.text-green{color:#16a34a;background:#dcfce7}.text-red{color:#dc2626;background:#fee2e2}.text-dark-red{color:#991b1b;background:#ffdede}.text-orange{color:#d97706;background:#fef3c7}@media(max-width:600px){.dashboard-grid-container{grid-template-columns:1fr}.quick-launch-grid{grid-template-columns:repeat(2,1fr)}}
