/* Loading Settings */
#loading-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(67, 67, 67, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loading-container img {
  width: 40%;
  clip-path: circle(42%);
}

/* Tooltip settings */
.tooltip .tooltip-inner {
  max-width: 340px !important;
  width: auto !important;
  font-size: 10px !important;
  font-family: "Poppins", sans-serif;
  text-align: left;
}

.tooltip-arrow:before {
  display: none;
}

/* Client Branch Badge Tooltip */
.client-branch-tooltip .tooltip-inner {
  background-color: #2C2C2C;
  color: #FFFFFF;
  font-size: 12px !important;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  text-align: left;
}

.client-branch-tooltip .tooltip-arrow::before {
  display: block !important;
  border-right-color: #2C2C2C !important;
}

.base-left-side-panel {
  width: 13%;
  transition: width 0.3s ease;
  min-width: 70px;
}

.base-left-side-panel.collapsed {
  width: 70px;
}

.base-right-side-panel {
  width: 87%;
  transition: width 0.3s ease;
}

.base-right-side-panel.expanded {
  width: calc(100% - 70px);
}

/* Logo Container - clickable to collapse menu */
.logo-container {
  cursor: pointer;
  text-align: center;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-container:hover .logo#normalLogo {
  display: none !important;
}

.logo-container:hover .logo#hoverLogo {
  display: inline-block !important;
  opacity: 1 !important;
}

.base-left-side-panel.collapsed .logo-container {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

/* Collapsed Logo Container - visible only when menu is collapsed */
.collapsed-logo-container {
  display: none;
  cursor: pointer;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 18px;
  z-index: 10;
}

.base-left-side-panel.collapsed .collapsed-logo-container {
  display: block;
}

.collapsed-logo-container .collapsed-logo#collapsedLogo {
  display: block;
}

.collapsed-logo-container .collapsed-logo#collapsedLogoHover {
  display: none;
}

.collapsed-logo-container:hover .collapsed-logo#collapsedLogo {
  display: none;
}

.collapsed-logo-container:hover .collapsed-logo#collapsedLogoHover {
  display: block;
}


.base-left-side-panel-content {
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 4px;
  height: 100vh;
}

.base-left-side-panel-logo-row {
  border-radius: 20px 20px 0 0;
  background-color: #FFFFFF;
  min-height: 12%;
  padding-top: 8px;
  padding-left: 8px;
  padding-right: 8px;
  padding-bottom: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.base-left-side-panel-logo-row .logo-row-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 0px;
}

.base-left-side-panel.collapsed .base-left-side-panel-logo-row {
  cursor: default;
}


.logo-text {
  text-align: center;
  color: #979898;
  font-size: 10px;
  font-weight: 400;
  padding-top: 4px;
  transition: opacity 0.3s ease;
}

.base-left-side-panel.collapsed .logo-text {
  opacity: 0;
}

#hoverLogo {
  opacity: 0;
  display: none;
}

.base-left-side-panel-branch-choice-row {
  background-color: #FFFFFF;
  min-height: 10%;
  transition: opacity 0.3s ease, min-height 0.3s ease;
}

.base-left-side-panel.collapsed .base-left-side-panel-branch-choice-row {
  opacity: 0;
  pointer-events: none;
  min-height: 0;
  overflow: hidden;
  height: 0;
  padding: 0;
}

