/* ============================================================= */
/* CORNER CONCEPT - MODERN CLEAN ENTERPRISE ATTENDANCE CSS (v67) */
/* Designed for: Sleek Black Theme, High Contrast & Full Mobile  */
/* ============================================================= */

:root {
  /* Sleek, Modern, High-Contrast Dark Color System */
  --bg-main: #0d1117;        /* Pure deep dark canvas (GitHub Dark / sleek black) */
  --bg-card: #161b22;        /* Premium dark card surface */
  --bg-card-hover: #1c2128;  /* Subtle lighter hover */
  --bg-card-subtle: #12161f; /* Secondary card background */
  --border-color: #30363d;   /* Defined dark border */
  --border-subtle: #21262d;  /* Muted separator border */

  /* Brand Accents (Vibrant & High Contrast on Dark) */
  --accent-primary: #388bfd;       /* Crisp Electric Blue */
  --accent-primary-hover: #58a6ff;
  --accent-primary-light: rgba(56, 139, 253, 0.14); /* Soft dark blue tint */
  --accent-green: #3fb950;         /* Success / Emerald */
  --accent-green-light: rgba(63, 185, 80, 0.14);
  --accent-green-border: rgba(63, 185, 80, 0.35);
  --accent-amber: #d29922;         /* Warning / Amber */
  --accent-amber-light: rgba(210, 153, 34, 0.14);
  --accent-amber-border: rgba(210, 153, 34, 0.35);
  --accent-red: #f85149;           /* Danger / Coral Red */
  --accent-red-light: rgba(248, 81, 73, 0.14);
  --accent-red-border: rgba(248, 81, 73, 0.35);
  --accent-purple: #bc8cff;        /* Violet / Leave / Sakit */
  --accent-purple-light: rgba(188, 140, 255, 0.14);
  --accent-purple-border: rgba(188, 140, 255, 0.35);
  --accent-cyan: #39c5cf;          /* Sky Blue / Cuti */
  --accent-cyan-light: rgba(57, 197, 207, 0.14);

  /* Typography & Contrast Hierarchy */
  --text-main: #f0f6fc;            /* Ultra sharp white headers */
  --text-body: #c9d1d9;            /* Crisp readable body text */
  --text-muted: #8b949e;           /* Subtitles, secondary labels */
  --text-dim: #6e7681;             /* Placeholders, disabled states */

  /* Radii & Shadows */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.75);
}

/* ------------------------------------------------------------- */
/* Global Reset & Base Styles                                    */
/* ------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: var(--bg-main);
  color: var(--text-body);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ------------------------------------------------------------- */
/* App Wrapper (Mobile First, Max-Width 520px)                   */
/* ------------------------------------------------------------- */
.app-wrapper {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 96px 16px;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* ------------------------------------------------------------- */
/* 1. Header & Live Clock                                        */
/* ------------------------------------------------------------- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 16px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.brand-info {
  min-width: 0;
}

.brand-info h1 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--text-main);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 11px;
  color: var(--accent-primary);
  font-weight: 700;
  letter-spacing: 0.2px;
  display: block;
  margin-top: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-clock {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-align: right;
  box-shadow: var(--shadow-xs);
}

.clock-time {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.clock-date {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
}

/* ------------------------------------------------------------- */
/* 2. Main Navigation Tabs (Segmented Control Style)             */
/* ------------------------------------------------------------- */
.main-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 5px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.tab-btn.active {
  background: #21262d;
  color: var(--text-main);
  border-color: var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.tab-btn.active .tab-title {
  color: var(--accent-primary);
}

.tab-icon {
  font-size: 16px;
}

.badge-count {
  background: var(--accent-primary-light);
  color: var(--accent-primary);
  border: 1px solid rgba(56, 139, 253, 0.3);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-weight: 800;
}

/* Tab Contents */
.tab-content {
  display: none;
  animation: fadeIn 0.2s ease forwards;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------- */
/* Cards & Common UI Blocks                                      */
/* ------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

/* ------------------------------------------------------------- */
/* 3. GPS Geofencing Status Card (Office 50m Radius)             */
/* ------------------------------------------------------------- */
.gps-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.gps-card:active {
  transform: scale(0.98);
}

.gps-card.in-radius {
  border-color: var(--accent-green-border);
  background: var(--accent-green-light);
}

.gps-card.out-radius {
  border-color: var(--accent-red-border);
  background: var(--accent-red-light);
}

.gps-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gps-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-amber);
  display: inline-block;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
  animation: pulse 1.8s infinite;
}

.gps-card.in-radius .gps-dot {
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

.gps-card.out-radius .gps-dot {
  background: var(--accent-red);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
}

@keyframes pulse {
  0% { transform: scale(0.92); opacity: 0.75; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.92); opacity: 0.75; }
}

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

.gps-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.gps-card.in-radius .gps-title {
  color: #3fb950;
}

.gps-card.out-radius .gps-title {
  color: #f85149;
}

.gps-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.35;
}

.gps-card.in-radius .gps-subtitle {
  color: #3fb950;
  opacity: 0.9;
}

.gps-card.out-radius .gps-subtitle {
  color: #f85149;
  opacity: 0.9;
}

.btn-gps-refresh {
  background: #21262d;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 6px 9px;
  cursor: pointer;
  font-size: 13px;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s;
}

.btn-gps-refresh:hover {
  background: #30363d;
  border-color: #8b949e;
}

/* ------------------------------------------------------------- */
/* 4. Login Section (Google Sign-In)                             */
/* ------------------------------------------------------------- */
.auth-header {
  text-align: center;
  padding: 10px 0 16px 0;
}

.auth-icon-circle {
  width: 58px;
  height: 58px;
  background: var(--accent-primary-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px auto;
  box-shadow: var(--shadow-xs);
}

.auth-header h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.auth-header p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 380px;
  margin: 0 auto;
}

.google-auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px 0;
  width: 100%;
}

.google-btn-slot {
  width: 100%;
  display: flex;
  justify-content: center;
}

