/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 */
 * It is generally better to create a new file per style scope.
 *

 *= require actiontext
 *= require application.tailwind
 *= require photo_reorder
 *= require_self
 */

/* Override Tailwind's focus styles for Polaris inputs */
.Polaris-TextField input:focus,
.Polaris-TextField input:focus-visible,
.Polaris-Select select:focus,
.Polaris-Select select:focus-visible,
.Polaris-Combobox input:focus,
.Polaris-Combobox input:focus-visible,
.Polaris-DatePicker input:focus,
.Polaris-DatePicker input:focus-visible {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--p-focused) !important;
  ring: none !important;
  --tw-ring-offset-shadow: none !important;
  --tw-ring-shadow: none !important;
}

/* Ensure Polaris focus styles are preserved */
.Polaris-TextField--focus,
.Polaris-Select--focus,
.Polaris-Combobox--focus,
.Polaris-DatePicker--focus {
  border: none !important;
  box-shadow: var(--p-focused-shadow) !important;
  border-color: var(--p-focused) !important;
}

@font-face {
  font-family: "Dubai";
  src: url(/assets/dubai-font/Dubai-Regular.woff) format("woff"),
    url(/assets/dubai-font/Dubai-Regular.ttf) format("truetype"),
    url(/assets/dubai-font/Dubai-Light.woff) format("woff"),
    url(/assets/dubai-font/Dubai-Light.ttf) format("truetype")
      url(/assets/dubai-font/Dubai-Bold.woff) format("woff"),
    url(/assets/dubai-font/Dubai-Bold.ttf) format("truetype"),
    url(/assets/dubai-font/Dubai-Medium.woff) format("woff"),
    url(/assets/dubai-font/Dubai-Medium.ttf) format("truetype");
  font-weight: normal;
  font-style: normal;
}


.Polaris-DropZone-FileUpload img {
  display: block !important;
  margin: 0 auto !important;
}

.Polaris-DropZone-FileUpload {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.Polaris-Navigation__NewTag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  width: 40px;
  padding: 0 0.8rem;
  border-radius: var(--p-border-radius-base);
  color: var(--p-text);
  outline: 0.1rem solid transparent;
  background-color: #89f274;
  margin-top: 0.5rem;
  animation: prominentAnimation 2s;
  font-size: 1.2rem;
}

.Polaris-Navigation__ProTag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  width: 40px;
  padding: 0 0.8rem;
  border-radius: var(--p-border-radius-base);
  color: var(--p-text);
  outline: 0.1rem solid transparent;
  background-color: #469fd8;
  margin-top: 0.5rem;
  animation: prominentAnimation 2s;
  font-size: 1.2rem;
}

