/* ==========================================================================
   Orbiz Creativez - Premium Light Theme Style Sheet
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Color Palette (Premium Light Theme) */
  --bg-body: #f8fafc;            /* Clean Slate 50 */
  --bg-card: #ffffff;            /* Pure White */
  --bg-card-hover: #f1f5f9;      /* Slate 100 */
  --bg-neutral-light: #f1f5f9;   /* Inner Slate 100 */
  --border-light: rgba(0, 0, 0, 0.07);
  --border-focus: rgba(245, 158, 11, 0.4);
  
  /* Corporate Colors (Orbiz Yellow & Dark Grey) */
  --color-primary: #f59e0b;       /* Orbiz Yellow */
  --color-primary-dark: #27272a;  /* Orbiz Dark Grey Text Accent */
  --color-primary-glow: rgba(245, 158, 11, 0.25);
  
  --color-success: #10b981;       /* Emerald */
  --color-success-glow: rgba(16, 185, 129, 0.2);
  --color-danger: #ef4444;        /* Rose Red */
  --color-danger-glow: rgba(239, 68, 68, 0.2);
  
  --color-text-bright: #0f172a;   /* Deep Slate 900 */
  --color-text-muted: #64748b;    /* Cool Slate 500 */
  
  /* Layout Dimensions */
  --nav-height: 76px;
  --max-mobile-width: 480px;
  --mobile-blocker-width: 768px;
  
  /* Shadows & Blurs */
  --shadow-premium: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  --shadow-card-glowing: 0 8px 24px rgba(245, 158, 11, 0.12);
  --shadow-glow: 0 0 15px var(--color-primary-glow);
}

/* Reset & Base Elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--color-text-bright);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==========================================================================
   DESKTOP BLOCKER SCREEN (Mobile Enforcer)
   ========================================================================== */
.mobile-blocker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
}

.blocker-content {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: slide-up 0.5s ease-out;
}

.blocker-logo {
  height: 64px;
  object-fit: contain;
  margin-bottom: 40px;
}

.phone-illustration {
  position: relative;
  width: 90px;
  height: 90px;
  background: rgba(245, 158, 11, 0.08);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.blocker-icon {
  width: 44px;
  height: 44px;
  color: var(--color-primary);
  z-index: 2;
}

.pulse-ring-illustration {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  animation: pulse-ring 2s infinite;
  opacity: 0.5;
}

.blocker-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.blocker-content p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.instruction-box {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 18px 24px;
  width: 100%;
  text-align: left;
}

.instruction-box p {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.instruction-box ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.instruction-box li {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.inline-icon {
  display: inline-block;
  vertical-align: middle;
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
  color: var(--color-primary-dark);
}

/* Enforce displaying blocker on large screens, hide app */
@media (min-width: 769px) {
  .mobile-blocker-overlay {
    display: flex;
  }
  .mobile-wrapper {
    display: none !important;
  }
}

/* Enforce mobile view (hide blocker, show app) */
@media (max-width: 768px) {
  .mobile-blocker-overlay {
    display: none !important;
  }
}


/* ==========================================================================
   MOBILE APP CONTENT CONTAINER
   ========================================================================== */
.mobile-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-body);
}

/* Main App Header with Logo */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand-logo {
  height: 32px;
  object-fit: contain;
}

/* Top corner refresh simulation buttons */
.notification-btn {
  background: var(--bg-neutral-light);
  border: none;
  color: var(--color-primary-dark);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-btn:active {
  transform: scale(0.9);
  background-color: var(--color-primary);
  color: #fff;
}

/* Scroll Container */
.app-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px calc(var(--nav-height) + 20px) 20px;
  scrollbar-width: none;
}
.app-container::-webkit-scrollbar {
  display: none;
}

/* Tab views */
.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Header Text layout */
.section-header-simple {
  margin-bottom: 20px;
  padding-left: 2px;
}
.section-title-large {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: -0.5px;
}

/* Employee Greeting Widget card */
.user-greeting-card {
  margin-bottom: 18px;
}
.user-profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  max-width: 48px;
  min-height: 48px;
  max-height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
  box-sizing: border-box;
  flex: 0 0 48px;
}
.user-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  color: var(--color-primary-dark);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  padding: 0;
  margin: 0;
  overflow: hidden;
}
.company-tagline {
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.user-display-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary-dark);
}

