﻿/* ============================================================================
   Mobile-First CSS for Asset Capture App
   Optimized for iPhone 14/16 (Safari)
   ============================================================================ */

/* ---------------------------------------------------------------------------
   CSS Custom Properties & Design Tokens
   --------------------------------------------------------------------------- */
:root {
  /* iOS Safe Area Support */
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);

  /* Spacing Scale (mobile-optimized) */
  --space-xs: 0.5rem;
  /* 8px */
  --space-sm: 0.75rem;
  /* 12px */
  --space-md: 1rem;
  /* 16px */
  --space-lg: 1.5rem;
  /* 24px */
  --space-xl: 2rem;
  /* 32px */

  /* Color Palette (preserving existing scheme) */
  --color-primary: #2563eb;
  /* blue-600 */
  --color-primary-hover: #1d4ed8;
  /* blue-700 */
  --color-success: #16a34a;
  /* green-600 */
  --color-success-hover: #15803d;
  /* green-700 */
  --color-secondary: #475569;
  /* slate-600 */
  --color-secondary-hover: #334155;
  /* slate-700 */
  --color-warning: #eab308;
  /* yellow-500 */
  --color-warning-bg: #fef3c7;
  /* yellow-100 */
  --color-danger: #dc2626;
  /* red-600 */
  --color-danger-bg: #fee2e2;
  /* red-100 */

  /* Neutrals */
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;
  --color-text-primary: var(--color-gray-900);
  --color-text-secondary: var(--color-gray-700);
  --color-text-muted: #64748b;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-xs: 0.75rem;
  /* 12px */
  --font-size-sm: 0.875rem;
  /* 14px */
  --font-size-base: 1rem;
  /* 16px - prevents iOS auto-zoom */
  --font-size-lg: 1.125rem;
  /* 18px */
  --font-size-xl: 1.25rem;
  /* 20px */
  --font-size-2xl: 1.5rem;
  /* 24px */

  /* Touch Targets */
  --touch-target-min: 44px;
  --touch-target-comfortable: 48px;
  --touch-target-large: 52px;

  /* Border Radius */
  --radius-sm: 0.375rem;
  /* 6px */
  --radius-md: 0.5rem;
  /* 8px */
  --radius-lg: 0.75rem;
  /* 12px */

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.4);
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
}

/* ---------------------------------------------------------------------------
   Base Styles & Mobile Optimizations
   --------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  /* Base for rem calculations */
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--color-gray-800);
  background-color: var(--color-gray-50);
  margin: 0;
  padding: 0;
  /* Prevent iOS pull-to-refresh in standalone mode */
  overscroll-behavior-y: contain;
}

/* Main content area with safe-area padding */
main {
  padding-bottom: calc(var(--safe-area-bottom) + var(--space-md));
}

/* ---------------------------------------------------------------------------
   Typography Enhancements
   --------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-sm) 0;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-gray-900);
}

h1 {
  font-size: var(--font-size-2xl);
}

h2 {
  font-size: var(--font-size-xl);
}

h3 {
  font-size: var(--font-size-lg);
}

/* Better outdoor readability */
.text-bold {
  font-weight: 700;
}

.text-high-contrast {
  color: var(--color-gray-900);
}

/* ---------------------------------------------------------------------------
   Form Elements (Mobile-Optimized)
   --------------------------------------------------------------------------- */
label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: 0.375rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: var(--touch-target-comfortable);
  padding: 0.75rem;
  font-size: var(--font-size-base);
  /* Prevents iOS auto-zoom */
  font-family: inherit;
  line-height: 1.5;
  color: var(--color-gray-900);
  background-color: white;
  border: 2px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

/* Focus states */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Select dropdown arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5rem 1.5rem;
  padding-right: 2.5rem;
}

/* Error states */
input.error,
select.error,
textarea.error {
  border-color: var(--color-danger);
}

.error-message {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--font-size-sm);
  color: var(--color-danger);
}

/* Helper text */
.helper-text {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--font-size-sm);
  color: var(--color-gray-700);
}

