/* Core Variables */
:root {
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;

  /* Color Palette - HSL Tailored Colors */
  --bg-color: #0b0f19;
  --panel-bg: rgba(20, 26, 42, 0.45);
  --panel-border: rgba(255, 255, 255, 0.07);
  --panel-border-glow: rgba(0, 242, 254, 0.15);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --color-cyan: #00f2fe;
  --color-blue: #4facfe;
  --color-emerald: #10b981;
  --color-emerald-glow: rgba(16, 185, 129, 0.25);
  --color-amber: #f59e0b;
  --color-amber-glow: rgba(245, 158, 11, 0.25);
  --color-rose: #f43f5e;
  --color-rose-glow: rgba(244, 63, 94, 0.25);

  /* Transition & Shadow Curve */
  --transition-speed: 0.3s;
  --transition-curve: cubic-bezier(0.4, 0, 0.2, 1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --card-radius: 20px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Background Decor */
.background-decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.45;
  mix-blend-mode: screen;
  animation: orb-float 20s infinite ease-in-out;
}

.orb-1 {
  top: -10%;
  left: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--color-cyan) 0%, rgba(0, 242, 254, 0) 70%);
}

.orb-2 {
  bottom: 10%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-blue) 0%, rgba(79, 172, 254, 0) 70%);
  animation-delay: -5s;
}

.orb-3 {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--color-rose) 0%, rgba(244, 63, 94, 0) 70%);
  opacity: 0.25;
  animation-delay: -10s;
}

@keyframes orb-float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-40px) scale(1.1);
  }
}

/* App Wrapper Container */
.app-container {
  width: 100%;
  max-width: 1100px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(20, 26, 42, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: var(--card-radius);
  box-shadow: var(--glass-shadow);
}

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

.brand-logo {
  color: var(--color-cyan);
  background: rgba(0, 242, 254, 0.08);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 242, 254, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.brand-text h1 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sub-brand {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.date-badge {
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid var(--panel-border);
}

.status-indicator-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.2);
  color: var(--color-rose);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-speed) var(--transition-curve);
}

.status-indicator-pill.active {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--color-emerald);
}

.status-indicator-pill.on-break {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--color-amber);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: currentColor;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
}

.status-indicator-pill.active .status-dot {
  animation: pulse-glow-emerald 1.5s infinite ease-in-out;
}

.status-indicator-pill.on-break .status-dot {
  animation: pulse-glow-amber 1.5s infinite ease-in-out;
}

/* Glassmorphism Card Core */
.glass-card {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: var(--card-radius);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

/* Grid Top: Clock Card & Quick Stats */
.grid-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .grid-top {
    grid-template-columns: 1fr;
  }
}

.clock-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid var(--panel-border-glow);
}

.live-clock-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.live-time {
  font-family: var(--font-mono);
  font-size: 3.8rem;
  font-weight: 500;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #ffffff 40%, #c1d3ec 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

.live-ampm {
  font-size: 1.5rem;
  color: var(--color-cyan);
  font-weight: 600;
  text-transform: uppercase;
}

.live-date {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 4px;
}

.timezone-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Stats Panel */
.stats-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform var(--transition-speed) var(--transition-curve);
}

.stat-card:hover {
  transform: translateX(4px);
}

.stat-icon {
  padding: 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-icon {
  color: var(--color-cyan);
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.15);
}

.week-icon {
  color: var(--color-blue);
  background: rgba(79, 172, 254, 0.06);
  border: 1px solid rgba(79, 172, 254, 0.15);
}

.sessions-icon {
  color: var(--color-emerald);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2px;
}

/* Mid Section: Controller Card */
.grid-mid {
  display: grid;
  grid-template-columns: 1fr;
}

.main-control-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.current-session-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.current-session-header h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  font-weight: 700;
}

.pulse-ring {
  width: 8px;
  height: 8px;
  background-color: var(--text-muted);
  border-radius: 50%;
  display: inline-block;
}

.status-indicator-pill.active ~ .pulse-ring,
body:has(.status-indicator-pill.active) #timer-pulse {
  background-color: var(--color-emerald);
  animation: pulse-ring-anim 1.5s infinite var(--transition-curve);
}

body:has(.status-indicator-pill.on-break) #timer-pulse {
  background-color: var(--color-amber);
  animation: pulse-ring-anim-break 1.5s infinite var(--transition-curve);
}