@keyframes prominentAnimation {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

.Polaris-Navigation__SecondaryIcon {
  margin-top: 0.8rem;
}

.subdue {
  filter: none;
}

tbody.subdued .Polaris-IndexTable__TableCell:first-child {
  padding-left: 3.2rem;
}

.subdue .Polaris-IndexTable__TableCell:first-child {
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 0;
  position: relative;
}
.subdue .Polaris-IndexTable__TableCell:not(:first-child) {
  position: relative;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.subdue .Polaris-IndexTable__TableCell:not(:first-child):after {
  background-color: var(--p-divider);
  content: "";
  display: block;
  height: 1px;
  left: 0;
  top: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
}
.subdue .Polaris-IndexTable__TableCell:first-child div {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  position: relative;
}
.subdue .Polaris-IndexTable__TableCell:first-child div:after {
  background-color: var(--p-divider);
  content: "";
  display: block;
  height: 1px;
  left: 0;
  top: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
}
.optgroup-header {
  font-weight: bold;
  color: black;
}
.create-items-modal {
  transform: translate(0%, 0%);
  transition: all 0.4s ease-in-out;
}
.create-items-modal.Polaris--hidden {
  transform: translate(-100%, 0%);
  display: block !important;
}

.create-items-modal .Polaris-Modal-Dialog__Modal {
  max-width: 90vw !important;
  max-height: 100vh;
  margin: 0;
}

.auto-schedules-modal .Polaris-Modal-Dialog__Modal {
  max-width: 95vw !important;
  max-height: 100vh;
}

.auto-schedules-modal td:not(:first-child) {
  padding: 0.4rem 0.1rem;
}
.standard-radius {
  border-radius: var(--p-border-radius-wide);
}

.Polaris-Icon--sizeSmall {
  width: 1.5rem !important;
  height: 1.5rem !important;
}

.Polaris-Icon--sizeMedium {
  width: 2rem !important;
  height: 2rem !important;
}

.Polaris-Icon--sizeLarge {
  width: 2.5rem !important;
  height: 2.5rem !important;
}

.Polaris-Icon--sizeXLarge {
  width: 4rem !important;
  height: 4rem !important;
}

.Polaris-Icon--sizeJumbo {
  width: 8rem !important;
  height: 8rem !important;
}


.Polaris-Thumbnail--sizeExtraLarge {
  width: 10rem;
}

.Polaris-Thumbnail--sizeJumbo {
  width: 12rem;
}

.update-widget-modal {
  transform: translate(0%, 0%);
  transition: all 0.4s ease-in-out;
}
.update-widget-modal.Polaris--hidden {
  transform: translate(100%, 0);
  display: flex !important;
}

.update-widget-modal .Polaris-Modal-Dialog__Modal {
  width: 40vw !important;
  min-height: 100vh;
  margin: 0;
  border-radius: 0;
  margin-left: auto;
}

@media (max-width: 600px) {
  .update-widget-modal .Polaris-Modal-Dialog__Modal {
    position: fixed;
    top: 1rem;
    z-index: 1000;
    width: 96vw !important;
    min-height: 96vh;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Timeline Container */
.timeline {
  position: relative;
}

/* Timeline Item */
.timeline-item {
  position: relative;
  padding: 0px;
  margin-left: 30px;
  margin-bottom: 20px;
}

/* Timeline Item Content */
.timeline-content {
  margin-left: 10px;
}

/* Add circle marker to the timeline item */
.timeline-item::before {
  content: " ";
  position: absolute;
  top: 20px;
  left: -30px;
  width: 15px;
  height: 15px;
  background-color: #3833e3; /* Adjust the color as needed */
  border: 3px solid #9b97fa; /* Adjust the border color as needed */
  border-radius: 50%;
}

/* Clearfix for floating elements within the timeline item */
.timeline-item::after {
  content: "";
  display: table;
  clear: both;
}
.timeline-item-container .timeline-item {
  position: relative;
  /* margin-left: 30px; */
}
.timeline-item-container .timeline-item:not(:last-child) .line {
  content: "";
  /* draw a line on left side */
  position: absolute;
  top: 40px;
  left: -23px;
  width: 1px;
  height: calc(100% - 20px);
  background: #bbb; /* Adjust the color as needed */
}

.Polaris-Avatar {
  border-radius: 1rem !important;
}
.Polaris-TopBar-UserMenu__Details {
  padding: 0 0.625rem 0 0.125rem !important;
}
.Polaris-TopBar-UserMenu__Name {
  color: var(--p-text-light) !important;
}
.Polaris-TopBar-UserMenu__Detail {
  color: var(--p-text-light) !important;
}

.Polaris-TopBar-Menu__ActivatorWrapper {
  margin-right: 1rem;
}

.Polaris-Avatar--sizeXLarge {
  width: 5rem !important;
  height: 5rem !important;
}

.Polaris-Icon--colorWhite svg {
  fill: rgba(255, 255, 255, 1) !important;
}

.simple-calendar table {
  max-width: 100%;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  border: 1px solid #ddd;
  background-color: transparent;
  box-sizing: border-box;
}

.simple-calendar th {
  border-radius: 10px;
  padding: 20px;
  @media (max-width: 570px) {
    padding: 4px;
  }
  text-align: left;
  color: #333;
  text-transform: uppercase;
  border-left: 0;
  border-right: 0;
  font-weight: 700;
  box-sizing: border-box;
}

.simple-calendar td {
  padding: 3px;
  @media (max-width: 570px) {
    padding: 3px;
  }
  vertical-align: top;
  width: 40px;
  border: 0.5px solid #ddd;
  background-color: #fff;
}

.simple-calendar .calendar-heading {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.simple-calendar .calendar-heading .calendar-title {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  font-size: 20px;
  font-weight: 800;
}

.simple-calendar .day {
  height: 80px;
  font-size: 16px;
}

.simple-calendar .today {
  background: #0055a4;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
}

.simple-calendar .prev-month,
.simple-calendar .next-month {
  background: #f2f2f2;
  color: #828282;
}

.custom-tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.custom-tooltip:before {
  content: attr(title);
  position: absolute;
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.custom-tooltip:hover:before {
  opacity: 1;
  visibility: visible;
}

.table-tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-tooltip:before {
  content: attr(title);
  position: absolute;
  background-color: #f0f0f0; /* Changed background color */
  color: #000; /* Changed text color */
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.1s ease-in-out;
  top: -30px; /* Adjusted position to be on top */
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.table-tooltip:hover:before {
  /* opacity: 1; */
  /* visibility: visible; */
}

.Polaris-Page > .Polaris-Page-Header {
  @media (max-width: 768px) {
    padding-left: 0px;
    padding-right: 0px;
  }
}
.Polaris-Navigation.wide {
  max-width: 100%;
}

.bg-white {
  background-color: white !important;
}

.brand_color {
  width: 80px; /* Adjust the width as needed */
  height: 80px; /* Adjust the height as needed */
  border: 1px solid #ccc; /* Add a border if desired */
  border-radius: 5px; /* Add rounded corners if desired */
}

.Polaris-Icon--sizeExtraSmall {
  width: 1rem !important;
  height: 1rem !important;
}

.Polaris-CalloutCard__Image {
  width: 20rem;
}

.Polaris-Badge--sizeLarge {
  font-size: 1.8rem !important;
}

/* make it responsive for mobiles */
.layout-responsive {
  min-width: 60rem;
}

@media (max-width: 48.0625em) {
  .layout-responsive {
    min-width: 100vw;
  }
}
@media (max-width: 48.0625em) {
  .Polaris-Page {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

.tabs-container {
  display: flex;
  justify-content: space-between; /* Applies only when container class is present */
}

.Polaris-ProgressBar--colorNegative {
  --p-progressbar-background: #ffb5b1;
  --p-progressbar-indicator: #ff584f;
}

@media (max-width: 48.0625em) {
  .Polaris-Tabs-container {
    overflow: hidden; /* Hide the horizontal scrollbar */
    position: relative; /* Needed for the absolute positioning of the gradient */
    width: 100%; /* Container takes the full width */
    border-top-right-radius: inherit;
    border-top-left-radius: inherit;
  }

  .Polaris-Tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important; /* Enables horizontal scrolling */
    overflow-y: hidden !important; /* Hides vertical scrollbar */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
  }

  .Polaris-Tabs::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
  }

  .Polaris-Tabs-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 30px; /* Width of the left gradient effect */
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.1),
      rgba(255, 255, 255, 0)
    );
    border-radius: inherit;
    pointer-events: none; /* Allows clicks to pass through */
    z-index: 1;
  }

  .Polaris-Tabs-container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    width: 70px; /* Width of the right gradient effect */
    background: linear-gradient(
      to left,
      rgba(0, 0, 0, 0.1),
      rgba(255, 255, 255, 0)
    );
    pointer-events: none; /* Allows clicks to pass through */
    z-index: 1;
  }
}

html[dir="rtl"] .Polaris-Choice__Control {
  margin-right: 0;
  margin-left: 0.8rem;
}

html[dir="rtl"] .Polaris-Navigation__Item {
  text-align: right;
}

html[dir="rtl"] .Polaris-Navigation__Icon {
  margin-left: 1.6rem;
}

html[dir="rtl"]
  .Polaris-Navigation__SecondaryNavigation
  .Polaris-Navigation__Item {
  padding-left: 0;
  padding-right: 4.8rem;
}
html[dir="rtl"] .Polaris-Page-Header__RightAlign {
  margin-left: 0;
  margin-right: 1.6rem;
}
html[dir="rtl"] .Polaris-Banner--withinPage .Polaris-Banner__Ribbon {
  padding-left: 1.6rem;
  padding-right: 0;
}
html[dir="rtl"] .Polaris-TopBar__LogoContainer {
  padding-left: 0;
  padding-right: calc(1.6rem + env(safe-area-inset-left));
}
html[dir="rtl"] .Polaris-TopBar-Menu__ActivatorWrapper {
  margin-right: 0;
  margin-left: 1rem;
}
.text-end {
  text-align: right !important;
}
.text-start {
  text-align: left !important;
}

html[dir="rtl"] .text-end {
  text-align: left !important;
}
html[dir="rtl"] .text-start {
  text-align: right !important;
}

html[dir="rtl"] .Polaris-Button__Icon {
  margin-left: 0;
  margin-right: -0.4rem;
}

@media (min-width: 48.0625em) {
  html[dir="rtl"] .Polaris-Frame--hasNav .Polaris-Frame__Main {
    padding-left: 0;
    padding-right: calc(24rem + env(safe-area-inset-left));
  }

  html[dir="rtl"] .Polaris-Frame__Navigation {
    left: auto;
    right: var(--p-frame-offset);
  }
  html[dir="rtl"] .Polaris-Page-Header__PrimaryActionWrapper {
    margin-left: 0;
    margin-right: 1.6rem;
  }
}
.Polaris-Card__Header .Polaris-Icon.Polaris-Icon--sizeLarge {
  cursor: move;
}

.ts-wrapper {
  z-index: 99;
}

.rating {
  display: inline-block;
  unicode-bidi: bidi-override;
  color: #888888;
  font-size: 18px;
  height: 25px;
  width: auto;
  margin: 0;
  position: relative;
  padding: 0;
}

.rating-upper {
  color: #feb734;
  padding: 0;
  position: absolute;
  z-index: 1;
  display: flex;
  top: 0;
  left: 0;
  overflow: hidden;
}

.rating-lower {
  padding: 0;
  display: flex;
  z-index: 0;
}

span.h-card.signature.ck-widget {
  font-size: 1.2rem;
  width: 150px;
  height: 100px;
  display: inline-block;
  text-align: center; /* Center text horizontally */
  vertical-align: middle; /* Center text vertically */
  white-space: break-spaces; /* Prevent text from wrapping */
}

.h-card.signature {
  font-size: 1.2rem;
  width: 150px;
  height: 100px;
  display: inline-block;
  white-space: break-spaces; /* Prevent text from wrapping */
}
.Polaris-Navigation__Logo {
  max-width: 300px;
}
.help-text-field {
  width: 883px;
  padding: 12px 20px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 2px solid #fff;
  border-radius: 24px;
  font-size: large;
}
.custom-search-button {
  width: 48px;
  height: 48px;
  border-radius: 38px;
  background: #3833e3;
  border: 2px #3833e3;
}
.h-scroll-enable {
  .Polaris-IndexTable-ScrollContainer {
    overflow-x: auto;
    overscroll-behavior-x: contain; /* Prevents scroll chaining */
    -ms-overflow-style: auto; /* Ensure scroll bar appears in IE/Edge */
    scrollbar-width: thin; /* Make the scrollbar thinner in Firefox */
  }
}
body .Polaris-TopBar__Search {
  align-items: start;
}
#quick_search {
  background-color: #ffffff;
  /* padding: 20px; */
  position: relative;
  overflow-y: scroll;
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
  min-height: 350px;
  max-height: 50vh;
}
tr[data-error="true"] {
  background-color: #ffdbd9;
}

[data-popover-card-target="card"]::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 1rem;
  border-width: 0.75rem;
  width: 30px;
  height: 20px;
  z-index: 9999;
  border-color: white transparent transparent transparent;
}

.info_card {
  position: absolute;
  left: 0;
  top: calc(100% + 5px);
  min-width: 300px;
  max-width: 100%;
  z-index: 9999;
  background-color: #fafafa;
  border: 1px solid #c3c3c3;
  padding: 0 !important;
}

.info_card .Polaris-Card__Section {
  padding: 10px !important;
}
[data-popover-card-target="card"]::after {
  display: none;
}

[x-cloak] {
  display: none;
  background-color: red;
}
.nav-transition {
  transition: all 0.3s ease-in-out;
}
.nav-start {
  opacity: 0;
  transform: translate(0px, -5px);
}
.nav-end {
  opacity: 1;
  transform: translate(0%, 0);
}
.Polaris-Spinner--sizeExtraSmall svg {
  width: 1.5rem;
  height: 1.5rem;
}
.attachments-container-broadcast {
  display: flex;
  flex-direction: column;
  gap: 10px;
  
  .attachment-card-broadcast {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f3f3f3;
  }

  .attachment-left {
    display: flex;
    align-items: center;
  }

  .file-icon-broadcast {
    width: 70px;
    height: 70px;
    margin-right: 10px;
    border-radius: 5px;
    background: #b9b9b9
  }
  
  .attachment-right {
    text-align: right;
  }
  
  .file-name {
    margin: 0;
    font-weight: bold;
    font-size: 14px;
  }
}


.notification_btton{
  position: relative;
  margin-top: 5px;
  margin-right: 5px;
  min-width: 40px;
  min-height: 26px;
}

.notification_btton a {
  text-decoration: none !important;
}

.notification_btton a:active .Polaris-Button__Content{
  background-color: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

.notification_badge {
  background-color: #F56C6C;
  position: absolute;
  top: -5px;
  left: 50%;
  padding: 1px 3px;
  border-radius: 4px;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
}


.ringing .Polaris-Button__Icon{
  animation: ring 4s .7s ease-in-out infinite;
  transform-origin: 50% 4px;
}

@media (max-width: 768px) {
  .invoice-mobile-responsive-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 1%;
  }
  .invoice-mobile-responsive-stack > * {
    width: 100%;
  }
  .Polaris-EmptyState__Image {
    max-width: 90%; 
    display: block; 
    margin: 0 auto;
  }
}
.Widget-Select-Stack{
  width: 20%;
}

.image-rezie-width{
  .Polaris-EmptyState{
    .Polaris-EmptyState__Section{
      .Polaris-EmptyState__ImageContainer{
        img{
          width: 500px;
        }
      }
    }
  }
}

@-webkit-keyframes ring {
  0% { -webkit-transform: rotateZ(0); }
  1% { -webkit-transform: rotateZ(30deg); }
  3% { -webkit-transform: rotateZ(-28deg); }
  5% { -webkit-transform: rotateZ(34deg); }
  7% { -webkit-transform: rotateZ(-32deg); }
  9% { -webkit-transform: rotateZ(30deg); }
  11% { -webkit-transform: rotateZ(-28deg); }
  13% { -webkit-transform: rotateZ(26deg); }
  15% { -webkit-transform: rotateZ(-24deg); }
  17% { -webkit-transform: rotateZ(22deg); }
  19% { -webkit-transform: rotateZ(-20deg); }
  21% { -webkit-transform: rotateZ(18deg); }
  23% { -webkit-transform: rotateZ(-16deg); }
  25% { -webkit-transform: rotateZ(14deg); }
  27% { -webkit-transform: rotateZ(-12deg); }
  29% { -webkit-transform: rotateZ(10deg); }
  31% { -webkit-transform: rotateZ(-8deg); }
  33% { -webkit-transform: rotateZ(6deg); }
  35% { -webkit-transform: rotateZ(-4deg); }
  37% { -webkit-transform: rotateZ(2deg); }
  39% { -webkit-transform: rotateZ(-1deg); }
  41% { -webkit-transform: rotateZ(1deg); }

  43% { -webkit-transform: rotateZ(0); }
  100% { -webkit-transform: rotateZ(0); }
}

@-moz-keyframes ring {
  0% { -moz-transform: rotate(0); }
  1% { -moz-transform: rotate(30deg); }
  3% { -moz-transform: rotate(-28deg); }
  5% { -moz-transform: rotate(34deg); }
  7% { -moz-transform: rotate(-32deg); }
  9% { -moz-transform: rotate(30deg); }
  11% { -moz-transform: rotate(-28deg); }
  13% { -moz-transform: rotate(26deg); }
  15% { -moz-transform: rotate(-24deg); }
  17% { -moz-transform: rotate(22deg); }
  19% { -moz-transform: rotate(-20deg); }
  21% { -moz-transform: rotate(18deg); }
  23% { -moz-transform: rotate(-16deg); }
  25% { -moz-transform: rotate(14deg); }
  27% { -moz-transform: rotate(-12deg); }
  29% { -moz-transform: rotate(10deg); }
  31% { -moz-transform: rotate(-8deg); }
  33% { -moz-transform: rotate(6deg); }
  35% { -moz-transform: rotate(-4deg); }
  37% { -moz-transform: rotate(2deg); }
  39% { -moz-transform: rotate(-1deg); }
  41% { -moz-transform: rotate(1deg); }

  43% { -moz-transform: rotate(0); }
  100% { -moz-transform: rotate(0); }
}

@keyframes ring {
  0% { transform: rotate(0); }
  1% { transform: rotate(30deg); }
  3% { transform: rotate(-28deg); }
  5% { transform: rotate(34deg); }
  7% { transform: rotate(-32deg); }
  9% { transform: rotate(30deg); }
  11% { transform: rotate(-28deg); }
  13% { transform: rotate(26deg); }
  15% { transform: rotate(-24deg); }
  17% { transform: rotate(22deg); }
  19% { transform: rotate(-20deg); }
  21% { transform: rotate(18deg); }
  23% { transform: rotate(-16deg); }
  25% { transform: rotate(14deg); }
  27% { transform: rotate(-12deg); }
  29% { transform: rotate(10deg); }
  31% { transform: rotate(-8deg); }
  33% { transform: rotate(6deg); }
  35% { transform: rotate(-4deg); }
  37% { transform: rotate(2deg); }
  39% { transform: rotate(-1deg); }
  41% { transform: rotate(1deg); }

  43% { transform: rotate(0); }
  100% { transform: rotate(0); }
}

.uae-pass {
  border-radius: 30px !important;
  color: #454f63 !important;
}

.uae-pass svg{
  fill: none !important; 

}
.ts-wrapper.plugin-remove_button.focus.input-active.dropdown-active{
  z-index: 100 !important;
}

.wrapper-form-container {
  position: relative;
}

.blurred {
  filter: blur(4px);
  pointer-events: none;
}

.form-spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 20vh;
  gap: 20px;
  z-index: 9999;
}