/* File input enhancement */
input[type="file"] {
  display: block;
  width: 100%;
  font-size: var(--font-size-sm);
  padding: 0.625rem;
  cursor: pointer;
}

/* Custom file upload button */
.file-upload-wrapper {
  position: relative;
  width: 100%;
}

.file-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: var(--touch-target-large);
  padding: 0.75rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-primary);
  background-color: var(--color-gray-100);
  border: 2px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-upload-btn:hover {
  background-color: var(--color-gray-200);
  border-color: var(--color-primary);
}

.file-upload-btn.has-file {
  background-color: #dbeafe;
  /* blue-100 */
  border-color: var(--color-primary);
  border-style: solid;
}

/* ---------------------------------------------------------------------------
   Buttons (Touch-Optimized)
   --------------------------------------------------------------------------- */
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--touch-target-comfortable);
  padding: 0.75rem 1.5rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  color: white;
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  /* Prevents double-tap zoom */
}

button:hover:not(:disabled),
.btn:hover:not(:disabled) {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

button:active:not(:disabled),
.btn:active:not(:disabled) {
  transform: translateY(0);
}

/* Button variants */
.btn-primary {
  background-color: var(--color-primary);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--color-primary-hover);
}

.btn-success {
  background-color: var(--color-success);
}

.btn-success:hover:not(:disabled) {
  background-color: var(--color-success-hover);
}

.btn-secondary {
  background-color: var(--color-secondary);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--color-secondary-hover);
}

.btn-outline {
  background-color: var(--color-gray-200);
  color: var(--color-gray-800);
  border: 2px solid var(--color-gray-300);
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--color-gray-300);
}

/* Button sizes */
.btn-large {
  min-height: var(--touch-target-large);
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
}

.btn-full {
  width: 100%;
}

/* Disabled state */
button:disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Loading state */
.btn-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  top: 50%;
  left: 50%;
  margin-left: -0.625rem;
  margin-top: -0.625rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------------------------------------------------------------------
   Sticky Action Bar (Bottom)
   --------------------------------------------------------------------------- */
.sticky-actions {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  padding-bottom: calc(var(--space-md) + var(--safe-area-bottom));
  background-color: white;
  border-top: 1px solid var(--color-gray-200);
  box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.05);
  z-index: 10;
}

.sticky-actions .btn-group {
  display: flex;
  gap: var(--space-sm);
  align-items: stretch;
  justify-content: center;
}

.sticky-actions .btn-group>* {
  flex: 0 1 32%;
  min-width: 98px;
  display: flex;
}

.sticky-actions .btn-group a.btn,
.sticky-actions .btn-group button.btn,
.sticky-actions .btn-group .btn {
  flex: 1;
  font-size: 0.7em;
  min-height: calc(var(--touch-target-comfortable) * 0.7);
  padding: 0.55rem 0.9rem;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------------------------
   Cards & Containers
   --------------------------------------------------------------------------- */
.card {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.field-group {
  margin-bottom: var(--space-lg);
}

.field-card {
  background-color: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

/* ---------------------------------------------------------------------------
   QR Scanner Specific
   --------------------------------------------------------------------------- */
#qr-reader {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-gray-200);
  min-height: 100px;
  position: relative;
}

#qr-reader video {
  width: 100%;
  height: auto;
}

.qr-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.qr-icon {
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.scan-line {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.85), transparent);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
  border-radius: 999px;
  animation: scan-sweep 2.6s ease-in-out infinite;
  opacity: 0.95;
}

.qr-placeholder.is-success .qr-icon {
  filter: brightness(0) saturate(100%) invert(47%) sepia(63%) saturate(564%) hue-rotate(92deg) brightness(90%) contrast(92%);
}

.qr-placeholder.is-success .scan-line {
  background: linear-gradient(90deg, transparent, rgba(22, 163, 74, 0.9), transparent);
  box-shadow: 0 0 14px rgba(22, 163, 74, 0.6);
}

.scan-line-live {
  pointer-events: none;
}

@keyframes scan-sweep {
  0% {
    top: 14%;
  }

  50% {
    top: 86%;
  }

  100% {
    top: 14%;
  }
}

