@import url("https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap");

@import url("https://use.typekit.net/eyy6lhd.css");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

body {
  font-family: Inter, Helvetica, sans-serif !important;
}

:root {
  --site-max-width: 1400px;
  --site-side-padding: 20px;
}

.container-xxl,
.container-xl,
.container {
  max-width: var(--site-max-width) !important;
  padding-left: var(--site-side-padding) !important;
  padding-right: var(--site-side-padding) !important;
}

.header-fullwidth {
  min-width:90vw!important;
}

/* STRIPE GRADIENT*/
:root {
  /* Stripe gradient colors - MATCHING THE HERO */
  --stripe-gradient-color-1: #ff7e5f; /* Coral */
  --stripe-gradient-color-2: #feb47b; /* Light orange */
  --stripe-gradient-color-3: #7028e4; /* Purple */
  --stripe-gradient-color-4: #e5b2ca; /* Pink */
  --stripe-gradient-color-5: #6b46c1; /* Indigo */
  
  /* Dark mode stripe gradient colors - DEEPER VERSIONS */
  --stripe-gradient-color-dark-1: #e56547; /* Deeper coral */
  --stripe-gradient-color-dark-2: #e09c69; /* Deeper light orange */
  --stripe-gradient-color-dark-3: #5b20bc; /* Deeper purple */
  --stripe-gradient-color-dark-4: #c896ad; /* Deeper pink */
  --stripe-gradient-color-dark-5: #57389a; /* Deeper indigo */
  
  /* Gradient definitions - MATCHING HERO DIRECTION */
  --stripe-gradient: linear-gradient(-45deg, 
      var(--stripe-gradient-color-1),
      var(--stripe-gradient-color-2),
      var(--stripe-gradient-color-3),
      var(--stripe-gradient-color-4),
      var(--stripe-gradient-color-5));
  
  --stripe-gradient-dark: linear-gradient(-45deg, 
      var(--stripe-gradient-color-dark-1),
      var(--stripe-gradient-color-dark-2),
      var(--stripe-gradient-color-dark-3),
      var(--stripe-gradient-color-dark-4),
      var(--stripe-gradient-color-dark-5));
  
  /* Animation properties remain the same */
  --stripe-gradient-size: 300% 300%;
  --stripe-gradient-animation: stripeGradient 20s ease infinite;
}


.fa, .fas, .far, .fal, .fad, .fab {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

/* Optional: Add a subtle loading animation */
.fa:not([class*="fa-"]) {
  opacity: 0.3;
  animation: pulse 1s infinite;
}

i[class*="fa-"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}
/* Animation definition */
@keyframes stripeGradient {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 25%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 75%; }
  100% { background-position: 0% 50%; }
}

/* Utility class for applying the animated gradient */
.stripe-gradient-bg {
  background: var(--stripe-gradient);
  background-size: var(--stripe-gradient-size);
  animation: var(--stripe-gradient-animation);
}

/* Dark mode version */
[data-bs-theme="dark"] .stripe-gradient-bg {
  background: var(--stripe-gradient-dark);
  background-size: var(--stripe-gradient-size);
  animation: var(--stripe-gradient-animation);
}



/* Mobile < lg: collapse to two columns (left | right) */
@media (max-width: 991.98px) {
  .header-fullwidth {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
  }
}

/* Desktop ≥ lg: logo | search grows | actions */
/* Desktop ≥ lg: logo | search grows | actions */
@media (min-width: 992px) {
  /* Left | Search grows | Right */
  .header-fullwidth {
    display: grid;
    grid-template-columns: max-content minmax(280px, 1fr) max-content;
    align-items: center;
    column-gap: 1rem;
  }

  /* Let the grid item actually stretch */
  .header-fullwidth > .d-lg-block {
    justify-self: stretch; /* or remove any prior justify-self */
  }

  /* Center: Search column */
  .header-fullwidth > .d-lg-block {
    justify-self: stretch;
  }

  /* Search container with positioning context */
  .header-search-container {
    width: 100%;
  }

  #kt_header_search {
    min-width: 0;
    width: 100%;
    /* Padding is now inline: 0 20% */
  }
  
  #kt_header_search [data-kt-search-element="form"] {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }
  
  #kt_header_search input[type="text"] {
    width: 100%;
  }

  /* Dropdown automatically matches search width due to same padding */
  .search-dropdown-positioned [data-kt-search-element="content"] {
    width: 100%;
  }

  /* Dropdown positioned outside search but in same container */
  .search-dropdown-positioned {
    position: absolute;
    top: 100%;
    left: 20%;
    right: 20%;
    z-index: 9999;
    margin-top: 5px;
  }

}

/* Hide mobile menu elements on desktop */
@media (min-width: 992px) {
  .mobile-menu,
  .mobile-menu-overlay {
      display: none !important;
  }
  
  /* Ensure desktop header actions show */
  .header-actions-desktop {
      display: flex !important;
  }
  
  .header-actions-mobile {
      display: none !important;
  }
  
  /* Make sure desktop navigation shows */
  .header-menu-container {
      display: flex !important;
  }
}

