*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */ /* 3 */
  tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.\!container {
  width: 100% !important;
}
.container {
  width: 100%;
}
@media (min-width: 640px) {

  .\!container {
    max-width: 640px !important;
  }

  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {

  .\!container {
    max-width: 768px !important;
  }

  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {

  .\!container {
    max-width: 1024px !important;
  }

  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {

  .\!container {
    max-width: 1280px !important;
  }

  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {

  .\!container {
    max-width: 1536px !important;
  }

  .container {
    max-width: 1536px;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.pointer-events-none {
  pointer-events: none;
}
.pointer-events-auto {
  pointer-events: auto;
}
.\!visible {
  visibility: visible !important;
}
.visible {
  visibility: visible;
}
.invisible {
  visibility: hidden;
}
.collapse {
  visibility: collapse;
}
.static {
  position: static;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.inset-0 {
  inset: 0px;
}
.inset-x-0 {
  left: 0px;
  right: 0px;
}
.inset-y-0 {
  top: 0px;
  bottom: 0px;
}
.-bottom-12 {
  bottom: -3rem;
}
.-left-12 {
  left: -3rem;
}
.-right-12 {
  right: -3rem;
}
.-right-2 {
  right: -0.5rem;
}
.-top-12 {
  top: -3rem;
}
.-top-2 {
  top: -0.5rem;
}
.bottom-0 {
  bottom: 0px;
}
.bottom-24 {
  bottom: 6rem;
}
.left-0 {
  left: 0px;
}
.left-1 {
  left: 0.25rem;
}
.left-1\/2 {
  left: 50%;
}
.left-2 {
  left: 0.5rem;
}
.left-3 {
  left: 0.75rem;
}
.left-4 {
  left: 1rem;
}
.left-\[50\%\] {
  left: 50%;
}
.right-0 {
  right: 0px;
}
.right-1 {
  right: 0.25rem;
}
.right-2 {
  right: 0.5rem;
}
.right-4 {
  right: 1rem;
}
.top-0 {
  top: 0px;
}
.top-1 {
  top: 0.25rem;
}
.top-1\/2 {
  top: 50%;
}
.top-4 {
  top: 1rem;
}
.top-\[1px\] {
  top: 1px;
}
.top-\[50\%\] {
  top: 50%;
}
.top-\[60\%\] {
  top: 60%;
}
.top-full {
  top: 100%;
}
.z-10 {
  z-index: 10;
}
.z-50 {
  z-index: 50;
}
.z-\[100\] {
  z-index: 100;
}
.z-\[1\] {
  z-index: 1;
}
.z-\[499\] {
  z-index: 499;
}
.z-\[60\] {
  z-index: 60;
}
.col-span-2 {
  grid-column: span 2 / span 2;
}
.-mx-1 {
  margin-left: -0.25rem;
  margin-right: -0.25rem;
}
.mx-4 {
  margin-left: 1rem;
  margin-right: 1rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}
.-ml-4 {
  margin-left: -1rem;
}
.-mt-4 {
  margin-top: -1rem;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-5 {
  margin-bottom: 1.25rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.ml-1 {
  margin-left: 0.25rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.ml-3 {
  margin-left: 0.75rem;
}
.ml-auto {
  margin-left: auto;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mt-0\.5 {
  margin-top: 0.125rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-1\.5 {
  margin-top: 0.375rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-24 {
  margin-top: 6rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-auto {
  margin-top: auto;
}
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.block {
  display: block;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.aspect-square {
  aspect-ratio: 1 / 1;
}
.h-1\.5 {
  height: 0.375rem;
}
.h-10 {
  height: 2.5rem;
}
.h-12 {
  height: 3rem;
}
.h-16 {
  height: 4rem;
}
.h-2 {
  height: 0.5rem;
}
.h-2\.5 {
  height: 0.625rem;
}
.h-24 {
  height: 6rem;
}
.h-3 {
  height: 0.75rem;
}
.h-3\.5 {
  height: 0.875rem;
}
.h-4 {
  height: 1rem;
}
.h-40 {
  height: 10rem;
}
.h-5 {
  height: 1.25rem;
}
.h-6 {
  height: 1.5rem;
}
.h-7 {
  height: 1.75rem;
}
.h-8 {
  height: 2rem;
}
.h-9 {
  height: 2.25rem;
}
.h-\[1px\] {
  height: 1px;
}
.h-\[var\(--radix-navigation-menu-viewport-height\)\] {
  height: var(--radix-navigation-menu-viewport-height);
}
.h-\[var\(--radix-select-trigger-height\)\] {
  height: var(--radix-select-trigger-height);
}
.h-auto {
  height: auto;
}
.h-full {
  height: 100%;
}
.h-px {
  height: 1px;
}
.max-h-32 {
  max-height: 8rem;
}
.max-h-48 {
  max-height: 12rem;
}
.max-h-\[--radix-context-menu-content-available-height\] {
  max-height: var(--radix-context-menu-content-available-height);
}
.max-h-\[--radix-select-content-available-height\] {
  max-height: var(--radix-select-content-available-height);
}
.max-h-\[300px\] {
  max-height: 300px;
}
.max-h-\[70vh\] {
  max-height: 70vh;
}
.max-h-\[80vh\] {
  max-height: 80vh;
}
.max-h-\[var\(--radix-dropdown-menu-content-available-height\)\] {
  max-height: var(--radix-dropdown-menu-content-available-height);
}
.max-h-screen {
  max-height: 100vh;
}
.min-h-\[60px\] {
  min-height: 60px;
}
.min-h-screen {
  min-height: 100vh;
}
.w-1\/2 {
  width: 50%;
}
.w-1\/3 {
  width: 33.333333%;
}
.w-10 {
  width: 2.5rem;
}
.w-12 {
  width: 3rem;
}
.w-16 {
  width: 4rem;
}
.w-2 {
  width: 0.5rem;
}
.w-2\.5 {
  width: 0.625rem;
}
.w-20 {
  width: 5rem;
}
.w-24 {
  width: 6rem;
}
.w-3 {
  width: 0.75rem;
}
.w-3\.5 {
  width: 0.875rem;
}
.w-3\/4 {
  width: 75%;
}
.w-4 {
  width: 1rem;
}
.w-40 {
  width: 10rem;
}
.w-5 {
  width: 1.25rem;
}
.w-64 {
  width: 16rem;
}
.w-7 {
  width: 1.75rem;
}
.w-72 {
  width: 18rem;
}
.w-8 {
  width: 2rem;
}
.w-80 {
  width: 20rem;
}
.w-9 {
  width: 2.25rem;
}
.w-\[100px\] {
  width: 100px;
}
.w-\[1px\] {
  width: 1px;
}
.w-full {
  width: 100%;
}
.w-max {
  width: -webkit-max-content;
  width: max-content;
}
.w-px {
  width: 1px;
}
.min-w-0 {
  min-width: 0px;
}
.min-w-10 {
  min-width: 2.5rem;
}
.min-w-8 {
  min-width: 2rem;
}
.min-w-9 {
  min-width: 2.25rem;
}
.min-w-\[12rem\] {
  min-width: 12rem;
}
.min-w-\[8rem\] {
  min-width: 8rem;
}
.min-w-\[var\(--radix-select-trigger-width\)\] {
  min-width: var(--radix-select-trigger-width);
}
.max-w-2xl {
  max-width: 42rem;
}
.max-w-32 {
  max-width: 8rem;
}
.max-w-lg {
  max-width: 32rem;
}
.max-w-max {
  max-width: -webkit-max-content;
  max-width: max-content;
}
.max-w-md {
  max-width: 28rem;
}
.flex-1 {
  flex: 1 1;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.shrink-0 {
  flex-shrink: 0;
}
.grow {
  flex-grow: 1;
}
.grow-0 {
  flex-grow: 0;
}
.basis-full {
  flex-basis: 100%;
}
.caption-bottom {
  caption-side: bottom;
}
.border-collapse {
  border-collapse: collapse;
}
.origin-\[--radix-context-menu-content-transform-origin\] {
  transform-origin: var(--radix-context-menu-content-transform-origin);
}
.origin-\[--radix-dropdown-menu-content-transform-origin\] {
  transform-origin: var(--radix-dropdown-menu-content-transform-origin);
}
.origin-\[--radix-hover-card-content-transform-origin\] {
  transform-origin: var(--radix-hover-card-content-transform-origin);
}
.origin-\[--radix-menubar-content-transform-origin\] {
  transform-origin: var(--radix-menubar-content-transform-origin);
}
.origin-\[--radix-popover-content-transform-origin\] {
  transform-origin: var(--radix-popover-content-transform-origin);
}
.origin-\[--radix-select-content-transform-origin\] {
  transform-origin: var(--radix-select-content-transform-origin);
}
.origin-\[--radix-tooltip-content-transform-origin\] {
  transform-origin: var(--radix-tooltip-content-transform-origin);
}
.-translate-x-1\/2 {
  --tw-translate-x: -50%;
  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-1\/2 {
  --tw-translate-y: -50%;
  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-x-0\.5 {
  --tw-translate-x: 0.125rem;
  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-x-6 {
  --tw-translate-x: 1.5rem;
  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-x-\[-50\%\] {
  --tw-translate-x: -50%;
  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-\[-50\%\] {
  --tw-translate-y: -50%;
  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));
}
.-rotate-90 {
  --tw-rotate: -90deg;
  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));
}
.rotate-180 {
  --tw-rotate: 180deg;
  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));
}
.rotate-45 {
  --tw-rotate: 45deg;
  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));
}
.rotate-90 {
  --tw-rotate: 90deg;
  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));
}
.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));
}
@keyframes bounce {

  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8,0,1,1);
  }

  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0,0,0.2,1);
  }
}
.animate-bounce {
  animation: bounce 1s infinite;
}
@keyframes pulse {

  50% {
    opacity: .5;
  }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes spin {

  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: spin 1s linear infinite;
}
.cursor-default {
  cursor: default;
}
.cursor-not-allowed {
  cursor: not-allowed;
}
.cursor-pointer {
  cursor: pointer;
}
.cursor-wait {
  cursor: wait;
}
.touch-none {
  touch-action: none;
}
.select-none {
  -webkit-user-select: none;
          user-select: none;
}
.resize {
  resize: both;
}
.list-none {
  list-style-type: none;
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.flex-row {
  flex-direction: row;
}
.flex-col {
  flex-direction: column;
}
.flex-col-reverse {
  flex-direction: column-reverse;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-1\.5 {
  gap: 0.375rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.space-x-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.25rem * var(--tw-space-x-reverse));
  margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.5rem * var(--tw-space-x-reverse));
  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));
}
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}
.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}
.divide-y > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-y-reverse: 0;
  border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
  border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
}
.divide-gray-700\/50 > :not([hidden]) ~ :not([hidden]) {
  border-color: rgb(55 65 81 / 0.5);
}
.overflow-auto {
  overflow: auto;
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}
.overflow-x-hidden {
  overflow-x: hidden;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.whitespace-nowrap {
  white-space: nowrap;
}
.break-words {
  overflow-wrap: break-word;
}
.break-all {
  word-break: break-all;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-2xl {
  border-radius: 1rem;
}
.rounded-\[inherit\] {
  border-radius: inherit;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-md {
  border-radius: 0.375rem;
}
.rounded-sm {
  border-radius: 0.125rem;
}
.rounded-xl {
  border-radius: 0.75rem;
}
.rounded-t-2xl {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}
.rounded-t-\[10px\] {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.rounded-tl-sm {
  border-top-left-radius: 0.125rem;
}
.border {
  border-width: 1px;
}
.border-2 {
  border-width: 2px;
}
.border-y {
  border-top-width: 1px;
  border-bottom-width: 1px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-b-2 {
  border-bottom-width: 2px;
}
.border-l {
  border-left-width: 1px;
}
.border-l-4 {
  border-left-width: 4px;
}
.border-r {
  border-right-width: 1px;
}
.border-t {
  border-top-width: 1px;
}
.border-dashed {
  border-style: dashed;
}
.border-amber-500 {
  --tw-border-opacity: 1;
  border-color: rgb(245 158 11 / 1);
  border-color: rgb(245 158 11 / var(--tw-border-opacity, 1));
}
.border-blue-200 {
  --tw-border-opacity: 1;
  border-color: rgb(191 219 254 / 1);
  border-color: rgb(191 219 254 / var(--tw-border-opacity, 1));
}
.border-blue-500 {
  --tw-border-opacity: 1;
  border-color: rgb(59 130 246 / 1);
  border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
}
.border-blue-500\/30 {
  border-color: rgb(59 130 246 / 0.3);
}
.border-blue-600 {
  --tw-border-opacity: 1;
  border-color: rgb(37 99 235 / 1);
  border-color: rgb(37 99 235 / var(--tw-border-opacity, 1));
}
.border-blue-700 {
  --tw-border-opacity: 1;
  border-color: rgb(29 78 216 / 1);
  border-color: rgb(29 78 216 / var(--tw-border-opacity, 1));
}
.border-gray-200 {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / 1);
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.border-gray-300 {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / 1);
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}
.border-gray-600 {
  --tw-border-opacity: 1;
  border-color: rgb(75 85 99 / 1);
  border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
}
.border-gray-700 {
  --tw-border-opacity: 1;
  border-color: rgb(55 65 81 / 1);
  border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.border-gray-700\/50 {
  border-color: rgb(55 65 81 / 0.5);
}
.border-green-200 {
  --tw-border-opacity: 1;
  border-color: rgb(187 247 208 / 1);
  border-color: rgb(187 247 208 / var(--tw-border-opacity, 1));
}
.border-green-400 {
  --tw-border-opacity: 1;
  border-color: rgb(74 222 128 / 1);
  border-color: rgb(74 222 128 / var(--tw-border-opacity, 1));
}
.border-green-700 {
  --tw-border-opacity: 1;
  border-color: rgb(21 128 61 / 1);
  border-color: rgb(21 128 61 / var(--tw-border-opacity, 1));
}
.border-green-800 {
  --tw-border-opacity: 1;
  border-color: rgb(22 101 52 / 1);
  border-color: rgb(22 101 52 / var(--tw-border-opacity, 1));
}
.border-orange-300 {
  --tw-border-opacity: 1;
  border-color: rgb(253 186 116 / 1);
  border-color: rgb(253 186 116 / var(--tw-border-opacity, 1));
}
.border-orange-600 {
  --tw-border-opacity: 1;
  border-color: rgb(234 88 12 / 1);
  border-color: rgb(234 88 12 / var(--tw-border-opacity, 1));
}
.border-orange-700 {
  --tw-border-opacity: 1;
  border-color: rgb(194 65 12 / 1);
  border-color: rgb(194 65 12 / var(--tw-border-opacity, 1));
}
.border-red-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 202 202 / 1);
  border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));
}
.border-red-400 {
  --tw-border-opacity: 1;
  border-color: rgb(248 113 113 / 1);
  border-color: rgb(248 113 113 / var(--tw-border-opacity, 1));
}
.border-red-500 {
  --tw-border-opacity: 1;
  border-color: rgb(239 68 68 / 1);
  border-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
}
.border-red-500\/30 {
  border-color: rgb(239 68 68 / 0.3);
}
.border-red-600 {
  --tw-border-opacity: 1;
  border-color: rgb(220 38 38 / 1);
  border-color: rgb(220 38 38 / var(--tw-border-opacity, 1));
}
.border-red-700 {
  --tw-border-opacity: 1;
  border-color: rgb(185 28 28 / 1);
  border-color: rgb(185 28 28 / var(--tw-border-opacity, 1));
}
.border-slate-700 {
  --tw-border-opacity: 1;
  border-color: rgb(51 65 85 / 1);
  border-color: rgb(51 65 85 / var(--tw-border-opacity, 1));
}
.border-transparent {
  border-color: transparent;
}
.border-white {
  --tw-border-opacity: 1;
  border-color: rgb(255 255 255 / 1);
  border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));
}
.border-yellow-400 {
  --tw-border-opacity: 1;
  border-color: rgb(250 204 21 / 1);
  border-color: rgb(250 204 21 / var(--tw-border-opacity, 1));
}
.border-yellow-500 {
  --tw-border-opacity: 1;
  border-color: rgb(234 179 8 / 1);
  border-color: rgb(234 179 8 / var(--tw-border-opacity, 1));
}
.border-yellow-600 {
  --tw-border-opacity: 1;
  border-color: rgb(202 138 4 / 1);
  border-color: rgb(202 138 4 / var(--tw-border-opacity, 1));
}
.border-yellow-700 {
  --tw-border-opacity: 1;
  border-color: rgb(161 98 7 / 1);
  border-color: rgb(161 98 7 / var(--tw-border-opacity, 1));
}
.border-l-transparent {
  border-left-color: transparent;
}
.border-t-transparent {
  border-top-color: transparent;
}
.bg-amber-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 251 235 / 1);
  background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1));
}
.bg-black {
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / 1);
  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
}
.bg-black\/50 {
  background-color: rgb(0 0 0 / 0.5);
}
.bg-black\/60 {
  background-color: rgb(0 0 0 / 0.6);
}
.bg-black\/80 {
  background-color: rgb(0 0 0 / 0.8);
}
.bg-blue-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(219 234 254 / 1);
  background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));
}
.bg-blue-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 246 255 / 1);
  background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));
}
.bg-blue-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(59 130 246 / 1);
  background-color: rgb(59 130 246 / var(--tw-bg-opacity, 1));
}
.bg-blue-500\/10 {
  background-color: rgb(59 130 246 / 0.1);
}
.bg-blue-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / 1);
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}
.bg-blue-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(29 78 216 / 1);
  background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));
}
.bg-blue-900\/30 {
  background-color: rgb(30 58 138 / 0.3);
}
.bg-blue-900\/40 {
  background-color: rgb(30 58 138 / 0.4);
}
.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / 1);
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.bg-gray-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / 1);
  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}