.qr-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--space-md);
  font-size: var(--font-size-sm);
  text-align: center;
  background-color: var(--color-gray-100);
  border-radius: var(--radius-md);
  margin: var(--space-sm) 0;
}

.qr-status.success {
  background-color: #dcfce7;
  /* green-100 */
  color: #166534;
  /* green-800 */
}

.qr-status.error {
  background-color: var(--color-danger-bg);
  color: #991b1b;
  /* red-800 */
}

/* ---------------------------------------------------------------------------
   Alerts & Messages
   --------------------------------------------------------------------------- */
.alert {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  border-left: 4px solid;
}

.alert-warning {
  background-color: var(--color-warning-bg);
  border-left-color: var(--color-warning);
  color: #78350f;
  /* yellow-900 */
}

.alert-danger {
  background-color: var(--color-danger-bg);
  border-left-color: var(--color-danger);
  color: #991b1b;
  /* red-800 */
}

.alert-success {
  background-color: #dcfce7;
  /* green-100 */
  border-left-color: var(--color-success);
  color: #166534;
  /* green-800 */
}

/* Inline alert with actions */
.inline-alert {
  border: 2px solid var(--color-warning);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  background-color: var(--color-warning-bg);
  margin: var(--space-md) 0;
}

.inline-alert .alert-message {
  font-size: var(--font-size-sm);
  color: #78350f;
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.inline-alert .alert-actions {
  display: flex;
  gap: var(--space-sm);
}

.inline-alert .alert-actions .btn {
  flex: 1;
  min-height: var(--touch-target-min);
  font-size: var(--font-size-sm);
}

/* ---------------------------------------------------------------------------
   Image Preview
   --------------------------------------------------------------------------- */
.image-preview {
  margin-top: var(--space-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 100%;
}

.image-preview img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-gray-200);
}

.image-filename {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-sm);
  padding: 0.5rem;
  background-color: var(--color-gray-100);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  color: var(--color-gray-700);
}

.retake-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.retake-link:hover {
  background-color: var(--color-gray-200);
}

/* ---------------------------------------------------------------------------
/* ---------------------------------------------------------------------------
   Utility Classes (Tailwind CDN replacement)
   --------------------------------------------------------------------------- */

/* --- Display --- */
.hidden {
  display: none !important;
}

.block {
  display: block !important;
}

.flex {
  display: flex !important;
}

.inline-flex {
  display: inline-flex !important;
}

.inline-block {
  display: inline-block !important;
}