.form-spinner-overlay.hidden {
  display: none;
}

.spinner {
  width: 5rem;
  height: 5rem;
  border: 4px solid #ccc;
  border-top-color: #004080;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-text {
  font-size: 20px;
}

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

@media (max-width: 768px) {
  .spinner {
    width: 5rem;
    height: 5rem;
    border-width: 3px;
  }
}

/* Notifications Sidebar Styles */
.notifications-sidebar-container {
  width: 300px;
  flex-shrink: 0;
  margin-left: 80px;
  /* margin-top: 88px; */
}

.notifications-sidebar-scroll {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.notifications-sidebar-scroll::-webkit-scrollbar {
  display: none;
}

.notifications-sidebar-list-scroll {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.notifications-sidebar-list-scroll::-webkit-scrollbar {
  display: none;
}

/* Sidebar list items and links (replacing Tailwind utilities) */
.notifications-sidebar-item {
  margin-bottom: 4px;
}

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

.notifications-sidebar-link {
  display: block;
  padding: 8px 12px; /* px-3 py-2 */
  border-radius: 6px;
  text-decoration: none !important;
  color: #374151; /* gray-700 */
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
}

.notifications-sidebar-link:hover {
  background-color: #f9fafb; /* gray-50 */
  color: #111827; /* gray-900 */
  text-decoration: none !important;
  border-color: #e5e7eb; /* gray-200 */
}

.notifications-sidebar-link--active {
  background-color: #f3f4f6; /* gray-100 */
  color: #111827; /* gray-900 */
  font-weight: 600;
  border-color: #d1d5db; /* gray-300 */
}

.notifications-sidebar-link--active:hover {
  background-color: #e5e7eb; /* gray-200 */
  border-color: #9ca3af; /* gray-400 */
}

:root {
  --chatbox-primary-color: #007bff;
  --chatbox-primary-hover: #0069d9;
  --chatbox-background-color: #ffffff;
  --chatbox-header-border: #e4e6eb;
  --chatbox-text-primary: #050505;
  --chatbox-text-secondary: #65676b;
  --chatbox-input-background: #f0f2f5;
  --chatbox-my-message-background: #0084ff;
  --chatbox-my-message-text: white;
  --chatbox-other-message-background: #e4e6eb;
  --chatbox-other-message-text: #050505;
  --chatbox-avatar-gradient-start: #667eea;
  --chatbox-avatar-gradient-end: #764ba2;
  --chatbox-notification-background: #e41e3f;
  --chatbox-notification-text: white;
  --chatbox-icon-hover-background: #f2f2f2;
}

#floating-chatbox-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: auto;
  height: auto;
}

.floating-chatbox {
  width: 328px;
  height: 455px;
  background: var(--chatbox-background-color);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  margin-bottom: 10px;
  position: fixed;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

/* Minimized State */
.floating-chatbox.minimized {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.chatbox-minimized {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(
    135deg,
    var(--chatbox-avatar-gradient-start),
    var(--chatbox-avatar-gradient-end)
  );
  position: relative;
  user-select: none;
}

.floating-chatbox.minimized .chatbox-minimized {
  display: flex;
}

.chatbox-minimized .avatar-initials {
  font-size: 18px;
  font-weight: 600;
  color: var(--chatbox-my-message-text);
}

.floating-chatbox.minimized {
  display: flex;
}

/* Header */
.chatbox-header {
  padding: 10px 12px;
  border-bottom: 1px solid var(--chatbox-header-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--chatbox-background-color);
  cursor: pointer;
}

.chatbox-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--chatbox-avatar-gradient-start),
    var(--chatbox-avatar-gradient-end)
  );
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--chatbox-my-message-text);
  font-weight: 600;
  font-size: 14px;
}

