:root{
  --bg:#0b0b0b;
  --panel:#111111;
  --text:#f4f4f4;
  --muted:#bdbdbd;
  --line:#262626;
  --accent:#ffffff;
  --danger:#ff4d4d;
  --ok:#7CFC90;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(900px 500px at 85% 0%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(180deg, #060606 0%, #0b0b0b 55%, #060606 100%);
}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1180px; margin:0 auto; padding:18px}
.topbar{
  display:flex; gap:14px; align-items:center; justify-content:space-between;
  padding:14px 16px; border:1px solid var(--line); border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.brand{display:flex; align-items:center; gap:12px}
.logo{
  width:40px; height:40px; border-radius:12px;
  background: #fff;
  position:relative;
}
.logo:before{
  content:"";
  position:absolute; inset:10px 13px 10px 13px;
  border:2px solid #000;
  transform:skewX(-8deg);
}
.logo:after{
  content:"A";
  position:absolute; inset:0; display:grid; place-items:center;
  color:#000; font-weight:800;
}
h1{margin:0; font-size:18px; letter-spacing:.2px}
.sub{color:var(--muted); font-size:13px}
.nav{
  display:flex; flex-wrap:wrap; gap:10px; margin:16px 0 6px;
}
.nav a{
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.04);
}
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
}
.card{
  grid-column: span 12;
  border:1px solid var(--line);
  border-radius:18px;
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  padding:14px;
}
@media (min-width: 860px){
  .card.span4{grid-column: span 4;}
  .card.span6{grid-column: span 6;}
  .card.span8{grid-column: span 8;}
}
.card h2,.card h3{margin:0 0 10px 0}
.kpi{
  font-size:34px; font-weight:800; line-height:1;
  margin-top:6px;
}
.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 10px; border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  font-size:12px;
}
.badge.ok{border-color:rgba(124,252,144,.35); color:var(--ok)}
.badge.danger{border-color:rgba(255,77,77,.35); color:var(--danger)}
.badge.neutral{color:var(--text)}
input,select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.35);
  color: var(--text);
  outline:none;
}
input::placeholder{color:#8a8a8a}
button{
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background: #fff;
  color:#000;
  font-weight:700;
  cursor:pointer;
}
button.secondary{
  background:transparent;
  color:var(--text);
}
table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius:16px;
  border:1px solid var(--line);
}
th,td{
  padding:10px 10px;
  border-bottom:1px solid var(--line);
  font-size:13px;
  vertical-align:top;
}
th{
  text-align:left;
  background: rgba(255,255,255,.06);
  position:sticky; top:0;
}
tr:last-child td{border-bottom:none}
.table-wrap{
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  border-radius:16px;
}
small, .muted{color:var(--muted)}
hr.sep{
  border:none; height:1px; background:var(--line);
  margin:14px 0;
}
.notice{
  border:1px dashed rgba(255,255,255,.25);
  border-radius:14px;
  padding:12px;
  background: rgba(255,255,255,.03);
}



/* ===========================
   CSPLUS Attendance v13 UI/UX
   Modern minimal corporate
   =========================== */

:root{
  --bg: #000;
  --panel: rgba(255,255,255,0.06);
  --panel-2: rgba(255,255,255,0.045);
  --border: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --muted2: rgba(255,255,255,0.50);
  --shadow: 0 10px 30px rgba(0,0,0,0.55);
  --radius: 18px;
  --radius2: 22px;
}

html,body{background:var(--bg); color:var(--text);}

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  letter-spacing: 0.1px;
}

.container{max-width: 1200px;}

/* sticky topbar */
header.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(0,0,0,0.72);
  border-bottom: 1px solid var(--border);
}

/* brand */
.brand{display:flex;align-items:center;gap:10px;}
.brand-logo{
  height:34px;width:34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  padding:6px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}
.brand-sub{
  display:inline-flex;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  opacity: .9;
  margin-left: 8px;
  background: rgba(255,255,255,0.04);
}

/* nav pills */
nav.nav a{
  border-radius: 999px;
  padding: 9px 12px;
  transition: all .15s ease;
}
nav.nav a:hover{background: rgba(255,255,255,0.06);}
nav.nav a.active{
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
}

/* cards */
.card{
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}
.card h3{
  font-size: 14px;
  letter-spacing: .2px;
  margin-bottom: 8px;
}
.muted{color: var(--muted);}
small{color: var(--muted2);}
.kpi{font-variant-numeric: tabular-nums; letter-spacing: .5px;}

/* forms */
input, select, textarea{
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  color: var(--text);
  padding: 11px 12px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(255,255,255,0.26);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}
button{
  border-radius: 999px;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
  color: var(--text);
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}
button:hover{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.30);
}
button:active{transform: translateY(1px);}

