/* ============================================================================
   ARPA HORSE RIDING & POLO ACADEMY
   EntryPoint Duty Officer Station Styles
   ============================================================================ */

:root {
  --ep-navy: #0f172a;
  --ep-navy-light: #1e293b;
  --ep-gold: #c5a059;
  --ep-gold-light: #fef3c7;
  --ep-gold-dark: #92400e;
  --ep-green: #15803d;
  --ep-green-light: #dcfce7;
  --ep-green-border: #86efac;
  --ep-red: #b91c1c;
  --ep-red-light: #fee2e2;
  --ep-red-border: #fca5a5;
  --ep-blue: #1d4ed8;
  --ep-blue-light: #dbeafe;
  --ep-slate: #64748b;
  --ep-white: #ffffff;
  --ep-bg: #f8fafc;
  --ep-border: #cbd5e1;
}

body.entrypoint-body {
  background-color: var(--ep-bg);
  color: var(--ep-navy);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Login Screen ── */
.entrypoint-body--login {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 20%, #1e293b 0%, #0f172a 100%);
  min-height: 100vh;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
}

.entrypoint-login-wrapper {
  width: 100%;
  max-width: 420px;
}

.entrypoint-login-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  padding: 2.25rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.entrypoint-login-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.entrypoint-login-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.entrypoint-badge {
  display: inline-block;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.entrypoint-badge--gold {
  background: var(--ep-gold-light);
  color: var(--ep-gold-dark);
}

.entrypoint-login-title {
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ep-navy);
  margin: 0.25rem 0;
}

.entrypoint-login-sub {
  font-size: 0.85rem;
  color: var(--ep-slate);
  margin: 0;
}

.entrypoint-login-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.entrypoint-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.entrypoint-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ep-navy);
}

.entrypoint-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.entrypoint-input-icon {
  position: absolute;
  left: 0.85rem;
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.7;
}

.entrypoint-input {
  width: 100%;
  padding: 0.75rem 0.85rem 0.75rem 2.5rem;
  border: 1.5px solid var(--ep-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #ffffff;
  color: var(--ep-navy);
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.entrypoint-input:focus {
  outline: none;
  border-color: var(--ep-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

.entrypoint-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  text-decoration: none;
}

.entrypoint-btn--primary {
  background: var(--ep-navy);
  color: #ffffff;
}

.entrypoint-btn--primary:hover:not(:disabled) {
  background: #1e293b;
  transform: translateY(-1px);
}

.entrypoint-btn--block {
  width: 100%;
}

.entrypoint-alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.entrypoint-alert--danger {
  background: var(--ep-red-light);
  color: var(--ep-red);
  border: 1px solid var(--ep-red-border);
}

.entrypoint-login-footer {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ep-slate);
}

.entrypoint-login-back {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--ep-navy);
  text-decoration: none;
  font-weight: 600;
}

/* ── Duty Officer Main Interface ── */
.entrypoint-header {
  background: var(--ep-navy);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ep-gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.entrypoint-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.entrypoint-header__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.entrypoint-header__title {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}

.entrypoint-header__officer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.entrypoint-officer-info {
  text-align: right;
}

.entrypoint-officer-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.entrypoint-officer-station {
  display: block;
  font-size: 0.72rem;
  color: var(--ep-gold);
  font-weight: 500;
}

.entrypoint-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.entrypoint-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.entrypoint-main {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Mode Direction Toggle Bar ── */
.entrypoint-direction-bar {
  background: #ffffff;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--ep-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.entrypoint-direction-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ep-slate);
  letter-spacing: 0.05em;
}

.entrypoint-toggle-group {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  max-width: 320px;
}

.entrypoint-toggle-btn {
  flex: 1;
  padding: 0.65rem 0.5rem;
  border-radius: 8px;
  border: 2px solid transparent;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
  font-family: inherit;
}

.entrypoint-toggle-btn--entry.active {
  background: var(--ep-green-light);
  color: var(--ep-green);
  border-color: var(--ep-green);
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.2);
}

.entrypoint-toggle-btn--exit.active {
  background: var(--ep-blue-light);
  color: var(--ep-blue);
  border-color: var(--ep-blue);
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.2);
}

/* ── Live Scanner Card ── */
.entrypoint-scanner-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--ep-border);
}

.entrypoint-scanner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.entrypoint-scanner-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--ep-navy);
}