.grid {
  display: grid !important;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.col-span-full {
  grid-column: 1 / -1;
}

/* --- Positioning --- */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.inset-y-0 {
  top: 0;
  bottom: 0;
}

.top-0 {
  top: 0;
}

.left-0 {
  left: 0;
}

.right-0 {
  right: 0;
}

.bottom-0 {
  bottom: 0;
}

.z-10 {
  z-index: 10;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.w-full {
  width: 100%;
}

.w-auto {
  width: auto;
}

.w-2 {
  width: 0.5rem;
}

.w-4 {
  width: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.w-16 {
  width: 4rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-2xl {
  max-width: 42rem;
}

/* --- Spacing --- */
.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.pr-10 {
  padding-right: 2.5rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.pb-32 {
  padding-bottom: 8rem;
}

.space-y-2> :not([hidden])~ :not([hidden]) {
  margin-top: 0.5rem;
}

.space-y-4> :not([hidden])~ :not([hidden]) {
  margin-top: 1rem;
}

/* --- Sizing --- */
.h-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

/* --- Flexbox --- */
.flex-col {
  flex-direction: column;
}

.flex-1 {
  flex: 1 1 0%;
}

.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

/* --- GAP --- */
.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

/* --- Typography --- */
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wide {
  letter-spacing: 0.025em;
}

.leading-tight {
  line-height: 1.25;
}

.whitespace-nowrap {
  white-space: nowrap;
}

/* --- Colors --- */
.text-white {
  color: #fff;
}

.text-black {
  color: #000;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-800 {
  color: #1f2937;
}

.text-gray-900 {
  color: #111827;
}

.text-blue-600 {
  color: #2563eb;
}

.text-red-800 {
  color: #991b1b;
}

.bg-white {
  background-color: #fff;
}

.bg-blue-50 {
  background-color: #eff6ff;
}

.bg-blue-600 {
  background-color: #2563eb;
}

.bg-red-100 {
  background-color: #fee2e2;
}

.border {
  border-width: 1px;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

.border-gray-300 {
  border-color: #d1d5db;
}

.border-blue-100 {
  border-color: #dbeafe;
}

.border-blue-200 {
  border-color: #bfdbfe;
}

.border-red-200 {
  border-color: #fecaca;
}

/* --- Effects --- */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.overflow-hidden {
  overflow: hidden;
}

.opacity-25 {
  opacity: 0.25;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-75 {
  opacity: 0.75;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-shadow {
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.ring {
  box-shadow: var(--focus-ring);
}

/* --- Responsive --- */
@media (min-width: 640px) {
  .sm\:block {
    display: block !important;
  }

  .sm\:inline {
    display: inline !important;
  }

  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:gap-4 {
    gap: 1rem;
  }

  .sm\:px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .sm\:py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .sm\:text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .sm\:text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
}

.w-20 {
  width: 5rem;
}

.w-24 {
  width: 6rem;
}

.h-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.h-16 {
  height: 4rem;
}

.h-20 {
  height: 5rem;
}

.h-24 {
  height: 6rem;
}

.h-32 {
  height: 8rem;
}

.h-48 {
  height: 12rem;
}

.h-auto {
  height: auto;
}

.h-full {
  height: 100%;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

/* --- Flexbox --- */
.flex-col {
  flex-direction: column;
}

.flex-1 {
  flex: 1 1 0%;
}

.flex-initial {
  flex: 0 1 auto;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.flex-shrink-0 {
  flex-shrink: 0;
}


/* ---------------------------------------------------------------------------
   Responsive Adjustments
   --------------------------------------------------------------------------- */
@media (max-width: 420px) {
  :root {
    --space-lg: 1.25rem;
    --space-xl: 1.5rem;
  }

  .card {
    padding: var(--space-md);
  }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .sticky-actions {
    position: relative;
  }
}

/* ---------------------------------------------------------------------------
   iOS-Specific Fixes
   --------------------------------------------------------------------------- */
/* Prevent iOS from adding extra padding/styling to inputs */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Remove iOS button default styling */
button,
input[type="submit"],
input[type="button"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Prevent iOS text size adjustment on orientation change */
html {
  -webkit-text-size-adjust: 100%;
}

/* ---------------------------------------------------------------------------
   Camera Modal & WebRTC Styles
   --------------------------------------------------------------------------- */
.camera-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: black;
  display: flex;
  flex-direction: column;
}

#cameraFeed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensure video fills screen */
}

.camera-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl) var(--space-md);
  padding-bottom: calc(var(--space-xl) + var(--safe-area-bottom));
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--space-md);
}

.btn-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border: none;
  color: white;
}

.btn-circle.active {
  background-color: var(--color-warning);
  color: black;
}

.btn-capture-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: transparent;
  border: 4px solid white;
  position: relative;
  padding: 0;
}

.btn-capture-ring::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: white;
  transition: transform 0.1s ease;
}

.btn-capture-ring:active::after {
  transform: translate(-50%, -50%) scale(0.9);
}

.btn-text {
  color: white;
  background: transparent;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-text:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------------------------------------------------------------------------
   Scanner Viewfinder Corners
   --------------------------------------------------------------------------- */
.scanner-viewfinder {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scanner-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--color-primary);
  border-style: solid;
  border-width: 0;
  transition: border-color 0.25s ease;
}

.scanner-corner--tl {
  top: 8px;
  left: 8px;
  border-top-width: 3px;
  border-left-width: 3px;
  border-top-left-radius: 4px;
}

.scanner-corner--tr {
  top: 8px;
  right: 8px;
  border-top-width: 3px;
  border-right-width: 3px;
  border-top-right-radius: 4px;
}

.scanner-corner--bl {
  bottom: 8px;
  left: 8px;
  border-bottom-width: 3px;
  border-left-width: 3px;
  border-bottom-left-radius: 4px;
}

.scanner-corner--br {
  bottom: 8px;
  right: 8px;
  border-bottom-width: 3px;
  border-right-width: 3px;
  border-bottom-right-radius: 4px;
}

/* Animate corners when scanning */
.scanner-viewfinder.is-scanning .scanner-corner {
  animation: corner-pulse 2s ease-in-out infinite;
}

/* Success state - green corners */
.qr-placeholder.is-success .scanner-corner {
  border-color: var(--color-success);
}

@keyframes corner-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* ---------------------------------------------------------------------------
   Scanner Button Group
   --------------------------------------------------------------------------- */
.scanner-btn-group {
  display: flex;
  gap: 0;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
}

.scanner-btn-group .btn {
  flex: 1;
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--color-gray-200);
  min-height: 52px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  box-shadow: none;
}

.scanner-btn-group .btn:last-child {
  border-right: none;
}

.scanner-btn-group .btn:first-child {
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}

.scanner-btn-group .btn:last-child {
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.scanner-btn-group .btn-outline {
  background-color: var(--color-gray-50);
}

.scanner-btn-group .btn:hover:not(:disabled) {
  transform: none;
  box-shadow: none;
}

/* ---------------------------------------------------------------------------
   Enhanced Status Transitions
   --------------------------------------------------------------------------- */
.qr-status {
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.qr-status.success {
  animation: status-pop 0.3s ease;
}

.qr-status.error {
  animation: status-shake 0.4s ease;
}

@keyframes status-pop {
  0% {
    transform: scale(0.95);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes status-shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-4px);
  }

  40%,
  80% {
    transform: translateX(4px);
  }
}

/* Inline alert smooth entry */
.inline-alert {
  animation: alert-slide-in 0.3s ease;
}

@keyframes alert-slide-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------------------------------------
   Location Suggestions Animation
   --------------------------------------------------------------------------- */
#location_suggestions {
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  transform-origin: top center;
  box-shadow: var(--shadow-md);
  /* Hidden state (default) */
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-4px);
}

/* Visible state - applied via class */
#location_suggestions.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0);
}

/* Suggestion item hover states */
#location_suggestions>div {
  transition: background-color 0.15s ease;
  border-bottom: 1px solid var(--color-gray-100);
}