/* Mobile styles */
@media (max-width: 991.98px) {
  .header-actions-desktop {
      display: none !important;
  }
  
  .header-menu-container {
      display: none !important;
  }
  
  .header .theme-light-show,
  .header .theme-dark-show {
      height: 40px !important;
  }
  
  /* Hide admin time display on mobile */
  .header .d-flex.align-items-center.ms-3.ms-lg-4.me-2 {
      display: none !important;
  }
}


/* Rest of mobile menu styles */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100%;
  background: var(--bs-body-bg, white);
  z-index: 1050;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-menu.show {
  left: 0;
}

.mobile-menu-header {
  padding: 1rem;
  border-bottom: 1px solid var(--bs-border-color, #e9ecef);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--bs-secondary, #6c757d);
  cursor: pointer;
}

.mobile-menu-content {
  padding: 1rem;
}

.mobile-menu-section {
  margin-bottom: 2rem;
}

.mobile-menu-section h6 {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--bs-light, #f8f9fa);
  cursor: pointer;
}

.mobile-menu-item i {
  width: 20px;
  margin-right: 0.75rem;
  text-align: center;
}

.mobile-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.mobile-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0.5rem;
  background: var(--bs-light, #f8f9fa);
  border: 1px solid var(--bs-border-color, #e9ecef);
  border-radius: 0.375rem;
  text-decoration: none;
  color: var(--bs-body-color, #495057);
  font-size: 0.75rem;
  cursor: pointer;
}

.mobile-action-btn:hover {
  background: var(--bs-gray-200, #e9ecef);
  color: #f7941d;
  text-decoration: none;
}

.mobile-action-btn i {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

/* Mobile Header Theme Toggle Styles */
.mobile-header-theme-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.mobile-header-theme-toggle:hover {
  opacity: 0.8;
}

.mobile-header-theme-toggle i {
  font-size: 18px;
  width: 24px;
  margin-right: 12px;
  color: var(--bs-primary);
  transition: color 0.2s ease;
}

.mobile-header-theme-switch {
  margin-left: auto;
}

.mobile-header-theme-switch .form-switch {
  margin: 0;
  padding: 0;
}

.mobile-header-theme-switch .form-check-input {
  width: 40px;
  height: 20px;
  background-color: var(--bs-gray-300);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-header-theme-switch .form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.mobile-header-theme-switch .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Dark mode adjustments for mobile header */
[data-bs-theme="dark"] .mobile-header-theme-switch .form-check-input {
  background-color: var(--bs-gray-600);
}

[data-bs-theme="dark"] .mobile-header-theme-toggle i {
  color: var(--bs-primary);
}


/* Make sure any overflow is handled properly */
.card.card-flush {
  overflow: visible;
  position: relative;
}

.drop-shadow {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

/* Optional hover effect for more interactivity */
.drop-shadow:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.carousel-inner {
  height: 160px; /* Adjust this value based on your tallest slide */
  overflow: hidden;
}

.carousel-item {
  height: 100%;
}

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

[data-bs-theme="dark"] .auth-bg {
  background-color: #0f1014 !important;
}

.code-input-wrapper {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 40px 0;
}

.code-input-instruction {
  color: #6c757d;
  font-size: 0.875rem;
  text-align: center;
}

.big-icon {
  font-size: 5rem !important;
  color: #555; /* Icon color - if needed */
}

.avatar-circle {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background-color: var(--bs-gray-200); /* Light mode: light gray */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.avatar-option {
  border: 1px solid transparent;
}

.avatar-circle i {
  font-size: 3rem;
  color: var(--bs-gray-600); /* Light mode: medium gray */
}

[data-bs-theme="dark"] .avatar-circle {
  background-color: var(--bs-dark); /* Dark mode: dark gray */
}

[data-bs-theme="dark"] .avatar-circle i {
  color: var(--bs-gray-800); /* Dark mode: lighter gray */
}

.card-header {
  padding: 1rem 1.5rem 1rem 1.5rem !important;
}

.code-digit {
  width: 40px;
  height: 48px;
  padding: 0;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  text-align: center;
  font-size: 20px;
  font-family: monospace;
  background: white;
  transition: all 0.2s;
}

.code-digit:focus {
  outline: none;
  border-color: #f7941d;
  box-shadow: 0 0 0 2px #f7951d36;
}

.code-digit.success:focus {
  border-color: #28a745;
  box-shadow: none;
}

.code-digit.success {
  border-color: #28a745;
  background-color: #f8fff9;
  color: #28a745;
  animation: successPulse 0.8s ease-in-out;
}

.code-digit.error {
  border-color: #dc3545;
  background-color: #fff8f8;
}

.code-digit:hover:not(:focus) {
  border-color: #adb5bd;
}


.classic-alert {
  font-size: 2.5rem !important;
}

.theme-icon {
  color: var(--bg-primary) !important;
}

.theme-icon:hover {
  color: var(--bg-primary) !important;
}

.badge {
  user-select: none !important;
}

.badge-circle {
  padding: 12px !important;
}

.badge-circle.badge-primary,
.badge-circle.badge-secondary,
.medium-badge.badge-secondary,
.medium-badge.badge-primary {
  cursor: pointer;
}

.badge-circle.badge-secondary:hover,
.medium-badge.badge-secondary:hover {
  border: 1px solid var(--bs-primary) !important;
  color: var(--bs-primary) !important;
}

.medium-badge.badge-primary.badge-outline {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
  padding-top: 0.325rem !important;
  padding-bottom: 0.325rem !important;
}

.badge-circle.badge-secondary {
  border: 1px solid transparent !important;
}

.badge-circle.badge-primary:hover,
.medium-badge.badge-primary:hover {
  border: 1px solid var(--bs-secondary-inverse) !important;
  color: var(--bs-secondary-inverse) !important;
}

/* Style for the surname check badge when it's inactive */
.badge.medium-badge.badge-outline:not(.badge-primary):not(.badge-secondary) {
  opacity: 0.6;
  cursor: not-allowed !important;
  background-color: #f5f5f5 !important;
  color: #888 !important;
  border: 1px solid #ddd !important;
}

/* Dark Style for the surname check badge when it's inactive */
[data-bs-theme="dark"] .badge.medium-badge.badge-outline:not(.badge-primary):not(.badge-secondary) {
  opacity: 0.6;
  cursor: not-allowed !important;
  background-color: #242424 !important;
  color: #888 !important;
  border: 1px solid #313131 !important;
}

/* Prevent hover effects on inactive badge */
.badge.medium-badge.badge-outline:not(.badge-primary):not(
    .badge-secondary
  ):hover {
  border: 1px solid #ddd !important;
  color: #888 !important;
}

/*Match type badges in the clients table*/

.match-type-container {
  min-width: 80px;
  display: flex;
  justify-content: center;
}

.match-type-badge {
  min-width: 70px;
  text-align: center;
  display: inline-block;
}

.form-check-input {
  cursor: pointer !important;
}

.big-icon i {
  color: var(--bs-primary);
  font-size: 50px;
}

.fc-bg-event {
  cursor: pointer !important;
  opacity: 1 !important;
}

.fc-lawListsLegend-button {
  background-color: #edad45 !important;
  cursor: default !important;
  color: black !important;
}

.fc-today-button {
  background-color: #e9f3ff !important;
  color: black !important;
}

.fc-daygrid-day-number {
  color: var(--bs-gray-900) !important;
}

.menu-icon {
  align-self: center;
}

.fc .fc-day-other .fc-daygrid-day-top {
  opacity: 1 !important;
}

.fc .fc-day-other .fc-daygrid-day-top .fc-daygrid-day-number {
  color: var(--bs-gray-600) !important;
}

.court-object {
  cursor: pointer;
}

.court-object:hover {
  box-shadow: var(--bs-primary-light) 0px 7px 29px 0px;
}

.court-index-object:hover {
  background-color: var(--bs-secondary-light);
}

.import-client-scroller {
  max-height: 500px;
}

.importer-icon {
  font-size: 3.5rem !important;
  color: var(--bs-primary) !important;
}

.import-loader-container {
  display: flex;
  justify-content: center;
}

.import-loader {
  width: 80%;
  height: 50px;
  position: relative;
}

.import-loader-text {
  position: absolute;
  top: 0;
  padding: 0;
  margin: 0;
  color: black;
  font-size: 1rem;
  letter-spacing: 1px;
}

.import-load {
  background-color: var(--bs-primary);
  border-radius: 50px;
  display: block;
  height: 16px;
  width: 16px;
  bottom: 0;
  position: absolute;
  transform: translateX(64px);
  animation: import_loader_anim_1 3.5s ease both infinite;
}

.import-load::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background-color: var(--bs-primary-light);
  border-radius: inherit;
  animation: import_loader_anim_2 3.5s ease both infinite;
}

@keyframes import_loader_anim_1 {
  0% {
    width: 16px;
    transform: translateX(0px);
  }

  40% {
    width: 100%;
    transform: translateX(0px);
  }

  80% {
    width: 16px;
    transform: translateX(64px);
  }

  90% {
    width: 100%;
    transform: translateX(0px);
  }

  100% {
    width: 16px;
    transform: translateX(0px);
  }
}

@keyframes import_loader_anim_2 {
  0% {
    transform: translateX(0px);
    width: 16px;
  }

  40% {
    transform: translateX(0%);
    width: 80%;
  }

  80% {
    width: 100%;
    transform: translateX(0px);
  }

  90% {
    width: 80%;
    transform: translateX(15px);
  }

  100% {
    transform: translateX(0px);
    width: 16px;
  }
}

.settings-tab {
  cursor: pointer;
}

.end-session-link {
  transition: all 0.2s ease;
}

.end-session-link:hover {
  background-color: rgba(220, 53, 69, 0.1)!important;
  color: #b02a37 !important; /* Slightly darker red on hover */
}

.overlay {
  border-radius: 5px;
  background-color: rgba(25, 25, 25, 0.134);
  backdrop-filter: blur(10px);
}

.unsubscribed-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background-color: rgba(25, 25, 25, 0.134);
  backdrop-filter: blur(5px);
  z-index: 50;
}

.subscription-notifier {
  padding: 50px;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.sub-img-container img {
  width: 300px;
}

.scheduler-nav {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.scheduler-icon {
  font-size: 2rem !important;
}

/* Selected/active date background and styling */
/* Day name styling (Mo, Tu, etc) */
.scheduler-nav .nav-link .opacity-50.fs-7 {
  color: var(--bs-gray-600) !important; /* Gray-600 for day text */
}

/* Date number styling (14, 15, etc) */
.scheduler-nav .nav-link .fs-6 {
  color: var(--bs-gray-800) !important; /* Gray-800 for date numbers */
}

/* Leave active date colors as they are */
.scheduler-nav .nav-link.active .opacity-50.fs-7,
.scheduler-nav .nav-link.active .fs-6 {
  color: #ffffff !important; /* Keep white text for active date */
}

/* Orange indicator for dates with matters */
.scheduler-nav .nav-link:not(.active) .fa-circle {
  color: #ff9800 !important; /* Orange indicator for non-active dates */
}

.scheduler-nav .nav-link:hover:not(.active) .fa-circle {
  color: #ffffff !important; /* Orange indicator for non-active dates */
}

/* Keep active date indicator as is (white) */
.scheduler-nav .nav-link.active .fa-circle {
  color: #ffffff !important;
}

/* Semi-transparent hover effect */
.scheduler-nav .nav-link:hover:not(.active) {
  background-color: rgba(247, 148, 29, 0.8) !important;
  transition: background-color 0.2s ease;
}

/* Chevron styling */
.scheduler-nav .nav-item .fa-chevron-left,
.scheduler-nav .nav-item .fa-chevron-right {
  color: var(
    --bs-gray-700
  ) !important; /* Match text color - adjust if needed */
  transition: color 0.2s ease;
  font-size: 1.5rem !important;
}

.table-gray-500{
  background-color: #d4d4d4 !important;
}

[data-bs-theme="dark"] .table-gray-500{
  background-color: #161616 !important; 
}

/* Chevron hover effect */
.scheduler-nav .nav-item .nav-link:hover .fa-chevron-left,
.scheduler-nav .nav-item .nav-link:hover .fa-chevron-right {
  color: #f7941d !important; /* Orange hover color */
}

/* Remove background hover effect for chevron buttons */
.scheduler-nav .nav-item .nav-link.btn-icon:hover {
  background-color: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
}

/* Optional: Make the entire chevron button smaller */
.scheduler-nav .nav-item .nav-link.btn-icon {
  padding: 0.4rem; /* Smaller padding */
  min-width: 32px; /* Smaller min-width */
  height: 32px; /* Fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.big-spinner {
  width: 40px;
  height: 40px;
}

.schedule-header {
  border-bottom: none !important;
}

/* Login Page*/

.feature-section {
  padding: 3rem 0;
}

.feature-block {
  padding: 2rem;
  transition: transform 0.3s ease;
}

.feature-block:hover {
  transform: translateY(-5px);
}

.feature-icon i {
  font-size: 40px !important;
  width: 40px !important;
  height: 40px !important;
}

.feature-content {
  padding: 1rem 0;
}

.feature-spacing {
  margin: 4rem 0;
}

@media (max-width: 768px) {
  .feature-block {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
}

.small-svg {
  width: 150px;
  align-self: center;
}

#home_info_slider .card-header {
  padding: 0 0 0 1rem !important;
}

#driver-highlighted-element-stage {
  background-color: var(--bs-page-bg) !important;
}

#driver-popover-item {
  font-family: Inter, Helvetica, sans-serif !important;
}

.clientSearchDropdown {
  position: absolute;
  background-color: var(--bs-page-bg);
  width: 70%;
  max-height: 250px;
  overflow-y: auto;
  border-radius: 0.475rem;
  background-color: var(--bs-menu-dropdown-bg-color);
  box-shadow: var(--bs-menu-dropdown-box-shadow);
  display: none;
  z-index: 1400;
}

.input-group-text {
  border: none !important;
}

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

.icon-container {
  position: relative;
  display: inline-block;
}

.icon-primary, .icon-secondary {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.icon-primary {
  /* Add all animations for primary icon */
  animation: zoom-animation 8s infinite ease-in-out, plus-hide 25s infinite ease-in-out;
}

.icon-secondary {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  animation: zoom-animation 8s infinite ease-in-out, face-pop 25s infinite ease-in-out;
}

/* Hover on the button, affect the primary icon */
.btn:hover .icon-primary {
  animation: spin 0.5s ease-in-out, zoom-animation 8s infinite ease-in-out, plus-hide 15s infinite ease-in-out;
}

/* When dropdown is active, override hover */
.btn[aria-expanded="true"] .icon-primary {
  transform: rotate(45deg) scale(1.1);
  animation: none;
}

.btn[aria-expanded="true"] .icon-secondary {
  opacity: 0;
  animation: none;
}

/* Face pop animation with fade in/out */
@keyframes face-pop {
  0% { opacity: 0; }
  18% { opacity: 0; }
  20% { opacity: 0; }
  25% { opacity: 0; }  /* Keep hidden longer */
  27% { opacity: 1; }
  31% { opacity: 1; }
  33% { opacity: 0; }  /* Start fading out earlier */
  35% { opacity: 0; }
  100% { opacity: 0; }
}

/* Plus icon hide animation with fade */
@keyframes plus-hide {
  0% { opacity: 1; }
  18% { opacity: 1; }
  20% { opacity: 1; }
  23% { opacity: 0; }  /* Finish fading out earlier */
  25% { opacity: 0; }  /* Stay hidden */
  33% { opacity: 0; }  /* Stay hidden longer */
  35% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes zoom-animation {
  0% { scale: 1; }
  2% { scale: 1.3; }
  3% { scale: 1; }
  4% { scale: 1; }
  5% { scale: 1.2; }
  6% { scale: 1; }
  100% { scale: 1; }
}



.dropdown-menu .dropdown-item:hover,
.dropdown-menu .menu-link:hover {
  background-color: #ff8c0031 !important;
  color: white !important;
}

/* Or if you prefer to target the menu-item directly */
.dropdown-menu .menu-item:hover > a {
  color: #f7941d !important;
}

.dropdown-menu .dropdown-item:hover i {
  color: #f7941d !important; /* Primary color on hover */
}

/* Add hover-spin class to icon */
.hover-spin {
  display: inline-block;
  transition: transform 0.2s ease-in-out;
}

/* Trigger animation on button hover */
.btn:hover .hover-spin {
  animation: spin 1s linear infinite;
}



/* Style the base select before Select2 loads */
select.form-select-solid {
  padding-left: 1.5rem;
}

/* Your existing Select2 styling */
.select2-container--bootstrap5 .select2-selection--single {
  padding-left: 1.5rem !important;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

#emoji-picker{
  position: absolute;
  z-index: 300;
  bottom: 50px;
}

.reaction-window{
  top: -50px;
  background: var(--bs-page-bg);
  padding: 10px;
  border-radius: 12px;
  z-index: 30;
}

.reaction-emoji{
  cursor: pointer;
  transition: 1s smooth;
}

.reacted-emoji{
  margin-top: -10px;
  background-color: var(--bs-page-bg);
  padding: 5px;
  border-radius: 12px;
}

.chat-reaction-container{
  z-index: 30;
}

.reaction-emoji:hover{
  background: var(--bs-secondary);
  padding: 1px;
  border-radius: 20px;
}



.symbol-fixed {
  position: relative;
}

.symbol-fixed:hover .avatar-edit-button {
  opacity: 1 !important;
}

.card-hover {
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent !important;
}

.card-hover:hover {
  border-color: var(--bs-primary) !important;
}

/* Overlay styles */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  visibility: hidden;
  border-radius: calc(0.625rem - 2px);
}

.card-hover:hover .card-overlay {
  opacity: 1;
  visibility: visible;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.action-buttons button {
  min-width: 160px;
}

/*Avatar*/
.rounded-circle {
  border-radius: 50% !important;
  object-fit: cover; /* This ensures the image fills the circular container properly */
}

/* Optional: If you want to ensure the image container is also perfectly circular */
.symbol-100px,
.symbol-lg-160px {
  overflow: hidden;
}

/* Style for the status indicator */
.status-indicator {
  z-index: 3; /* Ensures the status indicator appears above the avatar */
  margin-bottom: -10px; /* Positions the indicator slightly below the avatar edge */
  cursor: default; /* Changes cursor to indicate it's interactive */
  transition: transform 0.2s; /* Smooth transition for hover effect */
}

.status-indicator:hover {
  transform: scale(1.2); /* Slightly enlarges the indicator on hover */
}

.rect-pulse-container {
  position: relative;
  animation: shadowPulse 1.5s infinite;
}

@keyframes shadowPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

.request-inactive .card {
  opacity: 0.75;
}
.request-inactive .card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.03),
    rgba(0, 0, 0, 0.03) 10px,
    transparent 10px,
    transparent 20px
  );
  pointer-events: none;
  z-index: 1;
}


/* Fix the minimum height of the modal body to prevent layout shifts */
#calendar_settings_modal .modal-body {
  min-height: 300px; /* Adjust based on your content */
}

/* Fix the height of the user info container to prevent layout shifts */
#connected-account-info .d-flex {
  min-height: 74px; /* Adjust based on your content */
}

/* Fix the height for the warning alert */
#no-connection-info .alert {
  min-height: 74px; /* Match the height of the user info container */
}

/* Ensure the connection section has consistent height */
#calendar_settings_modal .mb-5:first-child {
  min-height: 150px; /* Adjust based on your content */
}

/* Optional: Add smooth fade-in effect when content changes */
#connected-account-info,
#no-connection-info {
  transition: opacity 0.3s ease;
}

.pattern-card {
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.pattern-card:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.pattern-card.selected {
  border-color: #009ef7;
  background-color: var(-bs-page-bg);
}

.step-pane {
  display: none;
}

.step-pane.active {
  display: block;
}

.pattern-stepper-item {
  position: relative;
  flex: 1;
  text-align: center;
  padding: 0 1rem;
}

.pattern-stepper-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.pattern-stepper-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e4e6ef;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  font-weight: bold;
  color: #5e6278;
}

.pattern-stepper-line {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #e4e6ef;
  z-index: -1;
}

.pattern-stepper-item:first-child .pattern-stepper-line {
  left: 50%;
}

.pattern-stepper-item:last-child .pattern-stepper-line {
  right: 50%;
}

.pattern-stepper-item.current .pattern-stepper-circle {
  background-color: var(--bs-primary);
  color: white;
}

.pattern-stepper-item.completed .pattern-stepper-circle {
  background-color: var(--bs-secondary);
  color: white;
}

.dropped-element {
  margin: 0 3px;
  display: inline-block;
}

.pattern-preview {
  min-height: 50px;
}

.event-example:hover {
  background-color: var(-bs-page-bg);
}

/* ======================= LOCATION PREFERENCES ======================= */

/* ============= Selected Courts Card ============= */
.selected-courts-summary .card-body {
  cursor: text;
  min-height: 100px;
}

.empty-courts-message {
  color: #6c757d;
  font-style: italic;
  text-align: center;
  width: 100%;
  padding: 20px 0;
}

/* Add a subtle visual indicator when hovering over the empty area */
.selected-courts-summary .card-body:hover .empty-courts-message {
  color: #495057;
}

/* Styles for the custom court search in Select2 dropdown */
.custom-court-search {
  background-color: transparent!important;
  border-bottom: 1px solid #e4e6ef;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 8px 10px;
}

.custom-court-search .input-group {
  width: 100%;
}

.custom-court-search input {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

/* Ensure dropdown is high enough to show options */
.select2-container--open .select2-dropdown {
  max-height: 400px;
  overflow-y: auto;
}

/* Highlight matching options during search */
.select2-results__option:not([style*="display: none"]) {
  transition: background-color 0.2s ease;
}


.region-courts-list .badge {
  margin: 3px;
}

/* Ensure dropdown is above other elements */
.select2-container--open {
  z-index: 9999;
}

/* ============= Hints to add courts on settings page ============= */
/* ============= Core court list layout ============= */
#selectedCourtsList {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  position: relative !important;
  min-height: 120px !important;
  align-content: flex-start !important;
}

/* ============= Empty state hint (when no courts selected) ============= */
#emptyCourtHint {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 20px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  z-index: 10 !important;
  width: 80% !important;
  max-width: 300px !important;
  gap: 10px !important;
}

