@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap');

/* Root variables for consistent design system */
:root {
  /* Original Colors */
  --color-background: rgba(89, 81, 170, 0.10);
  --color-text: #333;
  --color-text-light: #6b7280;
  --color-white: #fff;
  --color-black: #02020A;
  --color-border: #65657533;
  --color-notification: #e53935;
  --color-container: #fff;
  --color-table-header: #E7F6FF;
  --color-table-row: #F5F5F5;
  --color-focus: #7b68ee;
  --color-button: #7367f0;
  --color-button-hover: #5e50ee;

  /* Status Colors */
  --color-status-completed: #3CA536;
  --color-status-completed-border: #24D90C;
  --color-status-awaiting: #FFF4ED;
  --color-status-awaiting-text: #EE7F09;
  --color-status-awaiting-border: #EEC009;
  --color-status-reserved: #FFF0F3;
  --color-status-reserved-text: #FF2742;
  --color-status-checked-in: #fff0f3;
  --color-status-checked-in-text: #ff98a5;
  --color-status-operational: #FFF4ED;

  /* Additional Dashboard Colors */
  --color-primary: #727cf5;
  --color-success: #0acf97;
  --color-info: #39afd1;
  --color-warning: #ffbc00;
  --color-danger: #fa5c7c;
  --color-light: #eef2f7;
  --color-dark: #313a46;

  /* Spacing */
  --no-spacing: 0rem;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 0.75rem;
  --spacing-lg: 1rem;
  --spacing-xl: 1.5rem;
  --spacing-xxl: 2rem;

  /* Border Radius */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.375rem;
  --border-radius-lg: 0.625rem;
  --border-radius-xl: 1rem;
  --border-radius-xxl: 1.5rem;
  --border-radius-round: 50%;

  /* Font Sizes */
  --font-size-xs: 0.625rem;
  --font-size-sm: 0.75rem;
  --font-size-md: 0.875rem;
  --font-size-lg: 1rem;
  --font-size-xl: 1.125rem;

  /* Heights */
  --input-height: 2.5rem;

  /* Shadows */
  --shadow-default: 0 0.5rem 2rem 0 rgba(0, 0, 0, 0.37);

  /* Grid */
  --grid-gap: 0.5rem;
}

/* Global Box Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}


html {
  font-size: 16px;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  font-family: "IBM Plex Sans", sans-serif !important;
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-background);
  color: var(--color-text);
  font-size: var(--font-size-md);
  position: relative;
}

hr {
  border-top-width: 1px;
  background-color: var(--color-border);
  margin: 0 !important;
}

/* Dashboard Layout */
.dashboard-container {
  display: flex;
  height: 100vh;
  width: 100%;
  /* overflow: hidden; */
  position: relative;
  transform: translateZ(0);
  will-change: transform;
}

.main-content {
  flex: 1;
  padding: var(--no-spacing) var(--no-spacing) var(--spacing-lg) var(--spacing-xl);
  display: flex;
  flex-direction: column;
  background-color: var(--color-background);
  overflow: hidden;
  height: 100%;
  box-sizing: border-box;
  transform: translateZ(0);
  will-change: transform;
}

.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* overflow: hidden; */
  height: 100%;
  position: relative;
  z-index: 0;
  margin-left: -1.5rem;
  /* 20px to rem */
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: var(--spacing-sm) var(--spacing-xl);
  flex-wrap: nowrap;
  background-color: var(--color-white);
}

.dashboard-booking-btn {
  position: relative;
  /* flex: 1; */
  max-width: 37.5rem;
  /* 600px to rem */
  min-width: 12.5rem;
  /* 200px to rem */
}

/* User actions */
.user-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  margin-left: auto;
  flex-shrink: 0;
}

.icon-btn {
  width: 2.25rem;
  /* 36px to rem */
  height: 2.25rem;
  /* 36px to rem */
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--border-radius-round);
  color: #777;
  cursor: pointer;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

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

.notification-badge-container {
  position: relative;
  flex-shrink: 0;
}

.notification-badge {
  position: absolute;
  top: -0.25rem;
  /* 4px to rem */
  right: -0.25rem;
  /* 4px to rem */
  width: 1rem;
  /* 16px to rem */
  height: 1rem;
  /* 16px to rem */
  background-color: var(--color-notification);
  color: var(--color-white);
  font-size: var(--font-size-xs);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-round);
}

