/**
 * PKCs-FSD Custom Design & Institutional Overrides
 * Builds upon EasyAdmin Pro's shadcn-inspired zinc aesthetic
 */

:root {
  --pkcs-brand: #0f172a;
  --pkcs-accent: #2563eb;
  --pkcs-duty-green: #10b981;
  --pkcs-rest-blue: #0284c7;
  --pkcs-late-amber: #f59e0b;
  --pkcs-absent-red: #ef4444;
}

/* Header Brand Identity */
.header-logo .brand-badge {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.45rem;
  margin-left: 0.5rem;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--pkcs-accent);
  font-weight: 700;
  text-transform: uppercase;
}

/* Branch Incharge Isolation Indicator */
.branch-scope-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}
[data-theme="dark"] .branch-scope-badge {
  background-color: #1e293b;
  color: #cbd5e1;
  border-color: #334155;
}

/* Status Badges */
.badge-status-active {
  background-color: rgba(16, 185, 129, 0.12);
  color: #10b981;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.badge-status-inactive {
  background-color: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  font-weight: 600;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Mobile Employee Layout Specifics */
.employee-app-container {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 80px; /* Space for bottom nav */
}

.employee-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--surface-color, #ffffff);
  border-bottom: 1px solid var(--border-color, #e4e4e7);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.employee-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  background: var(--surface-color, #ffffff);
  border-top: 1px solid var(--border-color, #e4e4e7);
  display: flex;
  justify-content: space-around;
  padding: 0.6rem 0;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.employee-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted-color, #71717a);
  text-decoration: none;
  gap: 0.2rem;
  transition: color 0.15s ease;
}

.employee-bottom-nav a i {
  font-size: 1.25rem;
}

.employee-bottom-nav a.active,
.employee-bottom-nav a:hover {
  color: var(--accent-color, #18181b);
}
[data-theme="dark"] .employee-bottom-nav a.active,
[data-theme="dark"] .employee-bottom-nav a:hover {
  color: #ffffff;
}

.card-duty-radar {
  border-radius: 12px;
  border: 1px solid var(--border-color, #e4e4e7);
  background: var(--surface-color, #ffffff);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.05));
  overflow: hidden;
}

.duty-status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.duty-status-indicator.online {
  background-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}
.duty-status-indicator.offline {
  background-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

/* Flash Notification Container */
.pkcs-toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1090;
}

/* Attendance Engine Viewfinder & Radar */
.pkcs-viewfinder-card {
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  position: relative;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.pkcs-camera-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #020617;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pkcs-camera-video,
.pkcs-camera-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pkcs-viewfinder-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pkcs-face-guide {
  width: 200px;
  height: 240px;
  border: 2px dashed rgba(255, 255, 255, 0.6);
  border-radius: 50% 50% 45% 45%;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.45);
}

/* Radar status indicator */
.pkcs-radar-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface-color, #ffffff);
  border-radius: 12px;
  border: 1px solid var(--border-color, #e4e4e7);
}

.pkcs-radar-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.pkcs-radar-circle.radar-verified {
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: radar-pulse-green 1.8s infinite;
}

.pkcs-radar-circle.radar-warning {
  background-color: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: radar-pulse-red 1.8s infinite;
}

@keyframes radar-pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes radar-pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.selfie-thumb-modal {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-color, #e4e4e7);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.selfie-thumb-modal:hover {
  transform: scale(1.08);
}