#emptyCourtHint:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

#emptyCourtHint i {
  font-size: 2em !important;
  margin-right: 0 !important;
  margin-bottom: 5px !important;
  color: var(--bs-primary, #0d6efd) !important;
}

#emptyCourtHint .hint-title {
  font-weight: 600 !important;
  font-size: 1.1em !important;
  color: var(--bs-gray-800, #343a40) !important;
  margin-bottom: 5px !important;
}

#emptyCourtHint .hint-text {
  text-align: center !important;
  color: var(--bs-gray-600, #6c757d) !important;
  font-size: 14px !important;
}

/* ============= Add more courts hint (when courts are already selected) ============= */
#addMoreCourtHint {
  width: 100% !important;
  flex: 0 0 100% !important; /* Take up full width and don't shrink/grow */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: rgba(230, 230, 230, 0.1) !important;
  border: 1px dashed rgba(122, 122, 122, 0.3) !important;
  border-radius: 6px !important;
  padding: 12px 15px !important;
  margin-top: 16px !important;
  cursor: pointer !important;
  align-self: flex-start !important;
  position: static !important; /* Override any absolute positioning */
  transform: none !important; /* Remove any transforms */
  order: 999 !important; /* Ensure it appears at the end */
}

#addMoreCourtHint:hover {
  background-color: rgba(94, 94, 94, 0.15) !important;
}