@keyframes pulse-ring-anim {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes pulse-ring-anim-break {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

.timer-display-container {
  text-align: center;
}

.timer-display {
  font-family: var(--font-mono);
  font-size: 5.2rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 8px;
  transition: color var(--transition-speed) var(--transition-curve);
}

body:has(.status-indicator-pill.active) #session-timer {
  color: var(--color-emerald);
  text-shadow: 0 0 35px var(--color-emerald-glow);
}

body:has(.status-indicator-pill.on-break) #session-timer {
  color: var(--color-amber);
  text-shadow: 0 0 35px var(--color-amber-glow);
}

.timer-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.control-actions {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 450px;
}

/* Button UI */
.btn {
  font-family: var(--font-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 24px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-speed) var(--transition-curve);
  user-select: none;
}

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

.btn-primary {
  flex: 2;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-cyan) 100%);
  color: #040812;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.25);
  position: relative;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.45);
  opacity: 0;
  transition: opacity var(--transition-speed) var(--transition-curve);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

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

/* Toggled Clock Out State on Primary Button */
.btn-primary.btn-clock-out {
  background: linear-gradient(135deg, var(--color-rose) 0%, #f43f80 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(244, 63, 94, 0.25);
}

.btn-primary.btn-clock-out::after {
  box-shadow: 0 0 25px rgba(244, 63, 94, 0.45);
}

.btn-secondary {
  flex: 1.2;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--panel-border);
}

.btn-secondary:not(.disabled):hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-secondary.active-break {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--color-amber);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.btn-secondary.disabled,
.btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.hidden {
  display: none !important;
}

/* Active Session Details */
.active-session-details {
  display: flex;
  gap: 32px;
  width: 100%;
  max-width: 450px;
  justify-content: center;
  border-top: 1px solid var(--panel-border);
  padding-top: 20px;
}

.detail-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Grid Bottom: History Logs */
.logs-card {
  padding: 24px;
}

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

.logs-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logs-title-group h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.logs-count-badge {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--panel-border);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.logs-actions {
  display: flex;
  gap: 12px;
}

.btn-text {
  font-family: var(--font-main);
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all var(--transition-speed) var(--transition-curve);
}

.btn-text:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--panel-border);
}

.btn-text.danger {
  color: var(--color-rose);
}

.btn-text.danger:hover {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.2);
  color: var(--color-rose);
}

/* Logs Table Wrapper & Table */
.logs-table-wrapper {
  width: 100%;
  max-height: 350px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
}

/* Custom Scrollbar for Logs Wrapper */
.logs-table-wrapper::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.logs-table-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}

.logs-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.logs-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.logs-table th {
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 18px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--panel-border);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logs-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

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

.logs-table tbody tr {
  transition: background-color var(--transition-speed) var(--transition-curve);
}

.logs-table tbody tr:hover:not(.empty-state-row) {
  background: rgba(255, 255, 255, 0.02);
}

.log-bold-time {
  color: var(--text-primary);
  font-weight: 500;
}

.log-net-time-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  color: var(--color-emerald);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
}

/* Empty State */
.empty-state-row td {
  padding: 48px 0;
  text-align: center;
}

.empty-state-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 8px;
}

.empty-state-content svg {
  color: var(--text-muted);
  opacity: 0.5;
  margin-bottom: 8px;
}

.empty-state-content p {
  font-weight: 500;
  color: var(--text-secondary);
}

.empty-state-content .subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 16px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Status dots animations */
@keyframes pulse-glow-emerald {
  0%, 100% {
    box-shadow: 0 0 4px var(--color-emerald), 0 0 8px var(--color-emerald);
  }
  50% {
    box-shadow: 0 0 8px var(--color-emerald), 0 0 16px var(--color-emerald);
  }
}

@keyframes pulse-glow-amber {
  0%, 100% {
    box-shadow: 0 0 4px var(--color-amber), 0 0 8px var(--color-amber);
  }
  50% {
    box-shadow: 0 0 8px var(--color-amber), 0 0 16px var(--color-amber);
  }
}

/* Navigation Tabs */
.app-nav {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-tab {
  font-family: var(--font-main);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-curve);
}

.nav-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-tab.active {
  color: #040812;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-cyan) 100%);
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.2);
}

/* Multi-user employee selector */
.control-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 16px;
}

.employee-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.selector-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.glass-select {
  font-family: var(--font-main);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-curve);
}

