:root {
  --primary: #3b82f6;
  --primary-dark: #1e40af;
  --primary-soft: #eff6ff;
  --success: #10b981;
  --success-soft: #ecfdf5;
  --warning: #f59e0b;
  --warning-soft: #fffbeb;
  --danger: #ef4444;
  --danger-soft: #fef2f2;
  --purple: #9333ea;
  --purple-soft: #f3e8ff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 30px rgba(59, 130, 246, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

/* SemiBold */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta/PlusJakartaSans-SemiBold.ttf")
    format("truetype");
  font-weight: 600;
  font-style: normal;
}

/* Bold */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta/PlusJakartaSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

/* ExtraBold */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta/PlusJakartaSans-ExtraBold.ttf")
    format("truetype");
  font-weight: 800;
  font-style: normal;
}

/* Regular */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/Inter_18pt-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

/* Medium */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/Inter_18pt-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

/* SemiBold */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/Inter_18pt-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

/* Bold */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/Inter_18pt-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

.screen {
  min-height: 100vh;
}
.screen.active {
  display: block;
}

kbd {
  font-size: 10px;
  padding: 2px 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  font-family: inherit;
}

/* ============ BUTTONS ============ */
.btn {
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
}

.btn-icon:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-icon.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============ FORMS ============ */
.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-control,
.form-select {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fff;
  color: var(--text);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  left: 14px;
  top: 23px;
  transform: translateY(-50%);
  color: var(--muted);
  z-index: 2;
}

.input-icon .form-control {
  padding-left: 42px;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-label {
  font-size: 13px;
  color: var(--muted);
}

/* ============ BADGES ============ */
.badge-custom {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.badge-custom::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-success {
  background: var(--success-soft);
  color: var(--success);
}
.badge-warning {
  background: var(--warning-soft);
  color: var(--warning);
}
.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.badge-info {
  background: var(--primary-soft);
  color: var(--primary);
}

/* ============ CARDS ============ */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.card-header h3,
.card-header h5 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.card-body {
  padding: 20px 24px;
}

/* ============ LOGIN ============ */
.login-page {
  min-height: 100vh;
  background: #fff;
}

.login-illustration {
  background: linear-gradient(135deg, #e0f2fe 0%, #eff6ff 50%, #f8fafc 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.login-illustration::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.15) 0%,
    transparent 70%
  );
  top: -100px;
  right: -100px;
  border-radius: 50%;
}

.illust-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 32px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 380px;
  position: relative;
  z-index: 1;
}

.hero-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.illust-card h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
.illust-card p {
  color: var(--muted);
}

.floating-stat {
  background: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.floating-stat .si {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--success-soft);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-stat .si.bg-blue {
  background: var(--primary-soft);
  color: var(--primary);
}
.floating-stat strong {
  font-size: 18px;
  display: block;
}
.floating-stat span {
  font-size: 11px;
  color: var(--muted);
}

.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  min-height: 100vh;
}

.login-form {
  width: 100%;
  max-width: 400px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}

.brand-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 20px;
}

