/* SCREEN HOME */
.home-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: auto;
  letter-spacing: -0.5px;
}

.home-logo img.app-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 4px 10px var(--color-accent-glow);
  object-fit: cover;
}

.home-illustration {
  margin: var(--space-6) auto var(--space-8);
  width: 200px;
  height: 200px;
  position: relative;
  filter: drop-shadow(0 24px 36px rgba(0, 210, 255, 0.25)); /* Changed to match cyan/aurora accent */
}

.home-content {
  text-align: center;
  margin-bottom: auto;
}

.home-content h2 {
  font-size: 26px;
  line-height: 1.3;
  color: var(--color-text-primary);
  margin-top: var(--space-4);
}

/* SCREEN CAPTURE */
#video-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  background-color: #000;
}

.camera-guide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 60%;
  border: 3px dashed rgba(255, 255, 255, 0.6);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4); /* Darkens outside */
}

.scanning-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent);
  animation: scan-line 2s linear infinite;
}

.camera-controls {
  position: absolute;
  bottom: calc(var(--space-8) + var(--safe-bottom));
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.capture-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: transparent;
  border: 5px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.capture-btn::after {
  content: '';
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.capture-btn:active::after {
  transform: scale(0.85);
  background: var(--color-accent);
}

.preview-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 5;
  display: flex;
  flex-direction: column;
}

#preview-image {
  flex: 1;
  object-fit: contain;
  width: 100%;
}

.preview-actions {
  padding: var(--space-4);
  display: flex;
  gap: var(--space-3);
  padding-bottom: calc(var(--space-6) + var(--safe-bottom));
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

/* SCREEN ASSIGN */
.people-bar {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-5) 0 var(--space-5);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 calc(-1 * var(--space-4));
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  scrollbar-width: none; 
}
.people-bar::-webkit-scrollbar {
  display: none; 
}

.progress-header {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  padding: 6px 12px;
  border-radius: var(--border-radius-full);
  box-shadow: var(--shadow-sm);
  margin-right: 56px; /* Prevent overlap with theme toggle button */
}

.thin-progress-bar {
  height: 6px;
  background: var(--color-surface-2);
  width: 100%;
  margin-bottom: var(--space-3);
  border-radius: var(--border-radius-full);
  overflow: hidden;
}

.thin-progress-fill {
  height: 100%;
  background: var(--color-success);
  width: 0%;
  transition: width var(--transition-normal);
  border-radius: var(--border-radius-full);
}

/* SCREEN SUMMARY */
.summary-person-card {
  margin-bottom: var(--space-4);
  /* Removed opaque background to inherit .card glassmorphism */
}

.summary-person-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 15px;
  color: var(--color-text-secondary);
}

.summary-item-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 2px dashed var(--color-border);
  font-weight: 800;
  font-size: 18px;
  color: var(--color-text-primary);
}

.grand-total {
  font-size: 28px;
  font-weight: 800;
  text-align: right;
  margin: var(--space-4) 0;
  font-family: var(--font-display);
  color: var(--color-text-primary);
  /* Inherit glassmorphism by using transparent or glass-like bg */
  background: var(--color-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--border-radius-md);
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--color-border);
}
