/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f2f2f7;
  color: #1c1c1e;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Glassmorphism Header and Nav */
.ios-glass {
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ios-glass-nav {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Slide up sheet / modal animation */
.sheet-backdrop {
  background-color: rgba(0, 0, 0, 0.4);
  transition: opacity 0.3s ease-out;
}

.sheet-content {
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.15, 0.85, 0.3, 1);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  max-height: 90%;
}

.sheet-active .sheet-content {
  transform: translateY(0);
}

/* Sidebar Slide-out Menu transitions */
.sidebar-backdrop {
  background-color: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background-color 0.3s ease-out;
}
.sidebar-active.sidebar-backdrop {
  background-color: rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}
.sidebar-content {
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.15, 0.85, 0.3, 1);
}
.sidebar-active .sidebar-content {
  transform: translateX(0);
}

/* Fade and slide transition for views */
.view-transition {
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.view-hidden {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  position: absolute;
  width: 100%;
}

/* Custom Checkbox Styling */
.ios-checkbox {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid #d1d1d6;
  border-radius: 50%;
  outline: none;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
  background-color: #fff;
}

.ios-checkbox:checked {
  background-color: #0d9488; /* Tailwind teal-600 */
  border-color: #0d9488;
}

.ios-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 7.5px;
  top: 3.5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Custom Scrollbar for list and grids */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Toast animations */
@keyframes slideDownUp {
  0% { transform: translateY(-80px); opacity: 0; }
  10% { transform: translateY(0); opacity: 1; }
  90% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-80px); opacity: 0; }
}

.ios-toast {
  animation: slideDownUp 3s ease forwards;
  width: 100%;
  max-width: 320px;
}

/* Pulse animation for Status Dots in critical states */
.status-dot-pulse {
  position: relative;
}

.status-dot-pulse::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  animation: pulse-ring 1.8s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.pulse-red::before {
  background-color: rgba(239, 68, 68, 0.4);
}

.pulse-yellow::before {
  background-color: rgba(245, 158, 11, 0.4);
}

.pulse-green::before {
  background-color: rgba(16, 185, 129, 0.4);
}

/* Enable smooth inertial scrolling on mobile devices */
.overflow-y-auto {
  -webkit-overflow-scrolling: touch;
}

/* Numeric Passcode Keypad Styles */
.keypad-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  cursor: pointer;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.keypad-btn:hover {
  background-color: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.3);
}

.keypad-btn:active {
  background-color: rgba(13, 148, 136, 0.7); /* Teal glow on press */
  border-color: #0d9488;
  transform: scale(0.92);
}

#passcode-dots .dot.filled {
  background-color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Shake animation for incorrect PIN entry */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.shake {
  animation: shake 0.35s ease-in-out;
}

/* Status Pulse colors for Boarding Med 1 and Boarding Med 2 */
.pulse-orange::before {
  background-color: rgba(249, 115, 22, 0.4);
}

.pulse-purple::before {
  background-color: rgba(168, 85, 247, 0.4);
}

/* Spinner Rotate Keyframes */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Completed Boarding Routine styling */
.boarding-task-done {
  opacity: 0.45;
  text-decoration: line-through;
  transition: all 0.3s ease;
}

/* Safety Warning Alert Modal Transitions */
#modal-safety-warning {
  transition: opacity 0.3s ease;
}

#modal-safety-warning .sheet-content {
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#modal-safety-warning.sheet-active {
  opacity: 1;
}

#modal-safety-warning.sheet-active .sheet-content {
  transform: translateY(0);
}
/* Admin Delete PIN Keypad */
.admin-delete-keypad-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(239, 68, 68, 0.25);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  cursor: pointer;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  margin: 0 auto;
}
.admin-delete-keypad-btn:hover {
  background-color: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
}
.admin-delete-keypad-btn:active {
  background-color: rgba(220, 38, 38, 0.6);
  border-color: #dc2626;
  transform: scale(0.92);
}

#admin-delete-passcode-dots .admin-dot.filled {
  background-color: #ef4444;
  border-color: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