.user-profile {
  display: flex;
  align-items: center;
  background-color: transparent;
  /* Changed from black to transparent */
  color: #6f6b7d;
  /* Changed to match the text color in screenshot */
  padding: 0.5rem;
  /* Reduced padding */
  border-radius: 0.375rem;
  flex-shrink: 0;
  cursor: pointer;
  gap: 0.5rem;
  /* Added gap between avatar and potential text */
  transition: background-color 0.2s ease;
}

.user-profile:hover {
  background-color: rgba(115, 103, 240, 0.08);
  /* Light hover effect */
}

.avatar {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  overflow: hidden;
  flex-shrink: 0;
}

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

/* Status indicator - green dot in bottom right */
.avatar::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0.625rem;
  /* 10px */
  height: 0.625rem;
  /* 10px */
  background-color: #28c76f;
  /* Green status color */
  border-radius: 50%;
  border: 2px solid white;
  /* White border around the status indicator */
}

.user-info {
  display: none;
  /* Hidden by default, can be shown if needed */
  flex-direction: column;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}

.user-role {
  font-size: 0.75rem;
  color: #a5a3ae;
}

/* Logout container */
.logout-container {
  position: relative;
  flex-shrink: 0;
}

.logout-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-button);
  color: var(--color-white);
  border: none;
  border-radius: var(--border-radius-sm);
  /* box-shadow: var(--shadow-default); */
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.logout-btn i {
  margin-right: 0.5rem;
}

.index-content {
  flex: 1;
  padding: var(--spacing-lg);
  overflow-y: auto;
  /* height: calc(100% - 4.375rem); */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.index-content::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.avatar-sm {
  height: 3rem;
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
}

.avatar-title {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-primary-lighten {
  background-color: rgba(114, 124, 245, 0.18);
}

.bg-success-lighten {
  background-color: rgba(10, 207, 151, 0.18);
}

.bg-info-lighten {
  background-color: rgba(57, 175, 209, 0.18);
}

.bg-warning-lighten {
  background-color: rgba(255, 188, 0, 0.18);
}

/* .insights-form-container {
  width: 100%;
  margin-bottom: var(--spacing-lg);
}

.form-options {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  margin-bottom: var(--spacing-lg);
  overflow: visible;
  position: relative;
  background: white;
  padding: 15px;
  border-radius: calc(.65rem - 1px);
} */
.insights-form-container {
  width: 100%;
  margin-bottom: var(--spacing-lg);
}

.form-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--spacing-md);
  align-items: center;
  margin-bottom: var(--spacing-lg);
  overflow: visible;
  position: relative;
  background: white;
  padding: 15px;
  border-radius: calc(.65rem - 1px);
}

.insights-title {
  min-width: 100px;
}

.filters-group {
  gap: var(--spacing-md);
}

.filter-item {
  min-width: 182px;
  max-width: 220px;
}

/* Special styling for date picker to ensure full visibility */
.date-picker-container {
  min-width: 248px;
  max-width: 280px;
  border-radius: 4px;
}

/* Make sure the datepicker input field takes full width */
.full-width-datepicker {
  width: 100% !important;
}

/* Additional styling for the date picker dropdown - may need adjustment based on the specific library */
:deep(.dp__main) {
  width: 100% !important;
  min-width: 280px;
}

:deep(.dp__range_start),
:deep(.dp__range_end) {
  display: flex !important;
}

/* Media queries for responsive behavior */
@media (max-width: 991px) {
  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .filters-group {
    width: 100%;
    margin-top: var(--spacing-sm);
    justify-content: space-between;
  }

  .filter-item {
    flex: 1 1 45%;
    min-width: 160px;
  }
}

@media (max-width: 575px) {
  .filter-item {
    flex: 1 1 100%;
    width: 100%;
    min-width: 100%;
  }

  /* Ensure date picker is wide enough on mobile */
  .date-picker-container {
    min-width: 100%;
  }

  .filter-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: var(--spacing-sm);
  }
}