/* Live Clock Widget card */
.live-clock-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 22px 18px;
  margin-bottom: 18px;
  text-align: center;
  box-shadow: var(--shadow-premium);
}
.date-badge {
  background: rgba(245, 158, 11, 0.08);
  display: inline-block;
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  color: #d97706; /* Dark amber text for readability on light yellow background */
  margin-bottom: 10px;
}
.time-display {
  font-size: 42px;
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: -1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.time-sec {
  font-size: 18px;
  color: var(--color-primary);
  font-weight: 700;
  margin-top: 10px;
  margin-left: 2px;
  width: 22px;
  text-align: left;
}
.ampm {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-text-muted);
  margin-top: 10px;
  margin-left: 2px;
}
.status-pulse-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-success-glow);
  animation: pulse-ring-light 2s infinite;
}
.pulse-text {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Location Telemetry widget */
.telemetry-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-premium);
}
.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding-bottom: 8px;
}
.telemetry-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}
.accuracy-badge {
  font-size: 10px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-primary-dark);
  padding: 2px 8px;
  border-radius: 8px;
}
.accuracy-badge.success {
  background: rgba(16, 185, 129, 0.09);
  color: var(--color-success);
}
.accuracy-badge.danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-danger);
}
.telemetry-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.telemetry-address-block {
  display: flex;
  flex-direction: column;
}
.telemetry-distance {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed rgba(15, 23, 42, 0.08);
}
.telemetry-label {
  font-size: 9px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.telemetry-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary-dark);
  line-height: 1.4;
}
.telemetry-coordinates {
  font-family: monospace;
  font-size: 11px;
  color: var(--color-text-muted);
}

/* Glassmorphic card styling (Standard light cards) */
.glass-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-premium);
}

/* Timeline checkpoints list */
.section-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.flow-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.timeline-item {
  display: flex;
  gap: 12px;
}
.timeline-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.indicator-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  color: var(--color-text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  transition: all 0.3s ease;
}
.indicator-dot i {
  width: 14px;
  height: 14px;
}
.indicator-line {
  width: 2px;
  flex: 1;
  background: var(--border-light);
  margin: 4px 0;
  min-height: 50px;
}
.timeline-card-content {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-premium);
  transition: all 0.3s ease;
}

/* Timeline Active / Completed item statuses */
.timeline-item.active .indicator-dot {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(245, 158, 11, 0.06);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}
.timeline-item.active .timeline-card-content {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card-glowing);
}
.timeline-item.completed .indicator-dot {
  border-color: var(--color-success);
  color: var(--color-success);
  background: rgba(16, 185, 129, 0.06);
}
.timeline-item.completed .indicator-line {
  background: var(--color-success);
}
.timeline-item.completed .timeline-card-content {
  border-color: rgba(16, 185, 129, 0.15);
  background: rgba(16, 185, 129, 0.01);
}
.timeline-item.locked {
  opacity: 0.5;
}
.timeline-item.locked .timeline-card-content {
  pointer-events: none;
}

/* Checkpoint details */
.checkpoint-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.checkpoint-header h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-primary-dark);
}
.badge {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 6px;
}
.badge-checkin, #badge-checkin {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text-bright);
}
.timeline-item.completed #badge-checkin,
.timeline-item.completed #badge-lunchout,
.timeline-item.completed #badge-lunchin,
.timeline-item.completed #badge-checkout {
  background: rgba(16, 185, 129, 0.09);
  color: var(--color-success);
}
.checkpoint-desc {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Results panel log details */
.checkpoint-result {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-neutral-light);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 10px;
  animation: slide-down 0.25s ease;
}
.checkpoint-result.hidden {
  display: none;
}
.selfie-preview-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--color-success);
  flex: 0 0 38px;
}
.selfie-preview-wrapper.hidden {
  display: none;
}
.selfie-preview-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.result-details {
  display: flex;
  flex-direction: column;
}
.result-details.no-preview {
  padding-left: 2px;
}
.time-log {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-primary-dark);
}
.loc-log {
  font-size: 9px;
  color: var(--color-text-muted);
  margin-top: 1px;
  line-height: 1.35;
  word-break: break-word;
}