#addMoreCourtHint i {
  font-size: 14px !important;
  margin-right: 8px !important;
  margin-bottom: 0 !important;
  color: var(--bs-primary, #0d6efd) !important;
}

#addMoreCourtHint span {
  font-size: 14px !important;
  color: var(--bs-primary, #0d6efd) !important;
  font-weight: 500 !important;
}

/* Animation for click feedback */
.clicked {
  animation: pulse-fade 0.4s ease-in-out !important;
}

@keyframes pulse-fade {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
    background-color: rgba(13, 110, 253, 0.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Dark mode adjustments */
[data-bs-theme="dark"] #addMoreCourtHint {
  background-color: rgba(13, 110, 253, 0.08) !important;
  border-color: rgba(13, 110, 253, 0.2) !important;
}

[data-bs-theme="dark"] #addMoreCourtHint:hover {
  background-color: rgba(13, 110, 253, 0.12) !important;
}

/* ============= Badge styles (ensure proper spacing) ============= */
#selectedCourtsList .badge {
  margin-bottom: 4px !important;
}

/* Force break before add more hint */
#selectedCourtsList::after {
  content: "";
  flex-basis: 100%;
  height: 0;
}


.modal-controlled-height{
  max-height: 75vh;
  overflow-y: auto;
}

.modal-body-height{
  height: 70vh;
  overflow-y: auto;
}

