/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* White SaaS Theme Tokens */
:root, .light-mode {
  --bg-primary: #F8FAFC;       /* Soft blue-gray backdrop */
  --bg-secondary: #FFFFFF;     /* Pure white for cards/menus */
  --bg-tertiary: #F1F5F9;      /* Light gray for backgrounds */
  
  --fg-primary: #0F172A;       /* Deep slate for headings */
  --fg-secondary: #334155;     /* Dark gray for labels/body */
  --fg-muted: #64748B;         /* Muted gray for captions/subtext */
  
  --border-color: #E2E8F0;     /* Clean border line */
  --border-hover: #CBD5E1;
  --border-focus: #047857;     /* Deep Emerald primary brand */
  
  --primary: #047857;          /* Deep Emerald primary */
  --primary-hover: #065F46;
  --primary-glow: rgba(4, 120, 87, 0.08);
  
  --success: #10B981;
  --success-bg: #ECFDF5;
  --success-fg: #047857;
  
  --warning: #F59E0B;
  --warning-bg: #FEF3C7;
  --warning-fg: #B45309;
  
  --danger: #EF4444;
  --danger-bg: #FEF2F2;
  --danger-fg: #B91C1C;
  
  --card-bg: #FFFFFF;
  --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.02);
  --modal-overlay: rgba(15, 23, 42, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
}

.dark-mode {
  --bg-primary: #0F172A;       /* Deep Slate background */
  --bg-secondary: #1E293B;     /* Slate for cards/menus */
  --bg-tertiary: #334155;      /* Slate-600 for inner bounds */
  
  --fg-primary: #F8FAFC;       /* Off-white/slate-50 for headings */
  --fg-secondary: #E2E8F0;     /* Light gray for text */
  --fg-muted: #94A3B8;         /* Muted blue-gray for captions */
  
  --border-color: #334155;     /* Darker border line */
  --border-hover: #475569;
  --border-focus: #10B981;     /* Lighter emerald for visibility */
  
  --primary: #10B981;          /* Lighter emerald primary for contrast */
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.15);
  
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --success-fg: #34D399;
  
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --warning-fg: #FBBF24;
  
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --danger-fg: #FCA5A5;
  
  --card-bg: #1E293B;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --modal-overlay: rgba(0, 0, 0, 0.6);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-primary);
  color: var(--fg-secondary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide native right-side calendar picker icon, keep click-to-open working */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
input[type="date"],
input[type="datetime-local"] {
  cursor: pointer;
}

/* Base Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--fg-primary);
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Utility Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin {
  animation: spin 1s linear infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(4, 120, 87, 0.4); }
  70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 8px rgba(4, 120, 87, 0); }
  100% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(4, 120, 87, 0); }
}

@keyframes scanLineAnimation {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

/* Page Wrapper */
.page-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 4px 0;
  animation: fadeIn 0.2s ease-out;
}

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

/* Top Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.top-header .title {
  font-size: 1.6rem;
  font-weight: 800;
}

.top-header .subtitle {
  font-size: 0.88rem;
  color: var(--fg-muted);
  margin-top: 2px;
}

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

/* Cards & Layout Containers */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 10px 20px -3px rgba(0, 0, 0, 0.04);
}

/* Buttons */
button {
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

.btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  height: 38px;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: 0 4px 10px rgba(4, 120, 87, 0.12);
}

.btn-secondary {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--fg-secondary);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-tertiary);
  border-color: var(--border-hover);
  color: var(--fg-primary);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger-fg);
  border-color: var(--danger-bg);
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  color: white;
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--fg-muted);
}

.btn-icon:hover {
  background: var(--bg-tertiary);
  color: var(--fg-primary);
  border-color: var(--border-hover);
}

.btn-icon.danger:hover {
  background: var(--danger-bg);
  color: var(--danger-fg);
  border-color: rgba(239, 68, 68, 0.15);
}

button:disabled, .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Forms & Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fg-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-prefix-icon {
  position: absolute;
  left: 14px;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: color 0.15s;
}