#location_suggestions>div:last-child {
  border-bottom: none;
}

#location_suggestions>div:hover {
  background-color: var(--color-gray-100) !important;
}

/* ---------------------------------------------------------------------------
   Form Field Icons
   --------------------------------------------------------------------------- */
.field-with-icon {
  position: relative;
}

.field-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-100);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  pointer-events: none;
  z-index: 1;
}

.field-icon svg {
  width: 20px;
  height: 20px;
}

.field-with-icon select,
.field-with-icon input[type='text'] {
  padding-left: 60px;
}

/* ---------------------------------------------------------------------------
   Recent Scans Horizontal Carousel
   --------------------------------------------------------------------------- */
.recent-scans-carousel {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-xs);
  scrollbar-width: none;
  margin: 0 -4px;
  padding: 4px;
}

.recent-scans-carousel::-webkit-scrollbar {
  display: none;
}

.recent-scan-card {
  flex: 0 0 140px;
  scroll-snap-align: start;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
}

.recent-scan-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.recent-scan-card:active {
  transform: scale(0.98);
}

.recent-scan-card .qr-code {
  font-weight: 700;
  font-size: var(--font-size-xs);
  color: var(--color-gray-900);
  background: var(--color-gray-200);
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-xs);
  display: inline-block;
  font-family: monospace;
}

.recent-scan-card .details {
  font-size: 0.7rem;
  color: var(--color-gray-700);
  line-height: 1.3;
}

.recent-scan-card .details div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------------------------------------------------------------------
   Enhanced Focus States
   --------------------------------------------------------------------------- */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.15),
    0 0 0 1px var(--color-primary);
  transform: scale(1.01);
}