.size-limit{
  max-width: 250px;
}

#task-due-date{
  border-radius: 7px;
}

/* Custom styles for the dropdown */
.custom-select-container {
  position: relative;
}

.custom-select-dropdown .list-group-item {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.custom-select-dropdown .list-group-item:hover {
  background-color: #f1faff;
}

.custom-select-dropdown .list-group-item button {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.custom-select-dropdown .list-group-item:hover button {
  opacity: 1;
}

.custom-select-dropdown .list-group-item button i {
  font-size: 0.85rem;
}

/* Loading overlay */
.overlay-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border-radius: 0.475rem;
}

/* Base styling for all status badges with data attributes - aligned with theme badges */
.badge-status, .task-status-badge, .task-status {
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
  transition: all 0.3s ease !important;
  /* Match theme badge dimensions */
  height: 1.75rem !important;
  min-width: 1.75rem !important;
  padding: 0 0.5rem !important; /* Consistent with theme badges */
  overflow: hidden !important;
  z-index: 10 !important;
  border-radius: 5px !important;
  font-weight: 600;
  font-size: 0.85rem !important;
  line-height: 1 !important; /* Match theme badge line-height */
  justify-content: center !important; /* Center content like theme badges */
}

/* Add icons via ::before pseudo-element */
.badge-status::before, .task-status-badge::before, .task-status::before {
  font-family: "Font Awesome 7 Pro" !important;
  font-weight: 900 !important;
  margin-right: 0.35em !important;
  display: inline-block !important;
}

/* Edit icon using CSS pseudo-element */
.task-status-badge::after, .task-status::after {
  font-family: "Font Awesome 7 Pro" !important;
  font-weight: 900 !important;
  content: "\f044" !important; /* fa-pen-to-square icon code */
  position: absolute !important;
  right: -20px !important; /* Start off-screen */
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 0.8em !important;
  transition: right 0.3s ease, opacity 0.3s ease !important;
  opacity: 0 !important;
  color: inherit !important; /* Inherit the badge text color */
}

.task-status-badge:hover, .task-status:hover {
  padding-right: 1.75rem !important; /* Make room for the icon */
}

.task-status-badge:hover::after, .task-status:hover::after {
  right: 0.35rem !important; /* Move into view */
  opacity: 1 !important;
}





/* Court date form wrapper styling - add court date and edit court date modals */
.court-date-form-wrapper {
  border-radius: 0.85rem;
  margin: 1.25rem 0;
  overflow: hidden;
  /* box-shadow: 0 0.1rem 0.7rem rgba(0, 0, 0, 0.05); */
  border: 2px solid #f7951d7c;
  box-shadow: 0 0 10px rgba(219, 127, 7, 0.527);
}

/* Different colored headers for add vs edit */
.court-date-form-wrapper .court-date-form-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
}