.input-with-icon input, 
.input-with-icon select,
.form-group input, 
.form-group select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--fg-primary);
  outline: none;
  font-weight: 500;
  transition: all 0.15s ease;
  font-family: inherit;
}

.input-with-icon input,
.form-group .input-with-icon input {
  padding-left: 42px !important;
}

.input-with-icon input:focus,
.input-with-icon select:focus,
.form-group input:focus,
.form-group select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-with-icon input:focus + .input-prefix-icon {
  color: var(--primary);
}

/* Dropdowns / Filter bar */
.filter-bar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  align-items: center;
  box-shadow: var(--card-shadow);
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-secondary);
}

.select-inline, .input-date {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--fg-primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.15s;
}

.select-inline:focus, .input-date:focus {
  border-color: var(--primary);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Modern SaaS Table Style */
.table-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  padding: 12px 18px;
  background: var(--bg-tertiary);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.custom-table td {
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--fg-secondary);
  font-size: 0.88rem;
  vertical-align: middle;
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.custom-table tr {
  transition: background-color 0.15s;
}

.custom-table tr:hover td {
  background: var(--bg-tertiary);
}

/* User Avatar & Info */
.emp-user-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1.5px solid var(--border-color);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.emp-user-box .name {
  font-weight: 600;
  color: var(--fg-primary);
}

.emp-user-box .sub {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* Status Indicators */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-status.completed {
  background: #ECFDF5;
  color: #047857;
}

.badge-status.working {
  background: rgba(59, 130, 246, 0.08);
  color: #2563EB;
}

.badge-status.late {
  background: #FEF3C7;
  color: #B45309;
}

.badge-status.missed {
  background: #FEF2F2;
  color: #B91C1C;
}

.badge-status.absent {
  background: #F1F5F9;
  color: #475569;
}

.badge-status.auto-closed {
  background: #F5F3FF;
  color: #7C3AED;
}

.badge-status.overtime {
  background: #EEF2FF;
  color: #4F46E5;
}

.badge-status.early-exit {
  background: #FFF7ED;
  color: #C2410C;
}

.badge-status.late-overtime {
  background: #FFFBEB;
  color: #B45309;
  border: 1px dashed #F59E0B;
}


.badge-dept {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-tertiary);
  color: var(--fg-secondary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
}

.badge-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(4, 120, 87, 0.05);
  color: var(--primary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
}

.id-pin {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.id-pin strong {
  color: var(--fg-primary);
}

.rate-text {
  font-weight: 600;
  color: var(--success-fg);
}

.earnings-text {
  font-weight: 600;
  color: var(--success-fg);
}

/* Modal Windows */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--modal-overlay);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeInModal 0.2s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: 28px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: scaleInModal 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleInModal {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

.modal-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.btn-close {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #475569;
  cursor: pointer;
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background-color 0.15s, color 0.15s;
  padding: 0;
  line-height: 1;
}

.btn-close svg {
  display: block;
  width: 18px;
  height: 18px;
  color: inherit;
  stroke: currentColor;
  stroke-width: 2;
}

.btn-close:hover {
  background: #E2E8F0;
  color: #0F172A;
  border-color: #CBD5E1;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 14px;
  gap: 14px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--fg-muted);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-state h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 10px 0 4px;
  color: var(--fg-primary);
}

.empty-state p {
  font-size: 0.85rem;
  max-width: 300px;
  line-height: 1.4;
}

/* Biometric Scanner Guides */
.biometric-scanner-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  aspect-ratio: 4/3; /* 4/3 prevents vertical cropping (zoom) on standard 4:3 webcams */
  background: #000;
  transition: all 0.25s ease;
}

.biometric-scanner-wrap.face-detected {
  border-color: var(--success);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}

.biometric-scanner-wrap.face-not-detected {
  border-color: var(--danger);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
}

.biometric-scanner-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror camera stream horizontally so left/right movements feel natural */
}

