* { box-sizing: border-box; }
body { font-family: Inter, system-ui, sans-serif; margin: 0; background: #f8fafc; }
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; }

/* Logo */
.clock-icon { width: 36px; height: 36px; background: #2563eb; border-radius: 50%; display: inline-block; position: relative; }
.clock-icon::after { content: ''; position: absolute; width: 2px; height: 12px; background: white; left: 50%; top: 10px; transform: translateX(-50%); }
.logo { text-align: center; margin: 3rem 0 2rem; }
.logo h1 { margin: 0.5rem 0 0; font-weight: 700; color: #0f172a; font-size: 2rem; }
.logo-small { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.logo-small .clock-icon { width: 28px; height: 28px; }

.auth-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.auth-shop-logo {
  width: 48px;
  height: 48px;
}

/* Auth */
#auth-form { max-width: 340px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; padding: 0 1rem; }
input, button, textarea, select { padding: 0.8rem; border-radius: 0.5rem; border: 1px solid #e2e8f0; font-size: 1rem; }
button { background: #2563eb; color: white; border: none; cursor: pointer; }
.note { text-align: center; color: #64748b; font-size: 0.875rem; margin-top: 1.5rem; }

/* Kiosk Header */
.kiosk-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #2563eb;
  color: white;
  min-height: 72px;
  gap: 0.5rem;
}
.kiosk-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
  min-width: 0;
}
.kiosk-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: end;
}
.kiosk-right button {
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
  white-space: nowrap;
}
.kiosk-header-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: white;
  color: #2563eb;
  font-size: 0.6rem;
  flex-shrink: 0;
}

/* Clock base */
.retro-time {
  font-size: clamp(2.5rem, 12vw, 6.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  position: relative;
  justify-self: center;
  line-height: 1;
  white-space: nowrap;
}

/* Style 1: Split-flap (existing) */
.retro-time.clock-flap {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  color: #ffffff;
  background: #111;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 6px rgba(0,0,0,0.35);
}
.retro-time.clock-flap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 0.06em;
  background: rgba(0,0,0,0.65);
  transform: translateY(-50%);
  pointer-events: none;
}

/* Style 2: Neon */
.retro-time.clock-neon {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  color: #39ff14;
  background: #0a0a0a;
  text-shadow: 0 0 8px #39ff14, 0 0 18px #39ff14;
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.4), inset 0 0 8px rgba(57, 255, 20, 0.15);
}
.retro-time.clock-neon::after { display: none; }

/* Style 3: Modern */
.retro-time.clock-modern {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.retro-time.clock-modern::after { display: none; }

/* PIN Screen */
.pin-container { text-align: center; padding: 1.5rem 1rem; }
.pin-container h2 { font-size: 1.8rem; color: #0f172a; margin-bottom: 1.25rem; }
.pin-dots { display: flex; justify-content: center; gap: 1rem; margin: 1.25rem 0; }
.pin-dot { width: 16px; height: 16px; border: 2px solid #cbd5e1; border-radius: 50%; }
.pin-dot.filled { background: #2563eb; border-color: #2563eb; }
.pin-hint { color: #64748b; margin-bottom: 1.25rem; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; max-width: 280px; margin: 0 auto; }
.key { padding: 1.3rem; font-size: 1.5rem; background: white; color: #0f172a; border: 1px solid #e2e8f0; border-radius: 0.75rem; }
.key:active { background: #f1f5f9; }

/* Welcome / Actions */
.welcome-container { text-align: center; padding: 1.5rem 1rem; }
#welcome-message {
  font-family: 'Caveat', cursive;
  font-size: 2.6rem;
  color: #0f172a;
  margin: 0.75rem 0 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}
.kiosk-name {
  font-family: 'Caveat', cursive;
  font-weight: 700;
}
.action-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 420px;
  margin: 0 auto 2rem;
}
.action-btn {
  padding: 1.4rem 1.75rem;
  font-size: 1.1rem;
  border-radius: 1rem;
  color: white;
  font-weight: 600;
  min-width: 160px;
}
.action-btn.clock-in { background: #16a34a; }
.action-btn.start-break { background: #f59e0b; }
.action-btn.end-break { background: #2563eb; }
.action-btn.clock-out { background: #dc2626; }
.action-btn.profile { background: #64748b; }
.bottom-logos { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.shop-logo-placeholder { width: 48px; height: 48px; border-radius: 50%; background: #f59e0b; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.7rem; }
.divider { width: 1px; height: 32px; background: #e2e8f0; }
.back-link { background: transparent; color: #2563eb; margin-top: 1rem; }

/* Admin */
.admin-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; background: white; border-bottom: 1px solid #e2e8f0; }
.header-left { display: flex; align-items: center; gap: 1rem; }
.shop-logo-placeholder.small { width: 40px; height: 40px; font-size: 0.6rem; }
.tabs { display: flex; background: white; border-bottom: 1px solid #e2e8f0; overflow-x: auto; }
.tab { flex: 1; background: transparent; color: #64748b; border-radius: 0; padding: 1rem; white-space: nowrap; }
.tab.active { color: #2563eb; border-bottom: 2px solid #2563eb; background: transparent; }
.tab-content { display: none; padding: 1rem; }
.tab-content.active { display: block; }
.staff-item { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem; background: white; margin-bottom: 0.5rem; border-radius: 0.5rem; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.status { text-align: center; margin: 1rem; font-weight: 600; }
.status.error { color: #dc2626; }

table, th, td { font-family: Inter, system-ui, sans-serif; }

/* Mobile kiosk layout */
@media (max-width: 640px) {
  #kiosk-screen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    padding-top: 0.75rem;
  }

  .kiosk-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 0.5rem 0.75rem;
    min-height: auto;
    background: #2563eb;
    flex-shrink: 0;
  }

  .kiosk-left {
    order: 1;
    justify-content: center;
    gap: 0.6rem;
  }

  .kiosk-header-logo {
    width: 88px;
    height: 88px;
    border-radius: 12px;
  }

  .logo-small {
    font-size: 1.05rem;
  }

  .logo-small .clock-icon {
    width: 28px;
    height: 28px;
  }

  .kiosk-right {
    order: 3;
    margin-top: 0.15rem;
  }

  .retro-time {
    order: 2;
    font-size: clamp(2.2rem, 18vw, 4.5rem);
    margin: 0.15rem 0;
    padding: 0.08em 0.3em;
  }

  .pin-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0.75rem 1.25rem;
    min-height: 0;
    overflow: hidden;
  }

  .pin-container h2 {
    font-size: 1.4rem;
    margin: 0.5rem 0 0.4rem;
  }

  .pin-dots {
    margin: 0.6rem 0;
  }

  .pin-hint {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
  }

  .keypad {
    margin-top: auto;
    margin-bottom: 0;
    max-width: 240px;
    gap: 0.5rem;
  }

  .key {
    padding: 0.9rem 0.4rem;
    font-size: 1.3rem;
  }

  .kiosk-right button {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
  }
}
/* Clock style variants â€” add these to styles.css */

/* Existing split-flap (default) */
.clock-flap,
#current-time.clock-flap {
  font-family: 'Courier New', Courier, monospace;
  background: #111;
  color: #fff;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  position: relative;
  letter-spacing: 0.05em;
  box-shadow: inset 0 0 0 1px #333;
}
.clock-flap::after,
#current-time.clock-flap::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 2px;
  background: rgba(0,0,0,0.45);
  pointer-events: none;
}

/* Neon style â€” toned down for legibility */
.clock-neon,
#current-time.clock-neon {
  font-family: 'Orbitron', 'Audiowide', 'Segoe UI', sans-serif;
  color: #39ff14;
  text-shadow:
    0 0 2px #39ff14,
    0 0 4px #39ff14;
  background: transparent;
  letter-spacing: 0.06em;
  font-weight: 700;
}

/* Plain style (formerly Modern) */
.clock-plain,
#current-time.clock-plain {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #0f172a;
  background: transparent;
  text-shadow: none;
}

/* Small previews in settings */
.clock-preview-item {
  font-size: 1.4rem !important;
  line-height: 1;
  display: inline-block;
  min-width: 4.2em;
  text-align: center;
  padding: 0.25em 0.5em;
  margin: 0.25rem;
  vertical-align: middle;
}
.clock-preview-item.clock-flap {
  font-size: 1.3rem !important;
}
#current-time {
  font-size: clamp(2.2rem, 12vw, 5.5rem);
  line-height: 1;
  text-align: center;
  margin: 0.4rem 0 0.8rem;
  display: inline-block;
}

@media (max-width: 640px) {
  #current-time {
    font-size: clamp(1.9rem, 16vw, 4rem);
  }
}