/* tables */
.table-wrap{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0,0,0,0.16);
}
th{
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  letter-spacing: .3px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  padding: 12px 12px;
}
td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
}
tr:hover td{background: rgba(255,255,255,0.03);}

/* badges */
.badge{border-radius:999px; padding:6px 10px; border:1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06);}

/* hero helpers */
.hero-actions a{ text-decoration:none; }

/* mobile */
@media (max-width: 900px){
  .container{padding: 0 14px;}
  .grid{gap: 12px;}
  td, th{padding: 10px 10px;}
}



/* ===========================
   CSPLUS Attendance v13 UI/UX
   Modern minimal corporate
   =========================== */

:root{
  --bg:#000;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.045);
  --border: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --muted2: rgba(255,255,255,0.52);
  --shadow: 0 10px 30px rgba(0,0,0,0.55);
  --radius: 18px;
  --radius2: 22px;
}

html,body{background:var(--bg); color:var(--text);}

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  letter-spacing: .1px;
}

/* topbar */
header.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(0,0,0,0.72);
  border-bottom: 1px solid var(--border);
}

a.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}
.brand-logo{
  height:36px;width:36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  padding:6px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}
.brand-sub{
  display:inline-flex;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  opacity: .9;
  margin-left: 8px;
  background: rgba(255,255,255,0.04);
}

nav.nav a{
  border-radius: 999px;
  padding: 9px 12px;
  transition: all .15s ease;
}
nav.nav a:hover{ background: rgba(255,255,255,0.06); }
nav.nav a.active{
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
}

/* cards */
.card{
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}
.card h3{
  font-size: 14px;
  letter-spacing: .2px;
  margin-bottom: 8px;
}
.kpi{font-variant-numeric: tabular-nums; letter-spacing:.5px;}

.muted{color:var(--muted);}
small{color:var(--muted2);}

/* inputs */
input,select,textarea{
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  color: var(--text);
  padding: 11px 12px;
  outline:none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
input:focus,select:focus,textarea:focus{
  border-color: rgba(255,255,255,0.26);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}

button{
  border-radius: 999px;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
  color: var(--text);
  transition: transform .05s ease, background .15s ease, border-color .15s ease;
}
button:hover{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.30);
}
button:active{transform: translateY(1px);}

/* table */
.table-wrap{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(0,0,0,0.16);
}
th{
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  letter-spacing: .3px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  padding: 12px;
}
td{
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
}
tr:hover td{ background: rgba(255,255,255,0.03); }

/* badges */
.badge{
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
}
.badge.ok{background: rgba(255,255,255,0.10);}
.badge.danger{background: rgba(255,255,255,0.14);}
.badge.neutral{background: rgba(255,255,255,0.06);}

.sep{border:0;height:1px;background: rgba(255,255,255,0.10); margin: 14px 0;}

.notice{
  border: 1px dashed rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: rgba(255,255,255,0.84);
}

@media (max-width: 900px){
  .container{padding: 0 14px;}
  nav.nav{overflow:auto; white-space:nowrap;}
  .grid{gap: 12px;}
  .card{border-radius: 18px;}
  td,th{padding: 10px;}
}

/* ===========================
   v13+ Add-ons: Light theme + Icons + Quick Search + Bottom nav
   =========================== */

body.theme-light{
  --bg:#f6f6f6;
  --panel: rgba(0,0,0,0.045);
  --panel2: rgba(0,0,0,0.03);
  --border: rgba(0,0,0,0.10);
  --text: rgba(0,0,0,0.90);
  --muted: rgba(0,0,0,0.62);
  --muted2: rgba(0,0,0,0.50);
  --shadow: 0 10px 30px rgba(0,0,0,0.12);
}
body.theme-light header.topbar{
  background: rgba(255,255,255,0.78);
  border-bottom-color: rgba(0,0,0,0.10);
}
body.theme-light input, body.theme-light select, body.theme-light textarea{
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.14);
  color: rgba(0,0,0,0.90);
}
body.theme-light .card{
  background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.02));
  border-color: rgba(0,0,0,0.10);
}
body.theme-light th{
  background: rgba(0,0,0,0.04);
  border-bottom-color: rgba(0,0,0,0.10);
}
body.theme-light td{border-bottom-color: rgba(0,0,0,0.08);}
body.theme-light tr:hover td{background: rgba(0,0,0,0.03);}



.quick-search{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left: 10px;
  flex: 1;
  max-width: 420px;
}
.quick-search .search-ic{position: relative; flex:1;}
.quick-search .search-ic:before{
  content:"⌕";
  position:absolute;
  left: 12px;
  top: 9px;
  font-size: 14px;
  opacity: .7;
}
.quick-search input{
  width:100%;
  padding-left: 34px;
}