.btn-google-action {
  width: 100%;
  background: #21262d;
  color: #f0f6fc;
  border: 1px solid #30363d;
  border-radius: var(--radius-full);
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-google-action:hover, .btn-google-action:active {
  background: #30363d;
  border-color: #8b949e;
  box-shadow: var(--shadow-md);
  transform: scale(0.99);
}

/* ------------------------------------------------------------- */
/* 4A. Native Android Gmail Account Picker                       */
/* ------------------------------------------------------------- */
.native-picker-wrapper {
  width: 100%;
  margin-bottom: 14px;
}

.btn-native-pick {
  width: 100%;
  background: linear-gradient(135deg, #1c2128 0%, #161b22 100%);
  color: #3fb950;
  border: 1.5px solid #3fb950;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
  text-align: left;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn-native-pick:hover, .btn-native-pick:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(63, 185, 80, 0.2);
  border-color: #56d364;
  background: #21262d;
}

.btn-native-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #21262d;
  border: 1px solid #30363d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.btn-native-content {
  flex: 1;
  min-width: 0;
}

.btn-native-title {
  font-size: 15px;
  font-weight: 800;
  color: #f0f6fc;
  display: block;
}

.btn-native-desc {
  font-size: 11px;
  color: #3fb950;
  font-weight: 600;
  margin-top: 2px;
  line-height: 1.3;
}

/* ------------------------------------------------------------- */
/* 4B. Employee Picker Section (Dropdown Langsung)              */
/* ------------------------------------------------------------- */
.employee-picker-section {
  width: 100%;
  background: #161b22;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}

.picker-header-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.picker-select-box {
  width: 100%;
}

.picker-select-box select {
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #0d1117;
  color: #f0f6fc;
  transition: border-color 0.2s;
}

.picker-select-box select:focus {
  border-color: var(--accent-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.25);
}

.selected-emp-box {
  margin-top: 12px;
  background: #1c2128;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  box-shadow: var(--shadow-xs);
}

.selected-emp-card-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.emp-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-primary-light);
  color: var(--accent-primary);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(56, 139, 253, 0.35);
  flex-shrink: 0;
}

.emp-text-details {
  flex: 1;
  min-width: 0;
}