.bg-gray-300 {
  --tw-bg-opacity: 1;
  background-color: rgb(209 213 219 / 1);
  background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1));
}
.bg-gray-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(156 163 175 / 1);
  background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));
}
.bg-gray-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / 1);
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.bg-gray-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(75 85 99 / 1);
  background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
}
.bg-gray-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(55 65 81 / 1);
  background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.bg-gray-700\/30 {
  background-color: rgb(55 65 81 / 0.3);
}
.bg-gray-700\/50 {
  background-color: rgb(55 65 81 / 0.5);
}
.bg-gray-800 {
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / 1);
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.bg-gray-800\/30 {
  background-color: rgb(31 41 55 / 0.3);
}
.bg-gray-800\/50 {
  background-color: rgb(31 41 55 / 0.5);
}
.bg-gray-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(17 24 39 / 1);
  background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
}
.bg-gray-900\/95 {
  background-color: rgb(17 24 39 / 0.95);
}
.bg-green-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 252 231 / 1);
  background-color: rgb(220 252 231 / var(--tw-bg-opacity, 1));
}
.bg-green-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(74 222 128 / 1);
  background-color: rgb(74 222 128 / var(--tw-bg-opacity, 1));
}
.bg-green-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(240 253 244 / 1);
  background-color: rgb(240 253 244 / var(--tw-bg-opacity, 1));
}
.bg-green-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(34 197 94 / 1);
  background-color: rgb(34 197 94 / var(--tw-bg-opacity, 1));
}
.bg-green-500\/10 {
  background-color: rgb(34 197 94 / 0.1);
}
.bg-green-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(22 163 74 / 1);
  background-color: rgb(22 163 74 / var(--tw-bg-opacity, 1));
}
.bg-green-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(21 128 61 / 1);
  background-color: rgb(21 128 61 / var(--tw-bg-opacity, 1));
}
.bg-green-900\/20 {
  background-color: rgb(20 83 45 / 0.2);
}
.bg-green-900\/30 {
  background-color: rgb(20 83 45 / 0.3);
}
.bg-green-900\/40 {
  background-color: rgb(20 83 45 / 0.4);
}
.bg-green-900\/50 {
  background-color: rgb(20 83 45 / 0.5);
}
.bg-orange-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 237 213 / 1);
  background-color: rgb(255 237 213 / var(--tw-bg-opacity, 1));
}
.bg-orange-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 247 237 / 1);
  background-color: rgb(255 247 237 / var(--tw-bg-opacity, 1));
}
.bg-orange-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(249 115 22 / 1);
  background-color: rgb(249 115 22 / var(--tw-bg-opacity, 1));
}
.bg-orange-500\/10 {
  background-color: rgb(249 115 22 / 0.1);
}
.bg-orange-900\/30 {
  background-color: rgb(124 45 18 / 0.3);
}
.bg-orange-900\/60 {
  background-color: rgb(124 45 18 / 0.6);
}
.bg-purple-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(168 85 247 / 1);
  background-color: rgb(168 85 247 / var(--tw-bg-opacity, 1));
}
.bg-purple-900\/30 {
  background-color: rgb(88 28 135 / 0.3);
}
.bg-red-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 226 226 / 1);
  background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));
}
.bg-red-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(248 113 113 / 1);
  background-color: rgb(248 113 113 / var(--tw-bg-opacity, 1));
}
.bg-red-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / 1);
  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
}
.bg-red-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 68 68 / 1);
  background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));
}
.bg-red-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / 1);
  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
}
.bg-red-800 {
  --tw-bg-opacity: 1;
  background-color: rgb(153 27 27 / 1);
  background-color: rgb(153 27 27 / var(--tw-bg-opacity, 1));
}
.bg-red-900\/20 {
  background-color: rgb(127 29 29 / 0.2);
}
.bg-red-900\/30 {
  background-color: rgb(127 29 29 / 0.3);
}
.bg-red-900\/40 {
  background-color: rgb(127 29 29 / 0.4);
}
.bg-red-900\/50 {
  background-color: rgb(127 29 29 / 0.5);
}
.bg-red-900\/80 {
  background-color: rgb(127 29 29 / 0.8);
}
.bg-red-900\/95 {
  background-color: rgb(127 29 29 / 0.95);
}
.bg-slate-800\/50 {
  background-color: rgb(30 41 59 / 0.5);
}
.bg-transparent {
  background-color: transparent;
}
.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / 1);
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.bg-yellow-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(234 179 8 / 1);
  background-color: rgb(234 179 8 / var(--tw-bg-opacity, 1));
}
.bg-yellow-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(202 138 4 / 1);
  background-color: rgb(202 138 4 / var(--tw-bg-opacity, 1));
}
.bg-yellow-600\/20 {
  background-color: rgb(202 138 4 / 0.2);
}
.bg-yellow-900\/20 {
  background-color: rgb(113 63 18 / 0.2);
}
.bg-yellow-900\/30 {
  background-color: rgb(113 63 18 / 0.3);
}
.bg-yellow-900\/50 {
  background-color: rgb(113 63 18 / 0.5);
}
.bg-opacity-50 {
  --tw-bg-opacity: 0.5;
}
.bg-opacity-75 {
  --tw-bg-opacity: 0.75;
}
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.from-blue-500\/10 {
  --tw-gradient-from: rgb(59 130 246 / 0.1) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(59 130 246 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-blue-600 {
  --tw-gradient-from: #2563eb var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(37 99 235 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-blue-900\/50 {
  --tw-gradient-from: rgb(30 58 138 / 0.5) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(30 58 138 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-gray-700 {
  --tw-gradient-from: #374151 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(55 65 81 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-green-600 {
  --tw-gradient-from: #16a34a var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(22 163 74 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-yellow-500 {
  --tw-gradient-from: #eab308 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(234 179 8 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-yellow-600 {
  --tw-gradient-from: #ca8a04 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(202 138 4 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-yellow-900\/40 {
  --tw-gradient-from: rgb(113 63 18 / 0.4) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(113 63 18 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-blue-700 {
  --tw-gradient-to: #1d4ed8 var(--tw-gradient-to-position);
}
.to-blue-800\/30 {
  --tw-gradient-to: rgb(30 64 175 / 0.3) var(--tw-gradient-to-position);
}
.to-gray-800 {
  --tw-gradient-to: #1f2937 var(--tw-gradient-to-position);
}
.to-green-700 {
  --tw-gradient-to: #15803d var(--tw-gradient-to-position);
}
.to-purple-500\/10 {
  --tw-gradient-to: rgb(168 85 247 / 0.1) var(--tw-gradient-to-position);
}
.to-yellow-600 {
  --tw-gradient-to: #ca8a04 var(--tw-gradient-to-position);
}
.to-yellow-700 {
  --tw-gradient-to: #a16207 var(--tw-gradient-to-position);
}
.fill-current {
  fill: currentColor;
}
.object-cover {
  object-fit: cover;
}
.p-0 {
  padding: 0px;
}
.p-1 {
  padding: 0.25rem;
}
.p-1\.5 {
  padding: 0.375rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-5 {
  padding: 1.25rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.p-\[1px\] {
  padding: 1px;
}
.px-1\.5 {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-2\.5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}
.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.pb-2 {
  padding-bottom: 0.5rem;
}
.pb-24 {
  padding-bottom: 6rem;
}
.pb-3 {
  padding-bottom: 0.75rem;
}
.pb-4 {
  padding-bottom: 1rem;
}
.pl-10 {
  padding-left: 2.5rem;
}
.pl-2 {
  padding-left: 0.5rem;
}
.pl-2\.5 {
  padding-left: 0.625rem;
}
.pl-4 {
  padding-left: 1rem;
}
.pl-8 {
  padding-left: 2rem;
}
.pr-2 {
  padding-right: 0.5rem;
}
.pr-2\.5 {
  padding-right: 0.625rem;
}
.pr-4 {
  padding-right: 1rem;
}
.pr-6 {
  padding-right: 1.5rem;
}
.pr-8 {
  padding-right: 2rem;
}
.pt-0 {
  padding-top: 0px;
}
.pt-1 {
  padding-top: 0.25rem;
}
.pt-4 {
  padding-top: 1rem;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-justify {
  text-align: justify;
}
.align-middle {
  vertical-align: middle;
}
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-5xl {
  font-size: 3rem;
  line-height: 1;
}
.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}
.text-\[0\.8rem\] {
  font-size: 0.8rem;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-bold {
  font-weight: 700;
}
.font-medium {
  font-weight: 500;
}
.font-normal {
  font-weight: 400;
}
.font-semibold {
  font-weight: 600;
}
.uppercase {
  text-transform: uppercase;
}
.capitalize {
  text-transform: capitalize;
}
.italic {
  font-style: italic;
}
.leading-none {
  line-height: 1;
}
.tracking-tight {
  letter-spacing: -0.025em;
}
.tracking-wide {
  letter-spacing: 0.025em;
}
.tracking-wider {
  letter-spacing: 0.05em;
}
.tracking-widest {
  letter-spacing: 0.1em;
}
.text-amber-800 {
  --tw-text-opacity: 1;
  color: rgb(146 64 14 / 1);
  color: rgb(146 64 14 / var(--tw-text-opacity, 1));
}
.text-black {
  --tw-text-opacity: 1;
  color: rgb(0 0 0 / 1);
  color: rgb(0 0 0 / var(--tw-text-opacity, 1));
}
.text-blue-100 {
  --tw-text-opacity: 1;
  color: rgb(219 234 254 / 1);
  color: rgb(219 234 254 / var(--tw-text-opacity, 1));
}
.text-blue-200 {
  --tw-text-opacity: 1;
  color: rgb(191 219 254 / 1);
  color: rgb(191 219 254 / var(--tw-text-opacity, 1));
}
.text-blue-300 {
  --tw-text-opacity: 1;
  color: rgb(147 197 253 / 1);
  color: rgb(147 197 253 / var(--tw-text-opacity, 1));
}
.text-blue-400 {
  --tw-text-opacity: 1;
  color: rgb(96 165 250 / 1);
  color: rgb(96 165 250 / var(--tw-text-opacity, 1));
}
.text-blue-600 {
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / 1);
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}
.text-blue-700 {
  --tw-text-opacity: 1;
  color: rgb(29 78 216 / 1);
  color: rgb(29 78 216 / var(--tw-text-opacity, 1));
}
.text-blue-800 {
  --tw-text-opacity: 1;
  color: rgb(30 64 175 / 1);
  color: rgb(30 64 175 / var(--tw-text-opacity, 1));
}
.text-current {
  color: currentColor;
}
.text-gray-300 {
  --tw-text-opacity: 1;
  color: rgb(209 213 219 / 1);
  color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.text-gray-400 {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / 1);
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / 1);
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / 1);
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.text-gray-700 {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / 1);
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.text-gray-800 {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / 1);
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}
.text-gray-900 {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / 1);
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.text-green-200 {
  --tw-text-opacity: 1;
  color: rgb(187 247 208 / 1);
  color: rgb(187 247 208 / var(--tw-text-opacity, 1));
}
.text-green-300 {
  --tw-text-opacity: 1;
  color: rgb(134 239 172 / 1);
  color: rgb(134 239 172 / var(--tw-text-opacity, 1));
}
.text-green-400 {
  --tw-text-opacity: 1;
  color: rgb(74 222 128 / 1);
  color: rgb(74 222 128 / var(--tw-text-opacity, 1));
}
.text-green-500 {
  --tw-text-opacity: 1;
  color: rgb(34 197 94 / 1);
  color: rgb(34 197 94 / var(--tw-text-opacity, 1));
}
.text-green-600 {
  --tw-text-opacity: 1;
  color: rgb(22 163 74 / 1);
  color: rgb(22 163 74 / var(--tw-text-opacity, 1));
}
.text-green-700 {
  --tw-text-opacity: 1;
  color: rgb(21 128 61 / 1);
  color: rgb(21 128 61 / var(--tw-text-opacity, 1));
}
.text-green-800 {
  --tw-text-opacity: 1;
  color: rgb(22 101 52 / 1);
  color: rgb(22 101 52 / var(--tw-text-opacity, 1));
}
.text-orange-200 {
  --tw-text-opacity: 1;
  color: rgb(254 215 170 / 1);
  color: rgb(254 215 170 / var(--tw-text-opacity, 1));
}
.text-orange-400 {
  --tw-text-opacity: 1;
  color: rgb(251 146 60 / 1);
  color: rgb(251 146 60 / var(--tw-text-opacity, 1));
}
.text-orange-500 {
  --tw-text-opacity: 1;
  color: rgb(249 115 22 / 1);
  color: rgb(249 115 22 / var(--tw-text-opacity, 1));
}
.text-orange-700 {
  --tw-text-opacity: 1;
  color: rgb(194 65 12 / 1);
  color: rgb(194 65 12 / var(--tw-text-opacity, 1));
}
.text-orange-800 {
  --tw-text-opacity: 1;
  color: rgb(154 52 18 / 1);
  color: rgb(154 52 18 / var(--tw-text-opacity, 1));
}
.text-purple-400 {
  --tw-text-opacity: 1;
  color: rgb(192 132 252 / 1);
  color: rgb(192 132 252 / var(--tw-text-opacity, 1));
}
.text-red-200 {
  --tw-text-opacity: 1;
  color: rgb(254 202 202 / 1);
  color: rgb(254 202 202 / var(--tw-text-opacity, 1));
}
.text-red-300 {
  --tw-text-opacity: 1;
  color: rgb(252 165 165 / 1);
  color: rgb(252 165 165 / var(--tw-text-opacity, 1));
}
.text-red-400 {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / 1);
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}
.text-red-500 {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / 1);
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}
.text-red-600 {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / 1);
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}
.text-red-700 {
  --tw-text-opacity: 1;
  color: rgb(185 28 28 / 1);
  color: rgb(185 28 28 / var(--tw-text-opacity, 1));
}
.text-red-800 {
  --tw-text-opacity: 1;
  color: rgb(153 27 27 / 1);
  color: rgb(153 27 27 / var(--tw-text-opacity, 1));
}
.text-slate-300 {
  --tw-text-opacity: 1;
  color: rgb(203 213 225 / 1);
  color: rgb(203 213 225 / var(--tw-text-opacity, 1));
}
.text-slate-400 {
  --tw-text-opacity: 1;
  color: rgb(148 163 184 / 1);
  color: rgb(148 163 184 / var(--tw-text-opacity, 1));
}
.text-slate-500 {
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / 1);
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / 1);
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.text-white\/80 {
  color: rgb(255 255 255 / 0.8);
}
.text-yellow-200 {
  --tw-text-opacity: 1;
  color: rgb(254 240 138 / 1);
  color: rgb(254 240 138 / var(--tw-text-opacity, 1));
}
.text-yellow-300 {
  --tw-text-opacity: 1;
  color: rgb(253 224 71 / 1);
  color: rgb(253 224 71 / var(--tw-text-opacity, 1));
}
.text-yellow-400 {
  --tw-text-opacity: 1;
  color: rgb(250 204 21 / 1);
  color: rgb(250 204 21 / var(--tw-text-opacity, 1));
}
.text-yellow-500 {
  --tw-text-opacity: 1;
  color: rgb(234 179 8 / 1);
  color: rgb(234 179 8 / var(--tw-text-opacity, 1));
}
.text-yellow-600 {
  --tw-text-opacity: 1;
  color: rgb(202 138 4 / 1);
  color: rgb(202 138 4 / var(--tw-text-opacity, 1));
}
.underline-offset-4 {
  text-underline-offset: 4px;
}
.opacity-0 {
  opacity: 0;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-60 {
  opacity: 0.6;
}
.opacity-70 {
  opacity: 0.7;
}
.opacity-90 {
  opacity: 0.9;
}
.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-2xl {
  --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-md {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-sm {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-xl {
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-red-500\/50 {
  --tw-shadow-color: rgb(239 68 68 / 0.5);
  --tw-shadow: var(--tw-shadow-colored);
}
.shadow-yellow-600\/30 {
  --tw-shadow-color: rgb(202 138 4 / 0.3);
  --tw-shadow: var(--tw-shadow-colored);
}
.outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.outline {
  outline-style: solid;
}
.ring {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.ring-0 {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.ring-1 {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.drop-shadow {
  --tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.backdrop-blur-sm {
  --tw-backdrop-blur: blur(4px);
  -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}
.transition {
  transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-1000 {
  transition-duration: 1000ms;
}
.duration-200 {
  transition-duration: 200ms;
}
.duration-300 {
  transition-duration: 300ms;
}
.duration-500 {
  transition-duration: 500ms;
}
.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
.\[out\:json\] {
  out: json;
}
.\[timeout\:25\] {
  timeout: 25;
}

/* ============================================================
 * KINGROAD GPS - GLOBAL LAYOUT VARIABLES - ABSOLUTE LAW
 * ============================================================
 * USEFUL AREA: From the left edge to the start of the sidebar,
 *              and from the footer to the header.
 * 
 * SINGLE RULE: Below the sidebar, the ONLY visible thing is the MAP.
 *              ALL fixed/draggable icons MUST stay in the USEFUL AREA.
 * 
 * EXCEPTION: Navigation events (exits) are temporary and can cover:
 *            - RIGHT EXIT → appears on the right (covers sidebar)
 *            - LEFT EXIT → appears on the left (covers search bar)
 *            - CENTER/FRONT EXIT → appears at center near header
 * ============================================================ */
:root {
  /* Fixed layout dimensions - KR_DASHBOARD_RESTORE_LAYOUT_PIXEL_PERFECT */
  /* MEASUREMENTS BASED ON USER REFERENCE SCREENSHOT */
  /* NOTE: --sidebar-width and --footer-height defined in globals.css (single source of truth) */
  /* --header-height is the canonical name (globals.css). --topbar-height is an alias kept for */
  /* backward compatibility with components that haven't migrated yet. */
  --topbar-height: var(--header-height);   /* ALIAS → use --header-height going forward */
  
  /* USEFUL AREA - absolute limits for widgets, alerts and icons */
  --safe-area-right: var(--sidebar-width);    /* Right limit = sidebar start */
  --safe-area-bottom: var(--footer-height);   /* Bottom limit = footer top */
  --safe-area-top: var(--topbar-height);      /* Top limit = header base */
  --safe-area-left: 0px;                       /* Left limit = screen edge */
  
  /* Safety margin so elements don't touch sidebar edge */
  --safe-margin: 50px;
  
  /* Calculated useful area */
  --safe-area-width: calc(100vw - var(--sidebar-width));
  --safe-area-height: calc(100vh - var(--topbar-height) - var(--footer-height));
  
  /* Safe position for elements on the right (away from sidebar) = 400px */
  --safe-right-position: calc(var(--sidebar-width) + var(--safe-margin));
}

/* USEFUL AREA container - use in overlays and widgets */
.safe-area-container {
  position: fixed;
  top: var(--header-height);
  top: var(--topbar-height);
  left: 0px;
  left: var(--safe-area-left);
  right: var(--sidebar-width);
  right: var(--safe-area-right);
  bottom: var(--footer-height);
  bottom: var(--safe-area-bottom);
  pointer-events: none; /* Allows clicks to pass through to map */
}

/* Elements inside safe area should receive pointer-events */
.safe-area-container > * {
  pointer-events: auto;
}

/* Utility class to force elements inside useful area */
.within-safe-area {
  max-width: calc(100vw - var(--sidebar-width)) !important;
  max-width: var(--safe-area-width) !important;
  margin-right: var(--sidebar-width) !important;
  margin-right: var(--safe-area-right) !important;
}

/* ============================================================
 * GLOBAL RULE: Fixed elements in useful area
 * All these elements MUST respect the sidebar
 * ============================================================ */
.fixed-ui-element {
  /* Ensures fixed elements don't exceed sidebar */
  max-width: calc(100vw - var(--sidebar-width) - 50px) !important;
  max-width: calc(100vw - var(--sidebar-width) - var(--safe-margin)) !important;
}

/* ============================================================
 * KR_EXPAND_MAP_001 - Expanded Map Mode
 * When isMapExpanded=true AND there's active route, sidebar is hidden
 * and map occupies full screen width
 * ============================================================ */
.map-expanded-mode {
  /* Sidebar hidden - map occupies entire screen */
  --sidebar-width: 0px;
  --safe-area-right: 0px;
  --safe-right-position: 50px;
}

.map-expanded-mode .tomtom-sidebar,
.map-expanded-mode .navigation-sidebar {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.map-expanded-mode .main-map-area {
  right: 0 !important;
  width: 100vw !important;
  transition: right 0.3s ease, width 0.3s ease;
}

.map-expanded-mode .dashboard-header,
.map-expanded-mode .dashboard-footer {
  right: 0 !important;
  transition: right 0.3s ease;
}

/* Hide Emergent platform badge */
#emergent-badge,
a[href*="emergent"],
[id*="emergent-badge"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* 🚀 Mobile Responsiveness - Prevent horizontal scroll */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Light gray background covers entire area (map + sidebar) - same as TomTom with no map loaded */
html, body, #root, .App, .main-dashboard, .dashboard-container {
    background-color: var(--bg-map-loading) !important;
}

/* Map container placeholder - light gray until map loads */
.map-container,
.mapboxgl-map,
.mapbox-map,
[class*="map-view"],
[class*="map-area"],
.main-map-area {
    background-color: var(--bg-map-loading) !important;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
        "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
        "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Prevent all elements from causing horizontal scroll */
* {
    max-width: 100%;
    box-sizing: border-box;
}

#root {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* 🌙 Night Anti-Glare: body uses dark background for driving safety.
   color-scheme is NOT forced globally — it follows the OS/user preference.
   Individual driver-facing overlays may use dark explicitly. */
body {
    color-scheme: light dark; /* Respect OS preference — not forced */
}

/* Override any dangerous white backgrounds in driver-facing mode */
*[style*="background: white"],
*[style*="background-color: white"],
*[style*="background: #fff"],
*[style*="background-color: #fff"],
*[style*="background: #ffffff"],
*[style*="background-color: #ffffff"] {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

/* Loading screens and splash screens */
.loading, .splash, .spinner {
    background: var(--bg-dark) !important;
    color: var(--accent-gold) !important;
}

/* Modals and overlays */
.modal, .overlay, .popup, .dropdown {
    background: var(--bg-dark) !important;
    color: var(--text-on-dark) !important;
}

/* Dashboard Modal System - Z-Index Hierarchy */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 650; /* Modal backdrop - normalized from 8000 */
    animation: modal-fade-in 0.2s ease;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: #e9ecef;
    color: #333;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

code {
    font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
        monospace;
}


/* 📱 Mobile-First Responsive Rules - Eliminate Horizontal Scroll */
.container, 
.wrapper,
.content,
.main,
.page,
.section,
div[class*="container"],
div[class*="wrapper"] {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Fix for map containers */
.mapboxgl-map,
.map-container,
[class*="map"],
[id*="map"] {
    max-width: 100vw !important;
    overflow: hidden !important;
}

/* Fix for sidebars and panels */
.sidebar,
.panel,
.drawer,
[class*="sidebar"],
[class*="panel"] {
    max-width: 100vw;
    box-sizing: border-box;
}

/* Responsive images and media */
img,
video,
canvas,
iframe {
    max-width: 100%;
    height: auto;
}

/* Fix for tables on mobile */
table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Mobile viewport optimization */
@media screen and (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
    }
    
    /* Ensure no element exceeds viewport */
    * {
        max-width: 100vw;
    }
    
    /* Fix for fixed/absolute positioned elements */
    .fixed,
    .absolute,
    [style*="position: fixed"],
    [style*="position: absolute"] {
        max-width: 100vw;
        left: 0;
        right: 0;
    }
}

/* Tablet viewport optimization */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    body {
        padding: 0;
        margin: 0;
    }
    
    * {
        max-width: 100vw;
    }
}


/* ============================================================
   FREE MAP MODE - Immersive map view (triggered by expand button)
   Applies free-map-mode CSS class to .app-container
   ============================================================ */

/* Hide menu overlay so it doesn't float over the map */
.app-container.free-map-mode .mobile-menu-overlay {
  display: none !important;
  pointer-events: none !important;
}

/* Expand main area to fill full viewport */
.app-container.free-map-mode .main-area {
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
}
.app-container.free-map-mode .navigation-content { height: 100vh !important; }
.app-container.free-map-mode .main-map-area {
  width: 100vw !important;
  height: 100vh !important;
}

/* Hide TomTom sidebar and navigation sidebar */
.app-container.free-map-mode .tomtom-sidebar,
.app-container.free-map-mode .navigation-sidebar {
  display: none !important;
}

/* When in free map mode, move all right-side icons to the edge */
.app-container.free-map-mode .volume-floating-widget,
.app-container.free-map-mode .whereami-widget,
.app-container.free-map-mode .rendezvous-btn,
.app-container.free-map-mode .current-location-btn.floating-control-btn,
.app-container.free-map-mode .report-incident-btn.floating-control-btn {
  right: 20px !important;
  transition: right 0.3s ease;
}

/* Also hide the sidebar in free map mode */
.app-container.free-map-mode .sidebar {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

/* Adjust the recenter button in free map mode */
.app-container.free-map-mode .recenter-button {
  z-index: 1300;
}
.file\:border-0::-webkit-file-upload-button {
  border-width: 0px;
}
.file\:border-0::file-selector-button {
  border-width: 0px;
}
.file\:bg-transparent::-webkit-file-upload-button {
  background-color: transparent;
}
.file\:bg-transparent::file-selector-button {
  background-color: transparent;
}
.file\:text-sm::-webkit-file-upload-button {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.file\:text-sm::file-selector-button {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.file\:font-medium::-webkit-file-upload-button {
  font-weight: 500;
}
.file\:font-medium::file-selector-button {
  font-weight: 500;
}
.after\:absolute::after {
  content: var(--tw-content);
  position: absolute;
}
.after\:inset-y-0::after {
  content: var(--tw-content);
  top: 0px;
  bottom: 0px;
}
.after\:left-1\/2::after {
  content: var(--tw-content);
  left: 50%;
}
.after\:w-1::after {
  content: var(--tw-content);
  width: 0.25rem;
}
.after\:-translate-x-1\/2::after {
  content: var(--tw-content);
  --tw-translate-x: -50%;
  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));
}
.first\:rounded-l-md:first-child {
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}
.first\:border-l:first-child {
  border-left-width: 1px;
}
.last\:rounded-r-md:last-child {
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}
.last\:border-0:last-child {
  border-width: 0px;
}
.last\:border-b-0:last-child {
  border-bottom-width: 0px;
}
.focus-within\:relative:focus-within {
  position: relative;
}
.focus-within\:z-20:focus-within {
  z-index: 20;
}
.hover\:border-blue-400:hover {
  --tw-border-opacity: 1;
  border-color: rgb(96 165 250 / 1);
  border-color: rgb(96 165 250 / var(--tw-border-opacity, 1));
}
.hover\:border-gray-300:hover {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / 1);
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}
.hover\:border-gray-600:hover {
  --tw-border-opacity: 1;
  border-color: rgb(75 85 99 / 1);
  border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
}
.hover\:bg-blue-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(191 219 254 / 1);
  background-color: rgb(191 219 254 / var(--tw-bg-opacity, 1));
}
.hover\:bg-blue-500:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(59 130 246 / 1);
  background-color: rgb(59 130 246 / var(--tw-bg-opacity, 1));
}
.hover\:bg-blue-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(29 78 216 / 1);
  background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-300:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(209 213 219 / 1);
  background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / 1);
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(75 85 99 / 1);
  background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(55 65 81 / 1);
  background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-700\/20:hover {
  background-color: rgb(55 65 81 / 0.2);
}
.hover\:bg-gray-700\/30:hover {
  background-color: rgb(55 65 81 / 0.3);
}
.hover\:bg-gray-700\/50:hover {
  background-color: rgb(55 65 81 / 0.5);
}
.hover\:bg-gray-800:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / 1);
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.hover\:bg-green-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(22 163 74 / 1);
  background-color: rgb(22 163 74 / var(--tw-bg-opacity, 1));
}
.hover\:bg-green-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(21 128 61 / 1);
  background-color: rgb(21 128 61 / var(--tw-bg-opacity, 1));
}
.hover\:bg-red-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(254 202 202 / 1);
  background-color: rgb(254 202 202 / var(--tw-bg-opacity, 1));
}
.hover\:bg-red-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / 1);
  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
}
.hover\:bg-red-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(185 28 28 / 1);
  background-color: rgb(185 28 28 / var(--tw-bg-opacity, 1));
}
.hover\:bg-red-800:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(153 27 27 / 1);
  background-color: rgb(153 27 27 / var(--tw-bg-opacity, 1));
}
.hover\:bg-slate-700\/50:hover {
  background-color: rgb(51 65 85 / 0.5);
}
.hover\:bg-yellow-500:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(234 179 8 / 1);
  background-color: rgb(234 179 8 / var(--tw-bg-opacity, 1));
}
.hover\:bg-yellow-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(161 98 7 / 1);
  background-color: rgb(161 98 7 / var(--tw-bg-opacity, 1));
}
.hover\:from-blue-700:hover {
  --tw-gradient-from: #1d4ed8 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(29 78 216 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.hover\:from-green-700:hover {
  --tw-gradient-from: #15803d var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(21 128 61 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.hover\:from-yellow-600:hover {
  --tw-gradient-from: #ca8a04 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(202 138 4 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.hover\:to-blue-800:hover {
  --tw-gradient-to: #1e40af var(--tw-gradient-to-position);
}
.hover\:to-green-800:hover {
  --tw-gradient-to: #166534 var(--tw-gradient-to-position);
}
.hover\:to-yellow-700:hover {
  --tw-gradient-to: #a16207 var(--tw-gradient-to-position);
}
.hover\:text-blue-300:hover {
  --tw-text-opacity: 1;
  color: rgb(147 197 253 / 1);
  color: rgb(147 197 253 / var(--tw-text-opacity, 1));
}
.hover\:text-blue-600:hover {
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / 1);
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}
.hover\:text-blue-800:hover {
  --tw-text-opacity: 1;
  color: rgb(30 64 175 / 1);
  color: rgb(30 64 175 / var(--tw-text-opacity, 1));
}
.hover\:text-gray-300:hover {
  --tw-text-opacity: 1;
  color: rgb(209 213 219 / 1);
  color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.hover\:text-gray-400:hover {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / 1);
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.hover\:text-gray-600:hover {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / 1);
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.hover\:text-white:hover {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / 1);
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.hover\:underline:hover {
  -webkit-text-decoration-line: underline;
          text-decoration-line: underline;
}
.hover\:opacity-100:hover {
  opacity: 1;
}
.hover\:shadow-lg:hover {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.hover\:ring-2:hover {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.hover\:ring-blue-400\/50:hover {
  --tw-ring-color: rgb(96 165 250 / 0.5);
}
.focus\:border-blue-500:focus {
  --tw-border-opacity: 1;
  border-color: rgb(59 130 246 / 1);
  border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
}
.focus\:border-transparent:focus {
  border-color: transparent;
}
.focus\:opacity-100:focus {
  opacity: 1;
}
.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.focus\:ring-1:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus\:ring-2:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus\:ring-blue-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1));
}
.focus\:ring-offset-2:focus {
  --tw-ring-offset-width: 2px;
}
.focus-visible\:outline-none:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.focus-visible\:ring-1:focus-visible {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus-visible\:ring-2:focus-visible {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus-visible\:ring-offset-1:focus-visible {
  --tw-ring-offset-width: 1px;
}
.focus-visible\:ring-offset-2:focus-visible {
  --tw-ring-offset-width: 2px;
}
.disabled\:pointer-events-none:disabled {
  pointer-events: none;
}
.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}
.disabled\:bg-gray-400:disabled {
  --tw-bg-opacity: 1;
  background-color: rgb(156 163 175 / 1);
  background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));
}
.disabled\:bg-gray-600:disabled {
  --tw-bg-opacity: 1;
  background-color: rgb(75 85 99 / 1);
  background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
}
.disabled\:bg-gray-800:disabled {
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / 1);
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.disabled\:bg-slate-600:disabled {
  --tw-bg-opacity: 1;
  background-color: rgb(71 85 105 / 1);
  background-color: rgb(71 85 105 / var(--tw-bg-opacity, 1));
}
.disabled\:opacity-50:disabled {
  opacity: 0.5;
}
.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}
.group.destructive .group-\[\.destructive\]\:text-red-300 {
  --tw-text-opacity: 1;
  color: rgb(252 165 165 / 1);
  color: rgb(252 165 165 / var(--tw-text-opacity, 1));
}
.group.toaster .group-\[\.toaster\]\:shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover {
  --tw-text-opacity: 1;
  color: rgb(254 242 242 / 1);
  color: rgb(254 242 242 / var(--tw-text-opacity, 1));
}
.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity, 1));
}
.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus {
  --tw-ring-offset-color: #dc2626;
}
.peer:disabled ~ .peer-disabled\:cursor-not-allowed {
  cursor: not-allowed;
}
.peer:disabled ~ .peer-disabled\:opacity-70 {
  opacity: 0.7;
}
.has-\[\:disabled\]\:opacity-50:has(:disabled) {
  opacity: 0.5;
}
.aria-selected\:opacity-100[aria-selected="true"] {
  opacity: 1;
}
.data-\[disabled\=true\]\:pointer-events-none[data-disabled="true"] {
  pointer-events: none;
}
.data-\[disabled\]\:pointer-events-none[data-disabled] {
  pointer-events: none;
}
.data-\[panel-group-direction\=vertical\]\:h-px[data-panel-group-direction="vertical"] {
  height: 1px;
}
.data-\[panel-group-direction\=vertical\]\:w-full[data-panel-group-direction="vertical"] {
  width: 100%;
}
.data-\[side\=bottom\]\:translate-y-1[data-side="bottom"] {
  --tw-translate-y: 0.25rem;
  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));
}
.data-\[side\=left\]\:-translate-x-1[data-side="left"] {
  --tw-translate-x: -0.25rem;
  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));
}
.data-\[side\=right\]\:translate-x-1[data-side="right"] {
  --tw-translate-x: 0.25rem;
  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));
}
.data-\[side\=top\]\:-translate-y-1[data-side="top"] {
  --tw-translate-y: -0.25rem;
  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));
}
.data-\[state\=checked\]\:translate-x-4[data-state="checked"] {
  --tw-translate-x: 1rem;
  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));
}
.data-\[state\=unchecked\]\:translate-x-0[data-state="unchecked"] {
  --tw-translate-x: 0px;
  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));
}
.data-\[swipe\=cancel\]\:translate-x-0[data-swipe="cancel"] {
  --tw-translate-x: 0px;
  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));
}
.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe="end"] {
  --tw-translate-x: var(--radix-toast-swipe-end-x);
  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));
}
.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe="move"] {
  --tw-translate-x: var(--radix-toast-swipe-move-x);
  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));
}
.data-\[panel-group-direction\=vertical\]\:flex-col[data-panel-group-direction="vertical"] {
  flex-direction: column;
}
.data-\[disabled\=true\]\:opacity-50[data-disabled="true"] {
  opacity: 0.5;
}
.data-\[disabled\]\:opacity-50[data-disabled] {
  opacity: 0.5;
}
.data-\[state\=active\]\:shadow[data-state="active"] {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.data-\[swipe\=move\]\:transition-none[data-swipe="move"] {
  transition-property: none;
}
.data-\[state\=closed\]\:duration-300[data-state="closed"] {
  transition-duration: 300ms;
}
.data-\[state\=open\]\:duration-500[data-state="open"] {
  transition-duration: 500ms;
}
.data-\[panel-group-direction\=vertical\]\:after\:left-0[data-panel-group-direction="vertical"]::after {
  content: var(--tw-content);
  left: 0px;
}
.data-\[panel-group-direction\=vertical\]\:after\:h-1[data-panel-group-direction="vertical"]::after {
  content: var(--tw-content);
  height: 0.25rem;
}
.data-\[panel-group-direction\=vertical\]\:after\:w-full[data-panel-group-direction="vertical"]::after {
  content: var(--tw-content);
  width: 100%;
}
.data-\[panel-group-direction\=vertical\]\:after\:-translate-y-1\/2[data-panel-group-direction="vertical"]::after {
  content: var(--tw-content);
  --tw-translate-y: -50%;
  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));
}
.data-\[panel-group-direction\=vertical\]\:after\:translate-x-0[data-panel-group-direction="vertical"]::after {
  content: var(--tw-content);
  --tw-translate-x: 0px;
  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));
}
.group[data-state="open"] .group-data-\[state\=open\]\:rotate-180 {
  --tw-rotate: 180deg;
  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));
}
@media (min-width: 640px) {

  .sm\:bottom-0 {
    bottom: 0px;
  }

  .sm\:right-0 {
    right: 0px;
  }

  .sm\:top-auto {
    top: auto;
  }

  .sm\:mt-0 {
    margin-top: 0px;
  }

  .sm\:max-w-sm {
    max-width: 24rem;
  }

  .sm\:flex-row {
    flex-direction: row;
  }

  .sm\:flex-col {
    flex-direction: column;
  }

  .sm\:justify-end {
    justify-content: flex-end;
  }

  .sm\:gap-2\.5 {
    gap: 0.625rem;
  }

  .sm\:space-x-2 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(0.5rem * var(--tw-space-x-reverse));
    margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
  }

  .sm\:space-x-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(1rem * var(--tw-space-x-reverse));
    margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
  }

  .sm\:space-y-0 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0px * var(--tw-space-y-reverse));
  }

  .sm\:rounded-lg {
    border-radius: 0.5rem;
  }

  .sm\:text-left {
    text-align: left;
  }
}
@media (min-width: 768px) {

  .md\:absolute {
    position: absolute;
  }

  .md\:w-\[var\(--radix-navigation-menu-viewport-width\)\] {
    width: var(--radix-navigation-menu-viewport-width);
  }

  .md\:w-auto {
    width: auto;
  }

  .md\:max-w-\[420px\] {
    max-width: 420px;
  }

  .md\:text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}
