/**

 * UglyMugs Safety Web App - Custom Styles

 * 

 * Minimal CSS for app-specific functionality and overrides

 */



/* Suppress browser CSS warnings */

@supports (-webkit-text-size-adjust: 100%) {

  html {

    -webkit-text-size-adjust: 100%;

  }

}



@supports (-ms-text-size-adjust: 100%) {

  html {

    -ms-text-size-adjust: 100%;

  }

}



/* CSS Reset and normalization */

*,

*::before,

*::after {

  box-sizing: border-box;

}



/* Text size adjust moved to @supports blocks above */



/* iOS Safe Area Support */

.safe-area-top {

  padding-top: env(safe-area-inset-top);

}



.safe-area-bottom {

  padding-bottom: env(safe-area-inset-bottom);

}



/* Header system adjustments */

#main-header {
  z-index: 9999 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);

}

main{
  /*background: linear-gradient(168.21deg, #E9F3FF 0%, #FFF6F9 99.66%);*/
  position: relative !important;
}
main:before{
  content: "" !important;
  background: url(../../assets/main-bg.png);
  position: absolute;
  left: 0;
  bottom: 0;
  width: 185px;
  height: 212px;
}
body{
  position: relative;
  background: linear-gradient(168.21deg, #E9F3FF 0%, #FFF6F9 99.66%);
}
body:after{
  content: "" !important;
  background: url(../../assets/main-bg-top.png);
  position: fixed;
  right: 0;
  top: 0;
  width: 185px;
  height: 197px;
  z-index: 2;
}
main > div {
    z-index: 99 !important;
    position: relative;
}

#page-header {
  z-index: 9999 !important;
  top: 4rem; /* 64px - height of main header */

}



@media (max-width: 767px) {

  #page-header {

    top: 4rem;

  }

}



/* Prevent zoom on input focus for iOS */

@media screen and (max-width: 767px) {

  input[type="text"],

  input[type="email"],

  input[type="password"],

  input[type="tel"],

  select,

  textarea {

    font-size: 16px !important;

  }

}



/* Custom scrollbar for webkit browsers */

::-webkit-scrollbar {

  width: 4px;

}



::-webkit-scrollbar-track {

  background: transparent;

}



::-webkit-scrollbar-thumb {

  background-color: rgba(0, 0, 0, 0.2);

  border-radius: 2px;

}



/* Focus styles */

.focus-ring:focus {

  outline: 2px solid #c5002e;

  outline-offset: 2px;

}



/* Animation for screen transitions */

.screen-transition {

  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;

}



.screen-enter {

  opacity: 0;

  transform: translateX(100%);

}



.screen-enter-active {

  opacity: 1;

  transform: translateX(0);

}



.screen-exit {

  opacity: 1;

  transform: translateX(0);

}



.screen-exit-active {

  opacity: 0;

  transform: translateX(-100%);

}



/* Auth form switching animation */

.auth-form {

  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;

}



.auth-form.hidden {

  display: none;

}



.auth-form.active {

  display: block;

}



/* Navigation active state */

.nav-item.active {

  color: #EE1B57 !important;

}



/* Toast container positioning */

#toast-container {

  position: fixed !important;

  top: calc(4rem + 3rem + 1rem) !important; /* Main header + page header + spacing */

  right: 1rem !important;

  left: 1rem !important;

  z-index: 9998 !important;

  pointer-events: none !important;

  max-width: calc(100vw - 2rem) !important;

}



/* Individual toast styling */

.toast {

  transform: translateX(calc(100% + 1rem));

  opacity: 0;

  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  max-width: 420px;

  z-index: 9999;

  margin-left: auto;

  margin-right: 0;

  pointer-events: auto;

}



.toast.show {

  transform: translateX(0);

  opacity: 1;

}



.toast.success {

  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);

  border: 1px solid #bbf7d0;

  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  border-radius: 0.75rem;

  padding: 1rem;

  background-color: white;

}