.sender-name {
  font-weight: 600;
  color: var(--chatbox-text-primary);
  font-size: 15px;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-name {
  color: var(--chatbox-text-secondary);
  font-size: 12px;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chatbox-controls {
  display: flex;
  gap: 4px;
  align-items: center;
}

.chatbox-controls button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  color: var(--chatbox-text-primary);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  transition: background-color 0.1s;
}

.chatbox-controls button:hover {
  background-color: var(--chatbox-icon-hover-background);
}

/* Messages Area */
.chatbox-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: var(--chatbox-background-color);
  min-height: 0;
}

/* Input Area */
.chatbox-input {
  padding: 8px 12px;
  border-top: 1px solid var(--chatbox-header-border);
  background: var(--chatbox-background-color);
  border-radius: 0 0 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-wrapper {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.input-container {
  flex: 1;
  display: flex;
  background: var(--chatbox-input-background);
  border-radius: 20px;
  padding: 6px 12px;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}

/* Input Error Message */
.input-error-message {
  display: none;
  color: #ef4444;
  font-size: 12px;
  padding: 4px 8px;
  margin-bottom: 4px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 4px;
  border-left: 3px solid #ef4444;
}

/* Shake Animation for Error */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.shake-error {
  animation: shake 0.5s;
  border-color: #ef4444 !important;
}

.message-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  box-shadow: none;
  font-size: 15px;
  color: var(--chatbox-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 20px;
  resize: none;
  max-height: 100px; /* Max height before scrolling */
  overflow-y: auto;
  padding: 6px 0;
  height: 20px; /* Match line-height for single line */
  box-sizing: content-box;
}

.message-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.input-container:focus-within {
  border-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.send-btn {
  background: var(--chatbox-primary-color);
  color: var(--chatbox-my-message-text);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  flex-shrink: 0;
  transition: background-color 0.1s;
}

.send-btn:hover {
  background-color: var(--chatbox-primary-hover);
}

/* Attachment Button */
.attachment-btn {
  background: transparent;
  color: var(--chatbox-text-secondary);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: all 0.1s;
  padding: 0;
}

.attachment-btn:hover {
  background-color: var(--chatbox-icon-hover-background);
  color: var(--chatbox-primary-color);
}

.attachment-btn svg {
  width: 20px;
  height: 20px;
}

/* Attachment Preview */
.attachment-preview-container {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
}

.attachment-preview-container:not(:empty) {
  display: flex;
}

.attachment-preview {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--chatbox-input-background);
  border: 1px solid var(--chatbox-header-border);
}

.attachment-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  padding: 0;
}

.attachment-preview-remove:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Message Attachments */
.message-attachments {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.message-attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: background 0.1s;
  text-decoration: none;
  color: inherit;
}

.message-bubble.current-user .message-attachment {
  background: rgba(255, 255, 255, 0.2);
}

.message-attachment:hover {
  background: rgba(0, 0, 0, 0.1);
}

.message-bubble.current-user .message-attachment:hover {
  background: rgba(255, 255, 255, 0.3);
}

.message-attachment-thumbnail {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--chatbox-background-color);
}

.message-attachment-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-attachment-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.message-attachment-name {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-attachment-size {
  font-size: 11px;
  opacity: 0.7;
}

/* Message Bubbles */
.message-container {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  clear: both;
}

.message-container.current-user {
  align-items: flex-end;
}

.message-container.other-user {
  align-items: flex-start;
}

.message-sender-name {
  font-size: 11px;
  color: var(--chatbox-text-secondary);
  margin-bottom: 2px;
  padding: 0 4px;
  font-weight: 500;
}

.message-bubble {
  padding: 8px 12px;
  border-radius: 18px;
  max-width: 80%;
  word-wrap: break-word;
  font-size: 14px;
  line-height: 1.3;
  display: inline-block;
}

.message-bubble.current-user {
  background-color: var(--chatbox-my-message-background);
  color: var(--chatbox-my-message-text);
  border-bottom-right-radius: 4px;
}

.message-bubble.other-user {
  background-color: var(--chatbox-other-message-background);
  color: var(--chatbox-other-message-text);
  border-bottom-left-radius: 4px;
}

.message-text {
  font-weight: 400;
  margin-bottom: 2px;
}

.message-time {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 2px;
}