.biometric-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.biometric-hud-face-outline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 82%;
  height: 96%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='rgba(255, 255, 255, 0.45)' stroke-width='1.5' stroke-linecap='round'><path d='M50,4 C26,4 10,22 10,48 C10,74 26,96 50,96 C74,96 90,74 90,48 C90,22 74,4 50,4 Z' /></svg>");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.75;
  transition: all 0.2s ease;
}

@keyframes circlePulse {
  0% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.35)); }
  50% { transform: translate(-50%, -50%) scale(1.025); filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.85)); }
  100% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.35)); }
}

@keyframes circlePulseRed {
  0% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 2px rgba(239, 68, 68, 0.25)); }
  50% { transform: translate(-50%, -50%) scale(1.018); filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.65)); }
  100% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 2px rgba(239, 68, 68, 0.25)); }
}

.biometric-hud-face-outline.face-detected {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='rgba(16, 185, 129, 0.95)' stroke-width='2' stroke-linecap='round'><path d='M50,4 C26,4 10,22 10,48 C10,74 26,96 50,96 C74,96 90,74 90,48 C90,22 74,4 50,4 Z' /></svg>");
  opacity: 1;
  animation: circlePulse 2s ease-in-out infinite;
}

.biometric-hud-face-outline.face-not-detected {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='rgba(239, 68, 68, 0.8)' stroke-width='1.5' stroke-linecap='round'><path d='M50,4 C26,4 10,22 10,48 C10,74 26,96 50,96 C74,96 90,74 90,48 C90,22 74,4 50,4 Z' /></svg>");
  opacity: 0.8;
  animation: circlePulseRed 2.5s ease-in-out infinite;
}

.biometric-scan-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0), var(--danger), rgba(239, 68, 68, 0));
  box-shadow: 0 0 10px var(--danger);
  animation: scanLineAnimation 2.5s ease-in-out infinite;
  z-index: 4;
  transition: all 0.25s ease;
}

.biometric-scanner-wrap.face-detected .biometric-scan-bar {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0), var(--success), rgba(16, 185, 129, 0));
  box-shadow: 0 0 10px var(--success);
}

.biometric-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2.5px solid var(--border-color);
  transition: all 0.25s ease;
}

.biometric-scanner-wrap.face-detected .biometric-corner {
  border-color: var(--success);
}

.biometric-scanner-wrap.face-not-detected .biometric-corner {
  border-color: var(--danger);
}

.corner-tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.corner-tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.corner-br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

/* Photo Modal Previews */
.photo-view {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-color);
}
.photo-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dashboard Layout */
.dashboard-layout {
  min-height: 100vh;
  display: flex;
  background: var(--bg-primary);
  color: var(--fg-secondary);
}

.dashboard-sidebar {
  width: 250px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 14px;
  flex-shrink: 0;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 90;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 20px;
  border-bottom: none;
}

.sidebar-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 2px 4px var(--primary-glow);
}

.sidebar-logo-text h2 {
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0;
  color: var(--fg-primary);
}

.sidebar-logo-text span {
  font-size: 0.7rem;
  color: var(--fg-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-nav-section {
  margin-top: 24px;
}

.sidebar-nav-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 10px 8px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.15s;
  color: var(--fg-secondary);
  text-decoration: none;
}

.sidebar-link:hover {
  background: var(--bg-tertiary);
  color: var(--fg-primary);
}

.sidebar-link.active {
  background: rgba(16, 185, 129, 0.08);
  color: #10B981;
  font-weight: 700;
  position: relative;
  border-radius: 8px;
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 4px;
  background: #10B981;
  border-radius: 0 4px 4px 0;
}

.sidebar-footer {
  border-top: 1.5px solid var(--bg-primary);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-user {
  padding: 0 6px;
}

.sidebar-user-role {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fg-primary);
}

.sidebar-user-email {
  font-size: 0.75rem;
  color: var(--fg-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.sidebar-exit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  background: var(--danger-bg);
  color: var(--danger-fg);
  border: 1px solid rgba(239, 68, 68, 0.08);
  transition: all 0.15s;
}

.sidebar-exit-btn:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.dashboard-main {
  flex: 1 1;
  padding: 16px 24px;
  overflow-y: auto;
}

/* Split Login Layout */
.login-split-container {
  min-height: 100vh;
  display: flex;
  background: var(--bg-primary);
}

.login-form-side {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 48px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  z-index: 10;
}

.login-branding-side {
  flex: 1.1 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
  background: linear-gradient(135deg, #022C22 0%, #064E3B 100%);
  position: relative;
  overflow: hidden;
}

.branding-content {
  max-width: 480px;
  z-index: 5;
}

.branding-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #FFFFFF; /* High-contrast white logo background */
  color: #047857; /* Emerald icon */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.branding-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF; /* White heading text */
  margin-bottom: 16px;
}

.branding-text {
  font-size: 1.05rem;
  color: #A7F3D0; /* Soft mint-green text */
  line-height: 1.5;
  margin-bottom: 32px;
}

.branding-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.branding-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #FFFFFF; /* White features text */
}

.feature-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15); /* Translucent white circle */
  color: #34D399; /* Bright mint-emerald checkmark */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Two-column employee dashboard layout */