.toast.error {

  background: linear-gradient(135deg, #fef2f2 0%, #fef7f7 100%);

  border: 1px solid #fecaca;

  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  border-radius: 0.75rem;

  padding: 1rem;

  background-color: white;

}



.toast.warning {

  background: linear-gradient(135deg, #fffbeb 0%, #fefce8 100%);

  border: 1px solid #fed7aa;

  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  border-radius: 0.75rem;

  padding: 1rem;

  background-color: white;

}



.toast.info {

  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);

  border: 1px solid #bfdbfe;

  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  border-radius: 0.75rem;

  padding: 1rem;

  background-color: white;

}



/* Loading spinner for buttons */

.btn-loading {

  position: relative;

  color: transparent !important;

}



.btn-loading::after {

  content: "";

  position: absolute;

  width: 16px;

  height: 16px;

  top: 50%;

  left: 50%;

  margin-left: -8px;

  margin-top: -8px;

  border: 2px solid transparent;

  border-top-color: currentColor;

  border-radius: 50%;

  animation: spin 1s linear infinite;

}



/* Keyframe animations */

@keyframes spin {

  0% {

    transform: rotate(0deg);

  }

  100% {

    transform: rotate(360deg);

  }

}



@keyframes fadeIn {

  from {

    opacity: 0;

    transform: translateY(10px);

  }

  to {

    opacity: 1;

    transform: translateY(0);

  }

}



@keyframes slideUp {

  from {

    transform: translateY(100%);

    opacity: 0;

  }

  to {

    transform: translateY(0);

    opacity: 1;

  }

}



/* Utility classes */

.fade-in {

  animation: fadeIn 0.3s ease-out;

}



.slide-up {

  animation: slideUp 0.3s ease-out;

}



/* Bottom navigation specific styles */
@media (max-width: 580px){
  #bottom-nav {

    position: fixed !important;

    bottom: 0 !important;

    left: 0 !important;

    right: 0 !important;

    z-index: 9999 !important;

    /*background: #FFFFFFB2 !important;

    border-top: 1px solid #e5e7eb !important;


    box-shadow: 0 -2px 8px 0 rgba(0, 0, 0, 0.15) !important; */

    height: 5rem !important;
    display: flex !important;

    backdrop-filter: none !important;

    opacity: 1 !important;

  }
}


/* Disable nav during auth */

#bottom-nav.disabled {

  pointer-events: none;

  opacity: 0.5;

}



#bottom-nav.disabled .nav-item {

  cursor: not-allowed;

}



/* Ensure nav items are properly spaced */

#bottom-nav .nav-item {

  display: flex !important;

  flex-direction: column !important;

  align-items: center !important;

  justify-content: center !important;

  padding: 0.375rem 0.75rem !important; /* More horizontal padding for spacing */

  min-height: 64px !important; /* Reduced to fit new nav height */

  /*flex: 1 !important;*/

  margin: 0 0.25rem !important; /* Add margin between nav items */

  border-radius: 0.5rem !important;

  transition: all 0.2s ease-in-out !important;
  min-width: 64px;
  /*aspect-ratio: 1/1;*/

}



/* Icon styling within nav items */

#bottom-nav .nav-item svg {

  width: 1.25rem !important; /* Slightly smaller icons */

  height: 1.25rem !important;

}



/* Text styling within nav items */

#bottom-nav .nav-item span {

  /*font-size: 0.625rem !important; */
  /* Smaller text */

  font-weight: 500 !important;

  line-height: 1 !important;

}



/* Hover and active states */

#bottom-nav .nav-item:hover {

  background-color: rgba(197, 0, 46, 0.1) !important;

  transform: translateY(-1px) !important;

}



#bottom-nav .nav-item.active{
  background-color: #EE1B571A !important;
}



#bottom-nav .nav-item.active svg,

#bottom-nav .nav-item.active span {

  color: #EE1B57 !important;

}



/* Ensure main content has bottom padding for nav */

#page-content {

  /*padding-bottom: 5rem !important; */
  /* 80px - adjusted for new nav height */

}



/* Better touch targets for mobile */

@media (hover: none) and (pointer: coarse) {

  button,

  .nav-item,

  .btn-icon {

    min-height: 44px;

    min-width: 44px;

  }

}



/* Dark mode support */

@media (prefers-color-scheme: dark) {

  :root {

    color-scheme: dark;

  }

}

/* New Start  */
/* Theme System */
.theme-dark {
  color-scheme: dark;
}

.theme-dark body {
  background-color: #1a1a1a;
  color: #e5e5e5;
}

.theme-dark main {
  background: linear-gradient(168.21deg, #1e293b 0%, #334155 99.66%);
}

.theme-dark #main-header {
  background-color: #1f2937;
  border-bottom-color: #374151;
}

.theme-dark #bottom-nav {
  background: #1f2937B2 !important;
  border-top-color: #374151 !important;
}

.theme-dark .bg-white {
  background-color: #1f2937;
}

.theme-dark .text-gray-900 {
  color: #f9fafb;
}

.theme-dark .text-gray-700 {
  color: #d1d5db;
}

.theme-dark .text-gray-600 {
  color: #9ca3af;
}

.theme-dark .border-gray-300 {
  border-color: #4b5563;
}

.theme-dark .border-gray-200 {
  border-color: #374151;
}

.theme-dark .bg-gray-50 {
  background-color: #111827;
}

.theme-dark .bg-gray-100 {
  background-color: #1f2937;
}