.\[\&\+div\]\:text-xs+div {
  font-size: 0.75rem;
  line-height: 1rem;
}
.\[\&\:has\(\>\.day-range-end\)\]\:rounded-r-md:has(>.day-range-end) {
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}
.\[\&\:has\(\>\.day-range-start\)\]\:rounded-l-md:has(>.day-range-start) {
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}
.\[\&\:has\(\[aria-selected\]\)\]\:rounded-md:has([aria-selected]) {
  border-radius: 0.375rem;
}
.first\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-l-md:has([aria-selected]):first-child {
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}
.last\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-r-md:has([aria-selected]):last-child {
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}
.\[\&\:has\(\[aria-selected\]\.day-range-end\)\]\:rounded-r-md:has([aria-selected].day-range-end) {
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}
.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]) {
  padding-right: 0px;
}
.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox] {
  --tw-translate-y: 2px;
  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));
}
.\[\&\>span\]\:line-clamp-1>span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div {
  --tw-translate-y: -3px;
  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));
}
.\[\&\>svg\]\:absolute>svg {
  position: absolute;
}
.\[\&\>svg\]\:left-4>svg {
  left: 1rem;
}
.\[\&\>svg\]\:top-4>svg {
  top: 1rem;
}
.\[\&\>svg\]\:size-4>svg {
  width: 1rem;
  height: 1rem;
}
.\[\&\>svg\]\:h-3\.5>svg {
  height: 0.875rem;
}
.\[\&\>svg\]\:w-3\.5>svg {
  width: 0.875rem;
}
.\[\&\>svg\]\:shrink-0>svg {
  flex-shrink: 0;
}
.\[\&\>svg\~\*\]\:pl-7>svg~* {
  padding-left: 1.75rem;
}
.\[\&\>tr\]\:last\:border-b-0:last-child>tr {
  border-bottom-width: 0px;
}
.\[\&\[data-panel-group-direction\=vertical\]\>div\]\:rotate-90[data-panel-group-direction=vertical]>div {
  --tw-rotate: 90deg;
  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));
}
.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg {
  --tw-rotate: 180deg;
  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));
}
.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading] {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading] {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading] {
  font-size: 0.75rem;
  line-height: 1rem;
}
.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading] {
  font-weight: 500;
}
.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden]) ~[cmdk-group] {
  padding-top: 0px;
}
.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group] {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg {
  height: 1.25rem;
}
.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg {
  width: 1.25rem;
}
.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input] {
  height: 3rem;
}
.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item] {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item] {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg {
  height: 1.25rem;
}
.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg {
  width: 1.25rem;
}
.\[\&_p\]\:leading-relaxed p {
  line-height: 1.625;
}
.\[\&_svg\]\:pointer-events-none svg {
  pointer-events: none;
}
.\[\&_svg\]\:size-4 svg {
  width: 1rem;
  height: 1rem;
}
.\[\&_svg\]\:shrink-0 svg {
  flex-shrink: 0;
}
.\[\&_tr\:last-child\]\:border-0 tr:last-child {
  border-width: 0px;
}
.\[\&_tr\]\:border-b tr {
  border-bottom-width: 1px;
}

/* ============================================================
 * Project      : KingRoad / Family King
 * File-ID      : mobileResponsive-preventScrollBoxSizingAndMobileBreakpoints-001
 * File         : mobileResponsive-preventScrollBoxSizingAndMobileBreakpoints.css
 * Owner        : King Group Tech
 * Feature      : Mobile Responsive Global Utilities
 * Layer        : /app/kingroad-gps/frontend/src/styles/mobile-responsive
 * Status       : stable
 * Summary      : Critical horizontal scroll prevention, box-sizing reset, root container fixes, and mobile device breakpoints (320-1024px).
 *                Split from mobile-responsive.css (modularization compliance).
 * Created-At   : 2026-02-26
 * Last-Updated : 2026-02-26
 * ============================================================ */

/**
 * Mobile Responsive CSS - Eliminate Horizontal Scroll
 * KingRoad GPS - Professional Truck Navigation
 */

/* 🚀 CRITICAL: Prevent horizontal scroll on all devices */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative !important;
    box-sizing: border-box !important;
    background-color: #c8c8c8 !important; /* Light gray - default background */
}

/* Apply box-sizing to all elements */
*, *::before, *::after {
    box-sizing: border-box !important;
}