.login-form h1 {
  font-size: 28px;
  margin-bottom: 8px;
}
.login-form .sub {
  color: var(--muted);
  margin-bottom: 32px;
}
.forgot {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

.divider {
  text-align: center;
  margin: 24px 0;
  color: var(--muted);
  font-size: 12px;
  position: relative;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}
.divider::before {
  left: 0;
}
.divider::after {
  right: 0;
}

/* ============ ADMIN LAYOUT ============ */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.sidebar .brand {
  padding: 0 8px;
}

.sidebar-section {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 0 12px;
  margin: 20px 0 8px;
  font-weight: 600;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 2px;
  transition: all 0.15s;
  font-size: 14px;
  cursor: pointer;
}

.menu-item i {
  font-size: 18px;
}
.menu-item:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.menu-item.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.menu-item .count {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.menu-item:not(.active) .count {
  background: var(--primary-soft);
  color: var(--primary);
}

.main-content {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ============ TOPBAR ============ */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  padding: 9px 16px;
  border-radius: 10px;
  width: 340px;
  color: var(--muted);
}

.search-bar input {
  border: none;
  background: none;
  outline: none;
  flex: 1;
  font-size: 14px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.datetime {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.datetime i {
  color: var(--primary);
}

.notif {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  border: none;
  font-size: 18px;
}

.notif:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.notif-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid #fff;
}

.notif-dropdown {
  min-width: 280px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 8px;
}

.notif-dropdown .dropdown-header {
  padding: 8px 12px;
  font-size: 13px;
}

.notif-dropdown .dropdown-item {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 8px 4px 4px;
  border-radius: 10px;
}

.admin-profile:hover {
  background: var(--bg);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.admin-profile .name {
  font-size: 13px;
  font-weight: 600;
}
.admin-profile .role {
  font-size: 11px;
  color: var(--muted);
}

.dropdown-menu {
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 6px;
}

.dropdown-item {
  border-radius: 8px;
  font-size: 13px;
  padding: 8px 12px;
}

/* ============ PAGE ============ */
.page {
  padding: 28px 32px;
  flex: 1;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.page-header h1 {
  font-size: 24px;
  margin: 0;
}

.breadcrumb-custom {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.breadcrumb-custom span {
  color: var(--primary);
}

/* ============ STAT CARDS ============ */
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  transition: all 0.25s;
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stat-card .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.stat-card .label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.stat-card .value {
  font-size: 26px;
  font-weight: 700;
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.2;
}

.stat-card .trend {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
}

.trend-up {
  background: var(--success-soft);
  color: var(--success);
}
.trend-down {
  background: var(--danger-soft);
  color: var(--danger);
}

.stat-card.s1 .icon-wrap {
  background: var(--primary-soft);
  color: var(--primary);
}
.stat-card.s2 .icon-wrap {
  background: var(--purple-soft);
  color: var(--purple);
}
.stat-card.s3 .icon-wrap {
  background: var(--success-soft);
  color: var(--success);
}
.stat-card.s4 .icon-wrap {
  background: var(--danger-soft);
  color: var(--danger);
}
.stat-card.s5 .icon-wrap {
  background: var(--warning-soft);
  color: var(--warning);
}
.stat-card.s6 .icon-wrap {
  background: #dbeafe;
  color: #1d4ed8;
}
.stat-card.s7 .icon-wrap {
  background: #fce7f3;
  color: #db2777;
}
.stat-card.s8 .icon-wrap {
  background: #d1fae5;
  color: #047857;
}

/* ============ CHART ============ */
.chart-wrap {
  height: 280px;
  position: relative;
}

/* ============ ACTIVITY ============ */
.activity-list {
  padding: 0;
}

.activity-item {
  display: flex;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.activity-item:last-child {
  border: none;
}

.activity-item .avatar {
  width: 38px;
  height: 38px;
  font-size: 13px;
  flex-shrink: 0;
}

.activity-item .info {
  flex: 1;
  min-width: 0;
}

.activity-item .info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.activity-item .info span {
  font-size: 11px;
  color: var(--muted);
}
.activity-item .time {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  flex-shrink: 0;
}

/* ============ TABLES ============ */
.table-wrap {
  overflow-x: auto;
}

.table-custom {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 13px;
}

.table-custom th {
  text-align: left;
  padding: 12px 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table-custom td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table-custom tr:last-child td {
  border: none;
}
.table-custom tbody tr:hover td {
  background: #fafbfc;
}

.emp-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.emp-cell .avatar {
  width: 34px;
  height: 34px;
  font-size: 12px;
}
.emp-cell strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.emp-cell span {
  font-size: 11px;
  color: var(--muted);
}

.id-mono {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 12px;
  color: var(--muted);
}

.action-cell {
  display: flex;
  gap: 6px;
}

.selfie-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e0f2fe, #eff6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.gps-verified {
  color: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

/* ============ QUICK ACTIONS ============ */
.quick-action {
  background: #fff;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.quick-action:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.quick-action .qi {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.quick-action .qi.qi-purple {
  background: var(--purple-soft);
  color: var(--purple);
}
.quick-action .qi.qi-green {
  background: var(--success-soft);
  color: var(--success);
}
.quick-action .qi.qi-orange {
  background: var(--warning-soft);
  color: var(--warning);
}
.quick-action strong {
  display: block;
  font-size: 13px;
}
.quick-action span {
  font-size: 11px;
  color: var(--muted);
}

/* ============ UPLOAD BOX ============ */
.upload-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}

.upload-box:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.upload-box i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

.upload-box p {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 4px;
}
.upload-box span {
  font-size: 11px;
  color: var(--muted);
}

/* ============ INFO BOX ============ */
.info-box {
  background: var(--primary-soft);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.info-box i {
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.info-box span {
  font-size: 13px;
  color: var(--text);
}

/* ============ MODAL ============ */
.modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.3);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  gap: 10px;
}

.confirm-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--danger-soft);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 18px;
}

.section-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============ ATTENDANCE DETAIL ============ */
.att-selfie {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #eff6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: var(--primary);
}

.att-map {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #e5f0fa;
  position: relative;
}

.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  background: var(--danger);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
}

.map-info {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
}

.detail-list {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.detail-list div {
  background: var(--bg);
  padding: 12px 14px;
  border-radius: 10px;
}

.detail-list span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 3px;
}

.detail-list strong {
  font-size: 13px;
}

/* ============ STATES ============ */
.state-box {
  padding: 60px 20px;
  text-align: center;
}

.state-box .si {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 16px;
}

.state-box .si.si-red {
  background: var(--danger-soft);
  color: var(--danger);
}
.state-box h4 {
  font-size: 16px;
  margin-bottom: 6px;
}
.state-box p {
  font-size: 13px;
  color: var(--muted);
  max-width: 300px;
  margin: 0 auto 16px;
}

/* ============ SALARY SLIP ============ */
.salary-slip-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.slip-header {
  padding: 26px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px dashed var(--border);
  background: linear-gradient(135deg, var(--primary-soft), #fff);
  flex-wrap: wrap;
  gap: 16px;
}

.slip-header h2 {
  font-size: 22px;
  color: var(--primary);
}

.slip-emp-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 24px 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.slip-emp-info .lbl {
  font-size: 11px;
  color: var(--muted);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.slip-emp-info strong {
  font-size: 14px;
}

.slip-section {
  padding: 24px 32px;
}

.slip-section h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 700;
}

.slip-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}

.slip-row:last-child {
  border: none;
}
.slip-row strong {
  font-weight: 600;
}
.slip-row.earn {
  background: rgba(16, 185, 129, 0.04);
  margin: 0 -12px;
  padding: 10px 12px;
  border-radius: 6px;
  border: none;
}
.slip-row.deduct {
  background: rgba(239, 68, 68, 0.04);
  margin: 0 -12px;
  padding: 10px 12px;
  border-radius: 6px;
  border: none;
}

.slip-row.total-deduct {
  border-top: 2px solid var(--border);
  border-bottom: none;
  padding-top: 14px;
  margin-top: 8px;
}

.slip-final {
  padding: 28px 32px;
  background: linear-gradient(135deg, #ecfdf5, #fff);
  border-top: 2px dashed var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.slip-final .lbl {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.slip-final .final-amt {
  font-size: 38px;
  font-weight: 800;
  color: var(--success);
  margin: 4px 0;
}

.slip-footer {
  padding: 14px 32px;
  background: var(--bg);
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

.slip-footer p {
  margin: 0;
}

/* ============ SIDEBAR MOBILE ============ */
.sidebar-toggle {
  display: none;
  background: var(--bg);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--text);
  font-size: 20px;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 90;
}

.sidebar-backdrop.show {
  display: block;
}

/* ============ MOBILE PREVIEW (PHONE FRAMES) ============ */
.mobile-stage {
  background: linear-gradient(135deg, #e0f2fe, #f8fafc);
  border-radius: var(--radius);
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 50px 30px;
  justify-content: center;
  align-items: flex-start;
}

.phone {
  width: 340px;
  height: 700px;
  background: #fff;
  border-radius: 38px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  position: relative;
  border: 8px solid #1a1a1a;
  flex-shrink: 0;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 0 0 14px 14px;
  z-index: 100;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  padding: 6px 24px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.status-bar.dark {
  color: #fff;
  background: #000;
}

.phone-screen {
  height: calc(100% - 26px);
  overflow-y: auto;
  position: relative;
}

.phone-screen::-webkit-scrollbar {
  display: none;
}

.phone-label {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  background: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* MOBILE SCREENS */
.splash {
  height: 100%;
  background: linear-gradient(135deg, #e0f2fe 0%, #eff6ff 50%, #f8fafc 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.splash::before,
.splash::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
}

.splash::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
  top: -80px;
  left: -80px;
}
.splash::after {
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.15),
    transparent 70%
  );
  bottom: -80px;
  right: -80px;
}

.splash-logo {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 48px;
  margin-bottom: 24px;
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
  position: relative;
  z-index: 1;
}

.splash h2 {
  font-size: 30px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.splash p {
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.splash-loader {
  margin-top: 36px;
  width: 36px;
  height: 36px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  position: relative;
  z-index: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.m-login {
  padding: 40px 24px 24px;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.m-login h2 {
  font-size: 24px;
  margin-bottom: 4px;
}
.m-login .sub {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 13px;
}

.m-home {
  height: 100%;
  background: var(--bg);
  overflow-y: auto;
  padding-bottom: 80px;
}

.m-header {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: #fff;
  padding: 20px 20px 56px;
  border-radius: 0 0 26px 26px;
  position: relative;
}

.m-header .row-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.m-header .greet {
  font-size: 12px;
  opacity: 0.85;
}

.m-header .name {
  font-size: 18px;
  font-weight: 700;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.m-header .bell {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  font-size: 18px;
}

.m-header .bell .dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fcd34d;
}

.m-datetime {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 16px;
  border-radius: 12px;
}

.m-datetime .dt {
  font-size: 22px;
  font-weight: 700;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.m-datetime .dd {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 2px;
}

.m-status-card {
  margin: -34px 16px 0;
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.m-status-card .lbl-sm {
  font-size: 11px;
  color: var(--muted);
}

.m-site-select {
  padding: 16px 16px 0;
}

.m-check-buttons {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.check-btn {
  padding: 18px 14px;
  border-radius: 16px;
  color: #fff;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.check-btn:hover {
  transform: translateY(-2px);
}

.check-btn.checkin {
  background: linear-gradient(135deg, #10b981, #059669);
}
.check-btn.checkout {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.check-btn i {
  font-size: 22px;
  display: block;
  margin-bottom: 8px;
}
.check-btn strong {
  font-size: 14px;
  display: block;
}
.check-btn span {
  font-size: 11px;
  opacity: 0.85;
}

.m-section {
  padding: 0 16px 16px;
}

.m-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.m-section-title h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.m-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.sum-card {
  background: #fff;
  padding: 12px 8px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
}

.sum-card .v {
  font-size: 18px;
  font-weight: 700;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.sum-card .l {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.sum-card.green .v {
  color: var(--success);
}
.sum-card.red .v {
  color: var(--danger);
}
.sum-card.orange .v {
  color: var(--warning);
}

.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  padding: 8px 0 12px;
  justify-content: space-around;
  z-index: 50;
}

.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 10px;
}

.bn-item i {
  font-size: 18px;
}
.bn-item.active {
  color: var(--primary);
}

.m-success {
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
}

.success-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--success-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

.success-circle::before,
.success-circle::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--success);
  opacity: 0;
  animation: ripple 2s infinite;
}

.success-circle::before {
  inset: -10px;
}
.success-circle::after {
  inset: -20px;
  animation-delay: 0.5s;
}

@keyframes ripple {
  0% {
    opacity: 0.5;
    transform: scale(0.8);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

.success-circle i {
  font-size: 60px;
  color: var(--success);
}

.m-success h2 {
  font-size: 22px;
  margin-bottom: 6px;
}
.m-success p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 13px;
}

.success-info {
  background: var(--bg);
  padding: 14px;
  border-radius: 12px;
  width: 100%;
  margin-bottom: 20px;
}

.success-info .row-info {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

.success-info .row-info span {
  color: var(--muted);
  font-size: 12px;
}
.success-info .row-info strong {
  font-size: 12px;
}

.m-report {
  height: 100%;
  background: var(--bg);
  overflow-y: auto;
  padding-bottom: 80px;
}

.m-topbar {
  background: #fff;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.m-topbar h3 {
  font-size: 16px;
  flex: 1;
  margin: 0;
}

.m-topbar .ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  border: none;
  font-size: 14px;
}

.month-locked {
  background: var(--warning-soft);
  color: var(--warning);
  padding: 10px 16px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.month-locked strong {
  color: var(--text);
}

.report-list {
  padding: 12px 16px;
}

.report-item {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
}

.report-thumb {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background: linear-gradient(135deg, #e0f2fe, #eff6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 22px;
  flex-shrink: 0;
}

.report-thumb.red-thumb {
  background: var(--danger-soft);
  color: var(--danger);
}

.report-info {
  flex: 1;
  min-width: 0;
}
.report-info .date {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}
.report-info .times {
  font-size: 10px;
  color: var(--muted);
}

.report-info .gps {
  font-size: 10px;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

.m-profile {
  height: 100%;
  background: var(--bg);
  overflow-y: auto;
  padding-bottom: 80px;
}

.profile-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 28px 20px 60px;
  text-align: center;
  color: #fff;
  border-radius: 0 0 26px 26px;
}

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 700;
  margin: 0 auto 12px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.profile-header h2 {
  font-size: 18px;
  margin-bottom: 4px;
}
.profile-header span {
  font-size: 12px;
  opacity: 0.85;
  font-family: ui-monospace, monospace;
}

.profile-card {
  margin: -44px 16px 0;
  background: #fff;
  border-radius: 14px;
  padding: 4px 0;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.pc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.pc-item:last-child {
  border: none;
}

.pc-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.pc-item .pi {
  flex: 1;
}
.pc-item .pi span {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
.pc-item .pi strong {
  font-size: 12px;
}
.pc-item .chev {
  color: var(--muted);
  font-size: 14px;
}

.logout-btn-mobile {
  margin: 18px 16px;
  padding: 12px;
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(239, 68, 68, 0.15);
  font-size: 13px;
}

.m-camera {
  height: 100%;
  background: #000;
  position: relative;
  color: #fff;
}

.cam-view {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cam-face {
  width: 200px;
  height: 200px;
  border: 3px dashed rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 70px;
}

.cam-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 46px 18px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent);
  z-index: 2;
}

.cam-header h3 {
  font-size: 15px;
  margin: 0;
  color: #fff;
}

.cam-header .ic {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 14px;
}

.cam-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 18px 36px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent);
  text-align: center;
  z-index: 2;
}

.cam-gps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  margin-bottom: 8px;
}

.cam-loader-text {
  color: rgba(255, 255, 255, 0.7);
}

.cam-shutter {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid rgba(255, 255, 255, 0.3);
  margin: 14px auto 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cam-shutter::after {
  content: "";
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
}

/* ============ TOAST ============ */
.toast.show {
  background: var(--success);
}
.toast.bg-danger.show {
  background: var(--danger) !important;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  .sidebar.show {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }

  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .search-bar {
    width: auto;
    flex: 1;
  }
  .datetime {
    display: none;
  }
}

@media (max-width: 767px) {
  .login-illustration {
    display: none;
  }
  .search-bar {
    display: none;
  }
  .topbar,
  .page {
    padding-left: 18px;
    padding-right: 18px;
  }
  .topbar {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .detail-list {
    grid-template-columns: 1fr;
  }
  .slip-emp-info {
    grid-template-columns: 1fr 1fr;
    padding: 18px 20px;
  }
  .slip-section {
    padding: 18px 20px;
  }
  .slip-header {
    padding: 20px;
  }
  .slip-final {
    padding: 20px;
  }
  .slip-final .final-amt {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .slip-emp-info {
    grid-template-columns: 1fr;
  }
}

.is-invalid {
    border-color: #dc3545;
}
