html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

@media (min-width: 900px) {
  html, body, .root {
    overflow: hidden !important;
    height: 100vh !important;
    max-height: 100vh !important;
  }
}

html {
  color-scheme: light;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #0f172a;
  font-family: 'Plus Jakarta Sans', 'Outfit', ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

input::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

.root {
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media print {
  * {
    height: auto !important;
    overflow: visible !important;
  }
}

/* ==========================================================================
   GLOBAL MICRO-ANIMATIONS & TRANSITION SYSTEM
   ========================================================================== */

/* 1. Page & View Entrance Fade-In with Soft Float */
@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleInPop {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

main,
[role="main"],
.page-container,
.MuiContainer-root {
  animation: pageFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* 2. Interactive Tactile Micro-Physics (Buttons, Chips, Links) */
button,
a,
.MuiButton-root,
.MuiIconButton-root,
.MuiListItemButton-root,
.MuiChip-root,
.MuiTab-root {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease !important;
}

/* Tactile press on all interactive elements */
button:active,
.MuiButton-root:active,
.MuiIconButton-root:active {
  transform: scale(0.96) translateY(1px) !important;
}

/* Gentle lift on buttons */
.MuiButton-contained:hover {
  transform: translateY(-1.5px);
}

.MuiButton-outlined:hover {
  transform: translateY(-1px);
}

/* Icon Buttons gentle hover spin/scale */
.MuiIconButton-root:hover {
  transform: translateY(-1px) scale(1.06);
}

.MuiIconButton-root:hover svg {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. Cards & Paper Containers Micro-Elevate */
.MuiCard-root,
.MuiPaper-elevation1,
.MuiPaper-elevation2,
.MuiPaper-elevation3 {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease !important;
}

.MuiCard-root:hover {
  transform: translateY(-2px);
}

/* 4. List Items & Navigation Slide Micro-Animation */
.MuiListItemButton-root:hover {
  transform: translateX(3px);
}

.MuiListItemButton-root .MuiListItemIcon-root {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.MuiListItemButton-root:hover .MuiListItemIcon-root {
  transform: scale(1.1);
}

/* 5. Chips & Status Badges */
.MuiChip-root:hover {
  transform: translateY(-1px) scale(1.02);
}

/* 6. Form Inputs Focus Rings */
.MuiOutlinedInput-root {
  transition: border-color 0.2s ease,
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease !important;
}

/* 7. Dialogs & Popovers Entrance Animation */
.MuiDialog-paper {
  animation: scaleInPop 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.MuiPopover-paper {
  animation: scaleInPop 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* 8. Table Rows Hover Lighting */
.MuiTableRow-root {
  transition: background-color 0.15s ease, transform 0.15s ease !important;
}

.MuiTableRow-root:hover {
  background-color: rgba(241, 245, 249, 0.6) !important;
}

/* 9. Keyframe Utilities (Pulse, Live Dot, Radar, Float) */
@keyframes gpsRadarSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes gpsPulseGlow {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
    filter: drop-shadow(0 0 15px rgba(0, 205, 232, 0.4));
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
    filter: drop-shadow(0 0 28px rgba(0, 205, 232, 0.8));
  }
}

@keyframes gpsFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes gpsLiveDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

@keyframes gpsAlertBlink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.12);
  }
}

@keyframes gpsOrbitSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes shimmerGlow {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Animation Helper Classes */
.animate-float {
  animation: gpsFloat 3s ease-in-out infinite;
}

.animate-pulse-live {
  animation: gpsLiveDot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-radar {
  animation: gpsRadarSweep 10s linear infinite;
}

.animate-pop {
  animation: scaleInPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