.glass-select:focus {
  border-color: var(--color-cyan);
  background: rgba(255, 255, 255, 0.08);
}

.glass-select option {
  background-color: #0f1322;
  color: var(--text-primary);
}

.glass-input {
  font-family: var(--font-main);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition-speed) var(--transition-curve);
  width: 180px;
}

.glass-input:focus {
  border-color: var(--color-cyan);
  background: rgba(255, 255, 255, 0.08);
}

/* Admin Metric Grid */
.grid-admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .grid-admin-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-admin-metrics {
    grid-template-columns: 1fr;
  }
}

.admin-metric-card {
  padding: 20px;
}

.coffee-icon {
  color: var(--color-amber);
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

/* Admin Reports Bar */
.admin-filters-header {
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.admin-filters-bar {
  display: flex;
  gap: 12px;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-text.highlight {
  color: var(--color-cyan);
  background: rgba(0, 242, 254, 0.05);
  border-color: rgba(0, 242, 254, 0.15);
}

.btn-text.highlight:hover {
  background: rgba(0, 242, 254, 0.1);
  color: var(--text-primary);
  border-color: var(--color-cyan);
}

.admin-table-wrapper {
  max-height: 450px;
}

.logs-table tbody tr.active-row {
  background: rgba(16, 185, 129, 0.03);
  border-left: 2px solid var(--color-emerald);
}

/* Custom indicator for active session row */
.badge-active-indicator {
  display: inline-flex;
  align-items: center;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--color-emerald);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 8px;
}

/* Biometric Login Gateway */
.login-gateway {
  display: none;
  min-height: 80vh;
  justify-content: center;
  align-items: center;
  padding: 20px;
  width: 100%;
}

.login-card {
  width: 100%;
  max-width: 440px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  border: 1px solid var(--panel-border-glow);
}

.login-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.login-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 4px;
  background: linear-gradient(135deg, #ffffff 40%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.large-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

.large-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

/* Scanner Layout */
.biometric-scan-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.biometric-scanner-btn {
  background: transparent;
  border: none;
  width: 120px;
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.biometric-scanner-btn:active {
  transform: scale(0.96);
}

/* Progress Ring */
.scanner-progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  pointer-events: none;
}

.scanner-progress-ring .ring-bg {
  stroke: rgba(255, 255, 255, 0.04);
  fill: none;
  stroke-width: 4px;
}

.scanner-progress-ring .ring-bar {
  stroke: var(--color-cyan);
  fill: none;
  stroke-width: 4px;
  stroke-linecap: round;
  stroke-dasharray: 339.3;
  stroke-dashoffset: 339.3;
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
  transition: stroke-dashoffset 0.1s linear, stroke var(--transition-speed);
}

/* Scanner Pad */
.fingerprint-pad {
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan);
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.02);
  transition: all 0.4s var(--transition-curve);
  overflow: hidden;
  position: relative;
}

.biometric-scanner-btn:hover .fingerprint-pad {
  background: rgba(0, 242, 254, 0.04);
  border-color: rgba(0, 242, 254, 0.2);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.1);
}

/* Glowing States */
.biometric-scanner-btn.scanning .fingerprint-pad {
  background: rgba(0, 242, 254, 0.06);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.15);
  color: #ffffff;
}

.biometric-scanner-btn.success .fingerprint-pad {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3) !important;
  color: var(--color-emerald) !important;
}

.biometric-scanner-btn.success .ring-bar {
  stroke: var(--color-emerald) !important;
}

.biometric-scanner-btn.error .fingerprint-pad {
  background: rgba(244, 63, 94, 0.08) !important;
  border-color: rgba(244, 63, 94, 0.4) !important;
  box-shadow: 0 0 30px rgba(244, 63, 94, 0.3) !important;
  color: var(--color-rose) !important;
}

.biometric-scanner-btn.error .ring-bar {
  stroke: var(--color-rose) !important;
}

/* Scanner laser sweep line */
.scanner-laser {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(0, 242, 254, 0), var(--color-cyan), rgba(0, 242, 254, 0));
  filter: drop-shadow(0 0 4px var(--color-cyan));
  top: -10px;
  opacity: 0;
  pointer-events: none;
}

.biometric-scanner-btn.scanning .scanner-laser {
  opacity: 1;
  animation: laser-sweep 2s infinite ease-in-out;
}