.emp-display-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.emp-display-div {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

.emp-display-gmail {
  font-size: 11px;
  color: #58a6ff;
  font-weight: 700;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-enter-emp {
  padding: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(56, 139, 253, 0.3);
}

.divider-text {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 10px 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.divider-text span {
  padding: 0 10px;
}

.auth-security-notice {
  background: rgba(56, 139, 253, 0.1);
  border: 1px solid rgba(56, 139, 253, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12px;
  color: #c9d1d9;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
  margin-top: 14px;
}

.auth-security-notice strong {
  color: #58a6ff;
}

/* ------------------------------------------------------------- */
/* 5. Profile Card (Logged-in Employee)                          */
/* ------------------------------------------------------------- */
.profile-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.profile-avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}

.profile-meta {
  flex: 1;
  min-width: 0;
}

.profile-meta h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.profile-badges {
  display: flex;
  gap: 6px;
  margin: 4px 0;
  flex-wrap: wrap;
}

.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-nik {
  background: rgba(210, 153, 34, 0.15);
  color: #e3b341;
  border: 1px solid rgba(210, 153, 34, 0.35);
}

.badge-div {
  background: var(--accent-primary-light);
  color: #58a6ff;
  border: 1px solid rgba(56, 139, 253, 0.35);
}

.profile-email {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-logout {
  background: #21262d;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-logout:hover {
  background: var(--accent-red-light);
  color: var(--accent-red);
  border-color: var(--accent-red-border);
}

/* Today's Personal Status Grid (Masuk & Pulang) */
.today-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.status-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color 0.2s;
}

.status-box.in {
  border-left: 3px solid var(--accent-green);
}

.status-box.out {
  border-left: 3px solid var(--accent-primary);
}

.status-box-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.box-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.status-time {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.status-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  background: #21262d;
  border: 1px solid var(--border-color);
}

.status-tag.tepat {
  background: var(--accent-green-light);
  color: #3fb950;
  border: 1px solid var(--accent-green-border);
}

.status-tag.terlambat {
  background: var(--accent-amber-light);
  color: #d29922;
  border: 1px solid var(--accent-amber-border);
}

.status-tag.pulang {
  background: var(--accent-primary-light);
  color: #58a6ff;
  border: 1px solid rgba(56, 139, 253, 0.35);
}

.status-tag.izin {
  background: var(--accent-purple-light);
  color: #bc8cff;
  border: 1px solid var(--accent-purple-border);
}

.status-tag.sakit {
  background: var(--accent-red-light);
  color: #f85149;
  border: 1px solid var(--accent-red-border);
}

.status-tag.cuti {
  background: var(--accent-cyan-light);
  color: #39c5cf;
  border: 1px solid rgba(57, 197, 207, 0.35);
}

/* ------------------------------------------------------------- */
/* 6. Big Action Attendance Buttons                              */
/* ------------------------------------------------------------- */
.attendance-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-action {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.25);
}

.btn-action-text {
  min-width: 0;
  flex: 1;
}

.btn-action-text .action-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.25;
}

.btn-action-text .action-sub {
  font-size: 11px;
  margin-top: 3px;
  opacity: 0.9;
  line-height: 1.3;
}

/* Check In: Emerald Green */
.btn-check-in {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
}

.btn-check-in:active:not(:disabled) {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* Check Out: Royal Blue */
.btn-check-out {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
}

.btn-check-out:active:not(:disabled) {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* Absen Sakit: Violet / Purple (Wajib Foto, Bebas Jarak GPS) */
.btn-sick {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
}

.btn-sick:active:not(:disabled) {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

/* Ajukan Izin / Cuti: Warm Amber */
.btn-leave {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
}

.btn-leave:active:not(:disabled) {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
}

.btn-action:disabled {
  background: #161b22;
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-action:disabled .btn-action-icon {
  background: #21262d;
  opacity: 0.5;
}

.btn-action:disabled .btn-action-text .action-title {
  color: #6e7681;
}

.btn-action:disabled .btn-action-text .action-sub {
  color: #484f58;
}

/* Alert Box */
.alert-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 14px;
}

.alert-danger {
  background: var(--accent-red-light);
  border: 1px solid var(--accent-red-border);
  color: #f85149;
}

.alert-icon {
  font-size: 16px;
  flex-shrink: 0;
}

/* ------------------------------------------------------------- */
/* 7. Tab 2: Public Today Feed (Kehadiran Hari Ini)              */
/* ------------------------------------------------------------- */
/* 5-Column Responsive Summary Grid */
.today-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.stat-card.success .stat-num { color: #3fb950; }
.stat-card.warning .stat-num { color: #d29922; }
.stat-card.info .stat-num { color: #58a6ff; }
.stat-card.purple .stat-num { color: #bc8cff; }

/* Responsive adjustments for summary cards */
@media (max-width: 520px) {
  .today-summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .today-summary-grid .stat-card:nth-child(4),
  .today-summary-grid .stat-card:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 360px) {
  .today-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .today-summary-grid .stat-card:last-child {
    grid-column: span 2;
  }
}

/* Feed Search and Controls */
.feed-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.search-box {
  position: relative;
  flex: 1;
}

.search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-dim);
}

.search-box .form-control {
  padding-left: 36px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.btn-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  max-width: 38px;
  max-height: 38px;
  padding: 0;
  margin: 0;
  background: rgba(33, 38, 45, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-main, #f0f6fc);
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-refresh:hover {
  background: #30363d;
  border-color: #8b949e;
  transform: rotate(45deg);
}

.btn-refresh:active {
  background: #3b434d;
  transform: rotate(180deg) scale(0.92);
}

.btn-refresh.spinning {
  animation: btnSpin 0.7s linear infinite;
}

@keyframes btnSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.feed-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding: 0 4px;
  font-weight: 600;
}

.attendance-feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feed-empty {
  text-align: center;
  padding: 36px 16px;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13px;
}

.empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.feed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.feed-card:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-sm);
}

.feed-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.feed-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #21262d;
  color: #58a6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

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

.feed-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-div {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.feed-times {
  text-align: right;
  flex-shrink: 0;
}

.feed-time-in {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.feed-time-out {
  font-size: 11px;
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
}

.feed-status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  display: inline-block;
  margin-top: 2px;
  text-transform: uppercase;
}

.feed-status-badge.tepat {
  background: var(--accent-green-light);
  color: #3fb950;
  border: 1px solid var(--accent-green-border);
}

.feed-status-badge.terlambat {
  background: var(--accent-amber-light);
  color: #d29922;
  border: 1px solid var(--accent-amber-border);
}

.feed-status-badge.izin {
  background: var(--accent-purple-light);
  color: #bc8cff;
  border: 1px solid var(--accent-purple-border);
}

.feed-status-badge.sakit {
  background: var(--accent-red-light);
  color: #f85149;
  border: 1px solid var(--accent-red-border);
}

.feed-status-badge.cuti {
  background: var(--accent-cyan-light);
  color: #39c5cf;
  border: 1px solid rgba(57, 197, 207, 0.35);
}

.public-footer-notice {
  margin-top: 20px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: 0 10px;
  line-height: 1.45;
}

/* ------------------------------------------------------------- */
/* 8. Modals (Overlays, Dialogs & Common Forms)                  */
/* ------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  pointer-events: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.active,
.modal-overlay[style*="display: flex"],
.modal-overlay[style*="display: block"] {
  display: flex !important;
  pointer-events: auto !important;
}

.modal-overlay[style*="display: none"] {
  display: none !important;
  pointer-events: none !important;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  gap: 10px;
}

.modal-header-text h3, .modal-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.modal-header-text p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-header-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-close-btn, .btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  border-radius: var(--radius-xs);
  transition: all 0.15s;
}

.modal-close-btn:hover, .btn-close-modal:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.modal-body {
  padding: 16px 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--bg-card-subtle);
}

/* Form Controls & Inputs */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: #0d1117;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 13px;
  padding: 10px 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.25);
}

.form-control[readonly] {
  background: #161b22;
  color: var(--text-muted);
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .col {
  flex: 1;
}

/* Photo Upload Actions in Leave / Sick Modal */
.photo-upload-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

@media (min-width: 380px) {
  .photo-upload-actions {
    flex-direction: row;
  }
}

.btn-photo-pick {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: #21262d;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-photo-pick:hover, .btn-photo-pick:active {
  background: #30363d;
  border-color: var(--accent-primary);
  color: #ffffff;
}

.btn-photo-pick.secondary {
  background: var(--bg-card-subtle);
  border-color: var(--border-subtle);
  color: var(--text-muted);
}

.btn-photo-pick.secondary:hover {
  background: #21262d;
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-remove-proof {
  background: var(--accent-red-light);
  border: 1px solid var(--accent-red-border);
  color: var(--accent-red);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-remove-proof:hover {
  background: rgba(248, 81, 73, 0.25);
}

/* Primary & Secondary Buttons */
.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover, .btn-primary:active {
  background: var(--accent-primary-hover);
  transform: scale(0.99);
}

.btn-secondary {
  background: #21262d;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover, .btn-secondary:active {
  background: #30363d;
  border-color: #8b949e;
}

.btn-block {
  width: 100%;
}

/* ------------------------------------------------------------- */
/* 9. Camera Modal (Viewfinder & Controls)                       */
/* ------------------------------------------------------------- */
.camera-modal-dialog {
  max-width: 400px;
  border-radius: var(--radius-lg);
  background: #000000;
  border: 1px solid #334155;
}

.camera-modal-dialog .modal-header {
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
}

.camera-modal-dialog .modal-header h3 {
  color: #ffffff;
}

.camera-body {
  padding: 14px;
  background: #0f172a;
}

.camera-viewfinder-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #334155;
}

#cameraVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.snapshot-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 5;
}

.face-guide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.oval-guide {
  width: 65%;
  height: 60%;
  border: 2px dashed rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
}

.guide-text {
  margin-top: 14px;
  background: rgba(0, 0, 0, 0.8);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  color: #ffffff;
  font-weight: 700;
}

.camera-status-msg {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  margin: 10px 0;
  min-height: 18px;
}

.camera-controls {
  padding-top: 4px;
}

.camera-btn-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
}

.btn-snap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: transparent;
  border: 4px solid #ffffff;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}

.btn-snap:active {
  transform: scale(0.92);
}

.snap-inner {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 50%;
  display: block;
}

.btn-icon-alt {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------- */
/* 10. Admin PIN Modal (201985)                                  */
/* ------------------------------------------------------------- */
.pin-modal-dialog {
  max-width: 340px;
}

.pin-modal-body {
  padding: 24px 20px;
  text-align: center;
}

.pin-avatar-icon {
  font-size: 38px;
  margin-bottom: 8px;
}

.pin-prompt {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 600;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

.pin-dots .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: transparent;
  transition: all 0.2s ease;
}

.pin-dots .dot.filled {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(56, 139, 253, 0.5);
}

.pin-error-msg {
  color: var(--accent-red);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 260px;
  margin: 0 auto;
}

.key-btn {
  aspect-ratio: 1;
  border-radius: 50%;
  background: #21262d;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-xs);
}

.key-btn:hover {
  background: #30363d;
  border-color: #8b949e;
}

.key-btn:active {
  background: var(--accent-primary);
  color: #ffffff;
  transform: scale(0.92);
}

.key-btn.key-action {
  font-size: 16px;
  color: var(--text-muted);
}

/* ------------------------------------------------------------- */
/* 11. Fullscreen Admin Dashboard                                */
/* ------------------------------------------------------------- */
.modal-fullscreen {
  padding: 0;
}

.modal-fullscreen .admin-dashboard-dialog {
  max-width: 1000px;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  border: none;
  background: var(--bg-main);
}

.admin-top-nav {
  padding: 14px 18px;
  background: #161b22;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-title-wrap h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-admin-logout {
  background: var(--accent-red-light);
  border: 1px solid var(--accent-red-border);
  color: var(--accent-red);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-admin-logout:hover {
  background: rgba(248, 81, 73, 0.25);
}

.admin-sub-tabs {
  display: flex;
  gap: 8px;
  background: #161b22;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.admin-tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-card-hover);
}

.admin-tab-btn.active {
  background: var(--accent-primary-light);
  color: var(--accent-primary);
  font-weight: 800;
}

.admin-view {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-section-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.section-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.admin-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.btn-add-emp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-sync-erp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: rgba(33, 38, 45, 0.9);
  border: 1px solid rgba(56, 139, 253, 0.4);
  color: #58a6ff;
  transition: all 0.2s ease;
}

.btn-sync-erp:hover {
  background: rgba(56, 139, 253, 0.18);
  border-color: #58a6ff;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-sync-erp:active {
  transform: translateY(0);
}

.btn-sync-erp.loading {
  opacity: 0.75;
  cursor: not-allowed;
  animation: pulse 1.2s infinite;
}

.emp-filter-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-primary);
  background: var(--accent-primary-light);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 139, 253, 0.3);
  white-space: nowrap;
}

.admin-filter-card {
  padding: 14px;
  margin-bottom: 14px;
  background: #161b22;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
}

.filter-dropdowns-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 540px) {
  .filter-dropdowns-row {
    grid-template-columns: 1fr;
  }
}

.filter-select-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-select-wrapper label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.admin-select {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: #0d1117;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.admin-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(56, 139, 253, 0.25);
}

.custom-date-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  background: #12161f;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.history-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.btn-export-csv {
  height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Interactive Employee Cards */
.admin-emp-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-emp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.admin-emp-card:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
}

.emp-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.emp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.emp-details {
  min-width: 0;
  flex: 1;
}

.emp-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.emp-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.emp-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.emp-gmail-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emp-gmail-badge.ok {
  background: var(--accent-green-light);
  color: #3fb950;
  border: 1px solid var(--accent-green-border);
}

.emp-gmail-badge.warn {
  background: var(--accent-amber-light);
  color: #d29922;
  border: 1px dashed var(--accent-amber-border);
}

.emp-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-emp-action {
  background: #21262d;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-emp-action:hover {
  background: #30363d;
  border-color: #8b949e;
}

.btn-emp-action.del:hover {
  background: var(--accent-red-light);
  border-color: var(--accent-red-border);
  color: var(--accent-red);
}

/* History Cards */
.admin-history-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-history-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.history-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 10px;
}