.form-row {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.form-control .text-box {
  height: var(--input-height) !important;
}

/* Page elements */
.page-header {
  margin-left: 0 !important;
}


.card {
  border-radius: var(--border-radius-lg);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: var(--spacing-lg);
}

.card-header {
  padding: var(--spacing-lg);
  background-color: transparent;
  border-bottom: 1px solid var(--color-border);
}

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

.card-content {
  margin-bottom: 0 !important;
  padding: 0.9375rem;
  /* 15px to rem */
}

/* Buttons */
.btn {
  padding: 0.5625rem;
  /* 9px to rem */
  border-radius: var(--border-radius-md);
  background-color: var(--color-button) !important;
  border-color: var(--color-button) !important;
}

.btn:hover {
  background-color: var(--color-button-hover) !important;
  border-color: var(--color-button-hover) !important;
}

.btn-small {
  width: 2.5rem !important;
  /* 40px to rem */
  background-color: var(--color-button) !important;
  padding: 0.5625rem;
  /* 9px to rem */
  border-radius: var(--border-radius-md);
  color: var(--color-white);
}

.btn-small:hover {
  background-color: var(--color-button-hover) !important;
  border-color: var(--color-button-hover);
  color: var(--color-white);
}

.filter-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-right: 3%;
}

.custom-select {
  height: 2.5rem;
  border-radius: var(--border-radius-md);
}