@keyframes laser-sweep {
  0%, 100% {
    top: 5%;
  }
  50% {
    top: 95%;
  }
}

.scanner-status {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: center;
  transition: color var(--transition-speed);
}

.scanner-status.success {
  color: var(--color-emerald);
}

.scanner-status.error {
  color: var(--color-rose);
}

/* User display badge inside control card */
.employee-display-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  padding: 6px 14px;
  border-radius: 10px;
}

.employee-display-avatar-container {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--color-cyan);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

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

.employee-display-name-group {
  display: flex;
  flex-direction: column;
}

.active-user-name-text {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.85rem;
}

/* View Visibilities based on Logged-in State */
.state-logged-out #login-gateway {
  display: flex;
}

.state-logged-out .app-header,
.state-logged-out .app-main,
.state-logged-out .app-footer {
  display: none !important;
}

.state-logged-in-employee #login-gateway {
  display: none !important;
}

.state-logged-in-employee #app-nav {
  display: none !important;
}

.state-logged-in-admin #login-gateway {
  display: none !important;
}

.state-logged-in-admin #app-nav {
  display: flex;
}

/* Earnings Display elements */
.stat-icon.earnings-icon-pkr {
  color: var(--color-amber);
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.session-earnings-counter {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--color-amber);
  text-shadow: 0 0 20px var(--color-amber-glow);
  margin-top: 4px;
}

/* Geofencing Location Simulator styles */
.location-simulator-card {
  width: 100%;
  max-width: 450px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: -12px;
  margin-bottom: -4px;
}

.location-sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.location-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.location-options {
  display: flex;
  gap: 8px;
}

.loc-sim-btn {
  font-family: var(--font-main);
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.loc-sim-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.loc-sim-btn.active {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.location-status-text {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: color var(--transition-speed);
}

.location-status-text.success {
  color: var(--color-emerald);
}

.location-status-text.error {
  color: var(--color-rose);
}

.location-status-text .status-dot {
  width: 6px;
  height: 6px;
  background-color: currentColor;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px currentColor;
}

/* Admin panel tabs views */
.admin-sub-tabs-wrapper {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 16px;
  margin-bottom: 24px;
  width: 100%;
}

.admin-sub-tab {
  font-family: var(--font-main);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.admin-sub-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.admin-sub-tab.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--color-cyan);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.admin-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.admin-panel.hidden {
  display: none !important;
}

/* Directory view split layout */
.grid-directory-split {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .grid-directory-split {
    grid-template-columns: 1fr;
  }
}

.directory-form-card,
.directory-list-card,
.geofence-setup-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.directory-form-card h3,
.directory-list-card h3,
.geofence-setup-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 12px;
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.directory-form,
.geofence-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

/* Custom Photo Upload widget */
.photo-upload-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hidden-file-input {
  display: none !important;
}

.small-btn {
  padding: 10px 14px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.large-btn {
  padding: 14px 20px;
  font-size: 0.95rem;
}

.upload-filename-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 150px;
}

.avatar-preview-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--color-cyan);
  overflow: hidden;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.05);
}

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

/* Directory list table specific details */
.directory-table-wrapper {
  max-height: 500px;
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
}

.directory-profile-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.directory-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

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

.directory-name-group {
  display: flex;
  flex-direction: column;
}

.directory-emp-id {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.directory-contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8rem;
}

.directory-email {
  color: var(--text-secondary);
}

.directory-phone {
  color: var(--text-muted);
}

.directory-wage {
  font-weight: 600;
  color: var(--text-primary);
}

/* Checkbox toggle controls */
.toggle-container {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
}

.glass-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--color-cyan);
}

.checkbox-label {
  cursor: pointer;
  user-select: none;
}

/* Geofence Map Stub styling */
.geofence-map-stub {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.map-stub-icon {
  padding: 12px;
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-radius: 10px;
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-stub-details h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.map-stub-details p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Alert banner styling for sleek dark theme --- */

.web-notice-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background-color: rgba(245, 158, 11, 0.1) !important; /* Semi-transparent amber warning */
  border-bottom: 1px solid rgba(245, 158, 11, 0.25) !important;
  color: var(--color-amber) !important;
  font-size: 0.85rem;
  font-weight: 500;
  width: 100%;
}

.web-notice-bar-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-banner {
  background: transparent;
  border: none;
  color: var(--color-amber);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 4px;
}

.btn-close-banner:hover {
  opacity: 1;
}