/* Client/Branch info badge for collapsed state */
.client-branch-badge {
  display: none;
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FF6B42;
  color: white;
  border-radius: 30%;
  width: 28px;
  height: 28px;
  font-size: 13px;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 11;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.base-left-side-panel.collapsed .client-branch-badge {
  display: flex;
  top: 70px; /* Increased from 55px to add more space from logo */
}

.client-branch-badge:hover {
  transform: translateX(-50%) scale(1.1);
}

.base-left-side-panel-menu-row {
  background-color: #FFFFFF;
  height: 68%;
}

.base-left-side-panel.collapsed .base-left-side-panel-menu-row {
  height: 78%;
  padding-top: 16px;
}

.base-left-side-panel-menu-col {
  max-height: 100%; /* Fix it to the height of the row it is in */
  display: flex;
  flex-direction: column;
  align-items: center; /* Align contents vertically */
  justify-content: center;
}

.base-left-side-panel-menu-header {
  font-family: "Poppins", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  color: #5D5D5D;
}

/* Hide menu text when collapsed */
.menu-text {
  transition: opacity 0.3s ease, width 0.3s ease;
  white-space: nowrap;
}

.base-left-side-panel.collapsed .menu-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.base-left-side-panel.collapsed .menu-border-text {
  opacity: 0;
}

.base-left-side-panel-logout-row {
  border-radius: 0 0 20px 20px; /* Rounded button corners */
  background-color: #FFFFFF;
  min-height: 10%;
}

.base-logout-button {
  font-family: "Poppins", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  color: #F1552C; /* Button text color */
  background-color: #FCDDD5; /* Button background color */
  border: none; /* Remove button's border */
  border-radius: 20px; /* Rounded button corners */
  height: 32px;
  padding-left: 4px;
  padding-right: 8px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.base-logout-button:hover,
.base-logout-button:focus {
  color: #FCDDD5;
  background-color: #F1552C;
}

.base-left-side-panel.collapsed .base-logout-button {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px; /* Match collapsed stats button border-radius */
}

.base-left-side-panel.collapsed .base-logout-button .icon-circle {
  width: 26px;
  height: 26px;
  font-size: 16px;
}

.base-left-side-panel.collapsed .base-logout-button img {
  width: 18px;
  height: 18px;
}

h3, h4 {
  font-family: "Poppins", sans-serif;
}

div.h3,
div.h4 {
  font-family: "Poppins", sans-serif;
}

select.base-form-select {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #434343; /* Select text color */
  background-color: #F2F2F2; /* Select background color */
  border: 2px solid transparent;
  border-radius: 20px;
  height: 32px;
  padding-top: 3px; /* To align text vertically*/
  transition: border-color 0.3s ease;
}

select.base-form-select:hover {
  border-color: #F1552C;
}

select.base-form-select:focus {
  -webkit-box-shadow: none;
  box-shadow: none;
  border-color: #F1552C;
}

/* Hide hover effect when menu is collapsed */
.base-left-side-panel.collapsed select.base-form-select:hover {
  border-color: transparent;
}

/* Red border for branch select when waiting for selection */
select.base-form-select.waiting-for-selection {
  border-color: #dc3545 !important;
}

select.base-form-select.waiting-for-selection:hover {
  border-color: #dc3545 !important;
}

.base-menu-btn {
  font-family: "Poppins", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  color: #5D5D5D; /* Button text color */
  background-color: #F2F4F5; /* Button background color */
  border-radius: 20px; /* Rounded button corners */
  height: 30px;
  display: flex;
  align-items: center; /* Align contents vertically */
  padding-left: 6px;
  transition: all 0.3s ease;
}

.base-left-side-panel.collapsed .base-menu-btn {
  justify-content: center;
  width: 42px !important;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  margin-bottom: 10px !important;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Ready to be activated with a keyboard */
.base-menu-btn:focus {
  font-family: "Poppins", sans-serif;
  -webkit-box-shadow: none;
  box-shadow: none;
  border-color: #F1552C;
}

/* Ready to be activated with a mouse (for all button hover attribute) */
.base-menu-btn:hover {
  border-color: #EF4214;
  background-color: rgba(239, 66, 20, 0.1);
}

/* Add background circle to icon on hover */
.base-menu-btn:hover .icon-circle.menu-icon {
  background-color: #F1552C;
}

/* Change icon color to white on hover */
.base-menu-btn:hover .icon-circle.menu-icon i {
  color: #FFFFFF !important;
}

/* Keep SVG images white on hover */
.base-menu-btn:hover .icon-circle.menu-icon img {
  filter: brightness(0) invert(1);
}

/* Active state for selected menu button */
.base-menu-btn.active {
  border-color: #EF4214;
  background-color: rgba(239, 66, 20, 0.1);
}

.base-menu-btn.active .icon-circle.menu-icon {
  background-color: #F1552C;
}

.base-menu-btn.active .icon-circle.menu-icon i {
  color: #FFFFFF !important;
}

.base-menu-btn.active .icon-circle.menu-icon img {
  filter: brightness(0) invert(1);
}

.base-menu-btn:disabled {
  border: 0 !important;
  opacity: 0.2;
}

.menu-icon {
  font-size: 16px;
  margin-right: 8px;
  transition: margin 0.3s ease, font-size 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle.menu-icon {
  transition: background-color 0.2s ease;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle.menu-icon i {
  transition: color 0.2s ease;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle.menu-icon img {
  transition: filter 0.2s ease;
  width: 20px !important;
  height: 20px !important;
  object-fit: contain;
}

.menu-icon img {
  width: 20px;
  height: 20px;
  transition: width 0.3s ease, height 0.3s ease;
}

.base-left-side-panel.collapsed .menu-icon {
  margin-right: 0;
  font-size: 20px;
}

.base-left-side-panel.collapsed .icon-circle.menu-icon {
  width: 28px;
  height: 28px;
}

.base-left-side-panel.collapsed .icon-circle.menu-icon i {
  font-size: 18px;
}

.base-left-side-panel.collapsed .icon-circle.menu-icon img {
  width: 24px !important;
  height: 24px !important;
}

.base-menu-command-update-btn {
  width: 90%;
  align-self: flex-end;
}

.base-left-side-panel.collapsed .base-menu-command-update-btn {
  width: 42px !important;
  height: 42px;
  align-self: center;
}

/* To add icons to button or select elements */
.input-group-append-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
}

.base-left-side-panel.collapsed .input-group-append-icon {
  opacity: 0;
}

.menu-border-text {
  text-align: left;
  color: #5D5D5D;
  font-size: 10px;
  font-weight: 400;
  padding-left: 12px;
  transition: opacity 0.3s ease;
}

.base-right-side-panel-content {
  height: 100vh;
  padding-top: 10px;
  padding-bottom: 4px;
  padding-left: 24px;
  padding-right: 24px;
}

.base-title-row {
  display: flex;
  border-radius: 24px; /* Rounded button corners */
  background-color: #FFFFFF;
  -webkit-box-shadow: none;
  box-shadow: none;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
}

.base-title-row-content {
  align-self: center;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-right: 12px;
}

.base-title-title {
  font-family: "Poppins", sans-serif;
  text-align: left;
  font-weight: 500;
  font-size: 24px;
  margin-left: 24px;
  margin-bottom: -2px;
  color: #5D5D5D;
}

/* Responsive: Auto-collapse menu on smaller screens */
@media (max-width: 992px) {
  .base-left-side-panel {
    width: 70px !important;
  }

  .base-right-side-panel {
    width: calc(100% - 70px) !important;
  }

  /* Force collapsed state styles on small screens */
  /* Collapsed logo is visible on small screens */
  .base-left-side-panel .collapsed-logo-container {
    display: block !important;
  }

  .base-left-side-panel .logo-container {
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
  }

  .base-left-side-panel .logo-text {
    opacity: 0 !important;
  }

  .base-left-side-panel .base-left-side-panel-branch-choice-row {
    opacity: 0 !important;
    pointer-events: none !important;
    min-height: 0 !important;
    overflow: hidden !important;
    height: 0 !important;
    padding: 0 !important;
  }

  .base-left-side-panel .client-branch-badge {
    display: flex !important;
  }

  .base-left-side-panel .base-left-side-panel-menu-row {
    height: 78% !important;
    padding-top: 16px !important;
  }

  .base-left-side-panel .menu-text {
    opacity: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
  }

  .base-left-side-panel .menu-border-text {
    opacity: 0 !important;
  }

  .base-left-side-panel .base-menu-btn {
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .base-left-side-panel .menu-icon {
    margin-right: 0 !important;
    font-size: 20px !important;
  }

  .base-left-side-panel .menu-icon img {
    width: 22px !important;
    height: 22px !important;
  }

  .base-left-side-panel .base-menu-command-update-btn {
    width: 42px !important;
    height: 42px !important;
    align-self: center !important;
  }

  .base-left-side-panel .input-group-append-icon {
    opacity: 0 !important;
  }

  .base-left-side-panel .base-logout-button {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important; /* Match collapsed stats button border-radius */
  }

  .base-left-side-panel .base-logout-button .icon-circle {
    width: 24px !important;
    height: 24px !important;
    font-size: 16px !important;
  }

  .base-left-side-panel .base-logout-button img {
    width: 18px !important;
    height: 18px !important;
  }
}

/* Responsive: Further adjustments for very small screens */
@media (max-width: 576px) {
  .base-left-side-panel {
    width: 60px !important;
  }

  .base-right-side-panel {
    width: calc(100% - 60px) !important;
  }

  .base-left-side-panel .base-menu-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  .base-left-side-panel .base-logout-button {
    width: 38px !important;
    height: 38px !important;
  }

  .base-left-side-panel .base-menu-command-update-btn {
    width: 38px !important;
    height: 38px !important;
  }
}