.custom-select,
.custom-input {
  width: 100% !important;
  height: var(--input-height);
  border: 1px solid #B6B6B9 !important;
  border-radius: var(--border-radius-sm) !important;
  color: #444444 !important;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Table Styles */
.table {
  border: 0.125rem solid #c2c2c2;
  /* 2px to rem */
  border-right: none;
  border-left: none;
  width: 100%;
  overflow-x: auto;
  font-size: var(--font-size-sm);
  color: var(--color-black);
  margin-bottom: var(--spacing-lg);
}

.table a {
  font-size: var(--font-size-sm) !important;
  /* text-decoration: underline !important; */
  display: flex !important;
  /* justify-content: center !important; */
}

.table td {
  /* font-weight: 500 !important; */
  font-size: 12px;
}

.table>thead {
  background-color: var(--color-table-header);
  font-weight: 600;
}

.table-striped>tbody>tr:nth-of-type(odd),
.table-striped>tbody>tr:nth-of-type(even) {
  /* --bs-table-accent-bg: var(--color-table-row); */
  color: var(--color-black);
}

.table-light th {
  background-color: var(--color-light);
  color: var(--color-dark);
  font-weight: 600;
}

.table-centered {
  text-align: center;
}

.table-borderless {
  border: none !important;
}

.table-centered td,
.table-centered th {
  vertical-align: middle;
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.action-cell {
  text-align: center;
  padding: 0.5rem;
}

.action-icons-wrapper {
  display: flex;
  gap: 0.75rem;
  /* spacing between icons */
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.legend-color {
  width: 1rem;
  height: 1rem;
  border-radius: var(--border-radius-sm);
  margin-right: var(--spacing-sm);
  flex-shrink: 0;
}

/* Pagination */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0;
  /* 10px 0 to rem */
  flex-wrap: wrap;
}

.pagination-info {
  color: var(--color-text-light);
  font-size: var(--font-size-md);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  /* 4px to rem */
  flex-wrap: wrap;
}

.pagination-button {
  display: flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  /* 6px 12px to rem */
  background: none;
  border: none;
  color: var(--color-text-light);
  font-size: var(--font-size-md);
  cursor: pointer;
  border-radius: var(--border-radius-md);
}

.pagination-button:hover {
  background-color: #f3f4f6;
}

.prev-button svg {
  margin-right: 0.25rem;
  /* 4px to rem */
}

.next-button svg {
  margin-left: 0.25rem;
  /* 4px to rem */
}

.pagination-pages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.pagination-page {
  width: 2rem;
  /* 32px to rem */
  height: 2rem;
  /* 32px to rem */
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  margin: 0 0.125rem;
  /* 0 2px to rem */
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-md);
  color: #374151;
  cursor: pointer;
}

.pagination-page:hover:not(.active) {
  background-color: #f3f4f6;
}

.pagination-page.active {
  background-color: var(--color-button);
  color: white;
}

.pagination-ellipsis {
  width: 2rem;
  /* 32px to rem */
  height: 2rem;
  /* 32px to rem */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
}

/* Status badges */
.payment-status-badge {
  display: inline-block;
  width: 4.875rem;
  /* 78px to rem */
  padding: 0.25rem;
  /* 4px to rem */
  font-size: var(--font-size-sm);
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: center;
  border-radius: var(--border-radius-sm);
}

.payment-status-completed {
  background-color: var(--color-status-completed);
  color: var(--color-white);
  border: 1px solid var(--color-status-completed-border);
}

.payment-status-awaiting {
  background-color: var(--color-status-awaiting);
  color: var(--color-status-awaiting-text);
  border: 1px solid var(--color-status-awaiting-border);
}

.booking-status-reserved {
  background-color: var(--color-status-reserved);
  color: var(--color-status-reserved-text);
  border: 1px solid #9E9E9E;
}

.booking-operational {
  background-color: var(--color-status-operational);
  color: var(--color-status-awaiting-text);
  border: 1px solid var(--color-status-awaiting-border);
}

.booking-reserved {
  background-color: var(--color-status-reserved);
  color: var(--color-status-reserved-text);
  border: 1px solid #9E9E9E;
}

.booking-checked-in {
  background-color: var(--color-status-checked-in);
  color: var(--color-status-checked-in-text);
  border: 1px solid var(--color-status-checked-in-text);
}

/* Miscellaneous */
.payment-card {
  font-weight: 600;
  color: #656575;
  font-size: 0.8125rem;
  /* 13px to rem */
}

.fw-bold {
  font-weight: 600 !important;
  color: #656575;
  font-size: var(--font-size-xl);
}

.action-icon {
  color: var(--color-black) !important;
}

.multiselect-placeholder,
input::placeholder,
.multiselect-single-label {
  color: #444444 !important;
  font-size: var(--font-size-md) !important;
  opacity: 1;
  font-family: 'IBM Plex Sans', sans-serif !important;
  text-overflow: ellipsis;
  word-wrap: normal;
  padding: 0.45rem !important;}

.form-check-input:checked {
  background-color: var(--color-button) !important;
  border-color: var(--color-black) !important;
}

i.mdi.mdi-asterisk,
em.mdi.mdi-asterisk {
  color: #f95000;
  font-size: 0.5rem;
  /* 8px to rem */
  vertical-align: top;
  margin-left: 0.1875rem;
  /* 3px to rem */
}

.bottom-buttons-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.custom-header,
.custom-body {
  color: var(--color-black);
}

.modal-title {
  margin-top: 0;
  color: black;
  font-size: var(--font-size-lg);
}

.modal {
  background-color: rgb(0 0 0 / 60%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-backdrop {
  position: relative !important;
}

.modal-btn-close {
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: .25em .25em;
  color: #474d56;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23474d56'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  border: 0;
  border-radius: .25rem;
  opacity: .65;
  color: #000;
}

/* Loaders */
.loader {
  position: fixed;
  background-color: #000;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 9999;
  opacity: 0.5;
  padding-top: 20%;
  padding-left: 50%;
}

/* Login page */
.fm-auth-fluid {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(143, 143, 143, 0.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xxl);
  position: relative;
  overflow: hidden;
}

.fm-auth-fluid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/bg-auth.jpg');
  background-position: center;
  background-size: cover;
  backdrop-filter: blur(0.5rem);
  /* 8px to rem */
  -webkit-backdrop-filter: blur(0.5rem);
  /* 8px to rem */
  z-index: -1;
}

.fm-auth-fluid-form-box {
  width: 100%;
  max-width: 28.125rem;
  /* 450px to rem */
  padding: 1rem;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(0.9375rem);
  /* 15px to rem */
  -webkit-backdrop-filter: blur(0.9375rem);
  /* 15px to rem */
  border-radius: var(--border-radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-default);
  z-index: 1;
}

.fm-card-body {
  padding: var(--spacing-xxl);
}

.fm-auth-brand {
  margin-bottom: var(--spacing-xxl);
  text-align: center;
}

.fm-mt-0 {
  margin-top: 0;
}

.fm-mb-3 {
  margin-bottom: 1.5rem;
}

.fm-heading {
  color: var(--color-white);
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.fm-form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.fm-form-a {
  color: var(--color-white);
}

.fm-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: rgba(255, 255, 255, 0.9);
  background-clip: padding-box;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius-sm);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.fm-form-control:focus {
  border-color: var(--color-focus);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(123, 104, 238, 0.25);
  background-color: var(--color-white);
}

.eye-icon-div {
  border-top-right-radius: var(--border-radius-sm) !important;
  border-bottom-right-radius: var(--border-radius-sm) !important;
}

.password-eye:before {
  font-family: "Material Design Icons";
  content: "\F06D1";
  font-style: normal;
  font-weight: 400;
  font-variant: normal;
  vertical-align: middle;
  line-height: 1.2;
  font-size: 16px;
}

.show-password .password-eye:before {
  content: "\F06D0";
}

.fm-d-flex {
  display: flex;
}

.fm-align-items-center {
  align-items: center;
}

.fm-h-100 {
  height: 100%;
}

/* Override multiselect and datepicker styles for consistency */
.multiselect-wrapper,
.dp__main {
  width: 100% !important;
  min-height: calc(var(--ms-border-width, 1px)*2 + var(--ms-font-size, 0.9rem)*var(--ms-line-height, 0.175) + var(--ms-py, .25rem)*2) !important;
}

/* Date picker adjustments */
.dp__pointer {
  height: 2.5rem;
  /* 40px to rem */
}

/* Responsive styles - USE PERCENTAGE AND REM FOR BETTER SCALING */
/* Large Screens (Default) */
.col-xl-5 h4 {
  margin-bottom: 0;
}

.row-selected {
  --bs-table-accent-bg: #E5E5E5 !important;
}

/* Medium screens (tablets and small desktops) */
@media (max-width: 64rem) {

  /* 1024px */
  .dashboard-content {
    padding: var(--spacing-md);
  }

  .form-options {
    flex-wrap: wrap;
  }

  .col-sm-3 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: var(--spacing-md);
  }

  /* Make header full width on medium screens */
  .col-sm-3.col-xl-5 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: var(--spacing-md);
  }

  /* Button placement */
  /* .form-options button {
    margin-top: var(--spacing-xs);
  } */

  /* Adjust header for tablets */
  .header {
    flex-wrap: wrap;
    gap: 0.625rem;
    /* 10px to rem */
  }

  .dashboard-booking-btn {
    order: 1;
    /* width: 100%; */
    max-width: 100%;
  }

  .user-actions {
    order: 2;
    margin-left: auto;
  }

  .user-name {
    max-width: 6.25rem;
    /* 100px to rem */
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .form-row>* {
    flex: 1 1 calc(50% - 0.5rem);
    /* 8px to rem */
    min-width: 12.5rem;
    /* 200px to rem */
  }
}

/* Small tablets */
@media (min-width: 37.5rem) and (max-width: 47.9375rem) {

  /* 600px to 767px */
  .main-content {
    width: 100%;
    padding: 0.75rem;
    /* 12px to rem */
    margin-left: 0;
  }

  /* Adjust header for small tablets */
  .header {
    flex-wrap: wrap;
    gap: 0.625rem;
    /* 10px to rem */
    padding: 0.75rem 1rem;
    /* 12px 16px to rem */
  }

  .dashboard-booking-btn {
    order: 1;
    /* width: 100%; */
    max-width: 100%;
  }

  .user-actions {
    order: 2;
    margin-left: auto;
    gap: 0.5rem;
    /* 8px to rem */
  }

  .user-profile {
    padding: 0.5rem 0.75rem;
    /* 8px 12px to rem */
  }

  .user-name {
    max-width: 5rem;
    /* 80px to rem */
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .form-row>* {
    flex: 1 1 100%;
  }

  .fm-auth-fluid-form-box {
    padding: 0.5rem;
  }

  .fm-card-body {
    padding: 1.5rem;
  }

  .col-sm-3 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: var(--spacing-sm);
  }

  /* Make stat cards stack properly */
  .col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: var(--spacing-md);
  }
}