.kiosk-dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-gap: 24px;
  gap: 24px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .kiosk-dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  
  .kiosk-portal-container {
    padding: 28px 16px;
  }
  
  .login-branding-side {
    padding: 40px 48px;
  }
}

@media (max-width: 768px) {
  .login-split-container {
    flex-direction: column;
  }
  
  .login-form-side {
    padding: 48px 24px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .login-branding-side {
    display: none; /* Hide branding sidebar on mobile for instant login focus */
  }
  
  /* Make biometric webcam wrapper size-constrained on mobile */
  .biometric-scanner-wrap {
    max-height: 38vh;
    border-radius: var(--radius-md);
  }
  
  .modal-box {
    width: 94% !important;
    padding: 16px !important;
    margin: 12px;
  }
  
  .kiosk-welcome-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .kiosk-welcome-section button {
    width: 100%;
  }
}

/* Admin Login Styles */
.admin-login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.auth-glow-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(4, 120, 87, 0.08) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--card-shadow);
  color: var(--fg-primary);
  z-index: 2;
  animation: fadeIn 0.2s ease-out;
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.app-badge-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.tagline {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--fg-primary);
  margin: 4px 0;
  letter-spacing: -0.02em;
}

.sub-tagline {
  color: var(--fg-muted);
  font-size: 0.85rem;
  margin: 0;
  font-weight: 500;
}

.error-alert {
  background: var(--danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: var(--danger-fg);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.btn-photo {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  transition: color 0.15s;
}

.btn-photo:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Dashboard Timeline Logs */
.timeline-log {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 12px;
  margin-top: 8px;
}

.timeline-log::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 20px;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-secondary);
}

.timeline-marker.active {
  background: var(--warning);
  box-shadow: 0 0 8px var(--warning);
}

.timeline-marker.completed {
  background: var(--success);
}

.timeline-content {
  flex: 1 1;
}

.timeline-time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fg-primary);
}

.timeline-sub {
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-top: 1px;
}

/* Stat Grid / Highlight Card */
.stat-highlight-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.stat-highlight-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-top: 4px;
}

/* Kiosk Dashboard Page Containers */
.kiosk-portal-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px;
  animation: fadeIn 0.25s ease-out;
}

.kiosk-welcome-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.kiosk-welcome-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg-primary);
}

.kiosk-welcome-subtitle {
  font-size: 0.88rem;
  color: var(--fg-muted);
  margin-top: 4px;
  font-weight: 500;
}


/* ═══════════════════════════════════════
   ADMIN DASHBOARD LAYOUT
═══════════════════════════════════════ */

/* Mobile Topbar & Responsiveness */
.mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
  background: var(--bg-secondary);
  border-bottom: none;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 95;
  width: 100%;
}

.mobile-topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-topbar-brand h2 {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
  color: var(--fg-primary);
}