/* General Button layout */
.btn {
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  min-height: 44px;
}
.btn i {
  width: 14px;
  height: 14px;
}
.btn-primary {
  background: var(--color-primary-dark);
  color: #ffffff;
}
.btn-primary:active:not(:disabled) {
  transform: scale(0.98);
}
.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--color-primary-dark);
}
.btn-secondary:active:not(:disabled) {
  background-color: var(--bg-neutral-light);
}
.btn-danger {
  background: var(--color-danger);
  color: #ffffff;
}
.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.dev-only[hidden] {
  display: none !important;
}
.btn-block {
  display: flex;
  width: 100%;
}

/* ==========================================================================
   Tab 2: Leave Application Light Styles
   ========================================================================== */
.form-group {
  margin-bottom: 14px;
}
.form-row {
  display: flex;
  gap: 12px;
}
.half-width {
  flex: 1;
}
label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.form-control {
  width: 100%;
  background: var(--bg-neutral-light);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--color-text-bright);
  font-family: var(--font-family);
  font-size: 13px;
  transition: all 0.2s ease;
  min-height: 44px;
}
.form-control:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary-glow);
}
.form-control[readonly] {
  background: rgba(0, 0, 0, 0.03);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

/* Select element wrappers styling */
.select-wrapper {
  position: relative;
}
.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 28px;
}
.select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--color-text-muted);
  pointer-events: none;
}

/* Toggle switches */
.toggle-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-neutral-light);
  padding: 10px 12px;
  border-radius: 10px;
}
.toggle-text {
  display: flex;
  flex-direction: column;
}
.toggle-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-primary-dark);
}
.toggle-subtitle {
  font-size: 9px;
  color: var(--color-text-muted);
}
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.08);
  transition: .2s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
input:checked + .slider {
  background-color: var(--color-primary);
}
input:checked + .slider:before {
  transform: translateX(20px);
}

/* Leave Cards List styling */
.leaves-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.leave-item-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-premium);
  animation: slide-up 0.25s ease;
}
.leave-info-left h4 {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 2px;
}
.leave-req-date {
  font-size: 10px;
  color: var(--color-text-muted);
}
.leave-status-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.leave-applied-on {
  font-size: 9px;
  color: var(--color-text-muted);
}

/* Empty feedback states */
.empty-state {
  padding: 24px 10px;
  text-align: center;
  border: 1px dashed var(--border-light);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.005);
}
.empty-icon {
  width: 28px;
  height: 28px;
  color: var(--color-text-muted);
  opacity: 0.4;
  margin-bottom: 6px;
}
.empty-state p {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Tab 3: Profile Screen Light Styles
   ========================================================================== */
.profile-details-card {
  padding: 18px;
}
.profile-details-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.avatar-large-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
  min-width: 64px;
  max-width: 64px;
  min-height: 64px;
  max-height: 64px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  box-sizing: border-box;
  flex: 0 0 64px;
}
.avatar-circle-container {
  position: relative;
}
.avatar-large {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.avatar-large-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  padding: 0;
  margin: 0;
  overflow: hidden;
}
.avatar-edit-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--color-primary);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #ffffff;
  color: #fff;
  cursor: pointer;
}
.avatar-edit-overlay i {
  width: 10px;
  height: 10px;
}
.details-text h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 2px;
}
.profile-role {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.badge-online {
  background: rgba(16, 185, 129, 0.09);
  color: var(--color-success);
  display: inline-block;
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--bg-neutral-light);
  padding: 10px;
  border-radius: 12px;
}
.meta-item {
  display: flex;
  flex-direction: column;
}
.meta-label {
  font-size: 9px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1px;
}
.meta-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary-dark);
}