/* Small screens (small tablets) */
@media (max-width: 48rem) {

  /* 768px */
  .col-sm-3 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: var(--spacing-sm);
  }

  .user-info {
    display: flex;
  }

  .form-options {
    gap: var(--spacing-sm);
  }

  /* Stack action buttons side by side */
  .form-options button {
    flex: 1;
  }

  /* Make stat cards stack properly */
  .col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: var(--spacing-md);
  }

  /* Filter actions responsiveness */
  .filter-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* Phones */
@media (max-width: 37.4375rem) {

  /* 599px */
  .main-content {
    width: 100%;
    padding: 0.5rem;
    /* 8px to rem */
    margin-left: 0;
  }

  /* Adjust header for phones */
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    /* 12px to rem */
    padding: 0.75rem;
    /* 12px to rem */
  }

  .dashboard-booking-btn {
    width: 100%;
    max-width: 100%;
  }

  .user-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .pagination-container {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    /* 12px to rem */
  }

  .pagination-info {
    margin-bottom: 0.5rem;
    /* 8px to rem */
  }

  .pagination-pages {
    justify-content: center;
  }

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

  .content-wrapper {
    margin-left: 0;
    border-radius: 1rem;
    /* 16px to rem */
  }
}

/* Extra small devices */
@media (max-width: 23.4375rem) {

  /* 375px */
  .header {
    padding: 0.5rem;

  }

  .user-profile {
    padding: 0.375rem 0.5rem;
  }

  .user-name {
    display: none;

  }

  .dashboard-content {
    padding: 0 0.5rem;
  }
}

