@font-face {
  font-family: "Futura";
  src: local("Futura"), local("Futura PT"), local("Futura Std");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg-1: #10180e;
  --bg-2: #231f20;
  --accent: #a0d40c;
  --accent-soft: rgba(160, 212, 12, 0.16);
  --glass: rgba(34, 38, 41, 0.62);
  --glass-border: rgba(148, 163, 184, 0.18);
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background-color: var(--bg-1);
}

body {
  font-family: "Futura", "Futura PT", "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--bg-1);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 640px) {
  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }
}

body::before,
body::after {
  content: none;
}

.hidden {
  display: none;
}

.tab-btn.active {
  background: var(--accent-soft);
  color: #e7f8b5;
}

.step-indicator.active {
  background: var(--accent-soft);
  color: #e7f8b5;
  border-color: rgba(160, 212, 12, 0.4);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge-ktt {
  background: var(--accent-soft);
  color: #e7f8b5;
}

.toast {
  border-radius: 14px;
  padding: 12px 16px;
  color: var(--text-primary);
  box-shadow: 0 18px 35px rgba(2, 6, 23, 0.45);
  background: rgba(24, 28, 32, 0.75);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
}

.toast-success {
  border-color: rgba(160, 212, 12, 0.6);
}

.toast-error {
  border-color: rgba(248, 113, 113, 0.6);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.glass-card {
  background: rgba(24, 28, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(22px) saturate(140%);
  position: relative;
  overflow: hidden;
}

.glass-chip {
  background: rgba(24, 28, 32, 0.6);
  border: 1px solid var(--glass-border);
}

.accent-btn {
  background: linear-gradient(135deg, rgba(160, 212, 12, 0.9), rgba(160, 212, 12, 0.55));
  color: #0b1207;
  border: 1px solid rgba(160, 212, 12, 0.6);
}

.accent-btn:hover {
  filter: brightness(1.1);
}

.accent-glow {
  box-shadow: 0 0 0 1px rgba(160, 212, 12, 0.45), 0 12px 30px rgba(160, 212, 12, 0.2);
}

.accent-panel {
  background: rgba(160, 212, 12, 0.12);
  border: 1px solid rgba(160, 212, 12, 0.35);
}

input,
select,
textarea,
button {
  font-family: inherit;
}

select {
  color: var(--text-primary);
}

select option {
  color: #0b1207;
  background: #e6e9e4;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

input[type="checkbox"],
input[type="radio"],
input[type="range"] {
  accent-color: var(--accent);
}

.range-accent {
  accent-color: var(--accent);
}

.multi-select {
  position: relative;
}

.multi-select-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.multi-select-panel {
  position: absolute;
  z-index: 40;
  width: 100%;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(24, 28, 32, 0.92);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(18px);
  max-height: 240px;
  overflow-y: auto;
}

.multi-select-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-primary);
}

.multi-select-panel label:hover {
  background: rgba(255, 255, 255, 0.05);
}

.fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
}

.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), rgba(160, 212, 12, 0.6));
  color: #0a0f07;
  font-size: 32px;
  font-weight: 700;
  border: none;
  box-shadow: 0 16px 40px rgba(160, 212, 12, 0.35);
}

.fab-menu {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fab-item {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(24, 28, 32, 0.85);
  color: var(--text-primary);
  text-align: left;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.4);
}

.dial {
  position: relative;
  width: 120px;
  height: 120px;
  margin-top: 12px;
}

.dial-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: conic-gradient(var(--accent) calc(var(--dial-progress, 0) * 1turn), rgba(148, 163, 184, 0.2) 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 0);
}

.dial-center {
  position: absolute;
  inset: 14px;
  border-radius: 999px;
  background: rgba(24, 28, 32, 0.9);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.dial-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.dial-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.dial-input {
  width: 120px;
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  padding: 6px 8px;
  text-align: center;
}

.table-scroll {
  scrollbar-color: rgba(160, 212, 12, 0.4) transparent;
}

.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 24px 24px;
  min-height: 100vh;
  width: 100%;
}

.auth-shell {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.auth-logo {
  width: 140px;
  height: auto;
  object-fit: contain;
  opacity: 0.95;
}

.auth-card {
  position: relative;
  z-index: 2;
  border-radius: 32px;
  width: 100%;
}

.auth-card-content {
  padding: 40px;
}

.auth-card h1 {
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.auth-card p {
  line-height: 1.45;
}

.login-section {
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  text-align: left;
}

.login-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 22px;
}

.login-toggle-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease;
}

.login-toggle-btn.active {
  background: rgba(160, 212, 12, 0.2);
  color: #e7f8b5;
  box-shadow: 0 10px 20px rgba(160, 212, 12, 0.12);
}

.employee-select select {
  background-color: rgba(20, 24, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  min-height: 52px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.employee-select label,
#admin-login-panel label {
  display: block;
  text-align: left;
}

#admin-login-panel input,
.employee-select select {
  text-align: left;
}

.login-section {
  padding: 18px;
}

.login-section h2 {
  line-height: 1.3;
}

.auth-card .text-center p {
  margin-top: 6px;
}

.login-btn {
  border-radius: 16px;
  align-self: center;
  margin-top: 18px;
}

.employee-select {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 12px;
}

.employee-select label {
  margin-bottom: 0;
  font-size: 13px;
  letter-spacing: 0.02em;
}

@media (max-width: 520px) {
  .employee-select {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.login-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.login-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(10px);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
}

.login-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
  animation: fadeIn 0.3s ease-out forwards;
}

.login-overlay-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(24, 28, 32, 0.85);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.6);
  animation: popIn 0.35s ease-out forwards;
}

.login-check {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--accent);
  color: #0b1207;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
}

.login-btn-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(11, 18, 7, 0.35);
  border-top-color: rgba(11, 18, 7, 0.95);
  animation: spin 0.6s linear infinite;
}

.login-btn.loading {
  transform: translateY(0);
  filter: brightness(0.98);
}

.login-btn.loading .login-btn-text {
  opacity: 0.7;
}

.login-btn-text {
  display: inline-block;
  line-height: 1;
}

.login-btn.loading .login-btn-spinner {
  display: inline-block;
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