.mobile-toggle-btn {
  background: transparent;
  border: none;
  color: var(--fg-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.mobile-toggle-btn:hover {
  background: var(--bg-tertiary);
  color: var(--fg-primary);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  z-index: 99;
  animation: fadeIn 0.2s ease-out;
}



.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-primary);
}

.dashboard-sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 0;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 20px;
  border-bottom: none;
  margin-bottom: 16px;
}

.sidebar-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.sidebar-logo-text h2 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--fg-primary);
  letter-spacing: -0.02em;
}

.sidebar-logo-text span {
  font-size: 0.72rem;
  color: var(--fg-muted);
  font-weight: 500;
}

.sidebar-nav-section {
  padding: 0 12px;
}

.sidebar-nav-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  padding: 0 8px;
  margin-bottom: 6px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-decoration: none;
  transition: all 0.15s ease;
}

.sidebar-link:hover {
  background: var(--bg-tertiary);
  color: var(--fg-primary);
}

.sidebar-link.active {
  background: var(--primary-glow);
  color: var(--primary);
}

.sidebar-footer {
  padding: 16px 16px 0;
  border-top: 1px solid var(--border-color);
}

.sidebar-user {
  margin-bottom: 12px;
}

.sidebar-user-role {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.sidebar-user-email {
  font-size: 0.78rem;
  color: var(--fg-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.sidebar-exit-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-muted);
  background: transparent;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-exit-btn:hover {
  background: var(--danger-bg);
  color: var(--danger-fg);
  border-color: var(--danger);
}

.dashboard-main {
  flex: 1 1;
  overflow-y: auto;
  min-width: 0;
}

/* ═══════════════════════════════════════
   ADMIN PAGE COMPONENTS
═══════════════════════════════════════ */

.page-container {
  padding: 32px 36px;
  width: 100%;
  max-width: none;
  margin: 0;
  animation: fadeIn 0.2s ease-out;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.top-header .title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--fg-primary);
  letter-spacing: -0.025em;
}

.top-header .subtitle {
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin-top: 3px;
  font-weight: 500;
}

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

/* Filter Dropdown */
.filter-dropdown-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  height: 38px;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.filter-dropdown-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.filter-dropdown-wrap select {
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-secondary);
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  margin: 0;
  height: 100%;
}

.filter-dropdown-wrap select:focus {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ═══════════════════════════════════════
   TABLE STYLES
═══════════════════════════════════════ */

.table-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
}

.custom-table thead tr {
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}

.custom-table thead th {
  padding: 12px 18px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--fg-muted);
  text-align: left;
  white-space: nowrap;
}

.custom-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background 0.12s ease;
}

.custom-table tbody tr:last-child {
  border-bottom: none;
}

.custom-table tbody tr:hover {
  background: var(--bg-tertiary);
}

.custom-table tbody td {
  padding: 10px 18px;
  font-size: 0.875rem;
  color: var(--fg-secondary);
  vertical-align: middle;
}

/* Employee name box in table */
.emp-user-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.emp-user-box .name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fg-primary);
  letter-spacing: -0.01em;
}

.emp-user-box .sub {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 1px;
  font-weight: 500;
}

/* Department badge */
.badge-dept {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--fg-secondary);
  white-space: nowrap;
}

/* ID & PIN */
.id-pin {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.id-pin span {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 500;
}

.id-pin strong {
  color: var(--fg-primary);
  font-weight: 700;
}

.id-pin .pin {
  color: var(--fg-muted);
  font-size: 0.74rem;
}

/* Hourly Rate text */
.rate-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--success-fg);
}

/* Face ID / Status badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
}

.badge-status.verified {
  background: var(--success-bg);
  color: var(--success-fg);
}

.badge-status.pending {
  background: var(--warning-bg);
  color: var(--warning-fg);
}

/* Action buttons row */
.action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--fg-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.empty-state h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg-secondary);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 0.84rem;
  color: var(--fg-muted);
}