.entrypoint-scanner-subtitle {
  font-size: 0.78rem;
  color: var(--ep-slate);
  margin: 0.15rem 0 0;
}

.entrypoint-btn-camera-toggle {
  background: #f8fafc;
  border: 1px solid var(--ep-border);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ep-navy);
  cursor: pointer;
}

/* Viewfinder */
.entrypoint-viewfinder-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 340px;
  background: #000000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

#reader {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

#reader video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.entrypoint-viewfinder-guide {
  position: absolute;
  top: 15%;
  left: 15%;
  right: 15%;
  bottom: 15%;
  pointer-events: none;
  z-index: 10;
}

.entrypoint-guide-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid var(--ep-gold);
}

.corner-tl {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 6px;
}
.corner-tr {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
  border-top-right-radius: 6px;
}
.corner-bl {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
  border-bottom-left-radius: 6px;
}
.corner-br {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 6px;
}

.entrypoint-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ep-gold), transparent);
  box-shadow: 0 0 8px var(--ep-gold);
  animation: scanSweep 2s ease-in-out infinite alternate;
}

@keyframes scanSweep {
  from {
    top: 5%;
  }
  to {
    top: 95%;
  }
}

/* Manual Lookup */
.entrypoint-manual-search {
  margin-top: 1rem;
}

.entrypoint-search-form {
  display: flex;
  gap: 0.5rem;
}

.entrypoint-search-input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 2px solid #334155;
  background: #ffffff;
  color: #0f172a;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.entrypoint-search-input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.entrypoint-search-input::placeholder {
  color: #475569;
  font-weight: 500;
  opacity: 1;
}

.entrypoint-search-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.1s;
}

.entrypoint-search-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

/* ── Decision Modal Overlay ── */
.entrypoint-decision-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.entrypoint-decision-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: popIn 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Granted Banner */
.entrypoint-decision-banner {
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: #ffffff;
}

.entrypoint-decision-banner--granted {
  background: linear-gradient(135deg, #15803d, #166534);
}

.entrypoint-decision-banner--denied {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
}

.entrypoint-decision-icon {
  font-size: 2.75rem;
  margin-bottom: 0.25rem;
  display: block;
}

.entrypoint-decision-status {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
}

.entrypoint-decision-sub {
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0.25rem 0 0;
}

/* Decision Body */
.entrypoint-decision-body {
  padding: 1.5rem;
}

.entrypoint-decision-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.entrypoint-decision-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ep-gold);
  background: #f1f5f9;
}

.entrypoint-decision-avatar-fallback {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--ep-navy);
  color: var(--ep-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.entrypoint-decision-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: var(--ep-navy);
}

.entrypoint-decision-tier {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ep-gold-dark);
  background: var(--ep-gold-light);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  display: inline-block;
}

/* Aadhaar Verified Box */
.entrypoint-aadhaar-box {
  background: #f8fafc;
  border: 1px solid var(--ep-border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.entrypoint-aadhaar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.entrypoint-aadhaar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #15803d;
}

.entrypoint-aadhaar-meta {
  font-size: 0.82rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.entrypoint-aadhaar-label {
  font-size: 0.68rem;
  color: var(--ep-slate);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.1rem;
}

.entrypoint-aadhaar-value {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  color: var(--ep-navy);
}

.entrypoint-aadhaar-photo {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--ep-border);
  flex-shrink: 0;
  background: #fff;
}

.entrypoint-decision-actions {
  display: flex;
  gap: 0.75rem;
}

.entrypoint-btn-confirm {
  flex: 1;
  background: var(--ep-navy);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.entrypoint-btn-confirm:hover {
  background: #1e293b;
}

/* ── Shift Activity List ── */
.entrypoint-activity-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid var(--ep-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.entrypoint-activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.entrypoint-activity-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: var(--ep-navy);
}

.entrypoint-activity-count {
  font-size: 0.75rem;
  color: var(--ep-slate);
  font-weight: 500;
}

.entrypoint-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.entrypoint-activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid var(--ep-slate);
  font-size: 0.82rem;
}

.entrypoint-activity-item--entry {
  border-left-color: var(--ep-green);
}

.entrypoint-activity-item--exit {
  border-left-color: var(--ep-blue);
}

.entrypoint-activity-item--denied {
  border-left-color: var(--ep-red);
}

.entrypoint-activity-empty {
  text-align: center;
  padding: 1.5rem;
  color: var(--ep-slate);
  font-size: 0.82rem;
}