/* Vehicle Info Column Styling - New */
.calendar-header {
  position: sticky !important;
  top: 0;
  z-index: 10;
  background-color: #f5f5f5;
  border: 0.125rem solid #c2c2c2;
  border-right: none;
  border-left: none;
}

/* Calendar Day Column Styling */
.planning-calendar {
  width: 90px;
}


/* Day Date Display */
.col-date-booking {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  cursor: pointer;
}

.month-booking {
  font-size: 14px;
  font-weight: 500;
  color: #71717A;
  text-transform: uppercase;
}

.day-booking {
  font-size: 22px;
  color: #444444;
  font-weight: 600;
}

/* Planning Table Structure */
.planning-table {
  max-height: 600px !important;
  overflow-y: auto !important;
  position: relative !important;
  scroll-behavior: smooth;
}

.planning-table table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.planning-table table th {
  vertical-align: middle;
  border: 0.125rem solid #c2c2c2;
  padding: 12px 8px !important;
}

.planning-table thead tr:nth-child(1) th {
  background-color: var(--color-white);
  position: sticky;
  top: -1px;
  border: 0.125rem solid #c2c2c2;
  border-right: none;
  border-left: none;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

/* Booking Cards Styling */
.planning_td {
  padding: 8px 10px !important;
  height: 70px;
  margin: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff !important;
  cursor: pointer;
}

.planning_td:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Row Styling */
.planning-table tr {
  height: 78px;
}

.planning-table td {
  padding: 4px !important;
  vertical-align: middle;
}

.planning-table td:first-child {
  padding: 1% !important;
  font-weight: 500;
  height: 78px !important;
  background-color: #f5f5f5 !important;
}

/* Status Card Colors */
.list-group-item-Operational {
  background-color: #0ea5e9 !important;
  /* Light blue like in image */
  border-left: 4px solid #0284c7;
}

.list-group-item-Reserved,
.list-group-item-Booking.planning_td {
  background-color: #6A59C5 !important;
  border-left: 4px solid #093C52;
  border-radius: 7px;
  text-overflow: ellipsis;
}

.list-group-item-Checked-in {
  background-color: #ef4444 !important;
  /* Red */
  border-left: 4px solid #b91c1c;
}

.list-group-item-Secured.planning_td,
.list-group-item-Secured {
  background-color: #22c55e !important;
  /* Green */
  border-left: 4px solid #15803d;
}

.list-group-item-archived {
  background-color: #a855f7 !important;
  /* Purple */
  border-left: 4px solid #7e22ce;
}

.list-group-item-secondary {
  background-color: rgba(63, 150, 201, 0.15) !important;
  border: 1px solid #E0E0E0;
}

/* Company name in booking */
.booking-company {
  font-weight: 500;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

/* Vehicle information cell styling */
.vehicle-info-column {
  width: 280px !important;
  min-width: 280px !important;
  text-align: center;
  font-size: 18px;
}

.vehicle-info-cell {
  padding: 8px 12px !important;
  background-color: #f9fafb !important;
  border-right: 1px solid #e0e0e0;
  position: relative;
  /* For positioning the indicator */
  display: flex;
  align-items: center;
}

/* Vehicle information wrapper */
.vehicle-info-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  z-index: 1;
  /* Ensure content is above the indicator */
}

/* Brand logo */
.vehicle-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Vehicle details container */
.vehicle-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
  /* Important for text overflow handling */
}