/* Root container must not overflow */
#root {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* Main app container */
.App {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* 📱 MOBILE DEVICES (320px - 480px) */
@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Ensure all containers fit viewport */
    .container,
    .wrapper,
    .content,
    .main-content,
    div[class*="container"],
    div[class*="wrapper"] {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Map container mobile fix */
    .map-container,
    .mapboxgl-map,
    [class*="map-"],
    [id*="map"] {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* Sidebar/drawer on mobile */
    .sidebar,
    .drawer,
    [class*="sidebar"],
    [class*="drawer"] {
        max-width: 85vw !important;
    }
    
    /* Buttons and inputs */
    button,
    input,
    select,
    textarea {
        max-width: 100% !important;
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
    
    /* Tables responsive */
    table {
        display: block !important;
        overflow-x: auto !important;
        width: 100% !important;
    }
    
    /* Images responsive */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* 📱 SMALL TABLETS (481px - 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .container,
    .wrapper,
    div[class*="container"] {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .map-container,
    .mapboxgl-map {
        width: 100vw !important;
        max-width: 100vw !important;
    }
}

/* 📱 TABLETS (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    body {
        font-size: 16px;
    }
    
    .container,
    .wrapper {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
    
    .map-container {
        width: 100% !important;
        max-width: 100vw !important;
    }
}

/* 🖥️ DESKTOP (1025px+) */
@media screen and (min-width: 1025px) {
    .container,
    .wrapper {
        max-width: 1920px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* 🔧 FIX COMMON OVERFLOW CAUSES */

/* Fixed positioned elements */
[style*="position: fixed"],
.fixed {
    max-width: 100vw !important;
}

/* Absolute positioned elements */
[style*="position: absolute"],
.absolute {
    max-width: 100vw !important;
}

/* Flexbox containers */

/* ============================================================
 * Project      : KingRoad / Family King
 * File-ID      : mobileResponsive-overflowFixesAndPositionedElements-001
 * File         : mobileResponsive-overflowFixesAndPositionedElements.css
 * Owner        : King Group Tech
 * Feature      : Mobile Responsive Global Utilities
 * Layer        : /app/kingroad-gps/frontend/src/styles/mobile-responsive
 * Status       : stable
 * Summary      : Common overflow cause fixes for fixed/absolute positioned elements, flex/grid overflow, and text overflow utilities.
 *                Split from mobile-responsive.css (modularization compliance).
 * Created-At   : 2026-02-26
 * Last-Updated : 2026-02-26
 * ============================================================ */

/* Flexbox containers */
.flex,
[class*="flex-"] {
    flex-wrap: wrap !important;
    max-width: 100vw !important;
}

/* Grid containers */
.grid,
[class*="grid-"] {
    max-width: 100vw !important;
}

/* Modals and overlays */
.modal,
.overlay,
.popup,
.dialog {
    max-width: 95vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Forms */
form {
    width: 100% !important;
    max-width: 100vw !important;
}

/* Pre and code blocks */
pre,
code {
    overflow-x: auto !important;
    max-width: 100% !important;
}

/* Iframes */
iframe {
    max-width: 100% !important;
    width: 100% !important;
}

/* SVG */
svg {
    max-width: 100% !important;
    height: auto !important;
}

/* Canvas */
canvas {
    max-width: 100% !important;
}

/* 🎯 SPECIFIC COMPONENT FIXES */

/* Dashboard widgets */
.widget,
[class*="widget"],
.dashboard-item {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Route panel */
.route-panel,
[class*="route-panel"] {
    max-width: 100vw !important;
}

/* POI markers */
.poi-marker,
[class*="marker"] {
    max-width: 48px !important;
}

/* Navigation menu */
.nav-menu,
[class*="nav-"],
.menu {
    max-width: 100vw !important;
}

/* 🛡️ EMERGENCY OVERFLOW PREVENTION */
/* If all else fails, these rules catch everything */
body > *,
#root > *,
.App > * {
    max-width: 100vw !important;
}

/* Prevent any margin from causing overflow */
body > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 📊 PERFORMANCE OPTIMIZATIONS FOR MOBILE */
@media screen and (max-width: 768px) {
    /* Reduce animations on mobile */
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.2s !important;
    }
    
    /* Optimize touch targets */
    button,
    a,
    input[type="button"],
    input[type="submit"] {
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    /* Prevent text size adjustment on orientation change */
    html {
        -webkit-text-size-adjust: 100% !important;
        -moz-text-size-adjust: 100% !important;
             text-size-adjust: 100% !important;
    }
}

/* ============================================================
 * POINTER/HOVER CAPABILITY DETECTION
 * Touch devices (coarse pointer, no hover)
 * ============================================================ */


/* ============================================================
 * Project      : KingRoad / Family King
 * File-ID      : mobileResponsive-touchDevicesHoverCapabilityAndHybrid-001
 * File         : mobileResponsive-touchDevicesHoverCapabilityAndHybrid.css
 * Owner        : King Group Tech
 * Feature      : Mobile Responsive Global Utilities
 * Layer        : /app/kingroad-gps/frontend/src/styles/mobile-responsive
 * Status       : stable
 * Summary      : Touch target size enforcement, hover interaction disabling on touch, mouse device hover styles, and hybrid device support.
 *                Split from mobile-responsive.css (modularization compliance).
 * Created-At   : 2026-02-26
 * Last-Updated : 2026-02-26
 * ============================================================ */

/* Touch devices - ensure adequate touch targets */
@media (pointer: coarse) {
    /* Minimum touch target size (44x44px recommended by Apple/Google) */
    button,
    [role="button"],
    a,
    input[type="button"],
    input[type="submit"],
    .clickable,
    .interactive {
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    /* Disable hover-only interactions */
    .hover-only {
        display: none !important;
    }
    
    /* Make touch targets more accessible */
    .footer-action-btn,
    .map-control-btn,
    .sidebar-toggle-btn {
        min-width: 48px !important;
        min-height: 48px !important;
    }
}

/* Devices without hover capability */
@media (hover: none) {
    /* Remove hover effects that won't work */
    *:hover {
        /* Prevent sticky hover states on touch */
    }
    
    /* Ensure clickable items have visible active states */
    button:active,
    [role="button"]:active,
    a:active {
        opacity: 0.8;
        transform: scale(0.98);
    }
    
    /* Hide elements that only make sense with hover */
    .tooltip-on-hover,
    .show-on-hover {
        display: none !important;
    }
}

/* Touch devices without hover - most restrictive */
@media (hover: none) and (pointer: coarse) {
    /* Ensure all interactive elements are accessible by tap */
    .context-menu-trigger {
        /* Long press will be used instead of right-click */
    }
    
    /* Larger spacing between interactive elements to prevent accidental taps */
    .button-group > * + * {
        margin-left: 12px !important;
    }
}

/* Desktop/mouse devices with hover capability */
@media (hover: hover) and (pointer: fine) {
    /* Enable hover effects */
    button:hover,
    [role="button"]:hover,
    a:hover {
        cursor: pointer;
    }
    
    /* Show hover-only elements */
    .hover-only {
        display: block;
    }
}

/* Hybrid devices (touch + mouse) */
@media (any-pointer: coarse) and (any-pointer: fine) {
    /* Support both input types */
    button,
    [role="button"],
    a {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ============================================================
 * SAFE AREA INSETS (for notched devices)
 * ============================================================ */

@supports (padding: env(safe-area-inset-bottom)) {
    .app-container,
    .main-area,
    .navigation-content {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .custom-footer {
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* ============================================================
 * DYNAMIC VIEWPORT HEIGHT (mobile address bar fix)
 * ============================================================ */

@supports (height: 100dvh) {
    .app-container,
    .main-area,
    .navigation-content,
    .main-map-area,
    .mapbox-map {
        height: 100dvh;
    }
}


/* Smooth transition animations to prevent flickering */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.App {
    text-align: center;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.App-logo {
    height: 40vmin;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .App-logo {
        animation: App-logo-spin infinite 20s linear;
    }
}

.App-header {
    background-color: #0f0f10;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height - fixes mobile address bar */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: calc(10px + 2vmin);
    color: white;
}

.App-link {
    color: #61dafb;
}

@keyframes App-logo-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
/* Deploy trigger test Sat Dec 27 18:56:02 UTC 2025 */

/* ============================================================
 * Project      : KingRoad / Family King
 * File-ID      : globals-design-tokens-001
 * File         : globals.css
 * Owner        : King Group Tech
 * Feature      : Design Tokens — Single Source of Truth
 * Layer        : frontend/src/styles
 * Status       : stable
 * Summary      : Centralized CSS custom properties (design tokens).
 *                All spacing, colors, typography, layout dims, z-index,
 *                transitions, shadows — referenced by all feature CSS.
 * Created-At   : 2026-01-01
 * Last-Updated : 2026-04-26
 * ============================================================ */

:root {
  /* === COLORS — Light Theme (PWA default) === */
  --bg-primary: #F5EAD2;
  --primary-bg: var(--bg-primary); /* alias — DOM inspection compatibility */
  --bg-jupiter: #EFE3C0;
  --bg-surface: #FAF3E3;
  --bg-dark: #1a1a2e;
  --bg-dark-secondary: #2a2a3e;
  --bg-map-loading: #c8c8c8;
  --border-primary: #5A3B1F;
  --border-subtle: rgba(90, 59, 31, 0.2);
  --accent-gold: #C9A14B;
  --text-primary: #3B2A1A;
  --text-secondary: #7A5F40;
  --text-on-dark: #F5EAD2;
  --text-on-dark-secondary: rgba(245, 234, 210, 0.7);
  --button-bg: #5A3B1F;
  --button-text: #F5EAD2;
  --highlight: #A67C4F;
  --map-route: #C0933C;
  --alert-warning: #D98324;
  --alert-danger: #A23E2B;
  --alert-success: #2A7A3B;
  --alert-info: #1D5FAA;
  --shadow-soft: rgba(0, 0, 0, 0.2);

  /* === SPACING (4px base scale) === */
  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;

  /* === BORDER RADIUS === */
  --radius-xs: 2px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 25px;
  --radius-circle: 50%;

  /* === FONT FAMILY === */
  --font-family-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-family-mono: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;

  /* === FONT SIZES (responsive with clamp) === */
  --font-2xs: clamp(10px, 1.2vw, 12px);
  --font-xs: clamp(11px, 1.4vw, 13px);
  --font-sm: clamp(12px, 1.6vw, 14px);
  --font-md: clamp(14px, 1.8vw, 16px);
  --font-lg: clamp(16px, 2vw, 18px);
  --font-xl: clamp(18px, 2.4vw, 22px);
  --font-2xl: clamp(22px, 3vw, 26px);
  --font-3xl: clamp(26px, 3.5vw, 34px);

  /* === ICON SIZES (responsive with clamp) === */
  --icon-xs: clamp(16px, 2vw, 20px);
  --icon-sm: clamp(20px, 2.5vw, 24px);
  --icon-md: clamp(24px, 3vw, 28px);
  --icon-lg: clamp(28px, 3.5vw, 32px);
  --icon-xl: clamp(32px, 4vw, 40px);

  /* === LAYOUT DIMENSIONS (canonical: 1920x800px landscape, pre-clamp cc469c21 22/02) === */
  --header-height: 62px;        /* top bar inner height — canonical cc469c21 */
  --topbar-height: 89px;        /* full top bar height — canonical cc469c21 */
  --footer-height: 75px;        /* footer height — canonical contract value (75px) */
  --sidebar-width: 350px;       /* right sidebar — canonical cc469c21 */
  --sidebar-width-collapsed: 0px;
  --search-bar-height: 50px;    /* fixed — pre-clamp baseline */
  --left-btn-size: 48px;        /* left side control buttons */
  --right-btn-size: 60px;       /* right floating action buttons — 60px round (Layers/Amber) */
  --footer-btn-size: 48px;      /* footer carousel buttons */
  --hamburger-size: 80px;       /* hamburger button */
  --map-area-width: calc(100% - var(--sidebar-width)); /* usable map width: 1570px at 1920px */

  /* === HIT TARGETS (touch-friendly minimums) === */
  --hit-target-min: 44px;
  --hit-target-comfortable: 48px;

  /* === SHADOWS === */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);

  /* === TRANSITIONS === */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
  --transition-layout: 0.3s ease;

  /* NOTE: Z-index scale is defined in z-index-variables.css (canonical source).
   * Use --z-floating, --z-overlay-backdrop, --z-modal etc. from that file. */

  /* === BREAKPOINTS (reference only, use in @media) === */
  /* --bp-mobile:    360px  */
  /* --bp-mobile-lg: 480px  */
  /* --bp-tablet:    768px  */
  /* --bp-desktop:   1024px */
  /* --bp-desktop-lg:1440px */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-family: var(--font-family-primary);
  background: linear-gradient(to bottom, #F5EAD2, #EFE3C0);
  background: linear-gradient(to bottom, var(--bg-primary), var(--bg-jupiter));
  color: #3B2A1A;
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
}

.gradient-button {
  background: linear-gradient(to right, #C9A14B, #A67C4F);
  background: linear-gradient(to right, var(--accent-gold), var(--highlight));
  border: none;
  color: #F5EAD2;
  color: var(--button-text);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.gradient-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 16px var(--shadow-soft);
}

.card-elegant {
  background: #F5EAD2;
  background: var(--bg-primary);
  border: 1px solid #5A3B1F;
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 12px var(--shadow-soft);
  padding: 1rem;
  margin: 0.5rem 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card-elegant:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  box-shadow: 0 6px 16px var(--shadow-soft);
}

.text-gradient {
  background: linear-gradient(45deg, #C9A14B, #A67C4F);
  background: linear-gradient(45deg, var(--accent-gold), var(--highlight));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}

/* === TOUCH vs MOUSE/DESKTOP COMPATIBILITY === */

/* Touch devices: disable hover effects that cause sticky states */
@media (hover: none) and (pointer: coarse) {
  .gradient-button:hover,
  .card-elegant:hover {
    transform: none;
    box-shadow: inherit;
  }
}

/* Mouse/desktop: ensure focus states for keyboard navigation */
@media (hover: hover) and (pointer: fine) {
  button:focus-visible,
  [role="button"]:focus-visible {
    outline: 2px solid #C9A14B;
    outline: 2px solid var(--accent-gold, #C9A14B);
    outline-offset: 2px;
  }
}

/* ============================================================
 * RESPONSIVE TOKENS — override per breakpoint
 * Canonical desktop (>= 1200px): all values from :root above
 * ============================================================ */

/* Tablet large (1024px-1199px): full 350px sidebar — reference device 1080x1920 landscape */
@media (max-width: 1199px) and (min-width: 1024px) {
  :root {
    --sidebar-width: 350px;
    --topbar-height: 89px;   /* canonical cc469c21 */
    --header-height: 62px;   /* canonical cc469c21 */
    --footer-height: 75px;   /* canonical contract value (75px) */
    --right-btn-size: 60px;  /* 60px round buttons */
    --search-bar-height: 50px;
  }
}

/* Tablet medium landscape (768px-1023px): proportional sidebar */
@media (max-width: 1023px) and (min-width: 768px) and (orientation: landscape) {
  :root {
    --sidebar-width: 300px;
    --topbar-height: 75px;   /* scaled from 89px desktop */
    --header-height: 56px;
    --footer-height: 75px;   /* canonical contract value (75px) */
    --search-bar-height: 46px;
    --left-btn-size: 44px;
    --right-btn-size: 52px;  /* scaled from 60px desktop */
    --hamburger-size: 70px;
  }
}

/* Tablet medium portrait (768px-1023px): sidebar hidden */
@media (max-width: 1023px) and (min-width: 768px) and (orientation: portrait) {
  :root {
    --sidebar-width: 0px;
    --topbar-height: 75px;   /* comfortable for tablet portrait */
    --header-height: 56px;
    --footer-height: 75px;   /* canonical contract value (75px) */
    --search-bar-height: 46px;
    --left-btn-size: 44px;
    --right-btn-size: 52px;  /* scaled from 60px desktop */
    --hamburger-size: 70px;
  }
}

/* Phone landscape (any width, max-height 480px) — compact layout, no sidebar */
@media (orientation: landscape) and (max-height: 480px) {
  :root {
    --sidebar-width: 0px;
    --topbar-height: 60px;   /* compact for small landscape screens */
    --header-height: 50px;
    --footer-height: 55px;   /* compact for small landscape screens */
    --search-bar-height: 40px;
    --left-btn-size: 40px;
    --right-btn-size: 44px;  /* minimum touch target */
    --footer-btn-size: 40px;
    --hamburger-size: 60px;
  }
}

/* Phone portrait (max-width 767px) — full-width, no sidebar */
@media (max-width: 767px) and (orientation: portrait) {
  :root {
    --sidebar-width: 0px;
    --topbar-height: 75px;   /* comfortable for phone portrait */
    --header-height: 56px;
    --footer-height: 75px;   /* canonical contract value (75px) */
    --search-bar-height: 46px;
    --left-btn-size: 44px;
    --right-btn-size: 48px;  /* WCAG touch target */
    --footer-btn-size: 44px;
    --hamburger-size: 70px;
  }
}

/* Very small phones (max-width 480px) — any orientation, sidebar always hidden */
@media (max-width: 480px) {
  :root {
    --sidebar-width: 0px;
    --header-height: 56px;
    --topbar-height: 60px;
    --footer-height: 56px;   /* compact for very small screens */
    --right-btn-size: 44px;  /* minimum WCAG touch target */
  }
}

/* ============================================================
 * Project      : KingRoad / KingGroup Tech
 * File-ID      : z-index-variables-001
 * File         : z-index-variables.css
 * Owner        : King Group Tech
 * Feature      : UI Layer Hierarchy - Variables
 * Layer        : frontend
 * Status       : stable
 * Summary      : Canonical z-index CSS custom properties (variables).
 *                Single source of truth for stacking order.
 * Created-At   : 2026-02-21
 * Last-Updated : 2026-02-21
 * ============================================================ */

/* ============================================================
 * Z-INDEX HIERARCHY — CANONICAL TOKENS
 * 
 * RULE: Permanent elements (always visible) use LOW z-index.
 *       Temporary elements (modals, popups, alerts) use HIGH.
 *       Temporary elements ALWAYS render ABOVE permanent ones.
 *       Only ONE modal/popup open at a time (enforced by JS).
 *
 * LAYERS (ascending order):
 *   base       (1-9)    : map canvas, background
 *   map-ui     (50-99)  : map markers, map controls, popups
 *   permanent  (100-199): header, footer, sidebar, buttons
 *   floating   (300-399): draggable widgets resting state
 *   dropdown   (500-599): dropdowns, popovers, context menus
 *   overlay    (600-699): backdrop overlays (semi-transparent)
 *   modal      (700-799): modals, dialogs, drawers, panels
 *   toast      (800-849): toast notifications
 *   alert      (850-899): safety alerts, amber alerts
 *   tooltip    (900-949): tooltips (above everything)
 *   critical   (950-999): system-critical overlays only
 * ============================================================ */

:root {
  /* Base & Map */
  --z-base: 1;
  --z-map-markers: 50;
  --z-map-controls: 60;
  --z-map-popups: 70;

  /* Permanent UI (always visible, never above temporary) */
  --z-permanent-low: 100;
  --z-permanent: 110;
  --z-permanent-high: 120;

  /* Floating widgets (resting state) */
  --z-floating: 300;
  --z-floating-dragging: 350;

  /* Temporary UI (opens/closes, ALWAYS above permanent) */
  --z-dropdown: 500;
  --z-overlay-backdrop: 600;
  --z-modal: 700;
  --z-toast: 800;
  --z-alert: 850;
  --z-tooltip: 900;
  --z-critical: 950;
}

/* ============================================================
 * Project      : KingRoad / KingGroup Tech
 * File-ID      : z-index-overrides-001
 * File         : z-index-overrides.css
 * Owner        : King Group Tech
 * Feature      : UI Layer Hierarchy - Overrides
 * Layer        : frontend
 * Status       : stable
 * Summary      : Targeted z-index overrides using canonical tokens.
 *                Imported LAST to win specificity over legacy CSS.
 * Created-At   : 2026-02-21
 * Last-Updated : 2026-02-21
 * ============================================================ */

/* ============================================================
 * PERMANENT ELEMENTS — Base Layer (100-199)
 * Always visible on dashboard. Never above temporary elements.
 * ============================================================ */

.dashboard-top-bar,
.top-bar-container {
  z-index: var(--z-permanent) !important;
}

.custom-footer-container {
  z-index: var(--z-permanent) !important;
}

.navigation-sidebar {
  z-index: var(--z-permanent) !important;
}

.sidebar-body {
  z-index: auto !important;
}

.left-controls-widget,
.volume-footer-btn,
.reroute-footer-btn,
.toll-toggle-widget,
.report-alert-container,
.current-road-display,
.map-controls-overlay,
.route-controls,
.map-style-switcher,
.map-style-dropdown-container,
.upcoming-truck-stops-container,
.mile-marker-display,
.exit-markers-container,
.border-crossings-widget,
.country-tier-indicator,
.dashboard-sidebar,
.expandable-search-panel,
.direction-alerts,
.construction-snake-container,
.amber-alert-button-container,
.exclusion-zones-overlay,
.prohibited-segments-overlay,
.restaurants-on-route {
  z-index: var(--z-permanent-low) !important;
}

/* ============================================================
 * FLOATING WIDGETS — Mid Layer (300-399)
 * Draggable widgets in resting and active drag state.
 * ============================================================ */

.draggable-widget:not(.dragging) {
  z-index: var(--z-floating) !important;
}

.draggable-widget.dragging,
.draggable-element.drag-mode-active,
.drag-mode-indicator,
.drag-reset-button {
  z-index: var(--z-floating-dragging) !important;
}

.drop-zone-active {
  z-index: var(--z-floating) !important;
}

/* ============================================================
 * DROPDOWNS — Temporary (500-599)
 * Open above permanent, close and disappear.
 * ============================================================ */

.map-style-dropdown,
.toll-dropdown,
.report-menu-overlay,
.address-search-results,
.recent-destinations-dropdown,
.recent-destinations-container,
.poi-filter-settings,
.postal-country-dropdown,
.search-mode-selector-dropdown {
  z-index: var(--z-dropdown) !important;
}

/* ============================================================
 * OVERLAY BACKDROPS — (600-699)
 * Semi-transparent backgrounds behind modals/panels.
 * ============================================================ */

.truck-stops-dropdown-backdrop,
.main-menu-tomtom-overlay,
.map-waiting-location,
.waypoints-dropup-backdrop,
.stops-dropup-backdrop {
  z-index: var(--z-overlay-backdrop) !important;
}

/* Content above its own backdrop */
.truck-stops-dropdown {
  z-index: 610 !important;
}

/* ============================================================
 * MODALS / DIALOGS / DRAWERS — (700-799)
 * Full panels above everything except alerts/tooltips.
 * ============================================================ */

.widget-modal-wrapper,
.widget-detail-modal,
.widgets-gallery-modal,
.route-alternatives-modal,
.poi-action-modal,
.alert-settings-modal,
.onde-estou-modal,
.saved-routes-manager,
.exclusion-zone-admin,
.urban-telemetry-consent-modal,
.google-explore-screen,
.destination-preview-card,
.main-menu-tomtom,
.maps-downloader,
.highway-control-modal,
.admin-control-panel,
.admin-roles-panel,
.gamification-badge-modal,
.exit-direction-lock,
.chained-instructions-overlay,
.smart-location-prompt,
.alert-validation-popup,
.clearance-block-alert,
.delivery-access-alert,
.safe-corridor-alert,
.route-cutting-modal,
.point-a-to-b-planner,
.king-assistant-modal,
.first-time-setup,
.vehicle-settings-modal,
.trailer-configuration-modal,
.street-view-modal {
  z-index: var(--z-modal) !important;
}

/* Modal inner content (above overlay of same modal) */
.poi-comment-modal,
.risk-area-modal,
.saved-routes-overlay,
.institutional-modal,
.waypoints-dropup-panel,
.stops-dropup-panel {
  z-index: 710 !important;
}

/* Overlay behind inner modals */
.poi-comment-modal-overlay,
.risk-area-modal-overlay,
.institutional-modal-overlay {
  z-index: var(--z-modal) !important;
}

/* Arrival Street View (above destination preview) */
.arrival-street-view {
  z-index: 720 !important;
}

/* ============================================================
 * TOASTS — (800-849)
 * Brief notifications, above modals.
 * ============================================================ */

.toast-notification,
.route-editor-toast {
  z-index: var(--z-toast) !important;
}

/* ============================================================
 * SAFETY ALERTS — (850-899)
 * Critical safety alerts that must be seen immediately.
 * ============================================================ */

.safety-alerts-container,
.amber-alert-receiver,
.smart-reroute-alert,
.prohibited-exit-alert {
  z-index: var(--z-alert) !important;
}

.safety-alert-popup {
  z-index: 860 !important;
}

/* ============================================================
 * TOOLTIPS — (900-949)
 * Must be above everything including modals and alerts.
 * ============================================================ */

.draggable-tooltip,
.tooltip,
[role="tooltip"] {
  z-index: var(--z-tooltip) !important;
}

/* ============================================================
 * CRITICAL — (950-999)
 * Reserved for system-critical overlays only.
 * ============================================================ */

.events-panel-test-buttons {
  z-index: var(--z-critical) !important;
}

/* Risk Area Modal CSS */

.risk-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.risk-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 193, 7, 0.3);
  
  overflow: hidden;
  z-index: 2001;
  
  display: flex;
  flex-direction: column;
  
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: modal-appear 0.3s ease-out;
}

@keyframes modal-appear {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Header */
.risk-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 193, 7, 0.1);
  border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon {
  font-size: 28px;
}

.risk-modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #FFC107;
}

.poi-name-badge {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(244, 67, 54, 0.3);
}

/* Content */
.risk-modal-content {
  flex: 1 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.instruction-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.error-message {
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid rgba(244, 67, 54, 0.5);
  color: #f44336;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* Risk Categories */
.risk-category {
  margin-bottom: 20px;
}

.category-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #d4af37;
  margin: 0 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.risk-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.risk-item {
  display: flex;
  align-items: center;
  gap: 6px;
  
  padding: 8px 12px;
  
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  
  cursor: pointer;
  transition: all 0.2s ease;
}

.risk-item:hover {
  background: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.3);
}

.risk-item.selected {
  background: rgba(255, 193, 7, 0.2);
  border-color: #FFC107;
}

.risk-item input[type="checkbox"] {
  display: none;
}

.risk-emoji {
  font-size: 16px;
}

.risk-label {
  font-size: 0.8rem;
  color: #fff;
}

/* Custom Risk Section */
.custom-risk-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.add-custom-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  
  padding: 10px 16px;
  
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
}

.add-custom-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.5);
}

.custom-risk-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-title-input,
.custom-desc-input {
  width: 100%;
  padding: 10px 14px;
  
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  
  color: #fff;
  font-size: 0.9rem;
  
  transition: border-color 0.2s ease;
}

.custom-title-input:focus,
.custom-desc-input:focus {
  outline: none;
  border-color: #FFC107;
}

.custom-title-input::placeholder,
.custom-desc-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.custom-desc-input {
  resize: vertical;
  min-height: 80px;
}

.char-count {
  text-align: right;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Location Info */
.location-info {
  display: flex;
  align-items: center;
  gap: 8px;
  
  margin-top: 16px;
  padding: 10px 14px;
  
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.coord-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.coord-value {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: monospace;
}

/* Footer */
.risk-modal-footer {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cancel-btn,
.submit-btn {
  flex: 1 1;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-btn {
  background: rgba(100, 100, 100, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.cancel-btn:hover:not(:disabled) {
  background: rgba(100, 100, 100, 0.5);
}

.submit-btn {
  background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
  border: none;
  color: #000;
}

.submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #FFD54F 0%, #FFC107 100%);
  transform: translateY(-1px);
}

.submit-btn:disabled,
.cancel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Scrollbar */
.risk-modal-content::-webkit-scrollbar {
  width: 6px;
}

.risk-modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.risk-modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 193, 7, 0.5);
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 500px) {
  .risk-modal {
    width: 95%;
    max-height: 90vh;
  }
  
  .risk-items {
    gap: 6px;
  }
  
  .risk-item {
    padding: 6px 10px;
  }
  
  .risk-label {
    font-size: 0.75rem;
  }
}

.route-cutting-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 700; /* Route cutting modal overlay - normalized from 10000 */
  padding: 20px;
}

.route-cutting-modal {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid #eee;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.close-btn:hover {
  background: #f5f5f5;
  color: #333;
}

.modal-body {
  padding: 20px;
}

.cut-point-info {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.cut-point-info h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #333;
}

.cut-point-info .coordinates {
  font-family: monospace;
  font-size: 14px;
  color: #666;
  margin: 5px 0;
}

.cut-point-info .description {
  font-size: 16px;
  color: #444;
  font-weight: 500;
  margin: 10px 0 0 0;
}

.time-input-section {
  background: #fff;
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.time-input-section h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #333;
}

.time-inputs {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.input-group {
  flex: 1 1;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.input-group input[type="number"] {
  width: 100%;
  padding: 10px;
  font-size: 18px;
  border: 2px solid #ddd;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
}

.traffic-toggle {
  margin-bottom: 15px;
}

.traffic-toggle label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
}

.traffic-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.recalculate-btn {
  width: 100%;
  padding: 12px;
  background: #FFD700;
  color: #000;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.recalculate-btn:hover {
  background: #FFC700;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.recalculate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.error-message {
  background: #fee;
  border: 2px solid #fcc;
  border-radius: 8px;
  padding: 15px;
  color: #c33;
  text-align: center;
  margin-bottom: 20px;
}

.loading-message {
  text-align: center;
  padding: 40px 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #FFD700;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

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

.results-section {
  margin-top: 20px;
}

.summary {
  background: #f0f8ff;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.summary h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #333;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 10px;
  gap: 10px;
}

.summary-item {
  background: white;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.summary-item.highlight {
  background: #FFD700;
  border-color: #FFC700;
}

.summary-item .label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.summary-item .value {
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.truck-stops-list h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #333;
}

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 16px;
}

.stops-grid {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.stop-card {
  background: white;
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.stop-card:hover {
  border-color: #FFD700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.stop-header h4 {
  margin: 0;
  font-size: 16px;
  color: #333;
  flex: 1 1;
}

.stop-header .distance {
  font-size: 14px;
  font-weight: bold;
  color: #FFD700;
  background: #FFF9E6;
  padding: 4px 12px;
  border-radius: 12px;
}

.stop-details {
  font-size: 14px;
  color: #666;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.occupancy {
  margin-top: 8px;
}

.occupancy-bar {
  width: 100%;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}

.occupancy-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #FFC107, #F44336);
  transition: width 0.3s;
}

.occupancy span {
  font-size: 12px;
  color: #999;
}

.recommendation {
  background: #e8f5e9;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
}

.recommendation h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #2e7d32;
}

.recommendation-card {
  background: white;
  padding: 15px;
  border-radius: 6px;
  border-left: 4px solid #4CAF50;
}

.recommendation-card h4 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #333;
}

.recommendation-card p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .route-cutting-modal {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .time-inputs {
    flex-direction: column;
  }
}

.street-view-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 700; /* Street view modal overlay - normalized from 10000 */
  padding: 20px;
}

.street-view-modal {
  /* CRITICAL CHANGE: Safe beige background - NOT WHITE */
  background: #f5f5dc; /* Bege suave - seguro para motoristas */
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.street-view-options {
  max-width: 800px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 2px solid #e5e5e5;
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.close-btn:hover {
  background: #f0f0f0;
}

.modal-body {
  padding: 24px;
}

.modal-description {
  font-size: 16px;
  color: #666;
  margin-bottom: 24px;
  text-align: center;
}

.option-card {
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  transition: all 0.3s;
}

.option-card:hover {
  border-color: #007bff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.option-free {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
}

.option-integrated {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
}

.option-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 16px;
}

.option-card h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  color: #333;
  text-align: center;
}

.option-card p {
  color: #666;
  margin-bottom: 16px;
  text-align: center;
}

.option-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.option-card ul li {
  padding: 8px 0;
  font-size: 14px;
  color: #555;
}

.btn-primary,
.btn-secondary {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-link {
  display: inline-block;
  padding: 8px 16px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 8px;
  transition: background 0.2s;
}

.btn-link:hover {
  background: #0056b3;
}

.street-view-container {
  padding: 24px;
  background: #f8f9fa;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 24px;
  border-top: 2px solid #e5e5e5;
}

.modal-footer button {
  flex: 1 1;
}

/* Tutorial Styles */
.tutorial-body {
  max-height: 70vh;
  overflow-y: auto;
}

.tutorial-body h3 {
  margin: 0 0 24px 0;
  color: #333;
  text-align: center;
  font-size: 22px;
}

.tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step {
  display: flex;
  gap: 16px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #007bff;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #007bff;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

.step-content {
  flex: 1 1;
}

.step-content h4 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 16px;
}

.step-content p {
  margin: 0 0 12px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.step-note {
  background: #fff3cd;
  border-left: 3px solid #ffc107;
  padding: 8px 12px;
  margin-top: 8px;
  font-size: 13px;
  color: #856404;
}

.api-key-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  font-family: monospace;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.api-key-input:focus {
  outline: none;
  border-color: #007bff;
}

.tutorial-footer {
  padding: 20px 0 0 0;
  border-top: 2px solid #e5e5e5;
  margin-top: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .street-view-modal {
    max-width: 100%;
    max-height: 95vh;
    margin: 0;
    border-radius: 16px 16px 0 0;
  }

  .modal-header h2 {
    font-size: 20px;
  }

  .option-icon {
    font-size: 36px;
  }

  .option-card h3 {
    font-size: 18px;
  }

  .step {
    flex-direction: column;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .modal-footer {
    flex-direction: column;
  }
}

/* ============================================================
 * File-ID: custom-footer-base-001
 * Owner: King Group Tech
 * Layer: frontend/styles
 * Feature: CustomFooter - Base Styles
 * Status: stable
 * Created-At: 2026-02-17
 * Last-Updated-At: 2026-04-26
 * ============================================================
 * Project      : KingRoad / Family King
 * File         : customFooterBase.css
 * Summary      : Base container and layout styles for TomTom-style footer
 * ============================================================ */

/* Custom Footer - TomTom Style Navigation Footer */
/* ABSOLUTE LAW: Footer ENDS where sidebar STARTS - NEVER invades */

.custom-footer {
  position: fixed;
  bottom: 0;
  bottom: env(safe-area-inset-bottom, 0); /* Safe area for notched devices */
  left: 0;
  left: env(safe-area-inset-left, 0); /* Safe area for notched devices */
  /* Footer MUST end BEFORE sidebar - fixed 350px baseline (pre-clamp) */
  right: 350px !important;
  right: var(--sidebar-width, 350px) !important;
  width: auto !important;
  height: 75px;
  height: var(--footer-height, 75px); /* canonical contract value (75px) */
  
  display: flex;
  align-items: center;
  gap: 0;
  
  background: #d4b896;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  
  /* Brown coffee border 5px on all sides */
  border: 5px solid #4a3728 !important;
  
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
  
  z-index: var(--z-permanent-high);
  padding: 0;
  box-sizing: border-box;
  overflow: hidden; /* CRITICAL: Hides any content that overflows */
}

/* ============================================================
 * RESPONSIVE OVERRIDES — footer adapts to all screen sizes
 * Base values above are for desktop 1920x1080px (canonical)
 * ============================================================ */

/* Tablet medium (768px-1023px): sidebar may be smaller or hidden */
@media (max-width: 1023px) and (min-width: 768px) {
  .custom-footer {
    right: 0px !important;
    right: var(--sidebar-width, 0px) !important;
    height: 75px;
    height: var(--footer-height, 75px);
  }
}

/* Phone landscape: full width footer, compact height */
@media (orientation: landscape) and (max-height: 480px) {
  .custom-footer {
    right: 0 !important;
    height: 75px;
    height: var(--footer-height, 75px);
    border-width: 3px !important;
  }
}

/* Phone portrait: full width footer */
@media (max-width: 767px) and (orientation: portrait) {
  .custom-footer {
    right: 0 !important;
    height: 75px;
    height: var(--footer-height, 75px);
  }
}

/* Very small phones */
@media (max-width: 480px) {
  .custom-footer {
    right: 0 !important;
    border-width: 3px !important;
  }
}

/* ============================================================
 * File-ID: custom-footer-hamburger-btn-001
 * Owner: King Group Tech
 * Layer: frontend/styles
 * Feature: CustomFooter - Hamburger Menu Button
 * Status: stable
 * Created-At: 2026-02-17
 * Last-Updated-At: 2026-02-17
 * ============================================================
 * Project      : KingRoad / Family King
 * File         : customFooterHamburgerButton.css
 * Summary      : Hamburger menu button styles - BLACK CIRCLE WITH WHITE LINES
 * ============================================================ */

/* Hamburger Menu Button - Left Corner - BLACK CIRCLE WITH WHITE LINES */
.footer-hamburger-btn {
  width: 80px; /* Pre-clamp baseline */
  height: 80px; /* Pre-clamp baseline */
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  
  background: transparent;
  border: none;
  
  cursor: pointer;
  transition: all 0.2s ease;
  
  flex-shrink: 0;
  
  position: relative;
}

.footer-hamburger-btn::before {
  content: '';
  position: absolute;
  width: 50px; /* Pre-clamp baseline */
  height: 50px; /* Pre-clamp baseline */
  background: #4a3728; /* Coffee background same as other buttons */
  border: 2px solid #FFD700; /* Golden ring */
  border-radius: 50%;
  z-index: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.footer-hamburger-btn:hover::before {
  background: #5d4637; /* Lighter coffee on hover */
  border-color: #FFC107; /* More intense gold */
  transform: scale(1.05);
}

.footer-hamburger-btn:active::before {
  background: #4a3728;
  transform: scale(0.98);
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

.footer-hamburger-btn:hover .hamburger-line {
  background: #fbbf24;
}

/* Constrain button at laptop viewport to fit within footer height (46px @ 768px tall) */
@media (max-width: 1366px) {
  .footer-hamburger-btn {
    width: 44px; /* Pre-clamp baseline */
    height: 44px; /* Pre-clamp baseline */
  }

  .footer-hamburger-btn::before {
    width: 36px; /* Pre-clamp baseline */
    height: 36px; /* Pre-clamp baseline */
  }
}

/* ============================================================
 * File-ID: custom-footer-info-bar-001
 * Owner: King Group Tech
 * Layer: frontend/styles
 * Feature: CustomFooter - Info Bar (TIME, DISTANCE, DURATION, ETA)
 * Status: stable
 * Created-At: 2026-02-17
 * Last-Updated-At: 2026-04-26
 * ============================================================
 * Project      : KingRoad / Family King
 * File         : customFooterInfoBar.css
 * Summary      : Info bar with navigation metrics display
 * ============================================================ */

/* Black Info Bar - Time, Distance, Duration, ETA + WIDGETS */
/* All in a single line, left to right */
.footer-info-bar {
  flex: 1 1;
  height: 100%;
  
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px; /* canonical cc469c21 */
  
  background: #d4b896;
  padding: 6px 15px; /* Trigger: footer_padding_vertical_px: 6 */
  
  border-left: none;
  border-right: none;
  
  position: relative;
  overflow: hidden; /* CRITICAL: Nothing can overflow */
}

/* Yellow separator between info items */
.info-separator {
  display: none;
}

/* KR_DASHBOARD_RESTORE_LAYOUT_PIXEL_PERFECT: footer_item_spec */
/* MEASUREMENTS BASED ON USER REFERENCE SCREENSHOT */
.info-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  
  /* Black window/panel inside beige footer */
  background: rgba(0, 0, 0, 0.95);
  padding: 8px 12px; /* Padding adjusted for 63px height (footer 75px - 12px bar padding) */
  border-radius: 10px; /* Trigger: border_radius_px: 10 */
  border: 2px solid #FFD700; /* Golden border */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  
  /* BASE MEASUREMENTS - flex responsive, max preserved from original spec */
  /* footer 75px - 6px top padding - 6px bottom padding = 63px available */
  height: 63px !important;
  flex: 1 1 auto;
  min-width: 90px;
  max-width: 130px;
}

/* Rectangle 1: TIME - canonical cc469c21: 286px fixed */
.info-item[data-testid="KR_FOOTER_TIME"],
.info-item.info-item-time {
  width: 286px !important;
  min-width: 286px !important;
  max-width: 286px !important;
  gap: 10px !important;
  padding: 6px 36px 6px 4px !important;
}

/* 24h/AM-PM toggle button */
.time-format-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  
  min-width: 38px;
  height: 34px;
  padding: 2px 8px;
  
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.time-format-toggle:hover {
  background: rgba(59, 130, 246, 0.4);
  border-color: rgba(59, 130, 246, 0.6);
}

.time-format-toggle:active {
  transform: scale(0.95);
}

/* Rectangle 2: DISTANCE - canonical cc469c21: 235px fixed */
.info-item.info-item-distance,
.info-item[data-testid="KR_FOOTER_DISTANCE"] {
  width: 235px !important;
  min-width: 235px !important;
  max-width: 235px !important;
  gap: 10px !important;
  padding-right: 16px !important;
}

/* Rectangle 3: DURATION - canonical cc469c21: 220px fixed */
.info-item.info-item-duration,
.info-item[data-testid="KR_FOOTER_DURATION"] {
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  gap: 8px !important;
  padding: 6px 13px 6px 11px !important;
}

/* Rectangle 4: ETA - canonical cc469c21: 220px fixed */
.info-item-eta,
.info-item[data-testid="KR_FOOTER_ETA"] {
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  gap: 8px !important;
  padding: 6px 13px 6px 11px !important;
  border-radius: 10px !important;
}

/* Force all corners rounded */
.info-item-eta::after,
.info-item[data-testid="KR_FOOTER_ETA"]::after {
  content: none;
}

.info-icon {
  font-size: 28px; /* Pre-clamp baseline */ /* Scale with viewport */
  opacity: 0.95;
  flex-shrink: 0;
  line-height: 1;
}

/* Duration and ETA icons: +4px larger (28 -> 32px) */
.info-item-duration .info-icon,
[data-testid="KR_FOOTER_ETA"] .info-icon {
  font-size: 32px;
}


.info-label {
  font-size: 11px; /* REFERENCE: ~10-12px */
  font-weight: 400; /* REFERENCE: regular */
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

/* TOMTOM STYLE: LARGE numbers scaling with viewport */
.info-value {
  font-family: 'Arial', 'Helvetica Neue', sans-serif;
  font-size: 42px !important; /* Pre-clamp baseline */
  font-weight: 700 !important; /* Bold */
  letter-spacing: -0.5px; /* Mais compacto para caber */
  color: #ffffff !important;
  line-height: 1;
  /* Condensed font to fit more digits */
  font-stretch: condensed;
}

/* Multiple Stops Feature */
.info-item-eta.has-multiple-stops {
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
  border-radius: 10px !important; /* Garantir cantos arredondados */
}

.info-item-eta.has-multiple-stops:hover {
  background: rgba(20, 20, 20, 0.95);
}

.stops-indicator {
  font-size: 18px;
  font-weight: 700;
  color: #4CAF50;
  margin-left: 8px;
  animation: pulse-indicator 2s ease-in-out infinite;
}

@keyframes pulse-indicator {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ============================================================
 * File-ID: custom-footer-waypoints-dropup-001
 * Owner: King Group Tech
 * Layer: frontend/styles
 * Feature: CustomFooter - Waypoints Dropup Panel
 * Status: stable
 * Created-At: 2026-02-17
 * Last-Updated-At: 2026-04-26
 * ============================================================
 * Project      : KingRoad / Family King
 * File         : customFooterWaypointsDropup.css
 * Summary      : Waypoints dropup panel - Dark theme for footer integration
 * ============================================================ */

/* ============================================================
 * WAYPOINTS DROPUP PANEL - Redesigned (Dark Theme)
 * Position: Bottom-right, above footer, beside sidebar
 * Style: Based on UpcomingTruckStops - Dark theme for footer integration
 * z-index: 1000010+ to overlay ALL elements when expanded
 * ============================================================ */

/* Backdrop - covers screen behind panel */
.waypoints-dropup-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000010;
  cursor: pointer;
}

/* Main Panel - Bottom right, above footer */
.waypoints-dropup-panel {
  position: fixed;
  right: calc(350px + 20px);
  right: calc(var(--sidebar-width, 350px) + 20px); /* Right of the sidebar + gap */
  bottom: calc(75px + 15px);
  bottom: calc(var(--footer-height, 75px) + 15px);
  
  width: 680px;
  max-height: 450px;
  
  background: rgba(20, 20, 20, 0.98);
  border: 2px solid #4CAF50;
  border-radius: 12px;
  
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.6);
  
  overflow: hidden;
  z-index: 1000011;
  
  animation: waypoints-slide-up 0.25s ease-out forwards;
}

@keyframes waypoints-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header - Dark green accent */
.waypoints-dropup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  padding: 14px 20px;
  background: #1b5e20;
  color: white;
}

.waypoints-dropup-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.waypoints-close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 10px;
  opacity: 0.8;
  transition: opacity 0.15s ease;
  border-radius: 4px;
}

.waypoints-close-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

/* List Container */
.waypoints-list {
  max-height: 340px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 12px;
  background: rgba(25, 25, 25, 1);
}

/* Scrollbar styling */
.waypoints-list::-webkit-scrollbar {
  width: 6px;
}

.waypoints-list::-webkit-scrollbar-track {
  background: transparent;
}

.waypoints-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.waypoints-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Empty state when no stops are planned */
.waypoints-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.waypoints-empty-state p {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.waypoints-empty-state span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* Individual Waypoint Item - Horizontal layout */
.waypoint-item {
  display: flex;
  align-items: center;
  gap: 14px;
  
  padding: 14px 16px;
  background: rgba(40, 40, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 10px;
  
  transition: all 0.15s ease;
}

.waypoint-item:hover {
  background: rgba(50, 50, 50, 1);
  border-color: rgba(76, 175, 80, 0.4);
}

.waypoint-item:last-child {
  margin-bottom: 0;
}

/* First item (next stop) - highlighted */
.waypoint-item.next-stop {
  background: rgba(76, 175, 80, 0.15);
  border-color: rgba(76, 175, 80, 0.5);
}

/* 1. Stop Number Circle */
.waypoint-icon {
  flex-shrink: 0;
}

.waypoint-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #4CAF50;
  background: rgba(76, 175, 80, 0.2);
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  font-size: 22px;
  font-weight: 700;
  color: #4CAF50;
  
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Brand Logo Container - for truck stops with logos */
.waypoint-brand-logo-container {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid #2196F3;
  background: #FFFFFF;
  
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.waypoint-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.waypoint-circle.fallback {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 24px;
}

/* Address subtitle */
.waypoint-name-text {
  display: block;
}

.waypoint-address {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

/* 2. Stop Name */
.waypoint-name {
  flex: 1 1;
  min-width: 0;
  
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  
  overflow: hidden;
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.next-badge {
  display: inline-block;
  padding: 3px 10px;
  background: #4CAF50;
  border-radius: 4px;
  
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  
  flex-shrink: 0;
}

/* 3. Distance */
.waypoint-distance {
  font-size: 20px;
  font-weight: 600;
  color: #81c784;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 90px;
  text-align: right;
}

/* 4. ETA */
.waypoint-eta {
  font-size: 18px;
  font-weight: 500;
  color: #90caf9;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 80px;
  text-align: center;
}

/* 5. Remove Button */
.waypoint-remove-btn {
  flex-shrink: 0;
  
  width: 44px;
  height: 44px;
  
  background: #ffffff;
  border: 2px solid rgba(244, 67, 54, 0.6);
  border-radius: 50%;
  
  color: #f44336;
  font-size: 22px;
  font-weight: 900;
  
  cursor: pointer;
  transition: all 0.15s ease;
  
  display: flex;
  align-items: center;
  justify-content: center;
}

.waypoint-remove-btn:hover {
  background: #fff5f5;
  border-color: #f44336;
  transform: scale(1.1);
}

/* Footer note */
.waypoints-dropup-footer {
  padding: 10px 20px;
  background: rgba(15, 15, 15, 1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-style: italic;
}

/* ============================================
 * WAYPOINTS DROPUP BUTTON - Between ETA and Carousel
 * ============================================ */
.waypoints-dropup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  
  background: rgba(0, 0, 0, 0.95);
  border: 2px solid #FFD700;
  border-radius: 10px;
  
  padding: 8px 12px;
  margin-left: 3px;
  margin-right: 10px;
  height: 60px; /* Same height as info-item cards */
  min-width: 60px;
  
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.waypoints-dropup-btn:hover {
  background: rgba(40, 40, 40, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ============================================================
 * File-ID: custom-footer-stops-dropup-legacy-001
 * Owner: King Group Tech
 * Layer: frontend/styles
 * Feature: CustomFooter - Stops Dropup Panel (Legacy)
 * Status: stable
 * Created-At: 2026-02-17
 * Last-Updated-At: 2026-04-26
 * ============================================================
 * Project      : KingRoad / Family King
 * File         : customFooterStopsDropupLegacy.css
 * Summary      : Legacy stops dropup panel - keeping for compatibility
 * ============================================================ */

/* ============================================================
 * LEGACY STYLES - stops-dropup-panel (keeping for compatibility)
 * ============================================================ */

/* Dropup Panel (opens upward from footer) */
.stops-dropup-panel {
  position: fixed;
  bottom: calc(75px + 15px);
  bottom: calc(var(--footer-height, 75px) + 15px);
  /* Centered in useful area (excluding 350px sidebar) */
  left: calc((100vw - 350px) / 2 - 200px);
  
  width: 400px;
  max-height: 500px;
  
  background: rgba(30, 30, 30, 0.98);
  border: 2px solid #2196F3;
  border-radius: 12px;
  
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  
  overflow: hidden;
  z-index: 99999; /* Very high z-index to appear above everything */
  
  animation: dropup-slide 0.3s ease-out forwards;
}

@keyframes dropup-slide {
  from {
    opacity: 0;
    margin-bottom: -20px;
  }
  to {
    opacity: 1;
    margin-bottom: 0;
  }
}

.stops-dropup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  padding: 15px 20px;
  background: rgba(76, 175, 80, 0.2);
  border-bottom: 1px solid rgba(76, 175, 80, 0.3);
  
  color: #4CAF50;
  font-size: 16px;
  font-weight: 700;
}

.dropup-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.dropup-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.stops-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
}

.stop-item {
  display: flex;
  align-items: center;
  gap: 15px;
  
  padding: 15px;
  margin-bottom: 8px;
  
  background: rgba(40, 40, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  
  transition: all 0.2s ease;
}

.stop-item:hover {
  background: rgba(50, 50, 50, 0.9);
  border-color: rgba(76, 175, 80, 0.5);
}

.stop-item.current-stop {
  background: rgba(76, 175, 80, 0.2);
  border-color: rgba(76, 175, 80, 0.5);
}

.stop-number {
  display: flex;
  align-items: center;
  justify-content: center;
  
  width: 35px;
  height: 35px;
  
  background: rgba(76, 175, 80, 0.3);
  border-radius: 50%;
  
  color: #4CAF50;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.stop-info {
  flex: 1 1;
  min-width: 0;
}

.stop-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stop-eta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.stop-badge {
  padding: 4px 12px;
  background: rgba(76, 175, 80, 0.3);
  border-radius: 12px;
  color: #4CAF50;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  flex-shrink: 0;
}

.stop-distance {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.stops-dropup-footer {
  padding: 12px 20px;
  background: rgba(20, 20, 20, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-style: italic;
}

/* Remove stop button */
.stop-remove-btn {
  width: 28px;
  height: 28px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid rgba(244, 67, 54, 0.5);
  border-radius: 50%;
  
  color: #f44336;
  font-size: 14px;
  font-weight: bold;
  
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.stop-remove-btn:hover {
  background: rgba(244, 67, 54, 0.4);
  border-color: #f44336;
  transform: scale(1.1);
}

/* ============================================================
 * File-ID: custom-footer-widgets-carousel-001
 * Owner: King Group Tech
 * Layer: frontend/styles
 * Feature: CustomFooter - Widgets Carousel
 * Status: stable
 * Created-At: 2026-02-17
 * Last-Updated-At: 2026-02-17
 * ============================================================
 * Project      : KingRoad / Family King
 * File         : customFooterWidgetsCarousel.css
 * Summary      : Action buttons and widgets carousel for footer
 * ============================================================ */

/* Action Buttons - WIDGETS DO FOOTER */
/* Ficam entre o ETA e o final do footer */
/* MUST show exactly 4 icons */
.footer-actions {
  /* Relative position INSIDE the footer */
  position: relative;
  
  display: flex;
  align-items: center;
  gap: 4px;
  
  /* Carousel height - SAME as rectangles (60px) */
  height: 60px;
  
  /* FIXED WIDTH for 4 48px icons + nav buttons */
  /* 4 x 48px icons + 3 x 6px gaps + 2 x 24px nav + padding = ~280px */
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  
  /* Gaps entre ETA e carrossel, carrossel e borda */
  margin-left: 15px;
  margin-right: 10px;
  
  /* Subtle background to delimit carousel area */
  background: rgba(0, 0, 0, 0.95);
  border-radius: 10px;
  padding: 4px 6px;
  
  /* Golden border 2px - matching other footer rectangles */
  border: 2px solid #FFD700;
  
  /* CANNOT GROW - fixed width */
  flex-shrink: 0;
  flex-grow: 0;
}

/* Container interno do carrossel - mostra 4 widgets */
.footer-widgets-carousel {
  display: flex;
  align-items: center;
  gap: 6px;
  
  /* Largura para 4 widgets (4 x 48px + 3 gaps de 6px = 210px) */
  width: 210px;
  min-width: 210px;
  
  overflow: hidden;
  
  /* Esconde scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.footer-widgets-carousel::-webkit-scrollbar {
  display: none;
}

/* Cada widget no carrossel deve ter snap */
.footer-widgets-carousel > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Widget wrapper in carousel - fixed size 48px */
.carousel-widget-wrapper {
  width: 48px !important; /* Pre-clamp baseline */
  height: 48px !important; /* Pre-clamp baseline */
  min-width: 48px !important; /* Pre-clamp baseline */
  max-width: 48px !important; /* Pre-clamp baseline */
  flex-shrink: 0 !important;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.carousel-widget-wrapper.dragging {
  transform: scale(1.1);
  opacity: 0.7;
  z-index: 10;
}

/* Active reorder mode */
.footer-widgets-carousel.reorder-mode {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.footer-widgets-carousel.reorder-mode .carousel-widget-wrapper {
  cursor: grab;
  animation: wiggle 0.3s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
}

/* Carousel navigation buttons */
.carousel-nav-btn {
  width: 24px;
  height: 40px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 6px;
  
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  
  flex-shrink: 0;
  
  transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.carousel-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.footer-action-btn {
  width: 70px;
  height: 70px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  background: rgba(40, 40, 40, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  
  cursor: pointer;
  transition: all 0.2s ease;
  
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.footer-action-btn:hover {
  background: rgba(60, 60, 60, 0.95);
  border-color: rgba(251, 191, 36, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.footer-action-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.action-icon {
  font-size: 32px;
}

/* Optional buttons - always visible if space allows */
.footer-action-btn.optional {
  display: flex;
}

/* ============================================================
 * File-ID: custom-footer-responsive-001
 * Owner: King Group Tech
 * Layer: frontend/styles
 * Feature: CustomFooter - Responsive Media Queries
 * Status: stable
 * Created-At: 2026-02-17
 * Last-Updated-At: 2026-04-26
 * ============================================================
 * Project      : KingRoad / Family King
 * File         : customFooterResponsive.css
 * Summary      : Responsive breakpoints for footer components
 * ============================================================ */

/* ============================================================
 * RESPONSIVE BREAKPOINTS
 * ============================================================ */

/* Laptop (1366px): compress fixed widths to avoid overflow */
@media (max-width: 1366px) {
  .info-item.info-item-time,
  .info-item[data-testid="KR_FOOTER_TIME"] {
    width: 240px !important;
    min-width: 160px !important;
    max-width: 240px !important;
  }
  .info-item.info-item-distance,
  .info-item[data-testid="KR_FOOTER_DISTANCE"] {
    width: 200px !important;
    min-width: 130px !important;
    max-width: 200px !important;
  }
  .info-item.info-item-duration,
  .info-item[data-testid="KR_FOOTER_DURATION"] {
    width: 185px !important;
    min-width: 120px !important;
    max-width: 185px !important;
  }
  .info-item-eta,
  .info-item[data-testid="KR_FOOTER_ETA"] {
    width: 185px !important;
    min-width: 120px !important;
    max-width: 185px !important;
  }
}

/* Tablet landscape (1024px): tighter items */
@media (max-width: 1024px) {
  .info-item.info-item-time,
  .info-item[data-testid="KR_FOOTER_TIME"] {
    max-width: 195px;
    min-width: 140px;
  }
  .info-item.info-item-distance,
  .info-item[data-testid="KR_FOOTER_DISTANCE"] {
    max-width: 160px;
    min-width: 110px;
  }
  .info-item.info-item-duration,
  .info-item[data-testid="KR_FOOTER_DURATION"] {
    max-width: 145px;
    min-width: 100px;
  }
  .info-item-eta,
  .info-item[data-testid="KR_FOOTER_ETA"] {
    max-width: 145px;
    min-width: 100px;
  }
  .footer-info-bar {
    gap: 6px;
  }
}

/* Mobile responsive - Waypoints Dropup */
@media (max-width: 1200px) {
  .waypoints-dropup-panel {
    right: 20px;
    width: 500px;
  }
}

@media (max-width: 768px) {
  .waypoints-dropup-panel {
    right: 10px;
    left: 10px;
    width: auto;
  }
  
  .waypoint-name {
    font-size: 18px;
  }
  
  .waypoint-distance,
  .waypoint-eta {
    font-size: 14px;
    min-width: 60px;
  }
  
  .waypoint-circle {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  
  /* Footer action buttons */
  .footer-action-btn.optional {
    display: none;
  }
  
  .footer-info-bar {
    gap: 8px;
    padding: 0 12px;
  }
  
  .info-item {
    font-size: 12px;
    gap: 4px;
  }
  
  .info-icon {
    font-size: 14px;
  }
  
  .info-value {
    font-size: 13px;
  }
}

/* Phone landscape: compact footer */
@media (orientation: landscape) and (max-height: 480px) {
  .footer-hamburger-btn {
    width: 60px;
    width: var(--hamburger-size, 60px);
    height: 60px;
    height: var(--hamburger-size, 60px);
    min-width: 44px;
    min-height: 44px;
  }

  .footer-info-bar {
    gap: 4px;
    padding: 0 6px;
  }

  .info-item {
    font-size: 11px;
    gap: 3px;
  }

  .info-icon {
    font-size: 12px;
  }

  .info-value {
    font-size: 12px;
  }

  /* Hide optional items on phone landscape */
  .footer-action-btn.optional {
    display: none;
  }

  .info-item-eta,
  .info-item[data-testid="KR_FOOTER_ETA"] {
    display: none;
  }
}

/* Tablet portrait (768px-1023px): full width, no sidebar */
@media (max-width: 1023px) and (min-width: 768px) and (orientation: portrait) {
  .footer-info-bar {
    gap: 6px;
    padding: 0 10px;
  }

  .info-item.info-item-time,
  .info-item[data-testid="KR_FOOTER_TIME"] {
    max-width: 180px;
    min-width: 120px;
  }

  .info-item.info-item-distance,
  .info-item[data-testid="KR_FOOTER_DISTANCE"] {
    max-width: 150px;
    min-width: 100px;
  }

  .info-item.info-item-duration,
  .info-item[data-testid="KR_FOOTER_DURATION"] {
    max-width: 140px;
    min-width: 95px;
  }

  .info-item-eta,
  .info-item[data-testid="KR_FOOTER_ETA"] {
    max-width: 140px;
    min-width: 95px;
  }
}

/* Small screens - compact layout */
@media (max-width: 480px) {
  .custom-footer {
    right: 0 !important; /* No sidebar on mobile */
    height: 75px;
    height: var(--footer-height, 75px); /* Use CSS variable — NEVER clamp() here, it caused squeezing */
  }
  
  .footer-hamburger-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-width: var(--hit-target-min, 44px);
    min-height: 44px;
    min-height: var(--hit-target-min, 44px);
  }
  
  .footer-info-bar {
    gap: 6px;
    padding: 0 8px;
  }
  
  .info-separator {
    margin: 0 2px;
  }
  
  .footer-action-btn {
    width: 44px;
    width: var(--hit-target-min, 44px);
    height: 44px;
    height: var(--hit-target-min, 44px);
  }
  
  .action-icon {
    font-size: 16px;
    font-size: var(--font-md, 16px);
  }
}

/* ============================================================
 * File-ID: custom-footer-index-001
 * Owner: King Group Tech
 * Layer: frontend/styles
 * Feature: CustomFooter - Module Index (FACADE)
 * Status: stable
 * Created-At: 2026-02-17
 * Last-Updated-At: 2026-02-17
 * ============================================================
 * Project      : KingRoad / Family King
 * File         : index.css
 * Summary      : FACADE - Imports all CustomFooter style modules
 * ============================================================ */

/* ============================================================
 * CUSTOM FOOTER - MODULARIZED STYLES
 * 
 * This file acts as a FACADE that imports all footer style modules.
 * Each module handles a specific responsibility following
 * FEATURE-BASED architecture principles.
 * 
 * Original: CustomFooter.css (1097 lines)
 * Modularized: 7 files (< 400 lines each)
 * ============================================================ */

/* 1. Base container and layout */

/* 2. Hamburger menu button */

/* 3. Info bar (TIME, DISTANCE, DURATION, ETA) */

/* 4. Waypoints dropup panel */

/* 5. Legacy stops dropup (compatibility) */

/* 6. Widgets carousel */

/* 7. Responsive breakpoints */

/* ============================================================
 * File-ID: custom-footer-facade-001
 * Owner: King Group Tech
 * Layer: frontend/styles
 * Feature: CustomFooter - FACADE (Entry Point)
 * Status: stable
 * Created-At: 2025-12-XX
 * Last-Updated-At: 2026-02-17
 * ============================================================
 * Project      : KingRoad / Family King
 * File         : CustomFooter.css
 * Summary      : FACADE - Entry point for modularized footer styles
 * ============================================================ */

/* ============================================================
 * CUSTOM FOOTER - MODULARIZED ARCHITECTURE
 * 
 * This file acts as a FACADE that imports all footer style modules.
 * Original monolithic file (1097 lines) has been refactored into
 * FEATURE-BASED modules following KingRoad modularization standards.
 * 
 * Modules:
 * - customFooterBase.css          (45 lines)  - Container and layout
 * - customFooterHamburgerButton.css (72 lines)  - Hamburger menu
 * - customFooterInfoBar.css       (197 lines) - Info bar metrics
 * - customFooterWaypointsDropup.css (373 lines) - Waypoints panel
 * - customFooterStopsDropupLegacy.css (210 lines) - Legacy compatibility
 * - customFooterWidgetsCarousel.css (181 lines) - Widgets carousel
 * - customFooterResponsive.css    (102 lines) - Media queries
 * 
 * Total: 7 modules, all under 400 lines each
 * ============================================================ */

/* ============================================================
   Draggable Widget - Snap-to-Grid System with Icon Spec
   Triggers: KR_FIX_SNAP_GRID_DRAG_001, KR_UI_ICON_SPEC_001
   ============================================================ */

/* ============================================================
   KR_UI_ICON_SPEC_001: CSS Custom Properties (Defaults)
   These are overridden by inline styles from the component
   ============================================================ */
.draggable-widget {
  /* Default values - overridden by inline style */
  --icon-size: 48px;
  --icon-font-size: 24px;
  --icon-touch-area: 44px;
  
  cursor: grab;
  -webkit-user-select: none;
          user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.draggable-widget:active {
  cursor: grabbing;
}

/* ============================================================
   Widget in Footer (Carousel) - KR_UI_ICON_SPEC_001 Standard
   STEP 3 FIX: Ensure footer buttons are clickable above map
   ============================================================ */
.draggable-widget.footer-btn {
  /* KR_UI_ICON_SPEC_001: Size from CSS variable */
  width: 48px;
  width: var(--icon-size, 48px);
  height: 48px;
  height: var(--icon-size, 48px);
  
  /* Ensure minimum touch area for accessibility */
  min-width: 44px;
  min-width: var(--icon-touch-area, 44px);
  min-height: 44px;
  min-height: var(--icon-touch-area, 44px);
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* KR_UI_ICON_SPEC_001: Standard background and border */
  background: #FFFFFF;
  border: 2px solid #2196F3;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(33, 150, 243, 0.25);
  
  flex-shrink: 0;
  
  transition: all 0.2s ease;
  
  /* STEP 3 FIX: Ensure buttons are clickable above map canvas */
  position: relative;
  z-index: 400;
  pointer-events: auto;
}

.draggable-widget.footer-btn:hover {
  background: #F5F9FF;
  border-color: #1976D2;
  box-shadow: 0 3px 10px rgba(33, 150, 243, 0.4);
  transform: scale(1.05);
}

.draggable-widget.footer-btn:active {
  transform: scale(0.95);
}

/* ============================================================
   Floating Widget on Map - KR_UI_ICON_SPEC_001 Floating
   ============================================================ */
.draggable-widget.floating {
  /* KR_UI_ICON_SPEC_001: Floating size from CSS variable */
  width: 60px;
  width: var(--icon-size, 60px);
  height: 60px;
  height: var(--icon-size, 60px);
  
  /* Ensure minimum touch area */
  min-width: 60px;
  min-width: var(--icon-touch-area, 60px);
  min-height: 60px;
  min-height: var(--icon-touch-area, 60px);
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* KR_UI_ICON_SPEC_001: Floating background with blur */
  background: rgba(40, 40, 40, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  
  /* KR_FIX_SNAP_GRID_DRAG_001: Smooth snap transition */
  transition: left 0.25s ease-out, top 0.25s ease-out, transform 0.2s ease, box-shadow 0.2s ease;
}

.draggable-widget.floating:hover {
  background: rgba(50, 50, 50, 0.98);
  border-color: rgba(59, 130, 246, 0.5);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.draggable-widget.floating:active {
  transform: scale(0.95);
  cursor: grabbing;
}

/* ============================================================
   Widget Icon - KR_UI_ICON_SPEC_001 Font Size
   ============================================================ */
.widget-icon {
  /* KR_UI_ICON_SPEC_001: Font size from CSS variable */
  font-size: 24px;
  font-size: var(--icon-font-size, 24px);
  color: #2196F3;
  line-height: 1;
}

/* Floating widgets have larger icons */
.draggable-widget.floating .widget-icon {
  font-size: 28px;
  font-size: var(--icon-font-size, 28px);
}

/* ============================================================
   KR_FIX_SNAP_GRID_DRAG_001: Visual Feedback During Drag
   ============================================================ */

/* Active drag state - elevated with golden glow */
.draggable-widget.dragging {
  opacity: 0.7;
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.5);
  cursor: grabbing !important;
  z-index: 9999 !important;
}

/* Snap bounce animation when dropped */
.draggable-widget.floating:not(.dragging) {
  animation: snapBounce 0.3s ease-out;
}

@keyframes snapBounce {
  0% {
    transform: scale(1.05);
  }
  50% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}

/* Success highlight when widget snaps to valid position */
.draggable-widget.snap-success {
  animation: snapHighlight 0.4s ease-out;
}

@keyframes snapHighlight {
  0% {
    box-shadow: 0 0 0 4px rgba(0, 255, 0, 0.6);
  }
  100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
}

/* Invalid zone indicator - shake animation */
.draggable-widget.invalid-zone {
  animation: shakeInvalid 0.3s ease;
}

@keyframes shakeInvalid {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ============================================================
   Drop Zone Highlights (Invisible Grid)
   Shown during drag to indicate valid drop positions
   ============================================================ */
.drop-zone-active {
  position: fixed;
  width: 80px;
  height: 80px;
  border: 2px dashed rgba(59, 130, 246, 0.5);
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  pointer-events: none;
  z-index: 899;
  animation: pulseDropZone 1s ease infinite;
}

@keyframes pulseDropZone {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

/* ============================================================
   Custom Content Widget (e.g., Map Style Switcher)
   ============================================================ */
.draggable-widget.custom-content {
  /* Custom widgets maintain their internal styling */
  /* but receive the drag behavior */
}

.draggable-widget.custom-content.dragging {
  opacity: 0.8;
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

/* ============================================================
   Responsive Adjustments
   ============================================================ */
@media (max-width: 768px) {
  .draggable-widget.footer-btn {
    /* Slightly smaller on tablets */
    --icon-size: 44px;
    --icon-font-size: 20px;
  }
  
  .draggable-widget.floating {
    /* Maintain touch area on mobile */
    --icon-size: 56px;
    --icon-font-size: 24px;
  }
}

@media (max-width: 480px) {
  .draggable-widget.footer-btn {
    /* Compact on phones but maintain accessibility */
    --icon-size: 40px;
    --icon-font-size: 18px;
    --icon-touch-area: 44px; /* Never below 44px for touch */
  }
}

/* ============================================================
 * POI Action Modal - TomTom GO Style
 * Dark blue theme with list options
 * ============================================================ */

/* Overlay */
.poi-action-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}

/* Modal Container */
.poi-action-modal {
  width: 420px;
  max-width: 90vw;
  background: #1a4a6e;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: modal-slide-down 0.2s ease-out;
}

@keyframes modal-slide-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Action List */
.poi-action-list {
  padding: 8px 0;
}

/* Action Item */
.poi-action-item {
  display: flex;
  align-items: center;
  gap: 16px;
  
  width: 100%;
  padding: 16px 20px;
  
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  
  color: #ffffff;
  font-size: 18px;
  text-align: left;
  
  cursor: pointer;
  transition: background 0.15s ease;
}

.poi-action-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.poi-action-item:last-child {
  border-bottom: none;
}

/* Action Icon */
.action-icon {
  width: 28px;
  font-size: 22px;
  text-align: center;
  flex-shrink: 0;
}

/* Action Label */
.action-label {
  flex: 1 1;
  font-weight: 500;
}

/* Action Arrow (for submenus) */
.action-arrow {
  font-size: 24px;
  opacity: 0.6;
  margin-left: auto;
}

/* Report Item (warning style) */
.poi-action-item.report-item {
  color: #ffcc00;
}

.poi-action-item.report-item .action-icon {
  color: #ffcc00;
}

/* POI Info Footer */
.poi-action-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  
  padding: 16px 20px;
  background: #0d2b3e;
  border-top: 2px solid #00a8e8;
}

.poi-info {
  flex: 1 1;
  min-width: 0;
}

.poi-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poi-address {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* More Button (3 dots) */
.poi-more-btn {
  width: 44px;
  height: 44px;
  
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  
  color: #ffffff;
  font-size: 24px;
  
  cursor: pointer;
  transition: all 0.15s ease;
  
  display: flex;
  align-items: center;
  justify-content: center;
}

.poi-more-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Add Stop Button */
.poi-add-stop-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  
  padding: 12px 20px;
  
  background: #00a8e8;
  border: none;
  border-radius: 24px;
  
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  
  cursor: pointer;
  transition: all 0.15s ease;
}

.poi-add-stop-btn:hover {
  background: #0090c8;
  transform: scale(1.02);
}

.add-stop-icon {
  font-size: 18px;
}

/* Submenu Header */
.poi-submenu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  
  padding: 14px 20px;
  background: #0d2b3e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.submenu-back-btn {
  background: transparent;
  border: none;
  color: #00a8e8;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.submenu-back-btn:hover {
  background: rgba(0, 168, 232, 0.2);
}

.submenu-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

/* Report Info */
.poi-report-info {
  padding: 12px 20px;
  background: rgba(255, 204, 0, 0.1);
  color: #ffcc00;
  font-size: 13px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .poi-action-modal-overlay {
    padding-top: 80px;
    align-items: flex-start;
  }
  
  .poi-action-modal {
    width: 95vw;
    margin: 0 10px;
  }
  
  .poi-action-item {
    padding: 14px 16px;
    font-size: 16px;
  }
  
  .action-icon {
    font-size: 20px;
  }
  
  .poi-name {
    font-size: 16px;
  }
  
  .poi-add-stop-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* ============================================================
 * File-ID: ui-primitives-css-001
 * Owner: King Group Tech
 * Layer: frontend/components/ui-primitives
 * Feature: UI Primitives - Canonical Design System
 * Status: stable
 * Created-At: 2026-03-23
 * Last-Updated-At: 2026-03-23
 * Trigger: KINGROAD_UI_CANONICAL_LAYOUT_UNIFICATION_MASTER_002
 * ============================================================
 * Project      : KingRoad / Family King
 * File         : ui-primitives.css
 * Summary      : Canonical CSS variables and base styles for UI primitives
 * ============================================================ */

/* ============================================================
 * CANONICAL DESIGN SYSTEM VARIABLES
 * grid_base_px: 4
 * global_visual_spacing_px: 12
 * container_internal_padding_horizontal_px: 12
 * container_internal_padding_vertical_px: 8
 * gap_between_sibling_containers_px: 12
 * ============================================================ */

:root {
  /* Grid Base */
  --ui-grid-base: 4px;
  
  /* Canonical Spacing */
  --ui-spacing-xs: 4px;   /* 1x grid */
  --ui-spacing-sm: 8px;   /* 2x grid */
  --ui-spacing-md: 12px;  /* 3x grid - CANONICAL GAP */
  --ui-spacing-lg: 16px;  /* 4x grid */
  --ui-spacing-xl: 20px;  /* 5x grid */
  --ui-spacing-2xl: 24px; /* 6x grid */
  
  /* Canonical Container Padding */
  --ui-padding-h: 12px;   /* Horizontal padding */
  --ui-padding-v: 8px;    /* Vertical padding */
  
  /* Canonical Gap */
  --ui-gap: 12px;         /* Gap between sibling containers */
  
  /* Border Radius */
  --ui-radius-sm: 4px;
  --ui-radius-md: 8px;
  --ui-radius-lg: 12px;
  --ui-radius-round: 50%;
  
  /* Colors - KingRoad Theme */
  --ui-bg-dark: rgba(26, 26, 26, 0.95);
  --ui-bg-dark-solid: #1a1a1a;
  --ui-bg-beige: #d4b896;
  --ui-border-gold: #FFD700;
  --ui-border-gold-dim: rgba(255, 215, 0, 0.5);
  --ui-text-primary: #ffffff;
  --ui-text-secondary: rgba(255, 255, 255, 0.75);
  --ui-text-muted: rgba(255, 255, 255, 0.5);
  
  /* Hit Target (accessibility) */
  --ui-hit-target-min: 44px;
  
  /* Transitions */
  --ui-transition-fast: 150ms ease;
  --ui-transition-normal: 250ms ease;
}

/* ============================================================
 * BASE UI CONTAINER
 * Foundation for all UI containers
 * ============================================================ */

.ui-base-container {
  display: flex;
  align-items: center;
  justify-content: center;
  
  padding: 8px 12px;
  
  padding: var(--ui-padding-v) var(--ui-padding-h);
  
  background: rgba(26, 26, 26, 0.95);
  
  background: var(--ui-bg-dark);
  border: 2px solid #FFD700;
  border: 2px solid var(--ui-border-gold);
  border-radius: 8px;
  border-radius: var(--ui-radius-md);
  
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  
  color: #ffffff;
  
  color: var(--ui-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================================
 * ACTION CONTAINER
 * For interactive buttons/actions (round style)
 * ============================================================ */

.ui-action-container {
  display: flex;
  align-items: center;
  justify-content: center;
  
  min-width: 44px;
  
  min-width: var(--ui-hit-target-min);
  min-height: 44px;
  min-height: var(--ui-hit-target-min);
  
  padding: 8px;
  
  padding: var(--ui-spacing-sm);
  
  background: rgba(26, 26, 26, 0.95);
  
  background: var(--ui-bg-dark);
  border: 2px solid #FFD700;
  border: 2px solid var(--ui-border-gold);
  border-radius: 50%;
  border-radius: var(--ui-radius-round);
  
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  
  cursor: pointer;
  transition: transform 150ms ease, 
              background 150ms ease,
              box-shadow 150ms ease;
  transition: transform var(--ui-transition-fast), 
              background var(--ui-transition-fast),
              box-shadow var(--ui-transition-fast);
}

.ui-action-container:hover {
  background: rgba(93, 70, 55, 0.9);
  transform: scale(1.05);
}

.ui-action-container:active {
  transform: scale(0.95);
}

.ui-action-container:disabled,
.ui-action-container.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
 * INFO CONTAINER
 * For displaying information (rectangular style)
 * ============================================================ */

.ui-info-container {
  display: flex;
  align-items: center;
  gap: 8px;
  gap: var(--ui-spacing-sm);
  
  padding: 8px 12px;
  
  padding: var(--ui-padding-v) var(--ui-padding-h);
  
  background: rgba(26, 26, 26, 0.95);
  
  background: var(--ui-bg-dark);
  border: 2px solid #FFD700;
  border: 2px solid var(--ui-border-gold);
  border-radius: 8px;
  border-radius: var(--ui-radius-md);
  
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  
  color: #ffffff;
  
  color: var(--ui-text-primary);
  white-space: nowrap;
}

.ui-info-container__icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.ui-info-container__text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.ui-info-container__subtext {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  color: var(--ui-text-secondary);
}

/* ============================================================
 * ADAPTIVE INFO CONTAINER
 * Flexible width with constraints (for next street, user ID, etc.)
 * ============================================================ */

.ui-adaptive-info-container {
  display: flex;
  align-items: center;
  gap: 8px;
  gap: var(--ui-spacing-sm);
  
  padding: 8px 12px;
  
  padding: var(--ui-padding-v) var(--ui-padding-h);
  
  background: rgba(26, 26, 26, 0.95);
  
  background: var(--ui-bg-dark);
  border: 2px solid #FFD700;
  border: 2px solid var(--ui-border-gold);
  border-radius: 8px;
  border-radius: var(--ui-radius-md);
  
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  
  color: #ffffff;
  
  color: var(--ui-text-primary);
  
  /* Adaptive behavior */
  flex: 0 1 auto;
  min-width: 80px;
  max-width: 100%;
  overflow: hidden;
}

.ui-adaptive-info-container--center {
  /* For center-positioned elements (e.g., next street) */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 320px); /* Never overlap left/right groups */
}

.ui-adaptive-info-container__content {
  flex: 1 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-adaptive-info-container__content--scroll {
  /* For long text with horizontal scroll */
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ui-adaptive-info-container__content--scroll::-webkit-scrollbar {
  display: none;
}

/* ============================================================
 * VERTICAL STACK
 * Stack children vertically with canonical gap
 * ============================================================ */

.ui-vertical-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  gap: var(--ui-gap);
}

.ui-vertical-stack--reverse {
  flex-direction: column-reverse;
}

.ui-vertical-stack--align-start {
  align-items: flex-start;
}

.ui-vertical-stack--align-center {
  align-items: center;
}

.ui-vertical-stack--align-end {
  align-items: flex-end;
}

/* ============================================================
 * HORIZONTAL STACK
 * Stack children horizontally with canonical gap
 * ============================================================ */

.ui-horizontal-stack {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  gap: var(--ui-gap);
}

.ui-horizontal-stack--wrap {
  flex-wrap: wrap;
}

.ui-horizontal-stack--justify-start {
  justify-content: flex-start;
}

.ui-horizontal-stack--justify-center {
  justify-content: center;
}

.ui-horizontal-stack--justify-end {
  justify-content: flex-end;
}

.ui-horizontal-stack--justify-between {
  justify-content: space-between;
}

/* ============================================================
 * HEADER BAR ROW
 * Three-group layout: left, center, right
 * ============================================================ */

.ui-header-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  width: 100%;
  height: 100%;
  
  padding: 0 12px;
  
  padding: 0 var(--ui-padding-h);
  box-sizing: border-box;
  
  position: relative;
}

.ui-header-bar-row__left {
  display: flex;
  align-items: center;
  gap: 12px;
  gap: var(--ui-gap);
  z-index: 2;
}

.ui-header-bar-row__center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  
  max-width: calc(100% - 320px);
}

.ui-header-bar-row__right {
  display: flex;
  align-items: center;
  gap: 12px;
  gap: var(--ui-gap);
  z-index: 2;
}

/* ============================================================
 * FOOTER INFO ROW
 * Horizontal row for footer info blocks
 * ============================================================ */

.ui-footer-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  gap: var(--ui-gap);
  
  padding: 0 12px;
  
  padding: 0 var(--ui-padding-h);
  box-sizing: border-box;
}

/* ============================================================
 * SIDEBAR SECTION STACK
 * Vertical stack for sidebar content
 * ============================================================ */

.ui-sidebar-section-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  gap: var(--ui-gap);
  
  padding: 12px;
  
  padding: var(--ui-padding-h);
  box-sizing: border-box;
}

/* ============================================================
 * SIDEBAR BOTTOM CONTROL ROW
 * Horizontal row for speed limit, cancel, current speed
 * CRITICAL: No absolute positioning, no overlap
 * ============================================================ */

.ui-sidebar-bottom-control-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  gap: var(--ui-gap);
  
  width: 100%;
  padding: 0 8px;
  padding: 0 var(--ui-spacing-sm);
  box-sizing: border-box;
}

.ui-sidebar-bottom-control-row > * {
  flex: 0 0 auto; /* No grow, no shrink */
}

/* ============================================================
 * DRAGGABLE CONTAINER (Carousel Items)
 * For drag-and-drop widgets
 * ============================================================ */

.ui-draggable-container {
  display: flex;
  align-items: center;
  justify-content: center;
  
  min-width: 44px;
  
  min-width: var(--ui-hit-target-min);
  min-height: 44px;
  min-height: var(--ui-hit-target-min);
  
  padding: 8px;
  
  padding: var(--ui-spacing-sm);
  
  background: rgba(26, 26, 26, 0.95);
  
  background: var(--ui-bg-dark);
  border: 2px solid rgba(255, 215, 0, 0.5);
  border: 2px solid var(--ui-border-gold-dim);
  border-radius: 8px;
  border-radius: var(--ui-radius-md);
  
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  
  cursor: grab;
  -webkit-user-select: none;
          user-select: none;
  transition: transform 150ms ease,
              box-shadow 150ms ease,
              border-color 150ms ease;
  transition: transform var(--ui-transition-fast),
              box-shadow var(--ui-transition-fast),
              border-color var(--ui-transition-fast);
}

.ui-draggable-container:hover {
  border-color: #FFD700;
  border-color: var(--ui-border-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ui-draggable-container:active,
.ui-draggable-container.dragging {
  cursor: grabbing;
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

/* ============================================================
 * ANCHOR WRAPPERS
 * For positioning stacks relative to screen edges
 * ============================================================ */

.ui-anchor-left {
  position: absolute;
  left: 12px;
  left: var(--ui-spacing-md);
}

.ui-anchor-right {
  position: absolute;
  right: 12px;
  right: var(--ui-spacing-md);
}

.ui-anchor-bottom {
  bottom: 12px;
  bottom: var(--ui-spacing-md);
}

.ui-anchor-top {
  top: 12px;
  top: var(--ui-spacing-md);
}

/* Combined anchors */
.ui-anchor-bottom-left {
  position: absolute;
  left: 12px;
  left: var(--ui-spacing-md);
  bottom: 12px;
  bottom: var(--ui-spacing-md);
}

.ui-anchor-bottom-right {
  position: absolute;
  right: 12px;
  right: var(--ui-spacing-md);
  bottom: 12px;
  bottom: var(--ui-spacing-md);
}

.ui-anchor-top-left {
  position: absolute;
  left: 12px;
  left: var(--ui-spacing-md);
  top: 12px;
  top: var(--ui-spacing-md);
}

.ui-anchor-top-right {
  position: absolute;
  right: 12px;
  right: var(--ui-spacing-md);
  top: 12px;
  top: var(--ui-spacing-md);
}

/* ============================================================
 * File-ID: arrival-side-badge-styles-001
 * Owner: King Group Tech
 * Layer: frontend
 * Feature: POI Arrival Side Community
 * Status: stable
 * Created-At: 2026-02-16
 * Last-Updated-At: 2026-02-16
 * Summary: Styles for arrival side badge and vote UI
 * Trigger: KR_TRIG_ARRIVAL_SIDE_COMMUNITY_LAYERS_V1
 * ============================================================ */

/* Arrival Side Badge - shown on POI cards */
.arrival-side-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.arrival-side-badge--left {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(41, 128, 185, 0.2) 100%);
  border-color: rgba(52, 152, 219, 0.4);
  color: #3498db;
}

.arrival-side-badge--right {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.2) 0%, rgba(39, 174, 96, 0.2) 100%);
  border-color: rgba(46, 204, 113, 0.4);
  color: #2ecc71;
}

.arrival-side-badge--unknown {
  background: rgba(149, 165, 166, 0.2);
  border-color: rgba(149, 165, 166, 0.4);
  color: #95a5a6;
}

.arrival-side-badge__icon {
  font-size: 16px;
}

.arrival-side-badge__text {
  white-space: nowrap;
}

.arrival-side-badge__votes {
  font-size: 11px;
  opacity: 0.8;
}

.arrival-side-badge__confidence {
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

/* Vote Buttons */
.arrival-side-vote {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
}

.arrival-side-vote__title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.arrival-side-vote__subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.arrival-side-vote__buttons {
  display: flex;
  gap: 12px;
}

.arrival-side-vote__btn {
  flex: 1 1;
  padding: 14px 20px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.arrival-side-vote__btn--left {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
}

.arrival-side-vote__btn--left:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.arrival-side-vote__btn--right {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: white;
}

.arrival-side-vote__btn--right:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

.arrival-side-vote__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.arrival-side-vote__btn-icon {
  font-size: 24px;
}

.arrival-side-vote__btn-label {
  font-size: 14px;
  font-weight: 600;
}

/* Disabled state message */
.arrival-side-vote__disabled-msg {
  text-align: center;
  padding: 12px;
  background: rgba(231, 76, 60, 0.1);
  border-radius: 8px;
  color: #e74c3c;
  font-size: 13px;
}

/* Loading state */
.arrival-side-vote__loading {
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.7);
}

/* Success message */
.arrival-side-vote__success {
  text-align: center;
  padding: 16px;
  background: rgba(46, 204, 113, 0.1);
  border-radius: 8px;
  color: #2ecc71;
  font-size: 14px;
}

/* Route info banner when cannot fulfill recommended side */
.arrival-side-route-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(243, 156, 18, 0.15);
  border-left: 3px solid #f39c12;
  border-radius: 0 8px 8px 0;
  margin: 12px 0;
}

.arrival-side-route-info__icon {
  font-size: 20px;
  flex-shrink: 0;
}

.arrival-side-route-info__text {
  flex: 1 1;
  font-size: 13px;
  color: #f39c12;
  line-height: 1.4;
}

.arrival-side-route-info--success {
  background: rgba(46, 204, 113, 0.15);
  border-color: #2ecc71;
}

.arrival-side-route-info--success .arrival-side-route-info__text {
  color: #2ecc71;
}

/* Responsive */
@media (max-width: 480px) {
  .arrival-side-vote__buttons {
    flex-direction: column;
  }
  
  .arrival-side-vote__btn {
    flex-direction: row;
    justify-content: center;
  }
}

/* ============================================================
 * Project      : KingRoad / Family King
 * File-ID      : truckConfigPanel-overlayHeaderSectionNavAndContent-001
 * File         : truckConfigPanel-overlayHeaderSectionNavAndContent.css
 * Owner        : King Group Tech
 * Feature      : Truck Configuration Panel
 * Layer        : /app/kingroad-gps/frontend/src/components/truck-config-panel
 * Status       : stable
 * Summary      : Panel overlay/container, header with title, section navigation tabs, and section content wrapper.
 *                Split from TruckConfigPanel.css (modularization compliance).
 * Created-At   : 2026-02-26
 * Last-Updated : 2026-02-26
 * ============================================================ */

/* Truck Configuration Panel Styles */

.truck-config-panel {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}

/* Section Navigation */
.section-nav {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  overflow-x: auto;
}

.section-nav-btn {
  flex: 1 1;
  min-width: 120px;
  padding: 16px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-bottom: 3px solid transparent;
}

.section-nav-btn:hover {
  background: #e9ecef;
}

.section-nav-btn.active {
  background: white;
  border-bottom-color: #007bff;
}

.section-icon {
  font-size: 1.5rem;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #6c757d;
}

.section-nav-btn.active .section-label {
  color: #007bff;
  font-weight: bold;
}

/* Section Content */
.section-content {
  flex: 1 1;
  padding: 24px;
  overflow-y: auto;
}

.config-section h3 {
  margin: 0 0 16px 0;
  color: #2c3e50;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-description {
  margin: 0 0 24px 0;
  color: #7f8c8d;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #2c3e50;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #007bff;
}

.form-group input.error {
  border-color: #dc3545;
}

.form-group small {
  display: block;
  margin-top: 4px;
  color: #6c757d;
  font-size: 0.8rem;
}

.error-text {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 4px;
  display: block;
}

/* Checkbox Groups */
.checkbox-group {
  margin: 20px 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 12px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.checkbox-label:hover {
  background: #f8f9fa;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #007bff;
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: -2px;
  left: 2px;
  color: #007bff;
  font-weight: bold;
  font-size: 14px;
}


/* ============================================================
 * Project      : KingRoad / Family King
 * File-ID      : truckConfigPanel-formGroupsCheckboxesAndDimensionGrids-001
 * File         : truckConfigPanel-formGroupsCheckboxesAndDimensionGrids.css
 * Owner        : King Group Tech
 * Feature      : Truck Configuration Panel
 * Layer        : /app/kingroad-gps/frontend/src/components/truck-config-panel
 * Status       : stable
 * Summary      : Form group inputs with labels, checkbox group layout, dimension input grids, and dimension preview visual.
 *                Split from TruckConfigPanel.css (modularization compliance).
 * Created-At   : 2026-02-26
 * Last-Updated : 2026-02-26
 * ============================================================ */

/* Grids */
.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 24px;
}

.preferences-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.preference-item {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 16px;
}

.preference-info {
  flex: 1 1;
}

.preference-info strong {
  display: block;
  color: #2c3e50;
  margin-bottom: 4px;
}

.preference-info small {
  color: #6c757d;
}

.fuel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 24px;
}

/* Dimension Preview */
.dimension-preview {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.dimension-preview h4 {
  margin: 0 0 16px 0;
  color: #2c3e50;
}

.truck-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.truck-icon {
  font-size: 3rem;
}

.truck-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px;
  gap: 8px;
  font-family: monospace;
  font-size: 0.9rem;
  color: #495057;
}

/* Fuel Section */
.fuel-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e9ecef;
}

.fuel-section h4 {
  margin: 0 0 16px 0;
  color: #2c3e50;
  font-size: 1.1rem;
}

/* Compliance Info */
.compliance-info {
  margin-top: 24px;
}

.info-card {
  background: #e8f4fd;
  border: 1px solid #bee5eb;
  border-radius: 8px;
  padding: 16px;
}

.info-card h4 {
  margin: 0 0 12px 0;
  color: #0c5460;
  font-size: 1rem;
}

.info-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.info-card li {
  padding: 4px 0;
  color: #0c5460;
  font-size: 0.9rem;
}


/* ============================================================
 * Project      : KingRoad / Family King
 * File-ID      : truckConfigPanel-fuelComplianceActionButtonsAndResponsive-001
 * File         : truckConfigPanel-fuelComplianceActionButtonsAndResponsive.css
 * Owner        : King Group Tech
 * Feature      : Truck Configuration Panel
 * Layer        : /app/kingroad-gps/frontend/src/components/truck-config-panel
 * Status       : stable
 * Summary      : Fuel section inputs, compliance info display, action buttons row (save/cancel), and mobile responsive overrides.
 *                Split from TruckConfigPanel.css (modularization compliance).
 * Created-At   : 2026-02-26
 * Last-Updated : 2026-02-26
 * ============================================================ */

/* Action Buttons */
.config-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.action-buttons {
  display: flex;
  gap: 12px;
}

.back-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.back-btn:hover {
  background: #5a6268;
}

.save-config-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.save-config-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .section-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  
  .section-nav-btn {
    min-width: 100px;
    padding: 12px 8px;
  }
  
  .section-content {
    padding: 16px;
  }
  
  .dimensions-grid {
    grid-template-columns: 1fr;
  }
  
  .fuel-grid {
    grid-template-columns: 1fr;
  }
  
  .compliance-grid {
    grid-template-columns: 1fr;
  }
  
  .truck-visual {
    flex-direction: column;
    gap: 12px;
  }
  
  .truck-specs {
    grid-template-columns: 1fr 1fr;
    justify-items: center;
  }
  
  .config-actions {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .action-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .section-nav-btn {
    min-width: 80px;
    padding: 10px 6px;
  }
  
  .section-icon {
    font-size: 1.2rem;
  }
  
  .section-label {
    font-size: 0.75rem;
  }
  
  .truck-specs {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
/* ============================================================
 * Gamification Badge CSS
 * ABSOLUTE LAW: MUST stay inside the USEFUL AREA
 * ============================================================ */

/* Compact Badge */
.gamification-badge {
  position: fixed;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gamification-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.gamification-badge.top-right {
  /* Positioned more to the left to not interfere */
  top: 100px;
  right: calc(350px + 150px) !important;
  right: calc(var(--sidebar-width, 350px) + 150px) !important; /* Mais para esquerda */
}

.gamification-badge.top-left {
  top: 80px;
  left: 20px;
}

.gamification-badge.hover-only {
  opacity: 0.6;
}

.gamification-badge.hover-only:hover {
  opacity: 1;
}

.gamification-badge .level-icon {
  font-size: 20px;
}

.gamification-badge .level-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.gamification-badge .points {
  font-size: 0.75rem;
  color: #ffd700;
  font-weight: 500;
}

/* New Badge Popup */
.new-badge-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  animation: badge-popup 0.5s ease-out;
}

@keyframes badge-popup {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.1); }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.badge-earned {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 30px;
  background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.4);
}

.badge-earned .badge-icon {
  font-size: 48px;
}

.badge-earned .badge-info {
  display: flex;
  flex-direction: column;
}

.badge-earned .badge-title {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
  font-weight: 500;
}

.badge-earned .badge-name {
  font-size: 1.3rem;
  color: #1a1a2e;
  font-weight: 700;
}

/* Expanded Panel Overlay */
.gamification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.2s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gamification-panel {
  position: relative;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
}

.gamification-panel .close-btn {
  position: absolute;
  top: 16px;
  right: 400px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
}

.gamification-panel .close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Level Section */
.level-section {
  margin-bottom: 24px;
}

.current-level {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.level-icon-large {
  font-size: 48px;
}

.level-details {
  display: flex;
  flex-direction: column;
}

.level-title {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.level-name-large {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffd700;
}

.level-progress {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 12px;
}

.level-progress .progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.level-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ffaa00);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.level-progress .progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.next-level-hint {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Stats Section */
.stats-section {
  margin-bottom: 24px;
}

.stats-section h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 8px;
  gap: 8px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* Badges Section */
.badges-section h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 12px;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 12px;
  gap: 12px;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.badge-item:hover {
  transform: scale(1.05);
}

.badge-item.locked {
  opacity: 0.4;
  filter: grayscale(100%);
}

.badge-item.earned {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 170, 0, 0.1) 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.badge-item .badge-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.badge-item .badge-name {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

/* Responsive */
@media (max-width: 500px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .badges-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gamification-panel {
    padding: 16px;
  }
}

/* ============================================================
 * Project      : KingRoad / Family King
 * File-ID      : kingAssistantSetup-welcomeSectionAndProviderList-001
 * File         : kingAssistantSetup-welcomeSectionAndProviderList.css
 * Owner        : King Group Tech
 * Feature      : King Assistant Setup
 * Layer        : /app/kingroad-gps/frontend/src/components/king-assistant-setup
 * Status       : stable
 * Summary      : Setup wizard welcome section, setup container/overlay styles, and AI provider selection list with cards.
 *                Split from KingAssistantSetup.css (modularization compliance).
 * Created-At   : 2026-02-26
 * Last-Updated : 2026-02-26
 * ============================================================ */

/* King Assistant Setup Styles */
/* Modern, clean wizard interface */

.king-setup {
  background: #ffffff;
  border-radius: 16px;
  padding: 0;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
}

.setup-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #ffffff;
  padding: 24px;
  text-align: center;
}

.setup-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}

.setup-icon.spinning {
  animation: spin 1s linear infinite;
}

.setup-icon.success {
  animation: bounce 0.5s ease;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.setup-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.setup-content {
  padding: 24px;
}

.setup-subtitle {
  color: #5f6368;
  font-size: 14px;
  margin: 0 0 20px 0;
  text-align: center;
}

/* Welcome Section */
.setup-welcome {
  text-align: center;
}

.welcome-text {
  color: #3c4043;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.setup-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 14px;
  color: #3c4043;
}

.benefit-icon {
  font-size: 20px;
}

/* Provider List */
.provider-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.provider-card {
  display: block;
  width: 100%;
  padding: 16px;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.provider-card:hover {
  background: #e8f0fe;
  border-color: #1a73e8;
}

.provider-card.recommended {
  border-color: #34a853;
  background: #e6f4ea;
}

.provider-card.recommended:hover {
  background: #ceead6;
}

.provider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.provider-name {
  font-size: 16px;
  font-weight: 600;
  color: #202124;
}

.free-badge {
  background: #34a853;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.provider-desc {
  font-size: 13px;
  color: #5f6368;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.provider-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  font-size: 11px;
  color: #1a73e8;
  background: rgba(26, 115, 232, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
}


/* ============================================================
 * Project      : KingRoad / Family King
 * File-ID      : kingAssistantSetup-apiKeyInputAndValidatingState-001
 * File         : kingAssistantSetup-apiKeyInputAndValidatingState.css
 * Owner        : King Group Tech
 * Feature      : King Assistant Setup
 * Layer        : /app/kingroad-gps/frontend/src/components/king-assistant-setup
 * Status       : stable
 * Summary      : API key input form with provider-specific instructions, test button states, and validating progress indicator.
 *                Split from KingAssistantSetup.css (modularization compliance).
 * Created-At   : 2026-02-26
 * Last-Updated : 2026-02-26
 * ============================================================ */

/* API Key Input */
.provider-selected {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #e8f0fe;
  border-radius: 8px;
  margin-bottom: 20px;
}

.selected-label {
  font-size: 13px;
  color: #5f6368;
}

.selected-provider {
  font-size: 14px;
  font-weight: 600;
  color: #1a73e8;
}

.api-key-instructions {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.api-key-instructions p {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #5f6368;
}

.setup-link {
  display: block;
  color: #1a73e8;
  font-size: 13px;
  word-break: break-all;
  margin-bottom: 12px;
}

.setup-link:hover {
  text-decoration: underline;
}

.key-format {
  font-size: 12px !important;
  color: #80868b !important;
  margin: 0 !important;
}

.key-format code {
  background: #e8eaed;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.api-key-input-group {
  margin-bottom: 20px;
}

.api-key-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #3c4043;
  margin-bottom: 8px;
}

.api-key-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  border: 2px solid #e8eaed;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  font-family: monospace;
  box-sizing: border-box;
}

.api-key-input:focus {
  border-color: #1a73e8;
}

.api-key-input::placeholder {
  color: #9aa0a6;
  font-family: monospace;
}

.error-message {
  margin-top: 12px;
  padding: 12px;
  background: #fce8e6;
  color: #c5221f;
  border-radius: 8px;
  font-size: 13px;
}

/* Validating */
.validating-message {
  text-align: center;
  padding: 40px 0;
}

.validating-message p {
  color: #5f6368;
  font-size: 14px;
  margin-bottom: 20px;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.loading-dots span {
  width: 10px;
  height: 10px;
  background: #1a73e8;
  border-radius: 50%;
  animation: loading-dot 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes loading-dot {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Success */
.success-message {
  text-align: center;
  padding: 20px 0;
}

.success-message p {
  color: #3c4043;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.success-provider {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #e6f4ea;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  color: #137333;
}

.success-icon {
  font-size: 24px;
}


/* ============================================================
 * Project      : KingRoad / Family King
 * File-ID      : kingAssistantSetup-successActionsAndResponsive-001
 * File         : kingAssistantSetup-successActionsAndResponsive.css
 * Owner        : King Group Tech
 * Feature      : King Assistant Setup
 * Layer        : /app/kingroad-gps/frontend/src/components/king-assistant-setup
 * Status       : stable
 * Summary      : Setup success confirmation state, action buttons footer, and mobile responsive overrides.
 *                Split from KingAssistantSetup.css (modularization compliance).
 * Created-At   : 2026-02-26
 * Last-Updated : 2026-02-26
 * ============================================================ */

/* Actions */
.setup-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-primary {
  padding: 12px 24px;
  background: #1a73e8;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #1557b0;
}

.btn-primary:disabled {
  background: #9aa0a6;
  cursor: not-allowed;
}

.btn-secondary {
  padding: 12px 24px;
  background: transparent;
  color: #5f6368;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #f1f3f4;
  color: #3c4043;
}

.btn-back {
  padding: 12px 24px;
  background: transparent;
  color: #5f6368;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-back:hover {
  color: #202124;
}

/* Responsive */
@media (max-width: 480px) {
  .king-setup {
    border-radius: 0;
    max-width: 100%;
  }
  
  .setup-header {
    padding: 20px 16px;
  }
  
  .setup-content {
    padding: 20px 16px;
  }
  
  .setup-actions {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-back {
    width: 100%;
  }
}

/* Voice Input Component Styles */
/* Modern microphone button with listening animation */

.voice-input {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.voice-input.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Main Button */
.voice-input-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.voice-input-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.voice-input-btn:active {
  transform: translateY(0);
}

.voice-input-btn.active {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
  animation: pulse-btn 1.5s infinite;
}

@keyframes pulse-btn {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(231, 76, 60, 0.6);
  }
}

.mic-icon {
  font-size: 20px;
}

.mic-label {
  font-size: 14px;
}

/* Listening Indicator */
.listening-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pulse-ring {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 3px solid rgba(231, 76, 60, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 1.5s infinite;
}

.pulse-ring.delay-1 {
  animation-delay: 0.3s;
}

.pulse-ring.delay-2 {
  animation-delay: 0.6s;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Transcript Preview */
.transcript-preview {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  white-space: nowrap;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: fade-in 0.2s ease;
}

.transcript-preview::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 400px solid transparent;
  border-top: 8px solid #1a1a2e;
}

.transcript-text {
  font-style: italic;
  color: #a0a0c0;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Error Message */
.voice-error {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #fce8e6;
  color: #c5221f;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
  max-width: 280px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Unsupported Browser */
.voice-input-unsupported {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 1px solid #dadce0;
  border-radius: 8px;
  color: #5f6368;
  font-size: 13px;
}

.unsupported-icon {
  font-size: 20px;
  opacity: 0.5;
}

.unsupported-text {
  flex: 1 1;
  line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .voice-input-btn {
    padding: 14px 16px;
  }
  
  .mic-label {
    display: none;
  }
  
  .mic-icon {
    font-size: 24px;
  }
  
  .transcript-preview {
    max-width: 200px;
    font-size: 13px;
  }
}

/**
 * Voice Player Styles
 */

.voice-player {
  margin-top: 12px;
}

.voice-play-button,
.voice-stop-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #4285f4;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.voice-play-button:hover,
.voice-stop-button:hover {
  background: #3367d6;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(66, 133, 244, 0.3);
}

.voice-play-button:active,
.voice-stop-button:active {
  transform: translateY(0);
}

.voice-stop-button {
  background: #ea4335;
}

.voice-stop-button:hover {
  background: #d33b2c;
}

.voice-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
}

.voice-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.voice-player-unsupported {
  padding: 12px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  color: #856404;
  font-size: 13px;
  margin-top: 12px;
}

/* ============================================================
 * Project      : KingRoad / Family King
 * File-ID      : kingAssistantModal-headerSetupHistoryPanelAndSettings-001
 * File         : kingAssistantModal-headerSetupHistoryPanelAndSettings.css
 * Owner        : King Group Tech
 * Feature      : King Assistant Modal
 * Layer        : /app/kingroad-gps/frontend/src/components/king-assistant-modal
 * Status       : stable
 * Summary      : King-assistant modal overlay, header, setup-modal variant, history button, conversation history panel with messages list, empty history state, and settings panel.
 *                Split from KingAssistantModal.css (modularization compliance).
 * Created-At   : 2026-02-26
 * Last-Updated : 2026-02-26
 * ============================================================ */

/**
 * King Assistant Modal Styles
 * Alexa-style interface with modern design
 */

.king-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 700; /* King assistant modal overlay - normalized from 10000 */
  animation: king-fade-in 0.2s ease;
  pointer-events: none; /* Allow drag events to pass through overlay */
}

@keyframes king-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.king-modal {
  /* CRITICAL CHANGE: Safe beige background - NOT WHITE */
  background: #f5f5dc; /* Bege suave - seguro para motoristas */
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  animation: king-slide-up 0.3s ease;
  pointer-events: auto; /* Modal content captures events */
}

@keyframes king-slide-up {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Header */
.king-modal-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.king-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
}

.king-crown {
  font-size: 28px;
}

.king-modal-actions {
  display: flex;
  gap: 8px;
}

.king-settings-btn,
.king-close-btn,
.king-reconfigure-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.king-settings-btn:hover,
.king-close-btn:hover,
.king-reconfigure-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Setup Modal Variant */
.king-modal-setup {
  max-width: 500px;
  position: relative;
}

.king-close-btn-floating {
  position: absolute;
  top: 16px;
  right: 400px;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 10;
}

.king-close-btn-floating:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* History Button */
.king-history-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  height: 36px;
  padding: 0 12px;
  border-radius: 18px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.king-history-btn:hover,
.king-history-btn.active {
  background: rgba(255, 255, 255, 0.3);
}

.king-history-btn.active {
  background: rgba(255, 215, 0, 0.3);
}

.history-badge {
  background: #ff6b6b;
  color: white;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Conversation History Panel */
.king-history-panel {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #e0e0e0;
  max-height: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #eee;
}

.history-header h3 {
  margin: 0;
  font-size: 15px;
  color: #333;
  font-weight: 600;
}

.clear-history-btn {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.clear-history-btn:hover {
  background: #ffc107;
  color: #212529;
}

/* Empty History State */
.history-empty {
  padding: 30px 20px;
  text-align: center;
  color: #888;
}

.history-empty .empty-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
  opacity: 0.5;
}

.history-empty p {
  margin: 0;
  font-size: 14px;
}

/* History Messages List */
.history-messages {
  flex: 1 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.history-entry {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.history-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.history-user-msg,
.history-assistant-msg {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.history-user-msg .msg-icon,
.history-assistant-msg .msg-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.history-user-msg {
  background: #e3f2fd;
  padding: 10px 12px;
  border-radius: 12px 12px 12px 4px;
}

.history-user-msg .msg-text {
  font-size: 13px;
  color: #1565c0;
  line-height: 1.4;
}

.history-assistant-msg {
  background: #f5f5f5;
  padding: 10px 12px;
  border-radius: 12px 12px 4px 12px;
}

.history-assistant-msg .msg-content {
  flex: 1 1;
}

.history-assistant-msg .msg-text {
  font-size: 13px;
  color: #333;
  line-height: 1.4;
  display: block;
}

.history-assistant-msg .msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.history-assistant-msg .query-type {
  background: #667eea;
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.history-assistant-msg .msg-time {
  font-size: 11px;
  color: #999;
}

/* Modal with History - larger size */
.king-modal-with-history {
  max-height: 90vh;
}

/* Settings Panel */
.king-settings-panel {
  padding: 20px 24px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.king-settings-panel h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: #333;
}

.setting-group {
  margin-bottom: 16px;
}

.setting-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.setting-group select,
.setting-group input[type="range"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.setting-group input[type="checkbox"] {
  margin-right: 400px;
}

/* Content */
.king-modal-content {
  padding: 24px;
  overflow-y: auto;
  flex: 1 1;
}

/* ============================================================
 * Project      : KingRoad / Family King
 * File-ID      : kingAssistantModal-contentInputAreaResponseAndResponsive-001
 * File         : kingAssistantModal-contentInputAreaResponseAndResponsive.css
 * Owner        : King Group Tech
 * Feature      : King Assistant Modal
 * Layer        : /app/kingroad-gps/frontend/src/components/king-assistant-modal
 * Status       : stable
 * Summary      : Content container, multi-line input area with send button, response display area with markdown support, and responsive breakpoint overrides.
 *                Split from KingAssistantModal.css (modularization compliance).
 * Created-At   : 2026-02-26
 * Last-Updated : 2026-02-26
 * ============================================================ */

/* Input Area */
.king-welcome {
  text-align: center;
  margin-bottom: 24px;
}

.king-wave {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
  animation: king-wave 1s ease infinite;
}

@keyframes king-wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  75% { transform: rotate(-20deg); }
}

.king-welcome p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

.king-question-input {
  width: 100%;
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.king-question-input:focus {
  outline: none;
  border-color: #667eea;
}

.king-error {
  margin-top: 12px;
  padding: 12px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  color: #856404;
  font-size: 14px;
}

.king-input-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.king-input-hint {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: #666;
}

.king-send-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.king-send-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.king-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

@keyframes king-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Response Area */
.king-question-echo {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 20px;
}

.king-question-echo strong {
  display: block;
  margin-bottom: 8px;
  color: #667eea;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.king-question-echo p {
  margin: 0;
  color: #555;
  font-size: 15px;
}

.king-response-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
}

.king-response-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.king-crown-small {
  font-size: 20px;
}

.king-query-type {
  margin-left: auto;
  padding: 4px 12px;
  background: #e8eaf6;
  color: #5e35b1;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.king-response-text {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 16px;
}

.king-response-meta {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
  font-size: 13px;
  color: #888;
}

.king-response-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.king-new-question-btn {
  padding: 12px 24px;
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.king-new-question-btn:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .king-modal {
    width: 95%;
    max-height: 90vh;
  }

  .king-modal-content {
    padding: 16px;
  }

  .king-welcome p {
    font-size: 14px;
  }
}

/* Toggle Switch Component - TomTom Style */

.toggle-switch-container {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.toggle-label {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

/* Toggle Switch Button */
.toggle-switch {
  position: relative;
  width: 56px;
  height: 32px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-switch:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Slider Track */
.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(120, 120, 120, 0.5); /* Gray when OFF */
  border: 2px solid rgba(150, 150, 150, 0.6);
  border-radius: 32px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

/* Knob */
.toggle-knob {
  position: absolute;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Checked State (Blue - TomTom Style) */
.toggle-switch.checked .toggle-slider {
  background: rgba(0, 150, 255, 0.9); /* Blue when ON */
  border-color: rgba(0, 180, 255, 1);
}

.toggle-switch.checked .toggle-knob {
  transform: translateX(24px);
  box-shadow: 0 2px 6px rgba(0, 150, 255, 0.5);
}

/* Hover Effect */
.toggle-switch:not(.disabled):hover .toggle-slider {
  background: rgba(140, 140, 140, 0.6);
}

.toggle-switch.checked:not(.disabled):hover .toggle-slider {
  background: rgba(0, 170, 255, 1);
}

/* Active/Pressed Effect */
.toggle-switch:not(.disabled):active .toggle-knob {
  width: 28px;
}

/* Disabled State */
.toggle-switch.disabled .toggle-slider {
  background: rgba(80, 80, 80, 0.4);
  border-color: rgba(100, 100, 100, 0.4);
}

.toggle-switch.disabled .toggle-knob {
  background: #999999;
}

/* Focus State (Accessibility) */
.toggle-switch:focus {
  outline: none;
}

.toggle-switch:focus .toggle-slider {
  box-shadow: 0 0 0 3px rgba(0, 150, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .toggle-switch {
    width: 50px;
    height: 28px;
  }

  .toggle-knob {
    width: 22px;
    height: 22px;
  }

  .toggle-switch.checked .toggle-knob {
    transform: translateX(22px);
  }
}

/* Add POI Modal Styles */

.add-poi-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 710; /* Add POI modal overlay - normalized from 10001 */
  animation: fadeIn 0.2s ease-out;
}

.add-poi-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 720; /* Add POI modal - normalized from 10002 */
  animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.add-poi-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px 12px 0 0;
}

.add-poi-icon {
  font-size: 28px;
}

.add-poi-header h2 {
  flex: 1 1;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.add-poi-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.add-poi-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.add-poi-form {
  padding: 24px;
}

.add-poi-error {
  background-color: #fee;
  border: 1px solid #fcc;
  color: #c33;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

.add-poi-coordinates {
  background-color: #f5f5f5;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  font-family: monospace;
  color: #666;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
}

.form-group input[type="text"]:disabled,
.form-group textarea:disabled,
.form-group select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.form-group textarea {
  resize: vertical;
  font-family: inherit;
}

.form-group-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.checkbox-label:hover {
  background-color: #f5f5f5;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.checkbox-label span {
  font-size: 14px;
  color: #333;
}

.add-poi-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-primary,
.btn-secondary {
  flex: 1 1;
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: white;
  color: #666;
  border: 1px solid #ddd;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #f5f5f5;
  border-color: #999;
}

.add-poi-note {
  margin-top: 16px;
  padding: 12px;
  background-color: #e3f2fd;
  border-left: 4px solid #2196f3;
  border-radius: 4px;
  font-size: 13px;
  color: #0d47a1;
}

/* 🔍 KingRoad GPS - Address Search Styles */
/* Light theme for compact search bar */

.address-search {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Input styling */
.address-input {
  flex: 1 1;
  padding: 0;
  background: transparent;
  border: none;
  color: #202124;
  font-size: 16px;
  font-weight: 400;
  outline: none;
  min-width: 0;
}

.address-input::placeholder {
  color: #5f6368;
}

.address-input:focus {
  outline: none;
}

/* Clear button and loading */
.search-clear,
.search-loading {
  flex-shrink: 0;
  padding: 4px 8px;
  background: transparent;
  border: none;
  color: #5f6368;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.search-clear:hover {
  color: #202124;
}

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

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Suggestions Dropdown - Light Theme */
.suggestions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: slideDown 0.2s ease-out forwards;
  opacity: 1;
}

@keyframes slideDown {
  from { 
    opacity: 0; 
    transform: translateY(-10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.suggestions-dropdown::-webkit-scrollbar {
  width: 6px;
}

.suggestions-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.suggestions-dropdown::-webkit-scrollbar-thumb {
  background: #dadce0;
  border-radius: 3px;
}

.suggestions-dropdown::-webkit-scrollbar-thumb:hover {
  background: #bdc1c6;
}

/* Section styling */
.suggestions-section {
  border-bottom: 1px solid #f1f3f4;
}

.suggestions-section:last-child {
  border-bottom: none;
}

.section-header {
  padding: 12px 16px 8px;
  color: #5f6368;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f8f9fa;
}

/* Suggestion item */
.suggestion-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  border-left: 3px solid transparent;
}

.suggestion-item:hover {
  background: #f8f9fa;
  border-left-color: #1a73e8;
}

.suggestion-item.city:hover,
.suggestion-item.locality:hover {
  border-left-color: #34a853;
}

.suggestion-item.street_address:hover,
.suggestion-item.route:hover {
  border-left-color: #4285f4;
}

.suggestion-item.postal_code:hover {
  border-left-color: #9334ea;
}

.suggestion-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.suggestion-content {
  flex: 1 1;
  min-width: 0;
}

.suggestion-name {
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-meta {
  font-size: 12px;
  color: #5f6368;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Search footer */
.search-footer {
  padding: 10px 16px;
  background: #f8f9fa;
  border-top: 1px solid #e8eaed;
}

.search-tip {
  font-size: 12px;
  color: #5f6368;
}

/* No results state */
.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
}

.no-results-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.no-results-text {
  font-size: 14px;
  font-weight: 500;
  color: #5f6368;
  margin: 0 0 4px 0;
}

.no-results-tip {
  font-size: 12px;
  color: #9aa0a6;
  margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .address-input {
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  .suggestions-dropdown {
    max-height: 300px;
  }
  
  .suggestion-item {
    padding: 14px 12px;
  }
}

/* ============================================================
 * PONTO EXATO - Coordinate Detection Styles
 * LEI ABSOLUTA: Coordenadas sempre no TOPO da lista
 * ============================================================ */

.exact-point-section {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-bottom: 2px solid #4caf50 !important;
}

.exact-point-header {
  background: #4caf50 !important;
  color: white !important;
  font-weight: 700 !important;
}

.exact-point-item {
  background: rgba(255, 255, 255, 0.9) !important;
  border-left: 4px solid #4caf50 !important;
  position: relative;
}

.exact-point-item:hover {
  background: rgba(255, 255, 255, 1) !important;
  border-left-color: #2e7d32 !important;
}

.exact-point-icon {
  font-size: 24px !important;
  color: #4caf50;
}

.exact-point-name {
  font-weight: 700 !important;
  color: #1b5e20 !important;
  font-size: 15px !important;
}

.exact-point-meta {
  color: #388e3c !important;
  font-style: italic;
}

.exact-point-badge {
  position: absolute;
  right: 400px;
  top: 50%;
  transform: translateY(-50%);
  background: #4caf50;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =========================================================================
 * File: frontend/src/components/AddressSearch-inputAndDropdownAffordances.css
 * Project: KingRoad GPS
 * Module: components/AddressSearch (input + dropdown affordances layer)
 * Description: Modern visual affordances for the AddressSearch React
 *              component — search input row, search input, country flag
 *              button, clear button, country picker dropdown, suggestions
 *              dropdown, suggestion-address subtitle, no-results hint and
 *              road-ref badge. Extracted from AddressSearch.css under the
 *              KR_SINGLETON_SERVICE_MODULARIZATION_NO_ESCAPE_005 contract
 *              (file was 464 ln, in the 421-470 STRUCTURAL_MODULARIZATION
 *              range). Legacy classes (.address-search, .address-input,
 *              .suggestion-item, .exact-point-badge, etc.) stay in
 *              AddressSearch.css — both files are co-imported by the
 *              component, behaviour is preserved 1:1.
 * Trigger: KR_ADDRESS_SEARCH_AFFORDANCES_STRUCTURAL_MODULARIZATION_2026_05_07
 * Owner: King Group Tech
 * Layer: frontend/components
 * Created: 2026-05-07
 * Anti-Pattern: contains only real CSS rules — no synthetic, dummy or
 *                generated values, no commented-out experimental code.
 * Language: English only
 * ========================================================================= */

.search-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.search-input-row:focus-within {
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
}

.search-input {
  flex: 1 1;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: none;
  color: #202124;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  outline: none;
}

.search-input::placeholder {
  color: #5f6368;
}

.search-input:focus {
  outline: none;
}

.country-flag-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.country-flag-btn:hover {
  background: #f1f3f4;
}

.country-flag-btn--override {
  border-color: #1a73e8;
  background: rgba(26, 115, 232, 0.08);
}

.clear-search-btn {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  color: #5f6368;
  cursor: pointer;
  font-size: 14px;
  border-radius: 50%;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.clear-search-btn:hover {
  background: #f1f3f4;
  color: #202124;
}

.country-picker-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 280px;
  margin: 0;
  padding: 6px 0;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(60, 64, 67, 0.15);
  list-style: none;
  overflow-y: auto;
}

.suggestions-list {
  position: absolute;
  z-index: 25;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 360px;
  margin: 0;
  padding: 4px 0;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(60, 64, 67, 0.15);
  list-style: none;
  overflow-y: auto;
}

.suggestion-address {
  display: block;
  font-size: 12px;
  color: #5f6368;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-results-hint {
  display: block;
  font-size: 12px;
  color: #5f6368;
  margin-top: 4px;
  font-style: italic;
}

.road-ref-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  background: #e8f0fe;
  color: #1a73e8;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ============================================================
 * Compact Search Bar - TomTom EXACT Replica
 * Measurements taken from TomTom GPS screenshot
 * ============================================================ */

.compact-search-bar {
  position: fixed;
  top: 103px; /* Pre-clamp baseline — reference 1080x1920 */
  left: 15px;
  z-index: 1100; /* Increased from 850 to be above map controls (1000) but below modals (2000+) */
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

/* TomTom EXACT measurements */
.search-button-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  
  /* Width aligned with dropdown button below */
  min-width: 170px;
  height: 50px; /* Pre-clamp baseline */
  padding: 0 20px;
  
  /* TomTom exact colors */
  background: #F5F5F5;
  border: 2px solid #2196F3; /* Blue border like left icons */
  border-radius: 25px; /* Pill shape - half of height */
  
  /* TomTom exact shadow */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
  pointer-events: auto;
}

.search-button-compact:hover {
  box-shadow: 0 3px 6px rgba(33, 150, 243, 0.25);
  transform: scale(1.01);
  border-color: #1976D2;
}

.search-button-compact:active {
  transform: scale(0.99);
}

/* TomTom exact icon - 24x24px SVG */
.search-button-compact .search-icon-svg {
  width: 24px;
  height: 24px;
  color: #555555;
  flex-shrink: 0;
}

/* TomTom exact text - 17px, dark grey */
.search-button-compact .search-text {
  font-size: 17px;
  font-weight: 400;
  color: #555555;
  flex: 1 1;
  text-align: left;
}

/* Mobile adjustments - maintain proportions */
@media (max-width: 768px) {
  .compact-search-bar {
    top: 75px;
    left: 10px;
  }
  
  .search-button-compact {
    width: 280px;
    height: 46px;
    padding: 0 12px;
    border-radius: 23px;
  }
  
  .search-button-compact .search-icon-svg {
    width: 22px;
    height: 22px;
  }
  
  .search-button-compact .search-text {
    font-size: 15px;
  }
}

/* ============================================================
 * EXPANDABLE SEARCH MODES PANEL - REMOVED (now in ExpandableSearchPanel)
 * ============================================================ */


/* ============================================================
 * Expandable Search Panel - KingRoad GPS (TomTom Dark Theme)
 * File-ID: expandable-search-panel-css-001
 * Owner: King Group Tech
 * Summary: Two-column search panel with dark theme
 * Created: 2026-02-12
 * ============================================================ */

/* Overlay - covers the map area */
.expandable-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
  animation: fadeIn 0.2s ease-out;
}

/* Hidden state: keeps component mounted in DOM to avoid React reconciliation crash */
.expandable-search-overlay.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Main Panel - Dark theme */
.expandable-search-panel {
  background: #1a1a2e;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 900px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Header */
.search-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-panel-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon {
  font-size: 20px;
}

.search-panel-header .close-panel-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-panel-header .close-panel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Content - Two columns */
.search-panel-content {
  display: flex;
  flex: 1 1;
  overflow: hidden;
  min-height: 400px;
}

/* Left Sidebar - Mode List */
.search-modes-sidebar {
  width: 200px;
  min-width: 200px;
  background: #16213e;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  overflow-y: auto;
}

.sidebar-title {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  letter-spacing: 0.5px;
}

.modes-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mode-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
  color: rgba(255, 255, 255, 0.7);
}

.mode-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.mode-item.active {
  background: rgba(26, 115, 232, 0.2);
  border-left: 3px solid #1a73e8;
  color: #ffffff;
}

.mode-item.main-mode {
  font-weight: 500;
}

.mode-icon {
  font-size: 18px;
}

.mode-label {
  font-size: 14px;
}

/* Right Area - Forms */
.search-forms-area {
  flex: 1 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #1a1a2e;
}

/* Form styles extracted to: ExpandableSearchPanelForms.css */

/* Empty State */
.empty-state {
  padding: 32px 16px;
  text-align: center;
}

.empty-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.empty-hint {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Recent List */
.recent-list {
  list-style: none;
  margin: 0;
  padding: 8px;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  color: rgba(255, 255, 255, 0.8);
}

.recent-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.recent-icon {
  font-size: 16px;
}

.recent-icon-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.recent-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1;
}

.recent-name {
  font-size: 14px;
  color: #ffffff;
}

.recent-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .expandable-search-overlay {
    padding: 60px 10px 10px;
  }
  
  .expandable-search-panel {
    max-height: calc(100vh - 80px);
  }
  
  .search-panel-content {
    flex-direction: column;
    min-height: auto;
  }
  
  .search-modes-sidebar {
    width: 100%;
    min-width: 100%;
    max-height: 140px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .modes-list {
    display: flex;
    flex-wrap: wrap;
    padding: 8px;
    gap: 6px;
  }
  
  .mode-item {
    padding: 8px 12px;
    border-bottom: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
  }
  
  .mode-item.active {
    border-left: none;
  }
  
  .address-grid,
  .coords-grid,
  .postal-grid,
  .poi-grid {
    grid-template-columns: 1fr;
  }
  
  .search-btn {
    width: 100%;
    margin-top: 8px;
  }
}

/* Error message for postal code validation */
.search-error-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-top: 8px;
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.4);
  border-radius: 8px;
  color: #ff6b7a;
  font-size: 0.85rem;
  line-height: 1.3;
}

.search-error-message .error-icon {
  flex-shrink: 0;
  font-size: 1rem;
}

.search-error-message .error-text {
  flex: 1 1;
}

/* ========== Google Search Form ========== */
.google-search-card {
  position: relative;
}

.google-grid {
  grid-template-columns: 1fr;
}

.field-google input {
  width: 100%;
  font-size: 0.95rem;
}

.google-loading {
  padding: 8px 12px;
  color: #888;
  font-size: 0.85rem;
  text-align: center;
}

.google-suggestions {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.suggestion-item {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s;
}

.suggestion-item:hover {
  background: rgba(66, 133, 244, 0.15);
}

.suggestion-main {
  font-weight: 600;
  font-size: 0.9rem;
  color: #e0e0e0;
}

.suggestion-secondary {
  font-size: 0.78rem;
  color: #999;
  margin-top: 2px;
}

/* ============================================================
 * Expandable Search Panel - Form Styles (KingRoad GPS)
 * File-ID: expandable-search-panel-forms-css-001
 * Owner: King Group Tech
 * Summary: Form card, field groups, grids, buttons, and instructions
 * Extracted from: ExpandableSearchPanel.css (modularization by responsibility)
 * Created: 2026-02-18
 * ============================================================ */

/* Form Card - Dark */
.search-form-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-icon {
  font-size: 20px;
}

.form-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

/* Form Fields */
.form-fields {
  padding: 16px;
}

/* Address Grid - # | Street | City | Prov | Country | Search */
.address-grid {
  display: grid;
  grid-template-columns: 70px 1fr 120px 80px 120px 50px;
  grid-gap: 10px;
  gap: 10px;
  align-items: end;
}

/* Coordinates Grid - Lat | Long | Search */
.coords-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 50px;
  grid-gap: 10px;
  gap: 10px;
  align-items: end;
}

/* Postal Grid - # | Postal Code | Search */
.postal-grid {
  display: grid;
  grid-template-columns: 80px 1fr 50px;
  grid-gap: 10px;
  gap: 10px;
  align-items: end;
}

/* Postal Grid V2 - Flag | Postal Code | # | Search */
.postal-grid-v2 {
  display: grid;
  grid-template-columns: 48px 1fr 80px 50px;
  grid-gap: 10px;
  gap: 10px;
  align-items: end;
}

/* POI Grid */
.poi-grid {
  display: grid;
  grid-template-columns: 1fr 50px;
  grid-gap: 10px;
  gap: 10px;
  align-items: end;
}

/* Field Group */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-group label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.3px;
}

.field-group input {
  height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-group input:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
  outline: none;
}

.field-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Search Button */
.search-btn {
  height: 40px;
  width: 50px;
  background: linear-gradient(135deg, #1a73e8 0%, #1565c0 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.search-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

.search-btn:active {
  transform: scale(0.98);
}

.search-btn:disabled {
  background: linear-gradient(135deg, #555 0%, #444 100%);
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}

/* Point on Map Instructions */
.form-instructions {
  padding: 24px 16px;
  text-align: center;
}

.instruction-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.instruction-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 12px;
  line-height: 1.5;
}

.instruction-tip {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 20px;
  font-style: italic;
}

.start-selection-btn {
  background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
  border: none;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.start-selection-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* ============================================================
 * PostalCountryDropdown - Flag dropdown for postal code country
 * File-ID: postal-country-dropdown-css-001
 * Owner: King Group Tech
 * Dark theme matching ExpandableSearchPanel
 * Created: 2026-02-20
 * ============================================================ */

.postal-country-dropdown {
  position: relative;
  display: flex;
  align-items: flex-end;
}

/* Compact flag button */
.postal-flag-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.postal-flag-btn:hover {
  border-color: #1a73e8;
  background: rgba(255, 255, 255, 0.08);
}

.postal-flag-btn.has-country {
  border-color: rgba(76, 175, 80, 0.5);
  background: rgba(76, 175, 80, 0.08);
}

.postal-flag-btn.detecting {
  opacity: 0.6;
  pointer-events: none;
}

.postal-flag-emoji {
  font-size: 22px;
  line-height: 1;
}

/* Dropdown list */
.postal-country-list {
  position: absolute;
  top: 44px;
  left: 0;
  z-index: 1000;
  width: 240px;
  max-height: 280px;
  overflow-y: auto;
  background: #1e1e2e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  padding: 4px;
}

.postal-country-list::-webkit-scrollbar {
  width: 6px;
}

.postal-country-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

/* Each country option */
.postal-country-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.15s ease;
}

.postal-country-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.postal-country-option.active {
  background: rgba(76, 175, 80, 0.15);
  color: #81c784;
}

.option-flag {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.option-name {
  font-size: 13px;
  font-weight: 500;
  flex: 1 1;
}

.option-code {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

/* Mobile */
@media (max-width: 480px) {
  .postal-country-list {
    width: 220px;
    max-height: 240px;
  }

  .postal-flag-btn {
    width: 44px;
    height: 38px;
  }

  .postal-flag-emoji {
    font-size: 20px;
  }
}

/**
 * King Assistant Button Styles
 * TomTom style - matching CompactSearchBar + blue border
 */

.king-assistant-button {
  display: flex;
  align-items: center;
  gap: 10px;
  
  /* TomTom exact height - same as SearchBar */
  height: 50px;
  padding: 0 15px;
  
  /* TomTom exact colors - translucent */
  background: #F5F5F5;
  border: 2px solid #2196F3; /* Blue border like left icons */
  border-radius: 25px; /* Pill shape */
  
  /* TomTom exact shadow */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.king-assistant-button:hover {
  background: #EEEEEE;
  box-shadow: 0 3px 6px rgba(33, 150, 243, 0.25);
  transform: translateY(-1px);
  border-color: #1976D2;
}

.king-assistant-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.king-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
}

.king-text {
  color: #555555;
  font-size: 17px;
  font-weight: 400;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

/* Pulse animation to attract attention */
.king-assistant-button.pulse {
  animation: king-pulse 1s ease-in-out;
}

@keyframes king-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.35);
  }
}

/* Responsive: Hide text on small screens */
@media (max-width: 768px) {
  .king-text {
    display: none;
  }
  
  .king-assistant-button {
    height: 46px;
    padding: 0 12px;
    border-radius: 23px;
    justify-content: center;
  }
  
  .king-icon {
    font-size: 22px;
  }
}

.login-form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.login-form-card {
  background: white;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
}

.login-form-title {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 24px;
  font-weight: 600;
}

.login-form-error {
  background-color: #fee;
  border: 1px solid #fcc;
  color: #c33;
  padding: 12px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-form-group label {
  font-weight: 500;
  color: #555;
  font-size: 14px;
}

.login-form-group input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.login-form-group input:focus {
  outline: none;
  border-color: #667eea;
}

.login-form-group input:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.login-form-button {
  padding: 14px;
  min-height: 44px; /* WCAG touch target minimum */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
  margin-top: 10px;
}

.login-form-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.login-form-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-form-footer {
  margin-top: 20px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

.login-form-link {
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
  text-decoration: underline;
}

.login-form-link:hover:not(:disabled) {
  color: #764ba2;
}

.login-form-link:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.register-form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.register-form-card {
  background: white;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 500px;
}

.register-form-title {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 24px;
  font-weight: 600;
}

.register-form-error {
  background-color: #fee;
  border: 1px solid #fcc;
  color: #c33;
  padding: 12px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 14px;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.register-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.register-form-group label {
  font-weight: 500;
  color: #555;
  font-size: 14px;
}

.register-form-group input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.register-form-group input:focus {
  outline: none;
  border-color: #667eea;
}

.register-form-group input:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.register-form-group small {
  color: #888;
  font-size: 12px;
}

.register-form-button {
  padding: 14px;
  min-height: 44px; /* WCAG touch target minimum */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
  margin-top: 10px;
}

.register-form-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.register-form-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.register-form-footer {
  margin-top: 20px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

.register-form-link {
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
  text-decoration: underline;
}

.register-form-link:hover:not(:disabled) {
  color: #764ba2;
}

.register-form-link:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