.theme-dark input,
.theme-dark select,
.theme-dark textarea {
  background-color: #1f2937;
  border-color: #4b5563;
  color: #f9fafb;
}

.theme-dark input:focus,
.theme-dark select:focus,
.theme-dark textarea:focus {
  border-color: #EE1B57;
  box-shadow: 0 0 0 2px rgba(238, 27, 87, 0.2);
}

.theme-dark .card-shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
}

.theme-dark .toast.success {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  border-color: #047857;
  color: #d1fae5;
}

.theme-dark .toast.error {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
  border-color: #dc2626;
  color: #fecaca;
}

.theme-dark .toast.warning {
  background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
  border-color: #d97706;
  color: #fed7aa;
}

.theme-dark .toast.info {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  border-color: #3b82f6;
  color: #bfdbfe;
}


/* New End here */

/* High contrast mode support */

@media (prefers-contrast: high) {

  .border-gray-200 {

    border-color: #000000;

  }

  

  .border-gray-300 {

    border-color: #000000;

  }

}



/* Reduced motion support */

@media (prefers-reduced-motion: reduce) {

  *,

  *::before,

  *::after {

    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;

  }

}



/* Menu slide animation */

#menu-overlay {

  backdrop-filter: blur(4px);

}



#menu-overlay .transform {

  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);

}



/* Button loading state improvements */

.btn-loading::after {

  border-top-color: rgba(255, 255, 255, 0.8);

  border-right-color: rgba(255, 255, 255, 0.2);

  border-bottom-color: rgba(255, 255, 255, 0.2);

  border-left-color: rgba(255, 255, 255, 0.2);

}



/* Form input styling improvements */

input:focus,

select:focus,

textarea:focus {

  box-shadow: 0 0 0 2px rgba(197, 0, 46, 0.1);

  border-color: #c5002e;

}



/* App icon styling */

.app-icon {

  transition: transform 0.2s ease-in-out;

}



.app-icon:hover {

  transform: scale(1.05);

}



/* Better card shadows */

.card-shadow {

  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);

}



.card-shadow:hover {

  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

}



/* Print styles */

@media print {

  .fixed,

  .sticky,

  #bottom-nav,

  #app-header,

  .toast,

  #menu-overlay {

    display: none !important;

  }

  

  #page-content {

    padding-bottom: 0 !important;

  }

} 



form .field.required label::after {

    content: " *";

    color: red;

}
/*custom checkbox for registration page starts here*/
  .chk-red{
    --chk-color: #c8102e;
    display:inline-flex;
    align-items:center;
    gap:.5rem;
    cursor:pointer;
    user-select:none;
    font-family: sans-serif;
  }

  .chk-red__input{
    position:absolute;
    opacity:0;
    /*width:0;
    height:0;*/
    pointer-events: none;
    width: 1px;
    height: 1px;
  }

  .chk-red__box{
    width:20px;
    height:20px;
    border: 2px solid #ccc; 
    border-radius:4px;
    background:#fff;
    position:relative;
    transition: all 0.2s ease-in-out;
  }

  /* when checked → red border + red tick */
  .chk-red__input:checked + .chk-red__box {
    border-color: var(--chk-color);
  }

  .chk-red__input:checked + .chk-red__box::after{
      content: "";
      position: absolute;
      /*left: 7px;
      top: -5px;*/
      left: 5px;
      top: -1px;
      width: 8px;
      height: 16px;
      border-right: 3px solid var(--chk-color);
      border-bottom: 3px solid var(--chk-color);
      transform: rotate(45deg);
      background: #fff;
  }

  .chk-red__input:focus-visible + .chk-red__box{
    outline:2px solid #94a3b8;
    outline-offset:2px;
  }

  .custom-checkbox-field {
      display: flex;
      gap: 10px;
      align-items: normal;
  }
/*custom checkbox for registration page ends here*/



/* Wrapper */
.tooltip {
  position: relative;
  display: inline-block;
}

/* Icon style */
.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #e5e7eb; /* light gray */
  color: #374151;           /* dark gray text */
  font-size: 12px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.tooltip-icon:hover {
  background-color: #d1d5db; /* slightly darker on hover */
}

/* Tooltip text */
.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%; /* above icon */
  left: 50%;
  transform: translateX(-50%);
  background-color: #111827; /* dark background */
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  min-width: 220px;
  max-width: 260px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: 10;
}