.bottom-nav{
  display:none;
  position: fixed;
  left:0; right:0; bottom:0;
  z-index: 60;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 10px 12px;
}
.bottom-nav .row{
  display:flex;
  gap:10px;
  justify-content:space-around;
  align-items:center;
}
.bottom-nav a{
  flex:1;
  text-decoration:none;
  text-align:center;
  padding: 10px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.90);
  font-size: 12px;
}
.bottom-nav a.active{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
}
.bottom-nav a.theme{flex:0.55;max-width:90px;}

@media (max-width: 980px){
  .bottom-nav{display:block;}
  body{padding-bottom: 84px;}
  .quick-search{display:none;}
}



/* v17 APP STYLE - Mobile First */

.container{
  max-width: 720px;
  margin: 0 auto;
}

.card{
  border-radius: 24px;
  padding: 18px;
}

.kpi{
  font-size: 28px;
  font-weight: 600;
}

.bottom-nav{
  background: rgba(0,0,0,0.95);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.bottom-nav a{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  font-size:11px;
  border:none;
  background:none;
}

@media (max-width: 980px){
  nav.nav{display:none;}
}

@media (min-width: 981px){
  body{background:#111;}
  .container{margin-top:30px;}
}

/* ===========================
   v18 App Enhancements
   =========================== */

/* iOS-like widget grid on dashboard */
.widget-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 981px){
  .widget-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}
.widget{
  min-height: 118px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.widget .kpi{ font-size: 26px; }
.widget .muted{ font-size: 12px; }

/* Drawer */
.drawer-backdrop{
  position: fixed; inset:0;
  background: rgba(0,0,0,0.55);
  opacity:0; pointer-events:none;
  transition: opacity .18s ease;
  z-index: 80;
}
.drawer-backdrop.show{ opacity:1; pointer-events:auto; }

.drawer{
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 92vw);
  height: 100vh;
  background: rgba(0,0,0,0.92);
  border-left: 1px solid rgba(255,255,255,0.10);
  transform: translateX(105%);
  transition: transform .20s ease;
  z-index: 90;
  display:flex;
  flex-direction:column;
}
.drawer.show{ transform: translateX(0); }
.drawer-head{
  padding: 16px 16px 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}
.drawer-title{ font-size: 16px; font-weight: 700; }
.drawer-sub{ font-size: 12px; margin-top: 2px; }
.drawer-close{
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.90);
}
.drawer-body{
  padding: 14px 16px;
  overflow:auto;
}
.notif-item{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 12px 12px;
  margin-bottom: 10px;
}
.notif-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
}
.notif-name{ font-weight: 650; margin-top: 6px; }

/* Search overlay */
.search-overlay{
  position: fixed; inset:0;
  background: rgba(0,0,0,0.55);
  opacity:0; pointer-events:none;
  transition: opacity .18s ease;
  z-index: 85;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}
.search-overlay.show{ opacity:1; pointer-events:auto; }
.search-sheet{
  width: min(720px, 96vw);
  background: rgba(0,0,0,0.92);
  border: 1px solid rgba(255,255,255,0.10);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  padding: 14px 14px 18px 14px;
  margin-bottom: 0;
  max-height: 82vh;
  overflow:auto;
}
.search-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.search-title{ font-weight: 700; }
.search-input{
  width: 100%;
  margin-bottom: 12px;
}
.search-results{ display:flex; flex-direction:column; gap: 10px; }
.search-item{
  text-decoration:none;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 12px 12px;
  color: rgba(255,255,255,0.92);
}
.search-name{ font-weight: 650; }

/* Splash */
.splash{
  position: fixed; inset:0;
  background: #000;
  z-index: 200;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: opacity .25s ease;
}
.splash.hide{ opacity:0; pointer-events:none; }
.splash-inner{ text-align:center; }
.splash-logo{ width:72px; height:72px; border-radius: 18px; background: rgba(255,255,255,0.06); padding: 10px; }
.splash-title{ margin-top: 12px; font-size: 18px; font-weight: 800; letter-spacing: .2px; }
.splash-sub{ margin-top: 6px; font-size: 12px; opacity: .7; }

/* Light theme variants for overlays */
body.theme-light .drawer,
body.theme-light .search-sheet{
  background: rgba(255,255,255,0.92);
  border-color: rgba(0,0,0,0.10);
  color: rgba(0,0,0,0.90);
}
body.theme-light .drawer-close{
  border-color: rgba(0,0,0,0.14);
  background: rgba(0,0,0,0.04);
  color: rgba(0,0,0,0.90);
}
body.theme-light .notif-item,
body.theme-light .search-item{
  border-color: rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.03);
  color: rgba(0,0,0,0.90);
}

.more-actions{ display:flex; flex-direction:column; gap:10px; }
.more-overlay .search-sheet{ max-height: 72vh; }