.court-date-add-form .court-date-form-header {
  background-color: rgba(255, 168, 0, 0.1); /* Light orange for edit */
}

.court-date-add-form .court-date-form-header i {
  color: #f7941d; /* Blue for add */
}

.court-date-edit-form .court-date-form-header {
  background-color: rgba(255, 168, 0, 0.1); /* Light orange for edit */
}

.court-date-edit-form .court-date-form-header i {
  color: #ffa800; /* Orange for edit */
}

/* Content area padding */
.court-date-form-content {
  padding: 1.25rem;
}

/* Remove the original form heading since we have it in the header now */
.court-date-form-content h4.fs-6.fw-semibold.mb-3 {
  display: none;
}

.range-input{
  width: unset !important;
}

#dateRangeBadge .btn-close {
  --bs-btn-close-width: 0.5rem!important;
  --bs-btn-close-height: 0.5rem!important;
}




/*CLIENTS & TASKS ANIMATION - FADEINUP */

/* 🔹 Interactive elements on top */

/* 🔹 Universal fade-in animation class */
.fade-in-item {
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
  will-change: transform, opacity;
}

.tbg-input{
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 50%;
}

.smart-match-alert{
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  padding: 10px;
}

.expandable-cell {
  position: relative;
  width: 50%;
  min-width: 200px; /* Prevent collapse */
}