/* Profile statistics grid layout */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.metric-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 86px;
  box-shadow: var(--shadow-premium);
}
.metric-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 6px;
}
.metric-header i {
  width: 16px;
  height: 16px;
}
.metric-title {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.metric-value-wrap {
  display: flex;
  flex-direction: column;
}
.metric-number {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.1;
}
.metric-sub {
  font-size: 8px;
  color: var(--color-text-muted);
}

/* Colors for specific cards */
.bg-glass-yellow {
  border-color: rgba(245, 158, 11, 0.15);
  background: radial-gradient(circle at top, rgba(245, 158, 11, 0.05) 0%, #ffffff 100%);
}
.bg-glass-grey {
  border-color: var(--border-light);
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.01) 0%, #ffffff 100%);
}
.color-yellow { color: #d97706; }
.color-grey { color: #475569; }

/* System chronological activity logger */
.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.activity-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-premium);
  animation: slide-up 0.25s ease;
}
.activity-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.activity-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.bullet-checkin { background-color: var(--color-success); box-shadow: 0 0 5px var(--color-success); }
.bullet-lunchout { background-color: var(--color-primary); box-shadow: 0 0 5px var(--color-primary); }
.bullet-lunchin { background-color: var(--color-success); box-shadow: 0 0 5px var(--color-success); }
.bullet-checkout { background-color: var(--color-primary-dark); box-shadow: 0 0 5px var(--color-primary-dark); }
.bullet-leave { background-color: #f59e0b; box-shadow: 0 0 5px #f59e0b; }

.activity-text-col {
  display: flex;
  flex-direction: column;
}
.activity-title-txt {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-primary-dark);
}
.activity-desc-txt {
  font-size: 9px;
  color: var(--color-text-muted);
}
.activity-time-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Sticky Bottom Navigation Menu (Light)
   ========================================================================== */
.sticky-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 16px;
  z-index: 100;
}
.nav-item {
  background: none;
  border: none;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 10px;
  flex: 1;
  transition: all 0.2s ease;
  min-height: 48px;
  outline: none;
}
.nav-item i {
  width: 18px;
  height: 18px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nav-item span {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-item.active {
  color: var(--color-primary-dark);
}
.nav-item.active i {
  transform: translateY(-2px);
  color: var(--color-primary);
}

/* Decorative glowing top notch for active items */
.nav-indicator-bar {
  position: absolute;
  top: 0;
  height: 3px;
  background: var(--color-primary);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 1px 8px var(--color-primary);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  width: 30px;
}

/* ==========================================================================
   Camera Modal Overlay & Verification Viewport
   ========================================================================== */
.camera-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.camera-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.camera-modal-content {
  width: 100%;
  max-width: var(--max-mobile-width);
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  border-top: 1px solid var(--border-light);
  padding: 20px 20px 30px 20px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.1, 0.8, 0.1, 1);
  margin: 0 auto;
}
.camera-modal-overlay.open .camera-modal-content {
  transform: translateY(0);
}
.camera-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.camera-modal-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--color-primary-dark);
}
.close-camera-btn {
  background: var(--bg-neutral-light);
  border: none;
  color: var(--color-primary-dark);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* Capture camera frame viewport box */
.camera-feed-box {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #000;
  border: 1px solid var(--border-light);
}
.camera-stream {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.face-scan-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72%;
  height: 72%;
  border-radius: 50%;
  border: 2px dashed rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.face-scan-reticle::before {
  content: '';
  position: absolute;
  width: 102%;
  height: 102%;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-glow);
}
.scanning-laser {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  box-shadow: 0 0 8px var(--color-primary);
  top: 0;
  animation: scan-vertical 3s infinite ease-in-out;
}

/* Photo File Fallback block */
.camera-fallback-msg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  color: var(--color-text-muted);
  padding: 20px;
  text-align: center;
  z-index: 10;
}
.camera-fallback-msg.hidden {
  display: none;
}
.camera-fallback-msg i {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  color: var(--color-danger);
}
.camera-fallback-msg p {
  font-size: 12px;
  margin-bottom: 14px;
}

.camera-modal-footer {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
/* Shutter Button */
.btn-shutter {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: none;
  border: 4px solid var(--color-primary-dark);
  padding: 4px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}
.shutter-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--color-primary-dark);
  transition: all 0.2s ease;
}
.btn-shutter:active .shutter-inner {
  transform: scale(0.85);
  background-color: var(--color-primary);
}
.camera-tip {
  font-size: 10px;
  color: var(--color-text-muted);
  text-align: center;
}