input:focus,
select:focus,
textarea:focus {
  animation: focus-glow 2s ease-in-out infinite;
}

@keyframes focus-glow {

  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 0 0 1px var(--color-primary);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.1), 0 0 0 1px var(--color-primary);
  }
}

/* ---------------------------------------------------------------------------
   Skeleton Loaders
   --------------------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(90deg,
      #e5e7eb 25%,
      #f3f4f6 50%,
      #e5e7eb 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Skeleton variants */
.skeleton-text {
  height: 1rem;
  width: 60%;
  margin-bottom: 0.5rem;
}

.skeleton-text-sm {
  height: 0.75rem;
  width: 40%;
}

.skeleton-input {
  height: 44px;
  width: 100%;
}

.skeleton-card {
  height: 80px;
  width: 140px;
  flex-shrink: 0;
}

.skeleton-label {
  height: 0.875rem;
  width: 100px;
  margin-bottom: 0.5rem;
}

/* Hide real content when skeleton is active */
.skeleton-wrapper .skeleton-content {
  display: none;
}

.skeleton-wrapper.loaded .skeleton {
  display: none;
}

.skeleton-wrapper.loaded .skeleton-content {
  display: block;
}

/* ---------------------------------------------------------------------------
   Dark Mode Support
   --------------------------------------------------------------------------- */
:root {
  --dm-bg-primary: #1a1a2e;
  --dm-bg-secondary: #16213e;
  --dm-bg-card: #1f2942;
  --dm-text-primary: #ffffff;
  --dm-text-secondary: #a0aec0;
  --dm-border: #2d3748;
}

/* Auto dark mode based on system preference */
@media (prefers-color-scheme: dark) {
  body:not(.light-mode) {
    background-color: var(--dm-bg-primary);
    color: var(--dm-text-primary);
  }

  body:not(.light-mode) .card {
    background: var(--dm-bg-card);
    border-color: var(--dm-border);
  }

  body:not(.light-mode) input,
  body:not(.light-mode) select,
  body:not(.light-mode) textarea {
    background: var(--dm-bg-secondary);
    border-color: var(--dm-border);
    color: var(--dm-text-primary);
  }

  body:not(.light-mode) .helper-text {
    color: var(--dm-text-secondary);
  }

  body:not(.light-mode) .field-icon {
    background: var(--dm-border);
  }

  body:not(.light-mode) .scanner-btn-group {
    border-color: var(--dm-border);
  }

  body:not(.light-mode) .scanner-btn-group .btn-outline {
    background: var(--dm-bg-secondary);
    border-color: var(--dm-border);
    color: var(--dm-text-primary);
  }

  body:not(.light-mode) .recent-scan-card {
    background: var(--dm-bg-secondary);
    border-color: var(--dm-border);
  }

  body:not(.light-mode) .qr-placeholder {
    background: var(--dm-bg-secondary);
  }
}

/* Manual dark mode toggle class */
body.dark-mode {
  background-color: var(--dm-bg-primary);
  color: var(--dm-text-primary);
}

body.dark-mode .card {
  background: var(--dm-bg-card);
  border-color: var(--dm-border);
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background: var(--dm-bg-secondary);
  border-color: var(--dm-border);
  color: var(--dm-text-primary);
}

body.dark-mode .helper-text {
  color: var(--dm-text-secondary);
}

body.dark-mode .field-icon {
  background: var(--dm-border);
}

body.dark-mode .scanner-btn-group {
  border-color: var(--dm-border);
}

body.dark-mode .scanner-btn-group .btn-outline {
  background: var(--dm-bg-secondary);
  border-color: var(--dm-border);
  color: var(--dm-text-primary);
}

body.dark-mode .recent-scan-card {
  background: var(--dm-bg-secondary);
  border-color: var(--dm-border);
}

body.dark-mode .qr-placeholder {
  background: var(--dm-bg-secondary);
}

body.dark-mode .skeleton {
  background: linear-gradient(90deg, #2d3748 25%, #3d4a5c 50%, #2d3748 75%);
  background-size: 200% 100%;
}

/* Dark mode toggle button */
.dark-mode-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s ease;
  font-size: 1.25rem;
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
}