.history-emp-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.history-emp-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.history-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

@media (max-width: 480px) {
  .history-card-body {
    grid-template-columns: 1fr 1fr;
  }
  .history-gps-col {
    grid-column: span 2;
    padding-top: 6px;
    border-top: 1px dashed var(--border-subtle);
  }
}

.history-time-col, .history-gps-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.history-time-lbl {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.history-time-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.history-gps-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-primary);
}

.table-selfie-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: transform 0.15s;
}

.table-selfie-thumb:hover {
  transform: scale(1.15);
  border-color: var(--accent-primary);
}

/* Settings Cards Group */
.settings-card {
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-xs);
}

.settings-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.settings-card-header h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.settings-card-header p {
  font-size: 11px;
  color: var(--text-muted);
}

.settings-icon {
  font-size: 20px;
}

.btn-save-settings {
  padding: 14px;
  font-size: 14px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  margin-top: 6px;
  margin-bottom: 24px;
}

/* ------------------------------------------------------------- */
/* 12. Lightbox & Toast Notifications                            */
/* ------------------------------------------------------------- */
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  margin-top: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  background: rgba(13, 17, 23, 0.9);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.lightbox-close {
  position: absolute;
  top: -38px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 90%;
  max-width: 380px;
  pointer-events: none;
}

.toast-msg {
  background: #161b22;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.25s ease;
  pointer-events: auto;
}

.toast-msg.success {
  border-color: var(--accent-green-border);
  background: rgba(63, 185, 80, 0.15);
  color: #3fb950;
}

.toast-msg.error {
  border-color: var(--accent-red-border);
  background: rgba(248, 81, 73, 0.15);
  color: #f85149;
}

