/* Waiter POS Authentication & Admin Waiters Styles */

/* Linen Wallpaper Background */
.waiter-linen-bg {
  background-color: #dedbd3;
  background-image: url('/images/pos/linen-bg.jpg') !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: fixed !important;
}

/* Typography matching Figma design */
.waiter-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: #111412;
  letter-spacing: -0.02em;
}

.waiter-subtitle {
  color: #555e56;
  font-size: 1.05rem;
  font-weight: 400;
}

/* Avatar Card */
.waiter-avatar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 6px;
  border-radius: 20px;
}

.waiter-avatar-card:hover {
  transform: translateY(-4px);
}

.waiter-avatar-img-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease-in-out;
  border: 3px solid transparent;
}

@media (min-width: 640px) {
  .waiter-avatar-img-wrap {
    width: 122px;
    height: 122px;
  }
}

.waiter-avatar-card.is-selected .waiter-avatar-img-wrap {
  border-color: #2b3a30;
  box-shadow: 0 0 0 4px #ffffff, 0 0 0 7px #2b3a30, 0 12px 24px rgba(0, 0, 0, 0.16);
  transform: scale(1.05);
}

.waiter-avatar-card .waiter-name {
  margin-top: 14px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1f1c;
  text-align: center;
  transition: color 0.2s;
}

.waiter-avatar-card.is-selected .waiter-name {
  color: #000000;
  font-weight: 700;
}

/* Select Pill Button */
.waiter-select-btn {
  background: #ffffff;
  color: #111412;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 13px 68px;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.waiter-select-btn:hover:not(:disabled) {
  background: #f8faf9;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.waiter-select-btn:active:not(:disabled) {
  transform: translateY(0);
}

.waiter-select-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* Back Button */
.waiter-back-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: #2b332d;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.waiter-back-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}

/* PIN Indicator Dots */
.pin-dots-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 24px 0 16px 0;
}

.pin-dot {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  border: 2px solid #28302a;
  background: transparent;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.pin-dot.is-filled {
  background: #28302a;
  box-shadow: 0 2px 6px rgba(40, 48, 42, 0.3);
  transform: scale(1.08);
}

.pin-dot.is-error {
  border-color: #dc2626 !important;
  background: #dc2626 !important;
}

/* Shake Animation */
.shake-animation {
  animation: pinShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes pinShake {
  10%, 90% { transform: translate3d(-3px, 0, 0); }
  20%, 80% { transform: translate3d(5px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-7px, 0, 0); }
  40%, 60% { transform: translate3d(7px, 0, 0); }
}

/* Numeric Keypad */
.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 290px;
  margin: 0 auto;
}

.keypad-btn {
  width: 78px;
  height: 78px;
  border-radius: 9999px;
  background: #ffffff;
  color: #111412;
  font-size: 1.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  margin: 0 auto;
}

.keypad-btn:hover {
  background: #fbfcfb;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.13);
  transform: scale(1.04);
}

.keypad-btn:active {
  background: #ecefe8;
  transform: scale(0.95);
}

.keypad-btn.keypad-empty {
  visibility: hidden;
  pointer-events: none;
}

.keypad-btn.keypad-action {
  font-size: 1.45rem;
  color: #374151;
}

/* Waiter Header Badge in POS */
.pos-waiter-badge {
  display: inline-flex;
  align-items: center;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 9999px;
  padding: 4px 12px 4px 6px;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pos-waiter-badge img {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  object-fit: cover;
  border: 1px solid #86efac;
}

.pos-switch-waiter-btn {
  font-size: 0.75rem;
  background: #15803d;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  margin-left: 4px;
}

.pos-switch-waiter-btn:hover {
  background: #166534;
}

.pos-change-table-btn {
  font-size: 0.75rem;
  background: #0891b2;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  margin-left: 4px;
}

.pos-change-table-btn:hover {
  background: #0e7490;
}

/* Table Selection Cards */
.pos-table-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid #dcdfd8;
  border-radius: 18px;
  padding: 24px 14px 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(4px);
  min-height: 130px;
}

.pos-table-card:hover {
  transform: translateY(-4px);
  border-color: #2b3a30;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(43, 58, 48, 0.14);
}

.pos-table-card.is-selected {
  border-color: #2b3a30;
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px #2b3a30, 0 12px 28px rgba(0, 0, 0, 0.16);
  background: #ffffff;
}

.pos-table-card .pos-table-code {
  font-size: 1.35rem;
  font-weight: 800;
  color: #111412;
  margin-top: 10px;
  letter-spacing: -0.01em;
}

.pos-table-card.is-serving {
  background: #fffbeb;
  border-color: #fde68a;
}

.pos-table-card.is-serving:hover {
  border-color: #f59e0b;
}

.pos-table-badge {
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pos-table-badge.badge-available {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.pos-table-badge.badge-serving {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* Admin Waiters Page Styles */
.admin-waiters-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(2px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.admin-waiters-modal-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 28px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.96) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