/* Arrow */
.tooltip::before {
  content: "";
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #111827 transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

/* Show tooltip on hover */
.tooltip:hover::after,
.tooltip:hover::before {
  opacity: 1;
}

.tooltippassword{
  position: absolute;
  top: -4px;
  right: 0;
}

form .field.required #incident-type-checkboxes label::after{content: '';}

/* Login Style start here */
.form-filed{
  position: relative;
}
.form-filed .ab-lable{
  position: absolute;
  top: -10px;
  left: 20px;
  width: fit-content;
  background: #fff;
  padding: 0 20px;
  margin: 0;
}
#phone-check-form button,
#login-btn{
  /*min-width: 330px;*/
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
}
/* Login Style end here */


/* Global Color */
.bg-gray-light{
  background-color: #FFFFFF4D !important;
}
.bg-primary-500{
  background-color:rgb(238 27 87) !important;
}
.hover\:bg-primary-600:hover{
  background-color:rgb(255 69 112) !important;
}
.text-primary-600,
.text-primary-500{
  color:rgb(238 27 87) !important;
}
.hover\.text-primary-600:hover,
.hover\:text-primary-600:hover{
  color:rgb(255 69 112) !important;
}

.bg-white-light{
  background: #FFFFFFB2 !important;
}
.hover\:border-border-primary:hover{
  border-color: #EE1B574D !important;
}

.hover\:bg-gray-100:hover {
  background-color: #EE1B571A !important;
  color:rgb(238 27 87) !important;
}

.box-shadow{
  box-shadow: 0px 4px 7px 0px #EE1B570F;
}

.card-hover:hover .bg-gray-100{
    background-color: #EE1B571A !important;
    color: rgb(238 27 87) !important;
}

.text-li-grey{
  color: #333333;
}

#location-sort-reports{
  background: url(../../assets/filter.svg);
  background-position: 90% 14px;
  background-repeat:no-repeat;
  -webkit-appearance: none;
  -moz-appearance: none;
}
#report-form.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0;
}

@media (max-width: 768px){
  .bg-respo-white{
    background-color: #ffffff80 !important;
  }
  .bg-respo-white div.icon-box{
    background-color: #EE1B571A !important;
    color: #EE1B57;
  }
  .bg-respo-white div.icon-box svg{
    color: #EE1B57;
  }
  .bg-respo-white div p{
    color: #797774;
  }
  .bg-respo-white div h2{
    color: #333333;
  }
}

/* Custom CSS to hide the scrollbar without affecting scrolling functionality */
.scrollbar-hide::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Ensure the arrows are on top of the content */
.arrow-overlay {
    z-index: 10;
}

/* Location Points Slider Styles */
.loactions-points {
  position: relative;
  width: 100%;
  padding: 0 40px;
  /*background: #f8f9fa;
  border-radius: 0.75rem;
  padding: 0.5rem 0;*/
}

.loactions-points #category-scroll-container {
  width: 100%;
  display: inline-flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 0.5rem;
  padding: 0.75rem 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.loactions-points #category-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.loactions-points #category-scroll-container button {
  flex-shrink: 0;
  padding: 10px 20px;
  font-size: 14px;
  line-height: 1;
  font-weight: 400;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
  background-color: #7977741A;
  color: #797774;
  min-width: fit-content;
  height: auto !important;
  min-height: inherit;
  max-width: 100%;
  text-wrap: auto;
}

.loactions-points #category-scroll-container button:hover {
  background-color: #FEE9EF;
  transform: translateY(-1px);
}

.loactions-points #category-scroll-container button.active {
  background-color: #FEE9EF;
  color: #EE1B57;
}

.loactions-points .arrow-overlay {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #FEE9EF;
  backdrop-filter: blur(4px);
  border: none;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.loactions-points .arrow-overlay:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.05);
}

.loactions-points .arrow-overlay:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%) scale(0.95);
}

.loactions-points .arrow-overlay svg {
  color: #EE1B57;
}

.loactions-points #scroll-left-btn {
  left: 5px;
}

.loactions-points #scroll-right-btn {
  right: 5px;
}

/* Mobile specific styles */
@media (max-width: 1023px) {
  
  .loactions-points .arrow-overlay {
    display: flex;
  }
}

/* Desktop styles - hide arrows and allow wrapping */
@media (min-width: 640px) {
  .loactions-points {
    background: transparent;
    padding: 0;
  }
  
  .loactions-points #category-scroll-container {
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 0.5rem 0;
  }
  
  .loactions-points .arrow-overlay {
    display: none;
  }
}
@media (max-width: 639px){
  .loactions-points #category-scroll-container button {
    flex-shrink: 1;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 400;
  }
  .box-shadow.bg-transperent{
    box-shadow: none !important;
  }
  #bottom-nav .nav-item{
    padding: 0.375rem 0.35rem !important;
    min-height: 50px !important;
    min-width: 50px;
  }
}


.bg-info{
  background-color: #FEE9EF;
}