.toast-msg.warning {
  border-color: var(--accent-amber-border);
  background: rgba(210, 153, 34, 0.15);
  color: #d29922;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------- */
/* 13. Screen: APK Only Blocker (Larang Browser PC & HP)         */
/* ------------------------------------------------------------- */
.apk-blocker-screen {
  position: fixed;
  inset: 0;
  background: #090d13;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.apk-blocker-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75);
}

.apk-blocker-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px auto;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apk-blocker-card h2 {
  font-size: 19px;
  font-weight: 800;
  color: #f0f6fc;
  margin-bottom: 8px;
  line-height: 1.35;
}

.apk-blocker-sub {
  font-size: 13px;
  color: #8b949e;
  line-height: 1.5;
  margin-bottom: 22px;
}

.apk-download-wrap {
  margin-bottom: 20px;
}

.btn-download-apk {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: var(--radius-md);
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-download-apk:active {
  transform: scale(0.98);
}

.apk-install-steps {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.apk-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12.5px;
  color: #c9d1d9;
  line-height: 1.45;
}

.apk-step-badge {
  background: #10b981;
  color: #0d1117;
  font-weight: 900;
  font-size: 11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-bypass-wrap {
  margin-top: 10px;
}

.btn-admin-bypass {
  background: transparent;
  border: none;
  color: #58a6ff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.btn-admin-bypass:hover {
  color: #79c0ff;
  text-decoration: underline;
}

/* ------------------------------------------------------------- */
/* 14. Responsive Layout Adjustments                             */
/* ------------------------------------------------------------- */
@media (max-width: 480px) {
  .app-wrapper {
    padding: 12px 12px 36px 12px;
  }
  
  .app-header {
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-info h1 {
    font-size: 14px;
  }

  .clock-time {
    font-size: 13px;
  }

  .clock-date {
    font-size: 9px;
  }

  .btn-action {
    padding: 14px 16px;
  }

  .btn-action-icon {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .btn-action-text .action-title {
    font-size: 14px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

@media (max-width: 360px) {
  .app-wrapper {
    padding: 8px 8px 24px 8px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .brand-info h1 {
    font-size: 13px;
  }

  .today-status-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .btn-action {
    padding: 12px 14px;
    gap: 10px;
  }

  .btn-action-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .btn-action-text .action-title {
    font-size: 13px;
  }

  .modal-dialog, .modal-card {
    max-width: 100%;
    margin: 8px;
  }
}

/* ============================================================= */
/* EMPLOYEE SUB-TABS (Presensi, Riwayat Saya, Kasbon, Salary)    */
/* ============================================================= */
.user-sub-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 14px 0 16px 0;
  background: var(--bg-card-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.user-sub-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 11px;
  font-weight: 600;
  gap: 4px;
  position: relative;
}

.user-sub-tab .sub-tab-icon {
  font-size: 18px;
  line-height: 1;
}

.user-sub-tab.active {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(56, 139, 253, 0.4);
}

.user-sub-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.user-sub-view {
  display: none;
  animation: fadeIn 0.25s ease;
}

.user-sub-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.sub-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.sub-view-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.sub-view-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* ------------------------------------------------------------- */
/* Riwayat Presensi Saya (Personal Attendance History)           */
/* ------------------------------------------------------------- */
.user-history-summary-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.u-summary-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  text-align: center;
}

.u-summary-chip .chip-val {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.u-summary-chip .chip-lbl {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.u-summary-chip.green .chip-val { color: var(--accent-green); }
.u-summary-chip.yellow .chip-val { color: var(--accent-amber); }
.u-summary-chip.purple .chip-val { color: var(--accent-purple); }

.user-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.u-hist-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.u-hist-card:hover {
  border-color: var(--accent-primary);
}

.u-hist-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.u-hist-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.u-hist-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.u-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.u-badge-tepat { background: var(--accent-green-light); color: var(--accent-green); border: 1px solid var(--accent-green-border); }
.u-badge-terlambat { background: var(--accent-amber-light); color: var(--accent-amber); border: 1px solid var(--accent-amber-border); }
.u-badge-sakit { background: var(--accent-purple-light); color: var(--accent-purple); border: 1px solid var(--accent-purple-border); }
.u-badge-izin { background: var(--accent-cyan-light); color: var(--accent-cyan); border: 1px solid rgba(57, 197, 207, 0.35); }

.u-badge-pending { background: rgba(210, 153, 34, 0.2); color: #fbbf24; border: 1px solid rgba(210, 153, 34, 0.4); }
.u-badge-approved { background: rgba(63, 185, 80, 0.2); color: #4ade80; border: 1px solid rgba(63, 185, 80, 0.4); }
.u-badge-rejected { background: rgba(248, 81, 73, 0.2); color: #f87171; border: 1px solid rgba(248, 81, 73, 0.4); }

.u-hist-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.u-hist-times {
  display: flex;
  gap: 16px;
}

.u-hist-time-item {
  display: flex;
  flex-direction: column;
}

.u-hist-time-item .lbl {
  font-size: 10px;
  color: var(--text-muted);
}

.u-hist-time-item .val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.u-hist-thumb-wrap {
  position: relative;
  cursor: pointer;
}

.u-hist-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.u-hist-notes {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-main);
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  border-left: 3px solid var(--accent-primary);
}

/* ------------------------------------------------------------- */
/* Kasbon Karyawan                                               */
/* ------------------------------------------------------------- */
.kasbon-balance-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #161b22 0%, #1f2937 100%);
  border: 1px solid var(--border-color);
  padding: 16px;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
}

.kasbon-balance-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.kasbon-badge-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-amber);
  letter-spacing: 0.5px;
}

.kasbon-balance-amount {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.kasbon-balance-icon {
  font-size: 32px;
  opacity: 0.8;
}

.kasbon-limit-bar-wrap {
  margin-bottom: 14px;
}

.kasbon-limit-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.kasbon-progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.kasbon-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-red));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.btn-open-kasbon-modal {
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.kasbon-rule-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  background: rgba(210, 153, 34, 0.08);
  border: 1px solid rgba(210, 153, 34, 0.25);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: #f3f4f6;
  margin-bottom: 14px;
  line-height: 1.4;
}

.kasbon-rule-notice .icon {
  font-size: 16px;
  flex-shrink: 0;
}

.kasbon-history-header {
  margin: 12px 0 8px 0;
}

.kasbon-history-header h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.kasbon-requests-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kasbon-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.kasbon-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.kasbon-item-amount {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.kasbon-item-date {
  font-size: 11px;
  color: var(--text-muted);
}

.kasbon-item-reason {
  font-size: 12px;
  color: var(--text-body);
  margin-bottom: 8px;
}

.kasbon-item-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
}

.kasbon-item-admin-note {
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
  margin-top: 4px;
}

/* Quick Chip Buttons for Kasbon */
.quick-amounts-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-chip {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-body);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-chip:hover {
  background: var(--accent-primary-light);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.kasbon-limit-summary {
  background: var(--bg-main);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kasbon-limit-summary .limit-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.kasbon-limit-summary .lbl { color: var(--text-muted); }
.kasbon-limit-summary .val { font-weight: 700; color: var(--text-main); }

/* ------------------------------------------------------------- */
/* Salary & Kebijakan (Anti-Screenshot Protected)                */
/* ------------------------------------------------------------- */
.screen-protected {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Toolbar Pemilihan Periode */
.salary-period-toolbar {
  margin-bottom: 12px;
}

.period-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.period-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.salary-period-select {
  background: var(--bg-card);
  border: 1.5px solid var(--accent-primary);
  color: #ffffff;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  outline: none;
  width: 100%;
}

/* Notice Bulan Berjalan Belum Diterbitkan */
.salary-unreleased-card {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.95));
  border: 1px solid rgba(210, 153, 34, 0.4);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.unreleased-icon {
  font-size: 36px;
  margin-bottom: 8px;
  animation: shieldPulse 2s infinite ease-in-out;
}

.unreleased-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-amber);
  background: rgba(210, 153, 34, 0.15);
  border: 1px solid rgba(210, 153, 34, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.unreleased-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.unreleased-desc {
  font-size: 12px;
  color: #d1d5db;
  line-height: 1.5;
  margin-bottom: 14px;
}

.unreleased-hint {
  font-size: 11px;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  line-height: 1.4;
}

/* ------------------------------------------------------------- */
/* Confidential Privacy Controls (In-Flow, Bebas Tumpang Tindih) */
/* ------------------------------------------------------------- */
.badge-confidential-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #fca5a5;
  background: rgba(248, 81, 73, 0.18);
  border: 1px solid rgba(248, 81, 73, 0.4);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.shield-sub-note {
  font-size: 11px;
  color: #8b949e;
  font-weight: 500;
}

/* Salary Privacy Bar Card (Above Slip) */
.salary-privacy-bar-card {
  background: linear-gradient(135deg, rgba(248, 81, 73, 0.08) 0%, rgba(22, 27, 34, 0.95) 100%);
  border: 1px solid rgba(248, 81, 73, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.salary-privacy-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.salary-privacy-warning-text {
  font-size: 11.5px;
  color: #f87171;
  background: rgba(248, 81, 73, 0.08);
  border-left: 3px solid #f85149;
  padding: 8px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  line-height: 1.45;
}

.salary-reveal-control,
.kasbon-reveal-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.salary-reveal-hint,
.kasbon-reveal-hint {
  font-size: 10.5px;
  color: #8b949e;
  text-align: center;
}

/* Kasbon Balance Card Internals */
.kasbon-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.kasbon-balance-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.kasbon-balance-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kasbon-amount-label {
  font-size: 11px;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.kasbon-balance-icon-clean {
  font-size: 30px;
  opacity: 0.85;
  background: rgba(210, 153, 34, 0.15);
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(210, 153, 34, 0.3);
  flex-shrink: 0;
}

/* Hold-To-Reveal Buttons */
.btn-hold-reveal {
  background: linear-gradient(135deg, #1f6feb, #1158c7);
  border: 1.5px solid #388bfd;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(31, 111, 235, 0.4);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: all 0.15s ease;
  width: 100%;
  max-width: 320px;
}

.btn-hold-reveal:active {
  background: #388bfd;
  transform: scale(0.97);
  box-shadow: 0 0 16px rgba(56, 139, 253, 0.8);
}

.btn-hold-salary {
  background: linear-gradient(135deg, #3730a3, #1e1b4b);
  border-color: #6366f1;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-hold-salary:active {
  background: #6366f1;
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.8);
}

.btn-hold-sm {
  background: linear-gradient(135deg, #854d0e, #451a03);
  border-color: #eab308;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.35);
  padding: 9px 18px;
  font-size: 11.5px;
}

.btn-hold-sm:active {
  background: #eab308;
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.7);
}

.masked-sensitive {
  letter-spacing: 1.5px;
  font-family: monospace;
}

.salary-slip-container {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
}

.salary-watermark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.08;
  overflow: hidden;
}

.watermark-pattern {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  transform: rotate(-25deg);
  white-space: nowrap;
  letter-spacing: 2px;
  text-align: center;
  line-height: 2.2;
}

.salary-slip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  z-index: 2;
}

.slip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.slip-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.slip-company {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.slip-doc-type {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.slip-badge-confidential {
  font-size: 9px;
  font-weight: 800;
  background: rgba(248, 81, 73, 0.15);
  color: var(--accent-red);
  border: 1px solid var(--accent-red-border);
  padding: 3px 6px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.5px;
}

.slip-employee-details {
  background: var(--bg-main);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slip-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.slip-detail-row .lbl { color: var(--text-muted); }
.slip-detail-row .val { color: var(--text-main); }

.slip-items-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.slip-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--border-subtle);
}

.slip-item-row.header {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4px;
}

.slip-item-row .item-name { color: var(--text-body); }
.slip-item-row .item-val { font-weight: 700; color: var(--text-main); font-variant-numeric: tabular-nums; }

.slip-item-row.deduction .item-name { color: #fca5a5; }

.slip-item-row.net-total {
  border-top: 2px solid var(--accent-primary);
  border-bottom: none;
  padding-top: 10px;
  margin-top: 4px;
}

.slip-item-row.net-total .item-name {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.slip-item-row.net-total .item-val {
  font-size: 18px;
  font-weight: 900;
  color: var(--accent-green);
}

.slip-attendance-recap {
  background: var(--bg-main);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.slip-attendance-recap .recap-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.recap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  text-align: center;
}

.recap-item .r-val {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.recap-item .r-lbl {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
}

.slip-footer-note {
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  font-style: italic;
}

/* 5 Kebijakan SDM Corner ERP */
.sdm-policies-container {
  margin-top: 16px;
}

.policies-header {
  margin-bottom: 10px;
}

.policies-header h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.policies-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.policy-item-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.policy-item-content {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Admin Kasbon Tab */
.admin-kasbon-header-notice {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(56, 139, 253, 0.1);
  border: 1px solid rgba(56, 139, 253, 0.3);
  border-radius: var(--radius-md);
  color: #bfdbfe;
  font-size: 12px;
  margin-bottom: 14px;
  line-height: 1.4;
}

.admin-kasbon-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-kasbon-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
}

.admin-kasbon-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.admin-kasbon-emp-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.admin-kasbon-emp-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.admin-kasbon-amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-amber);
  margin-bottom: 6px;
}

.admin-kasbon-reason {
  font-size: 12px;
  color: var(--text-body);
  background: var(--bg-main);
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  margin-bottom: 10px;
}

.admin-kasbon-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn-approve-kasbon {
  background: rgba(63, 185, 80, 0.15);
  border: 1px solid var(--accent-green);
  color: #4ade80;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-approve-kasbon:hover {
  background: var(--accent-green);
  color: #ffffff;
}

.btn-reject-kasbon {
  background: rgba(248, 81, 73, 0.15);
  border: 1px solid var(--accent-red);
  color: #f87171;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-reject-kasbon:hover {
  background: var(--accent-red);
  color: #ffffff;
}

.admin-att-approve-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

/* Strict Screen Recording & Print Protection */
@media print {
  body {
    display: none !important;
  }
}

.security-blackout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000 !important;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  padding: 24px;
}

/* Card Pengajuan Kasbon Terpisah */
.kasbon-action-card {
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.12) 0%, rgba(22, 27, 34, 0.95) 100%);
  border: 1px solid rgba(56, 139, 253, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.kasbon-action-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.kasbon-action-icon {
  font-size: 28px;
  background: rgba(56, 139, 253, 0.2);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kasbon-action-heading {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 3px 0;
}

.kasbon-action-desc {
  font-size: 12px;
  color: #8b949e;
  margin: 0;
  line-height: 1.4;
}

/* ============================================================= */
/* 15. Fullscreen App Lock & Blackout PIN Security Modal          */
/* ============================================================= */
.app-lock-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000 !important;
  z-index: 999999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.lock-screen-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 340px;
  text-align: center;
}

.lock-shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(31, 111, 235, 0.15);
  border: 1px solid rgba(56, 139, 253, 0.4);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.lock-shield-icon {
  font-size: 13px;
}

.lock-shield-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #58a6ff;
  text-transform: uppercase;
}

.lock-icon-pulse {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 81, 73, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  animation: pulseLock 2s infinite ease-in-out;
}

@keyframes pulseLock {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

.lock-main-icon {
  font-size: 36px;
}

.lock-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1.5px;
  margin: 0 0 8px 0;
}

.lock-subtitle {
  font-size: 13px;
  color: #8b949e;
  margin: 0 0 24px 0;
  line-height: 1.45;
}

/* 6 PIN Indicator Dots */
.lock-pin-dots {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 24px;
}

.lock-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #484f58;
  background: transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lock-dot.filled {
  background: #58a6ff;
  border-color: #58a6ff;
  box-shadow: 0 0 12px rgba(88, 166, 255, 0.7);
  transform: scale(1.15);
}

.lock-pin-dots.shake {
  animation: shakeDots 0.45s ease-in-out;
}

@keyframes shakeDots {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-12px); }
  40%, 80% { transform: translateX(12px); }
}

.lock-error-msg {
  color: #f85149;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  background: rgba(248, 81, 73, 0.12);
  border: 1px solid rgba(248, 81, 73, 0.3);
  padding: 6px 14px;
  border-radius: 8px;
}

/* Tactile Numeric Keypad */
.lock-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 270px;
  margin: 0 auto;
}

.lock-key-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #161b22;
  border: 1px solid #30363d;
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 auto;
  transition: all 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.lock-key-btn:active {
  background: #238636;
  border-color: #2ea043;
  transform: scale(0.92);
}

.lock-key-btn.lock-key-action {
  font-size: 12px;
  font-weight: 700;
  background: rgba(33, 38, 45, 0.7);
  color: #8b949e;
  letter-spacing: 0.5px;
}

.lock-key-btn.lock-key-action:active {
  background: #30363d;
  color: #ffffff;
}

.lock-footer-action {
  margin-top: 24px;
}

.btn-cancel-lock {
  background: transparent;
  border: 1px solid #30363d;
  color: #8b949e;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-cancel-lock:hover, .btn-cancel-lock:active {
  color: #ffffff;
  border-color: #8b949e;
  background: rgba(255, 255, 255, 0.05);
}

/* ============================================================= */
/* 16. Employee 4-Sub-Tab Navigation Bar (Proportional & Ergonomic) */
/* ============================================================= */
.user-sub-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: #161b22;
  border: 1px solid #30363d;
  padding: 6px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.user-sub-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  min-height: 52px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #8b949e;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.user-sub-tab .sub-tab-icon {
  font-size: 18px;
  line-height: 1;
}

.user-sub-tab .sub-tab-label {
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.user-sub-tab:hover {
  color: #c9d1d9;
  background: rgba(255, 255, 255, 0.04);
}

.user-sub-tab.active {
  background: #238636;
  color: #ffffff;
  border-color: #2ea043;
  box-shadow: 0 2px 8px rgba(35, 134, 54, 0.35);
}

/* ============================================================= */
/* 17. Fullscreen Security Screenshot Killer Modal (Android & iOS) */
/* ============================================================= */
.security-screenshot-killer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000 !important;
  z-index: 999999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.killer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 340px;
  text-align: center;
}

.killer-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 81, 73, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.killer-shield-icon {
  font-size: 38px;
}

.killer-badge {
  display: inline-block;
  background: rgba(248, 81, 73, 0.2);
  border: 1px solid rgba(248, 81, 73, 0.4);
  color: #fca5a5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.killer-title {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
}

.killer-desc {
  font-size: 13px;
  color: #8b949e;
  line-height: 1.45;
  margin: 0 0 16px 0;
}

.killer-policy-box {
  background: rgba(210, 153, 34, 0.1);
  border: 1px solid rgba(210, 153, 34, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 11.5px;
  color: #f3f4f6;
  text-align: left;
  line-height: 1.4;
  margin-bottom: 24px;
}

.killer-btn-dismiss {
  width: 100%;
  padding: 12px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ============================================================= */
/* 18. Instant Screenshot Blackout & Blur Protection             */
/* ============================================================= */
body.app-blurred .confidential-val,
body.app-blurred .masked-sensitive,
body.app-blurred .salary-slip-card,
body.app-blurred .kasbon-balance-card,
body.screenshot-killed .confidential-val,
body.screenshot-killed .masked-sensitive,
body.screenshot-killed .salary-slip-card,
body.screenshot-killed .kasbon-balance-card {
  filter: blur(60px) brightness(0) !important;
  color: transparent !important;
  text-shadow: 0 0 60px #000000 !important;
  background: #000000 !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

@media print {
  body {
    display: none !important;
  }
}

/* ============================================================= */
/* 19. Dynamic Forensic Watermark Layer (Solution 1 for iOS/Web) */
/* ============================================================= */
.forensic-watermark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 10px 0;
}

.forensic-watermark-line,
.forensic-watermark-text {
  font-size: 11.5px;
  font-weight: 900;
  color: rgba(248, 81, 73, 0.22);
  transform: rotate(-14deg);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  user-select: none;
  -webkit-user-select: none;
  text-align: center;
  font-family: monospace;
}

/* ============================================================= */
/* 20. Android APK Security Advisory Banner                      */
/* ============================================================= */
.apk-security-advisory-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(210, 153, 34, 0.12) 0%, rgba(22, 27, 34, 0.95) 100%);
  border: 1px solid rgba(210, 153, 34, 0.35);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.apk-security-advisory-card .advisory-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.apk-security-advisory-card .advisory-content strong {
  font-size: 12.5px;
  color: #f3f4f6;
}

.apk-security-advisory-card .advisory-content p {
  font-size: 11.5px;
  color: #8b949e;
  margin: 2px 0 6px 0;
  line-height: 1.4;
}

.btn-download-apk-sm {
  display: inline-block;
  background: #238636;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background 0.15s;
}

.btn-download-apk-sm:hover {
  background: #2ea043;
}

/* ============================================================= */
/* 21. Admin Screenshot Evidence Audit Cards & Grid              */
/* ============================================================= */
.admin-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.admin-screenshot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.admin-screenshot-card:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 68, 68, 0.4);
}

.admin-screenshot-thumb-wrap {
  width: 100%;
  height: 180px;
  background: #090d13;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.admin-screenshot-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.admin-screenshot-thumb-wrap:hover .admin-screenshot-thumb {
  transform: scale(1.04);
}

.admin-screenshot-badge-tab {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.admin-screenshot-card-body {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-screenshot-emp-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-screenshot-emp-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.admin-screenshot-time {
  font-size: 11px;
  color: #e5534b;
  font-weight: 600;
}

.admin-screenshot-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.btn-view-evidence {
  flex: 1;
  background: #1f6feb;
  color: #fff;
  border: none;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-view-evidence:hover {
  background: #388bfd;
}

.btn-delete-evidence {
  background: rgba(239, 68, 68, 0.15);
  color: #f85149;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-delete-evidence:hover {
  background: #da3633;
  color: #fff;
}

/* ============================================================= */
/* CORNER HRIS - MODERN GOOGLE / ENTERPRISE HRIS UI STYLES      */
/* ============================================================= */

/* Bottom Navigation Dock (Floating Island) */
.bottom-nav-dock {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 500px;
  background: rgba(22, 27, 34, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(48, 54, 61, 0.85);
  border-radius: 28px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 2px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 10px;
  z-index: 9999;
}

.nav-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  border-radius: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex: 1;
}

.nav-dock-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.nav-dock-item.active {
  color: #58a6ff;
  background: rgba(56, 139, 253, 0.15);
}

.nav-dock-item .dock-icon {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.nav-dock-item.active .dock-icon {
  transform: translateY(-1px) scale(1.1);
}

.nav-dock-item .dock-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Greeting Card */
.greeting-card {
  background: linear-gradient(135deg, rgba(22, 27, 34, 0.95) 0%, rgba(28, 35, 51, 0.95) 100%);
  border: 1px solid rgba(56, 139, 253, 0.25);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.greeting-card::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(56, 139, 253, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.greeting-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.greeting-avatar-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.greeting-meta {
  flex: 1;
  min-width: 0;
}

.greeting-time-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #79c0ff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.greeting-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 2px 0 6px 0;
}

.greeting-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.greeting-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
}

.greeting-badge.station {
  background: rgba(188, 140, 255, 0.15);
  color: #bc8cff;
  border: 1px solid rgba(188, 140, 255, 0.35);
}

.greeting-badge.nik {
  background: rgba(56, 139, 253, 0.15);
  color: #58a6ff;
  border: 1px solid rgba(56, 139, 253, 0.35);
}

/* Today Glance Card */
.today-glance-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
}

.glance-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.glance-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.glance-badge {
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.glance-badge.hadir {
  background: rgba(63, 185, 80, 0.15);
  color: #3fb950;
  border: 1px solid rgba(63, 185, 80, 0.35);
}

.glance-badge.pending {
  background: rgba(210, 153, 34, 0.15);
  color: #d29922;
  border: 1px solid rgba(210, 153, 34, 0.35);
}

.glance-badge.sakit {
  background: rgba(188, 140, 255, 0.15);
  color: #bc8cff;
  border: 1px solid rgba(188, 140, 255, 0.35);
}

.glance-times-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.glance-time-box {
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.glance-time-box .lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.glance-time-box .val {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.glance-time-box .tag {
  font-size: 10px;
  font-weight: 700;
  margin-top: 4px;
}

/* Quick Actions Grid */
.quick-actions-section {
  margin-bottom: 16px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding-left: 2px;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.quick-action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.quick-action-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  box-shadow: 0 4px 14px rgba(56, 139, 253, 0.2);
}

.quick-action-btn:active {
  transform: scale(0.96);
}

.quick-action-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.quick-action-icon.blue {
  background: rgba(56, 139, 253, 0.15);
  border: 1px solid rgba(56, 139, 253, 0.35);
}

.quick-action-icon.purple {
  background: rgba(188, 140, 255, 0.15);
  border: 1px solid rgba(188, 140, 255, 0.35);
}

.quick-action-icon.cyan {
  background: rgba(57, 197, 207, 0.15);
  border: 1px solid rgba(57, 197, 207, 0.35);
}

.quick-action-icon.emerald {
  background: rgba(63, 185, 80, 0.15);
  border: 1px solid rgba(63, 185, 80, 0.35);
}

.quick-action-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-body);
  text-align: center;
}

/* Notice Board Card */
.notice-board-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
}

.notice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.notice-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.notice-item {
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  transition: border-color 0.2s ease;
}

.notice-item:last-child {
  margin-bottom: 0;
}

.notice-item:hover {
  border-color: rgba(56, 139, 253, 0.4);
}

.notice-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.notice-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}

.notice-badge.blue { background: rgba(56, 139, 253, 0.15); color: #58a6ff; }
.notice-badge.purple { background: rgba(188, 140, 255, 0.15); color: #bc8cff; }
.notice-badge.emerald { background: rgba(63, 185, 80, 0.15); color: #3fb950; }

.notice-date {
  font-size: 10.5px;
  color: var(--text-muted);
}

.notice-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.notice-text {
  font-size: 12px;
  color: var(--text-body);
  line-height: 1.5;
}

/* Services Tracker Card */
.services-header-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.btn-service-add {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-service-add:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.services-filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.filter-chip {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-chip.active {
  background: #1f6feb;
  color: #fff;
  border-color: #388bfd;
}

.tracker-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  transition: border-color 0.2s ease;
}

.tracker-card:hover {
  border-color: rgba(56, 139, 253, 0.4);
}

.tracker-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.tracker-type {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.tracker-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
}

.tracker-badge.pending {
  background: rgba(210, 153, 34, 0.15);
  color: #d29922;
  border: 1px solid rgba(210, 153, 34, 0.35);
}

.tracker-badge.approved {
  background: rgba(63, 185, 80, 0.15);
  color: #3fb950;
  border: 1px solid rgba(63, 185, 80, 0.35);
}

.tracker-badge.rejected {
  background: rgba(248, 81, 73, 0.15);
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.35);
}

.tracker-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.tracker-desc {
  font-size: 12px;
  color: var(--text-body);
  line-height: 1.4;
  margin-bottom: 6px;
}

.tracker-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  padding-top: 6px;
  margin-top: 6px;
}

/* Digital Employee ID Card */
.digital-id-card {
  background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #1e1b4b 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 20px;
  padding: 22px 20px;
  margin-bottom: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.digital-id-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
}

.id-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

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

.id-card-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.id-card-brand .co-name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.id-card-brand .co-sub {
  font-size: 10px;
  color: #a5b4fc;
  font-weight: 600;
}

.id-card-body {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.id-card-avatar {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: linear-gradient(135deg, #388bfd, #8b5cf6);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.id-card-info h3 {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.id-card-info .id-role {
  font-size: 12px;
  color: #c7d2fe;
  font-weight: 600;
  margin-bottom: 6px;
}

.id-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.id-grid-item .lbl {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
}

.id-grid-item .val {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
}

/* Button Cetak Slip PDF */
.btn-print-slip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #388bfd;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  margin-top: 14px;
  transition: all 0.2s ease;
}

.btn-print-slip:hover {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  transform: translateY(-1px);
}

/* Print Styles for Slip Gaji PDF / Cetak */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .app-header, .main-tabs, .bottom-nav-dock, .user-sub-tabs, .btn-action, .btn-logout,
  .salary-period-toolbar, .salary-privacy-bar-card, .btn-hold-reveal, .salary-reveal-hint,
  .apk-security-advisory-card, .sdm-policies-container, .btn-print-slip {
    display: none !important;
  }
  .app-wrapper {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .salary-slip-card {
    background: #fff !important;
    border: 1px solid #ccc !important;
    color: #000 !important;
    box-shadow: none !important;
    padding: 20px !important;
  }
  .masked-sensitive {
    filter: none !important;
    color: #000 !important;
  }
  .text-danger { color: #dc2626 !important; }
  .text-success { color: #16a34a !important; }
}




