/* Nickel App — Custom Styles (supplement to Tailwind CDN) */

/* ── Bounce animation for waiting dots ── */
@keyframes bounce-dot {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-12px); }
}
.dot-bounce { animation: bounce-dot 1.2s infinite ease-in-out; }
.dot-bounce-1 { animation-delay: 0ms; }
.dot-bounce-2 { animation-delay: 200ms; }
.dot-bounce-3 { animation-delay: 400ms; }

/* ── Pulse for live indicator ── */
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.75; }
  100% { transform: scale(2); opacity: 0; }
}
.live-pulse-ring {
  animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* ── SMS OTP input ── */
.otp-input {
  width: 3rem;
  height: 3.5rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  border: 2px solid #d9d9d9;
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.15s;
  text-transform: uppercase;
}
.otp-input:focus {
  border-color: rgb(255 102 0);
}
.otp-input.filled {
  border-color: rgb(255 102 0);
  background: rgba(255 102 0 / 0.04);
}

/* ── Floating label inputs ── */
.float-group { position: relative; }
.float-group input:focus + label,
.float-group input:not(:placeholder-shown) + label {
  top: 0.375rem;
  font-size: 0.7rem;
  color: rgb(255 102 0);
}
.float-group label {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  font-size: 0.875rem;
  color: #9ca3af;
  pointer-events: none;
  transition: all 0.15s ease;
  background: white;
  padding: 0 4px;
}
.float-group input {
  display: block;
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 0.75rem;
  padding: 1.25rem 0.75rem 0.5rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s;
}
.float-group input:focus {
  border-color: rgb(255 102 0);
  box-shadow: 0 0 0 2px rgba(255,102,0,0.12);
}

/* ── Upload drop zone ── */
.upload-zone {
  border: 2px dashed #e5e7eb;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 7.5rem;
  cursor: pointer;
  transition: all 0.2s;
  background: #f9fafb;
  padding: 1.25rem;
}
.upload-zone:hover {
  border-color: rgba(255,102,0,0.5);
  background: rgba(255,102,0,0.03);
}
.upload-zone.uploading {
  border-color: rgba(255,102,0,0.4);
  background: rgba(255,102,0,0.04);
  cursor: default;
}
.upload-zone.uploaded {
  border-color: #4ade80;
  background: #f0fdf4;
  cursor: default;
}

/* ── Progress bar animation ── */
@keyframes progress-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}
.progress-pulse { animation: progress-pulse 1.5s ease-in-out infinite; }

/* ── Numeric keypad button active ── */
.key-btn:active { transform: scale(0.96); }

/* ── Panel notification toast ── */
@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.notif-toast {
  animation: slideInRight 0.3s ease-out forwards;
}

/* ── Spin loader ── */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; }

/* ── Checkbox custom ── */
.nickel-checkbox {
  appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid #d9d9d9;
  border-radius: 0.25rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
  position: relative;
}
.nickel-checkbox:checked {
  background: rgb(255 102 0);
  border-color: rgb(255 102 0);
}
.nickel-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 3px; top: 1px;
  width: 5px; height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* ── Scrollbar thin (panel) ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