body.dark-mode .dark-mode-toggle {
  background: var(--dm-bg-card);
  border-color: var(--dm-border);
}

/* ---------------------------------------------------------------------------
   Glassmorphism Effects
   --------------------------------------------------------------------------- */
.card-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.input-glass {
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.input-glass:focus {
  background: rgba(255, 255, 255, 0.7) !important;
  border-color: var(--color-primary) !important;
}

/* Dark mode glass */
body.dark-mode .card-glass {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .input-glass {
  background: rgba(30, 41, 59, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ---------------------------------------------------------------------------
   Zoom Control
   --------------------------------------------------------------------------- */
.zoom-control {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  padding-top: calc(var(--space-md) + var(--safe-area-top));
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  z-index: 10;
}

.zoom-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.zoom-label svg {
  opacity: 0.9;
}

#zoomSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 200px;
  max-width: 80%;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

#zoomSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.1s ease;
}

#zoomSlider::-webkit-slider-thumb:active {
  transform: scale(1.1);
}

#zoomSlider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* --- Hover States --- */
.hover\:underline:hover {
  text-decoration: underline;
}

.hover\:text-gray-700:hover {
  color: #374151;
}

.hover\:text-blue-600:hover {
  color: #2563eb;
}

.hover\:bg-blue-100:hover {
  background-color: #dbeafe;
}

.hover\:bg-blue-700:hover {
  background-color: #1d4ed8;
}

.hover\:shadow-md:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* --- Focus States --- */
.focus\:ring-blue-500:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* --- Margins --- */
.m-0 {
  margin: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.ml-auto {
  margin-left: auto;
}

/* --- Borders --- */
.border-t {
  border-top-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

/* --- Sizing & Layout Misc --- */
.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.object-cover {
  object-fit: cover;
}

.min-h-\[220px\] {
  min-height: 220px;
}

/* --- Backgrounds --- */
.bg-gray-50 {
  background-color: #f9fafb;
}

.bg-gray-50\/50 {
  background-color: rgba(249, 250, 251, 0.5);
}

.bg-white\/95 {
  background-color: rgba(255, 255, 255, 0.95);
}

.bg-black {
  background-color: #000;
}

.bg-black\/30 {
  background-color: rgba(0, 0, 0, 0.3);
}

.bg-black\/50 {
  background-color: rgba(0, 0, 0, 0.5);
}

.bg-black\/80 {
  background-color: rgba(0, 0, 0, 0.8);
}

.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-black\/50 {
  --tw-gradient-from: rgba(0, 0, 0, 0.5);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.from-black\/80 {
  --tw-gradient-from: rgba(0, 0, 0, 0.8);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.via-black\/40 {
  --tw-gradient-via: rgba(0, 0, 0, 0.4);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.to-transparent {
  --tw-gradient-to: transparent;
}

/* --- Effects --- */
.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.shadow-\[0_-4px_6px_-1px_rgba\(0\,0\,0\,0\.05\)\] {
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* --- Safe Area Padding --- */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom);
}

.pt-safe {
  padding-top: env(safe-area-inset-top);
}

/* --- Transitions --- */
.duration-300 {
  transition-duration: 300ms;
}

.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-translate-y-full {
  --tw-translate-y: -100%;
}

/* --- Semantic Classes --- */
.header-bar {
  background-color: white;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.login-card {
  width: 100%;
  max-width: 28rem;
  /* max-w-md */
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.form-stack> :not([hidden])~ :not([hidden]) {
  margin-top: 1rem;
  /* space-y-4 */
}

.form-input {
  width: 100%;
  border-width: 1px;
  border-radius: 0.25rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* --- Final Missing Utilities --- */
.w-24 {
  width: 6rem;
}

.h-24 {
  height: 6rem;
}

.w-auto {
  width: auto;
}

.rounded-full {
  border-radius: 9999px;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.text-md {
  font-size: 1rem;
  line-height: 1.5rem;
}

.-right-6 {
  right: -1.5rem;
}


/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}