/* License plate */
.license-plate {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Vehicle specifications */
.vehicle-specs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #64748b;
}

/* Vehicle type */
.vehicle-type {
  font-weight: 500;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fleet color indicator - vertical bar */
.fleet-indicator {
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  /* Width of the vertical bar */
  height: 100%;
  /* Full height of the cell */
  z-index: 0;
  /* Behind the content */
  transition: width 0.2s ease;
}

/* Tooltip for fleet indicator */
.fleet-indicator::before {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  margin-right: 10px;
  background-color: #333;
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 14px;
  /* Larger font for tooltip */
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Tooltip arrow */
.fleet-indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent #333;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 10;
}

/* Show tooltip on hover */
.fleet-indicator:hover::before,
.fleet-indicator:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Hover effect for fleet indicator */
.fleet-indicator:hover {
  width: 20px;
  /* Slightly wider on hover */
  cursor: help;
}

/* Modal */

.modal-content {
  border: none;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 15px 20px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.modal-title {
  font-weight: 600;
  color: #212529;
}

.modal-body,
.crud-form-body {
  padding: 25px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-btn-close:hover {
  opacity: 1;
}

/* Form Section Styling */
.form-section {
  background-color: #f9fafb;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid #eaedf2;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e9ecef;
}

/* Form Group Styling */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 0.875rem;
  color: #495057;
}

.required-asterisk {
  color: #dc3545;
  font-weight: bold;
  margin-left: 2px;
}

/* Form Controls */
.form-control {
  display: block;
  width: 100%;
  padding: 0.45rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control:disabled {
  background-color: #f8f9fa;
  opacity: 0.7;
}

/* Radio Buttons and Checkboxes */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 5px;
}

.form-check {
  display: block;
  min-height: 1.5rem;
  margin-bottom: 0.125rem;
}

.form-check-inline {
  display: inline-flex;
  align-items: center;
  margin-right: 0.75rem;
}

.form-check-input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
  vertical-align: top;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 1px solid rgba(0, 0, 0, 0.25);
  appearance: none;
  color-adjust: exact;
}

.form-check-input[type="checkbox"] {
  border-radius: 0.25em;
}

.form-check-input[type="radio"] {
  border-radius: 50%;
}

.form-check-input:checked {
  background-color: var(--color-button);
  border-color: var(--color-button);
}

.form-check-input:disabled {
  pointer-events: none;
  filter: none;
  opacity: 0.5;
}

.form-check-label {
  margin-left: 0.5rem;
  display: inline-block;
}

/* Indefinite Check Positioning */
.indefinite-check {
  margin-top: 2rem;
}

/* Input Groups */
.input-group {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  text-align: center;
  white-space: nowrap;
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 0.25rem 0 0 0.25rem;
}

.input-group .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Action Buttons */
.form-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-block;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  padding: 0.475rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-primary {
  color: #fff;
  background-color: var(--color-button);
  border-color: var(--color-button);
}

.btn-primary:hover {
  color: #fff;
  background-color: var(--color-button-hover);
  border-color: var(--color-button-hover);
}

.btn-primary:disabled {
  color: #fff;
  background-color: var(--color-button);
  border-color: var(--color-button);
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-danger {
  color: #fff;
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
}

.btn-danger:hover {
  color: #fff;
  background-color: #bb2d3b !important;
  border-color: #b02a37 !important;
}

.btn-outline-secondary {
  color: #fff !important;
  background-color: #545b62 !important;
  border-color: #545b62 !important;
}

.btn-outline-secondary:hover {
  color: #fff !important;
  background-color: #616970 !important;
  border-color: #616970 !important;
}

/* Validation Styling */
.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-section {
    padding: 12px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    margin-bottom: 8px;
  }


  .modal-body {
    padding: 15px;
  }
}

.hide {
  display: none !important;
}

/* Action container and date range selector */
.action-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  margin-bottom: 15px;
}