.expandable-content {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  max-height: 2.8em;
  transition: max-height 0.3s ease;
  word-wrap: break-word;
  hyphens: auto;
}

.expandable-content.expanded {
  display: block;
  -webkit-line-clamp: unset;
  max-height: none;
  overflow: visible;
}

.expand-toggle {
  background: none;
  border: none;
  color: #f7941d;
  padding: 0;
  font-size: 0.75rem;
  cursor: pointer;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  gap: 0.25rem;
}

.expand-toggle:hover {
  color: #f7941d;
}

.toggle-icon {
  transition: transform 0.3s ease;
  font-size: 0.7rem;
}

.toggle-icon.rotated {
  transform: rotate(180deg);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .table-responsive {
      overflow-x: auto;
  }
  
  .expandable-cell {
      width: 50%;
      max-width: 50%;
  }
  
  /* Adjust other columns for mobile */
  th:nth-child(2) { width: 25%; } /* Client Name */
  th:nth-child(3) { width: 8%; }  /* Last Match */
  th:nth-child(4) { width: 8%; }  /* Next Court Date */
  th:nth-child(5) { width: 50%; } /* Status */
  th:nth-child(6) { width: 9%; }  /* Next Task */
}

/* Clickable table row styles */
.clickable-row {
  cursor: pointer !important;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.clickable-row:hover {
  background-color: rgba(var(--bs-primary-rgb), 0.05) !important;
}

.clickable-row:active {
  background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

/* Ensure interactive elements don't trigger row click */
.clickable-row .form-check-input,
.clickable-row .expand-toggle {
  position: relative;
  z-index: 2;
}


/* Ensure proper alignment */
.table.align-middle .expandable-cell {
  vertical-align: top !important;
  text-align: left;
}

/* Add subtle visual feedback for the entire row being clickable */
.clickable-row .client-name {
  color: var(--bs-primary);
  font-weight: 600;
}

.clickable-row:hover .client-name {
  color: var(--bs-primary);
}


/* UPCOMING COURT/DATE EVENT CSS */
.time-cell {
  vertical-align: middle;
}

.client-name-cell {
  vertical-align: middle;
}

/* Mobile-responsive fixes */
@media (max-width: 768px) {
  /* Reduce minimum widths on mobile */
  .min-w-mobile-80px { min-width: 80px !important; }
  .min-w-mobile-100px { min-width: 100px !important; }
  
  /* Override desktop minimum widths */
  .min-w-100px { min-width: 80px !important; }
  .min-w-200px { min-width: 100px !important; }
  .min-w-250px { min-width: 100px !important; }
  .min-w-150px { min-width: 80px !important; }
  
  /* Adjust table cell padding and font size */
  #calendar_upcoming_events_table th,
  #calendar_upcoming_events_table td {
      padding: 0.5rem 0.25rem !important;
      font-size: 0.875rem !important;
  }
  
  /* Adjust date header on mobile */
  .event-header td, .date-header td {
      font-size: 0.9rem !important;
      padding: 8px 12px !important;
  }

  /* Truncate long text on mobile */
  .client-name-name,
  .description-cell,
  .court-cell,
  .court-number-cell {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
  }
  
  .client-name-name {
      max-width: 100px;
  }
  
  .description-cell {
      max-width: 100px;
  }
  
  .court-cell,
  .court-number-cell {
      max-width: 80px;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .min-w-mobile-80px { min-width: 60px !important; }
  .min-w-mobile-100px { min-width: 80px !important; }
  
  .min-w-100px { min-width: 60px !important; }
  .min-w-200px { min-width: 80px !important; }
  .min-w-250px { min-width: 80px !important; }
  .min-w-150px { min-width: 60px !important; }
  
  #calendar_upcoming_events_table th,
  #calendar_upcoming_events_table td {
      padding: 0.375rem 0.2rem !important;
      font-size: 0.8rem !important;
  }
  
  .client-name-name {
      max-width: 80px;
  }
  
  .description-cell {
      max-width: 80px;
  }
  
  .court-cell,
  .court-number-cell {
      max-width: 60px;
  }
}

/*upcoming court events tab*/
.event-header td, .date-header td {
  color: #495057 !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  padding: 12px 16px !important;
  position: relative;
}

.event-header td::before, .date-header td::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #6c757d, #adb5bd);
}

.event-header i, .date-header i {
  color: #6c757d;
  margin-right: 8px;
}

.event-item:hover, .date-item:hover {
  background-color: var(--bs-secondary);
}

/*for add task modal status display*/
#matter_status_display {
  min-height: 50px;
  height: auto !important;
  overflow-y: auto;
  transition: none; 
}

.court-diff-popover {
  min-width: 300px!important;  /* Adjust as needed */
}