/* ═══════════════════════════════════════
   MODAL STYLES
═══════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--modal-overlay);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.15s ease;
}

.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
  animation: slideUp 0.2s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fg-primary);
}

.btn-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #475569;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: all 0.15s ease;
}

.btn-close svg {
  display: block;
  width: 18px;
  height: 18px;
  color: inherit;
  stroke: currentColor;
  stroke-width: 2;
}

.btn-close:hover {
  background: #FEF2F2;
  color: #B91C1C;
  border-color: #FECACA;
}

.modal-form {
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fg-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 9px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--fg-primary);
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 500;
  transition: border-color 0.15s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--bg-secondary);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

/* Department table cell styles */
.dept-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dept-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-tertiary);
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dept-box .name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-primary);
}

.code-tag {
  font-family: monospace;
  font-size: 0.8rem;
  background: var(--bg-tertiary);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--fg-secondary);
  border: 1px solid var(--border-color);
}

.badge-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 600;
}

/* Time box and verification photo action styling */
.time-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.btn-photo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(4, 120, 87, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 2px;
}

.btn-photo:hover {
  background: var(--primary);
  color: white;
}

@media (max-width: 768px) {
  .mobile-topbar {
    display: flex;
  }

  .dashboard-layout {
    flex-direction: column !important;
  }

  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh !important;
    width: 260px !important;
    min-width: 260px !important;
    z-index: 100 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15) !important;
    padding-top: calc(20px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .dashboard-sidebar.open {
    transform: translateX(0) !important;
  }

  .sidebar-overlay.open {
    display: block !important;
  }

  .dashboard-sidebar .sidebar-logo .mobile-toggle-btn {
    display: flex !important;
  }

  .page-container {
    padding: 16px 14px !important;
  }

  .top-header {
    margin-bottom: 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .top-header .title {
    font-size: 1.4rem !important;
  }

  .header-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .filter-dropdown-wrap {
    flex: 1 1 !important;
    min-width: 0 !important;
    width: auto !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
  }

  .filter-dropdown-wrap select {
    width: 100% !important;
    max-width: 130px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  .select-inline {
    flex: 1 1 !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 130px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .top-header .btn, .header-actions .btn {
    width: auto !important;
    flex-shrink: 0 !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  .table-card {
    border-radius: var(--radius-md) !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .custom-table {
    min-width: 650px !important;
  }

  .empty-state {
    padding: 40px 16px !important;
    border-radius: var(--radius-md) !important;
  }

  .modal-box {
    width: 92% !important;
    padding: 20px 16px !important;
    margin: 10px auto !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* Redesigned Premium Cards & Tables */
/* Responsive KPI Card Grid */
.kpi-grid-premium {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 1024px) {
  .kpi-grid-premium {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .kpi-grid-premium {
    grid-template-columns: 1fr !important;
  }
}

.kpi-card-premium {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 10px 14px;
  position: relative;
  overflow: hidden;
  border-top: 3px solid transparent;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.05);
}

.kpi-card-premium.border-green {
  border-top-color: #10B981;
}

.kpi-card-premium.border-emerald {
  border-top-color: #059669;
}

.kpi-card-premium.border-blue {
  border-top-color: #3B82F6;
}

.kpi-card-premium.border-orange {
  border-top-color: #F59E0B;
}

/* Premium Outlined Button for View Photo */
.btn-photo-outlined {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--fg-secondary);
  padding: 4px 10px;
  font-size: 0.72rem;
  border-radius: 6px;
  font-weight: 700;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.btn-photo-outlined:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-hover);
  color: var(--fg-primary);
}

/* Alternating Row Hover and Sticky Header Table */
.custom-table-premium {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table-premium th {
  padding: 12px 18px;
  background: var(--bg-tertiary);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border-color);
  font-weight: 800;
  letter-spacing: 0.05em;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
}

.custom-table-premium td {
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--fg-secondary);
  font-size: 0.85rem;
  vertical-align: middle;
}

.custom-table-premium tbody tr:nth-child(even) {
  background-color: rgba(120, 120, 120, 0.02);
}

.custom-table-premium tbody tr:hover td {
  background-color: rgba(120, 120, 120, 0.06) !important;
}

/* Dropdown Action Menu Styles */
.dropdown-menu-container {
  position: relative;
  display: inline-block;
}

.dropdown-menu-list {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px -3px rgba(0,0,0,0.15), 0 4px 10px -4px rgba(0,0,0,0.12);
  border-radius: 8px;
  width: 160px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

.dropdown-menu-item {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-secondary);
  text-align: left;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  transition: background 0.1s;
}

.dropdown-menu-item:hover {
  background: var(--bg-tertiary);
  color: var(--fg-primary);
}

.dropdown-menu-item.danger {
  color: var(--danger-fg);
}

.dropdown-menu-item.danger:hover {
  background: var(--danger-bg);
}

/* Responsive Utilities & Mobile Cards */
@media (min-width: 1025px) {
  .mobile-only {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .desktop-only {
    display: none !important;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .employee-cards,
  .report-cards,
  .department-cards,
  .payroll-cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-gap: 14px !important;
    gap: 14px !important;
  }
}

.employee-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 4px;
}

.employee-card {
  background: var(--bg-secondary, #FFFFFF);
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.employee-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.employee-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-tertiary, #F1F5F9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--fg-secondary, #475569);
  flex-shrink: 0;
}

.employee-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.employee-card-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--fg-primary, #0F172A);
  margin: 0;
}

.employee-card-subtitle {
  font-size: 0.78rem;
  color: var(--fg-muted, #64748B);
  margin: 2px 0 0 0;
  font-weight: 500;
}

.employee-card-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 10px;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed var(--border-color, #E2E8F0);
  border-bottom: 1px dashed var(--border-color, #E2E8F0);
  margin-bottom: 12px;
}

.employee-card-label {
  font-size: 0.72rem;
  color: var(--fg-muted, #64748B);
  font-weight: 600;
  margin-bottom: 2px;
}

.employee-card-value {
  font-size: 0.82rem;
  color: var(--fg-primary, #0F172A);
  font-weight: 700;
}

.employee-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Attendance Report Cards */
.report-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 4px;
}

.report-card {
  background: var(--bg-secondary, #FFFFFF);
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--card-shadow);
  transition: transform 0.15s ease;
}

.report-card:hover {
  transform: translateY(-2px);
}

.report-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.report-card-employee {
  display: flex;
  align-items: center;
  gap: 10px;
}

.report-card-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 12px;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px dashed var(--border-color, #E2E8F0);
  border-bottom: 1px dashed var(--border-color, #E2E8F0);
  margin-bottom: 12px;
}

.report-card-label {
  font-size: 0.72rem;
  color: var(--fg-muted, #64748B);
  font-weight: 600;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.report-card-value {
  font-size: 0.82rem;
  color: var(--fg-primary, #0F172A);
  font-weight: 700;
}

.report-card-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

/* Department Cards */
.department-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 4px;
}

.department-card {
  background: var(--bg-secondary, #FFFFFF);
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--card-shadow);
  transition: transform 0.15s ease;
}

.department-card:hover {
  transform: translateY(-2px);
}

.department-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.department-card-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 12px;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px dashed var(--border-color, #E2E8F0);
  border-bottom: 1px dashed var(--border-color, #E2E8F0);
  margin-bottom: 12px;
}

/* Responsive date selectors row in Filters */
.date-selectors-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

@media (max-width: 768px) {
  .date-selectors-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .date-selectors-row .dash-separator {
    display: none !important;
  }
}

/* Payroll Mobile Cards */
.payroll-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 4px;
}

.payroll-card {
  background: var(--bg-secondary, #FFFFFF);
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--card-shadow);
  transition: transform 0.15s ease;
}

.payroll-card:hover {
  transform: translateY(-2px);
}

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

.payroll-card-employee {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payroll-card-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 12px;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px dashed var(--border-color, #E2E8F0);
  border-bottom: 1px dashed var(--border-color, #E2E8F0);
  margin-bottom: 12px;
}

.payroll-card-label {
  font-size: 0.72rem;
  color: var(--fg-muted, #64748B);
  font-weight: 600;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.payroll-card-value {
  font-size: 0.82rem;
  color: var(--fg-primary, #0F172A);
  font-weight: 700;
}

.payroll-card-gross {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.payroll-card-gross-label {
  font-size: 0.78rem;
  color: #065F46;
  font-weight: 700;
}

.payroll-card-gross-value {
  font-size: 1rem;
  color: #047857;
  font-weight: 800;
}

/* Settings Responsive Utilities */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  align-items: start;
}

.settings-card {
  padding: 32px;
}

.lat-lng-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .settings-card {
    padding: 20px;
  }
  .lat-lng-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.settings-switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-tertiary);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1.5px solid var(--border-color);
  gap: 12px;
}

@media (max-width: 480px) {
  .settings-switch-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
}

/* ============================================
   Custom Alert & Confirm Dialog
   ============================================ */
.custom-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: dialogFadeIn 0.15s ease;
}

@keyframes dialogFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.custom-dialog-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 28px 28px 22px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.22), 0 8px 16px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: dialogSlideUp 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dialogSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.custom-dialog-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.custom-dialog-icon-info,
.custom-dialog-icon-alert {
  background: rgba(4, 120, 87, 0.1);
  color: var(--primary);
}

.custom-dialog-icon-confirm {
  background: rgba(59, 130, 246, 0.1);
  color: #3B82F6;
}

.custom-dialog-icon-warning,
.custom-dialog-icon-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.custom-dialog-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fg-primary);
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.custom-dialog-message {
  font-size: 0.875rem;
  color: var(--fg-secondary);
  line-height: 1.55;
  margin: 0 0 22px 0;
}

.custom-dialog-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.custom-dialog-btn {
  flex: 1 1;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  font-family: inherit;
}

.custom-dialog-btn-cancel {
  background: var(--bg-tertiary);
  color: var(--fg-secondary);
  border: 1.5px solid var(--border-color);
}

.custom-dialog-btn-cancel:hover {
  background: var(--border-color);
  color: var(--fg-primary);
}

.custom-dialog-btn-confirm {
  background: var(--primary);
  color: #ffffff;
}

.custom-dialog-btn-confirm:hover {
  background: var(--primary-hover);
}

.custom-dialog-btn-danger {
  background: var(--danger);
  color: #ffffff;
}

.custom-dialog-btn-danger:hover {
  background: #DC2626;
}

/* Premium Responsive Pagination Component */
.premium-pagination-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 12px;
  border-radius: 0 0 14px 14px;
  width: 100%;
  box-sizing: border-box;
}

.premium-pagination-text {
  font-size: 0.78rem;
  color: var(--fg-muted);
  font-weight: 600;
}

.premium-pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.premium-pagination-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 680px) {
  .premium-pagination-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
  }
  
  .premium-pagination-controls {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .premium-pagination-controls {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .premium-pagination-select {
    margin-left: 0 !important;
  }
}

/* Hydration-safe Logo Filters & Theme Icons */
.logo-loading-filter {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15)) !important;
}
.dark-mode .logo-loading-filter {
  filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.35)) !important;
}

.logo-icon-filter {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15)) !important;
}
.dark-mode .logo-icon-filter {
  filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.3)) !important;
}

/* Theme Toggle Hydration-Safe Icons */
.theme-toggle-btn .theme-sun-icon {
  display: none !important;
}
.theme-toggle-btn .theme-moon-icon {
  display: block !important;
}

.dark-mode .theme-toggle-btn .theme-sun-icon {
  display: block !important;
}
.dark-mode .theme-toggle-btn .theme-moon-icon {
  display: none !important;
}

/* Premium Session Loading Loader */
.premium-loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: var(--bg-primary);
  color: var(--fg-primary);
}

.premium-loader-spinner-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.premium-loader-spinner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 3.5px;
  background: linear-gradient(135deg, var(--primary) 30%, transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spinLoader 1s linear infinite;
}

.premium-loader-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-loader-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.premium-loader-text {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: pulseText 1.8s ease-in-out infinite;
}

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

@keyframes pulseText {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