.date-range-selector {
  display: flex;
  align-items: center;
  height: 38px;
  margin-bottom: 0;
}

.date-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: #7367f0;
  border: none;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
  border-radius: 4px;
}

.date-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.date-nav-prev,
.date-nav-next {
  border-radius: 4px;
}

.date-nav-btn:hover:not(:disabled) {
  background-color: #5a6268;
}

.date-selector-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #6c757d;
  height: 100%;
  position: relative;
  border-radius: 4px;
  padding: 0 15px;
  margin: 0 10px;
}

.date-display {
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  width: 100%;
  cursor: pointer;
  padding: 8px;
}

.date-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 4px;
}

.date-option {
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 0.9rem;
}

.date-option:hover {
  background-color: #f8f9fa;
}

.date-option.selected {
  background-color: #e9ecef;
}

/* Grid container and loader */
.grid-container {
  position: relative;
}

.loader-container {
  color: #666;
  display: flex;
  flex-direction: column;
}

.append_html.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Form controls */
.form-options {
  margin-bottom: 15px;
}

.btn-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Fleet legend */
.fleet-legend {
  display: flex;
  align-items: center;
  margin-top: 0;
  padding: 0;
  background-color: transparent;
  border: none;
  flex-wrap: nowrap;
  padding-top: 0.5%;
}

.legend-item {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.legend-item:hover {
  background-color: #f3f4f6;
}

.legend-item.active {
  background-color: #e5e7eb;
  font-weight: 600;
}

.legend-color {
  display: inline-block;
  width: 12px;
  height: 20px;
  border-radius: 2px;
}

.legend-color.all-fleets {
  background: linear-gradient(to right,
      #5c6bc0 0%, #5c6bc0 20%,
      #ef5350 20%, #ef5350 40%,
      #66bb6a 40%, #66bb6a 60%,
      #78909c 60%, #78909c 80%,
      #ffca28 80%, #ffca28 100%);
}

.legend-text {
  font-size: 13px;
  color: #4b5563;
  font-weight: 500;
}

.legend-item.active .legend-text {
  color: #1f2937;
}

/* Responsive adjustments */
@media (max-width: 1440px) {
  /* .dp__input {
    font-size: var(--font-size-xs) !important;
    font-weight: 600 !important;
  } */

  /* .multiselect-placeholder,
  input::placeholder,
  .multiselect-single-label {
    font-size: var(--font-size-xs) !important;
    font-weight: 600 !important;
  } */

  .action-container {
    flex-wrap: wrap;
  }

  .h3,
  h3 {
    font-weight: 600 !important;
    font-size: 20px !important;
  }

  .index-content {
    height: 100%;
  }

  .h4,
  h4 .h5,
  h5 {
    font-weight: 700 !important;
  }

  .h4,
  h4 {
    font-size: 1rem !important;
  }
}

@media (max-width: 1200px) {
  .dp__input {
    font-size: var(--font-size-sm) !important;
    font-weight: 600 !important;
  }

  .multiselect-placeholder,
  input::placeholder,
  .multiselect-single-label {
    font-size: var(--font-size-sm) !important;
    font-weight: 600 !important;
  }

  .h3,
  h3 {
    font-weight: 600 !important;
    font-size: 1.5rem !important;
  }

  .action-container {
    flex-wrap: wrap;
  }

  .fleet-legend {
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .date-display {
    font-size: var(--font-size-sm);
  }

}

@media (max-width: 768px) {
  .date-display {
    font-size: 0.8rem;
  }
}

.h4,
h4 .h5,
h5 {
  font-weight: 700 !important;
}

.h4,
h4 {
  font-size: 1rem !important;
}

.h3,
h3 {
  font-weight: 600 !important;
  font-size: 20px !important;
}

.no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.no-data span {
  font-size: 18px;
  font-weight: 600;
}

.no-data img {
  height: auto;
  width: 80%;
}

.fm-padding {
  padding: 0 .75rem .75rem;
}
.avatar-profile {

  width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color:#000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}
.table>:not(caption)>*>* {
    padding: .65rem 0.65rem;
  }
  .fm-auth-brand img{
    width: 100%;
    height: auto;
}