.permission-help {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid rgba(245, 158, 11, 0.26);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.permission-help.hidden {
  display: none;
}
.permission-help p {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--color-primary-dark);
}
.mini-retry-btn {
  border: 0;
  border-radius: 999px;
  background: var(--color-primary-dark);
  color: var(--color-primary);
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.mini-retry-btn i {
  width: 13px;
  height: 13px;
}

.confirm-label {
  display: block;
  margin: 14px 0 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-primary-dark);
}
.confirm-textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  border: 1px solid #d7dee9;
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  font-size: 13px;
  color: var(--color-primary-dark);
  background: #f8fafc;
  outline: none;
}
.confirm-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-glow);
}

/* ==========================================================================
   Custom Notification Toast Alert (Light)
   ========================================================================== */
.notification-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 20000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.25);
  pointer-events: none;
  width: max-content;
  max-width: 90vw;
}
.notification-toast.show {
  transform: translateX(-50%) translateY(0);
}
.toast-icon {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

/* ==========================================================================
   Animations & Transitions
   ========================================================================== */
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}
@keyframes pulse-ring-light {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}
@keyframes scan-vertical {
  0% {
    top: 0%;
  }
  50% {
    top: 100%;
  }
  100% {
    top: 0%;
  }
}
@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shutter Snap flash screen effect */
.flash-effect {
  animation: flash-frame 0.25s ease-out;
}
@keyframes flash-frame {
  0% {
    filter: brightness(1.6);
  }
  100% {
    filter: brightness(1);
  }
}

/* Profile Photo Crop & Resize Modal */
#crop-modal .camera-modal-content {
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

.crop-container-box {
  width: min(100%, 330px);
  height: clamp(220px, 42dvh, 320px);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #12131a;
  border: 1px solid var(--border-light);
  margin: 0 auto 14px;
  flex: 0 0 auto;
}

.crop-circular-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(220px, 72%);
  height: min(220px, 72%);
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  z-index: 10;
}

.crop-image-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: move;
  touch-action: none; /* Disable native scrolling on touch drag */
}

.crop-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  transform-origin: center center;
}

.crop-controls-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 12px;
  flex: 0 0 auto;
}

.slider-control-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 0 8px;
}

.crop-zoom-icon {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
}

#crop-zoom-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.08);
  outline: none;
  -webkit-appearance: none;
}

#crop-zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.1s ease;
}

#crop-zoom-slider::-webkit-slider-thumb:active {
  transform: scale(1.2);
}

/* Ensure the header avatar fits inside its border */
.header-avatar {
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
}

/* ==========================================================================
   Splash Screen Video Overlay Styles
   ========================================================================== */
.splash-screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.5s;
  overflow: hidden;
}

.splash-video-box {
  width: 100%;
  height: 100%;
  max-width: var(--max-mobile-width);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000000;
  position: relative;
}

.splash-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Login Screen Wrapper & Form Styles
   ========================================================================== */
.login-screen-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 0%, #ffffff, #f1f5f9);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 28px;
  padding: 36px 28px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.1);
  text-align: center;
  animation: slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-logo {
  height: 48px;
  object-fit: contain;
  margin-bottom: 24px;
}

.login-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.login-subtitle {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 28px;
}

.login-options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.remember-me-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-muted);
  cursor: pointer;
  user-select: none;
}

.remember-checkbox {
  accent-color: var(--color-primary);
  width: 14px;
  height: 14px;
}

.forgot-pass-link {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--font-family);
  font-size: 12px;
  color: var(--color-primary-dark);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.forgot-pass-link:hover {
  color: var(--color-primary);
}

/* Spinner and micro animations */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}

.spinner.hidden {
  display: none;
}

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

/* Enforce mobile aspect views for Login screen too */
@media (min-width: 769px) {
  .login-screen-wrapper {
    display: none !important;
  }
}

.confirm-sheet {
  padding-bottom: 24px;
}

.confirm-message {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
