/* ============================= */
/*       Root Theme Variables    */
/* ============================= */
:root {
  /* Primary Theme Colors */
  --theme-primary: #01589f;
  --theme-primary-rgb: 1, 88, 159;
  --theme-primary-hover: #014a86;
  --theme-primary-active: #013b6c;
  --theme-primary-text: #ffffff;
  --theme-primary-text-rgb: 255, 255, 255;
  --theme-primary-bg-subtle: rgba(1, 88, 159, 0.1);
  --theme-primary-border-subtle: rgba(1, 88, 159, 0.2);
  --theme-primary-text-emphasis: #01589f;
  /* Semantic Colors */
  --theme-success: #198754;
  --theme-success-rgb: 25, 135, 84;
  --theme-danger: #dc3545;
  --theme-danger-rgb: 220, 53, 69;
  --theme-warning: #ffc107;
  --theme-warning-rgb: 255, 193, 7;
  --theme-info: var(--theme-primary);
  --theme-info-rgb: var(--theme-primary-rgb);
  --theme-light: #f8f9fa;
  --theme-light-rgb: 248, 249, 250;
  --theme-dark: #212529;
  --theme-dark-rgb: 33, 37, 41;
  /* UI Variables */
  --bs-body-bg: #ffffff;
  --bs-body-color: #212529;
  --bs-card-bg: #ffffff;
  --bs-card-border-color: #dee2e6;
  --bs-border-radius-rounded: 0.5rem;
  --bs-border-radius-circle: 50%;
  --bs-icon-bg: var(--theme-primary);
  --bs-icon-color: #ffffff;
  --bs-shadow-color: rgba(0,0,0,0.08);
  /*Mobile layout  */
  --wg-primary: var(--theme-primary);
  --wg-primary-rgb: var(--theme-primary-rgb);
  --wg-primary-hover: var(--theme-primary-hover);
  --wg-gradient: linear-gradient(135deg, #1fa3d8 0%, #01589f 100%);
 /* --wg-shadow: 0 4px 15px rgba(31, 163, 216, 0.15);*/
  --wg-shadow: 0 4px 15px rgba(var(--theme-primary-rgb), 0.15);
  --wg-gradient: linear-gradient(135deg, var(--theme-primary) 0%, #013b6c 100%);
  --wg-shadow: 0 4px 15px rgba(var(--theme-primary-rgb), 0.15);
  --wg-shadow-hover: 0 8px 25px rgba(var(--theme-primary-rgb), 0.25);
  --wg-primary-light: rgba(var(--theme-primary-rgb), 0.1);
  --bs-ghost-bg: #f8f9fa;
  --bs-ghost-border: var(--theme-primary);
  /* Focus */
  --bs-focus-ring-color: rgba(var(--theme-primary-rgb), 0.25);
  /* Custom Variables */
  --custom-overlay-bg: rgba(255, 255, 255, 0.8);
  --custom-shadow-dropdown: 0 4px 10px rgba(0, 0, 0, 0.1);
  --bs-SVG-bg: #ffffff;
  --bs-SVG-color: var(--bs-icon-bg);
  --icon-size: 90px;
}

html {
  scroll-behavior: smooth; /* Smooth scroll */
}

/* ============================= */
/*         Buttons               */
/* ============================= */
.btn-primary {
  --bs-btn-color: var(--theme-primary-text);
  --bs-btn-bg: var(--theme-primary);
  --bs-btn-border-color: var(--theme-primary);
  --bs-btn-hover-color: var(--theme-primary-text);
  --bs-btn-hover-bg: var(--theme-primary-hover);
  --bs-btn-hover-border-color: var(--theme-primary-hover);
  --bs-btn-focus-shadow-rgb: var(--theme-primary-rgb);
  --bs-btn-active-color: var(--theme-primary-text);
  --bs-btn-active-bg: var(--theme-primary-active);
  --bs-btn-active-border-color: var(--theme-primary-active);
  --bs-btn-disabled-color: var(--theme-primary-text);
  --bs-btn-disabled-bg: var(--theme-primary);
  --bs-btn-disabled-border-color: var(--theme-primary);
}

.btn-outline-primary {
  --bs-btn-color: var(--theme-primary);
  --bs-btn-border-color: var(--theme-primary);
  --bs-btn-hover-color: var(--theme-primary-text);
  --bs-btn-hover-bg: var(--theme-primary);
  --bs-btn-hover-border-color: var(--theme-primary);
  --bs-btn-focus-shadow-rgb: var(--theme-primary-rgb);
  --bs-btn-active-color: var(--theme-primary-text);
  --bs-btn-active-bg: var(--theme-primary);
  --bs-btn-active-border-color: var(--theme-primary);
  --bs-btn-disabled-color: var(--theme-primary);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--theme-primary);
}

/* ============================= */
/*         Alerts                */
/* ============================= */
.alert-primary {
  --bs-alert-color: var(--theme-primary-text-emphasis);
  --bs-alert-bg: var(--theme-primary-bg-subtle);
  --bs-alert-border-color: var(--theme-primary-border-subtle);
}

/* ============================= */
/*         Badges                */
/* ============================= */
.badge-primary {
  background-color: var(--theme-primary) !important;
  color: var(--theme-primary-text) !important;
}
.text-bg-primary {
  background-color: var(--theme-primary) !important;
  color: var(--theme-primary-text) !important;
}

/* ============================= */
/*      Progress Bars            */
/* ============================= */
.progress-bar {
  background-color: var(--theme-primary);
}

/* ============================= */
/*         Forms                 */
/* ============================= */
.form-control:focus,
.form-select:focus {
  border-color: var(--theme-primary-border-subtle);
  box-shadow: 0 0 0 0.25rem rgba(var(--theme-primary-rgb), 0.25);
}

.form-check-input:checked {
  background-color: var(--theme-primary);
  border-color: var(--theme-primary);
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--theme-primary-rgb), 0.25);
}
/* ============================= */
/*       Navigation & Links      */
/* ============================= */
.nav-link {
  color: var(--theme-primary) !important;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--theme-primary-hover) !important;
}

  /* Active state */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff !important;
  background-color: var(--theme-primary) !important;
}
/* Disabled */
.nav-link.disabled {
  color: var(--bs-nav-link-disabled-color, #6c757d) !important;
  pointer-events: none;
}
.btn-link:hover,
.btn-link:focus {
  color: var(--bs-icon-color) !important;
}
.link-primary {
  color: var(--theme-primary) !important;
}

  .link-primary:hover,
  .link-primary:focus {
    color: var(--theme-primary-hover) !important;
  }

  #quickLink .nav-link:hover {
    border-radius: 50rem;
    background-color: var(--theme-primary-hover); 
    color: var(--bs-icon-color) !important;
    transition: all 0.3s;
  }
/* ============================= */
/*        Text & Background      */
/* ============================= */
.text-primary {
  color: var(--theme-primary) !important;
}

.bg-primary {
  background-color: var(--theme-primary) !important;
  color: var(--theme-primary-text) !important;
}

.bg-primary-subtle {
  background-color: var(--theme-primary-bg-subtle) !important;
  color: var(--theme-primary-text-emphasis) !important;
}

.border-primary {
  border-color: var(--theme-primary) !important;
}

.border-primary-subtle {
  border-color: var(--theme-primary-border-subtle) !important;
}

/* ============================= */
/*         Pagination             */
/* ============================= */
.page-link {
  color: var(--theme-primary);
}

.page-link:hover {
  color: var(--theme-primary-hover);
}

.page-item.active .page-link {
  background-color: var(--theme-primary);
  border-color: var(--theme-primary);
}

/* ============================= */
/*         Dropdowns              */
/* ============================= */
.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--theme-primary);
}

/* ============================= */
/*        Cards & Icons           */
/* ============================= */
.card {
  background-color: var(--bs-card-bg);
  border: 1px solid var(--bs-card-border-color);
  border-radius: var(--bs-border-radius-rounded);
  transition: all 0.3s ease;
}

/*  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--bs-shadow-color);
  }*/

/*.bi, .fas {
  color: var(--bs-icon-color);
}
*/

/* ============================= */
/*        Dark Theme Support      */
/* ============================= */
[data-bs-theme="dark"] {
  --bs-body-bg: #212529;
  --bs-body-color: #dee2e6;
  --bs-card-bg: #343a40;
  --bs-card-border-color: #495057;
}

/* ============================= */
/*       Utility & Transition     */
/* ============================= */
body {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================= */
/*        Navbar & Links         */
/* ============================= */
.navbar {
  background-color: var(--bs-navbar-bg);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

  .navbar.transparent {
    background-color: transparent !important;
    box-shadow: none !important;
  }

.profile-avatar {
  object-fit: cover;
}
.profile-initial {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  display: inline-block;
  background-color: var(--bs-icon-color);
}
.nav-quickLink {
  color: var(--theme-primary);
  transition: color 0.2s ease;
  display: block;
  padding: var(--bs-nav-link-padding-y, 0.5rem) var(--bs-nav-link-padding-x, 1rem);
  font-size: var(--bs-nav-link-font-size, 1rem);
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: 0;
}

  .nav-quickLink:hover,
  .nav-quickLink:focus {
    color: var(--theme-primary-hover);
    text-decoration: none;
  }

  .nav-quickLink.active {
    color: var(--theme-primary);
    font-weight: 600;
  }

  .nav-quickLink.disabled {
    color: var(--bs-border-color);
    pointer-events: none;
    cursor: default;
  }

/* ============================= */
/*        Card Containers        */
/* ============================= */
.services {
  background-color: var(--bs-card-bg);
  border: 1px solid var(--bs-card-border-color);
  transition: all 0.3s ease;
}

  .services.hide-background {
    background-color: transparent;
    border: none;
    box-shadow: none;
  }

/* ============================= */
/*        Service Cards           */
/* ============================= */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  height: 100%;
  background-color: var(--bs-card-bg);
  color: var(--bs-body-color);
}

/* ============================= */
/*        Service Icons           */
/* ============================= */
.service-icon {
  width: 60px;
  height: 60px;
  background-color:var(--bs-body-bg);
  border: 2px solid var(--bs-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: var(--bs-icon-bg);
  transition: background-color 0.3s ease, border-radius 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2;
  margin-bottom: 0.7rem;
  overflow: hidden;
}

.service-card:hover .service-icon {
  background-color: var(--theme-primary-hover, #e9ecef);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease, border-radius 0.3s ease;
}

.service-card .service-icon i {
  transition: transform 0.3s ease, color 0.3s ease;
  transform-origin: center;
}

.service-card:hover .service-icon i {
  color: var(--bs-icon-color);
}
.service-icon img.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-icon .service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain; /* dynamically apply theme color */
  transition: fill 0.3s ease;
}

/*.service-card:hover .service-icon svg {
  fill: var(--theme-primary-hover, #01589f);
}
.service-icon svg path {
  fill: var(--bs-icon-bg);
}*/

.service-title {
  margin: 0;
  line-height: 1.4;
  font-weight: 600;
  color:var(--bs-body-color)
  /*color: var(--theme-primary);*/
}
.service-link{
  color: var(--bs-body-color);
}
.service-link:hover {
  color: var(--theme-primary);
}

.mobile .service-card:hover .service-link {
  color: var(--theme-primary) !important;
}

/* Mobile: Stack icon/image above text, centered */
@media (max-width: 575.98px) {
  .service-icon {
    margin-bottom: 0.75rem;
  }
  .square-layout-icon {
    margin-bottom: 0.75rem;
  }

/*  .service-title {
    text-align: center;
  }*/
}
.btn-circle {
  width: 38px;
  height: 38px;
  border-radius: var(--bs-border-radius-circle);
  padding: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--theme-primary);
  border: 1px solid var(--theme-primary);
  transition: background-color 0.3s ease, border-radius 0.3s ease;
  text-decoration: none;
}
/*.icon-circle {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
}*/

  /* Hover + Focus like Bootstrap */
  .btn-circle:hover,
  .btn-circle:focus {
    background-color: var(--theme-primary);
    transform: scale(1.05);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    color: var(--theme-primary-text);
  }

  .btn-circle.square-shape {
    border-radius: var(--bs-border-radius-rounded) !important;
  }

  .btn-circle.rounded-shape {
    border-radius: var(--bs-border-radius-circle)!important;
  }

  .service-icon.square-shape {
    border-radius: var(--bs-border-radius-rounded) !important;
  }

  .service-icon.rounded-shape {
    border-radius: var(--bs-border-radius-circle)!important;
  }

.service-icon .bi,
.service-icon .fas {
  color: inherit;
}

.service-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--bs-body-color);
  margin-bottom: 0;
  opacity: 0.8;
}

/* ============================= */
/*       Settings & Buttons       */
/* ============================= */
.settings-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background-color: var(--theme-primary);
  color: var(--theme-primary-text);
  transition: all 0.3s ease;
}

.color-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  background-color: var(--bs-card-bg);
}

  .color-btn:hover {
    transform: scale(1.1);
    border-color: var(--theme-primary-hover);
  }

  .color-btn.active {
    border-color: var(--theme-primary-active);
    box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.2);
  }

/* ============================= */
/*        Offcanvas & Modal       */
/* ============================= */
.offcanvas-header {
  background-color: var(--theme-primary);
  color: var(--theme-primary-text);
}
.modal-header {
  background-color: var(--theme-primary);
  color: var(--theme-primary-text);
}
.modal-header i {
  color: var(--bs-icon-color);
}


.offcanvas-header .btn-close {
  filter: invert(1);
}

.offcanvas-body {
  padding: 1.5rem;
}

/* ============================= */
/*       Quick & Welcome Cards    */
/* ============================= */
.quick-card, .welcome-card {
  transition: all 0.3s ease;
}

  .quick-card.hidden {
    display: none !important;
  }

/* ============================= */
/*        Circle Layout           */
/* ============================= */
.circle-container {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0;
}

.circle-container::-webkit-scrollbar {
  height: 8px;
}

.circle-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.circle-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

  .circle-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }

.circle-row {
  display: flex;
  justify-content: space-around;
  flex-wrap: nowrap !important;
  gap:5px;
  min-width: max-content;
  padding: 10px;
}

.circle-layout {
  flex: 0 0 auto;
}

/* Service Card Styling */
.wizard-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.circle-btn {
  width: 65px;
  height: 65px;
   background: var(--bs-body-bg);
  border: 2px solid var(--bs-icon-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  font-size: 1.9rem;
  justify-content: center;
  margin: 0 auto 15px;
  color: var(--bs-icon-bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.wizard-card:hover .circle-btn {
  background-color: var(--theme-primary-hover, #e9ecef);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease, border-radius 0.3s ease;
}
.wizard-card:hover .circle-btn i {
  color: var(--bs-icon-color);
}
/* Image inside circle */

.circle-btn img.wizard-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.circle-btn .wizard-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Icon inside circle */
.circle-btn i {
  /*color: var(--bs-icon-color, var(--bs-primary));*/
  color: var(--bs-icon-bg);
}
/* Text below circle */
.wizard-title {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.4;
  font-weight: 700;
  color: var(--bs-body-color);
  padding: 0 10px;
 /* max-width: 120px;*/
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wizard-card:hover .wizard-title {
  color: var(--bs-primary);
}

/* ============================= */
/*       Square Layout            */
/* ============================= */
.square-layout .bg-body-secondary {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--bs-card-border-color);
  border-radius: var(--bs-border-radius-rounded);
}

  .square-layout .bg-body-secondary:hover {
    /*transform: translateY(-1px);*/
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
  }

  .square-layout .bg-body-secondary i {
    transition: all 0.3s ease;
  }

  .square-layout .bg-body-secondary:hover i {
    transform: scale(1.1);
  }

.square-layout-icon {
  width: 60px;
  height: 60px;
  /* background-color: var(--bs-icon-bg);*/
  background:var(--bs-body-bg);
  border: 2px solid var(--bs-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  /*color: var(--bs-icon-color);*/
  color: var(--bs-icon-bg);
  transition: background-color 0.3s ease, border-radius 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2;
  margin-bottom: 0.7rem;
  overflow: hidden;
}

  .square-layout-icon img.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .square-layout-icon .service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .square-layout-icon.square-shape {
    border-radius: var(--bs-border-radius-rounded) !important;
  }

  .square-layout-icon.rounded-shape {
    border-radius: var(--bs-border-radius-circle) !important;
  }

  .square-layout-icon .bi,
  .square-layout-icon .fas {
    color: inherit;
  }

  .wizard-card:hover .square-layout-icon {
    background-color: var(--theme-primary-hover, #e9ecef);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease, border-radius 0.3s ease;
  }

  .wizard-card:hover .square-layout-icon i {
    color: var(--bs-icon-color);
  }


/* ============================= */
/* QuickCard square layout       */
/* ============================= */

#quickCard .bg-body-secondary {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

#quickCard .bg-body-secondary:hover {
 /* transform: translateY(-1px);*/
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
}

#quickCard .bg-body-secondary i {
  transition: all 0.3s ease;
}

#quickCard .bg-body-secondary:hover i {
  transform: scale(1.1);
}

/* ============================= */
/*        Dashboard Items         */
/* ============================= */
.dashboard-item {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading .dashboard-item {
  opacity: 0.5;
  pointer-events: none;
}

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-item {
  animation: fadeInUp 0.6s ease;
}

  .dashboard-item:nth-child(1) {
    animation-delay: 0.1s;
  }

  .dashboard-item:nth-child(2) {
    animation-delay: 0.15s;
  }

  .dashboard-item:nth-child(3) {
    animation-delay: 0.2s;
  }

  .dashboard-item:nth-child(4) {
    animation-delay: 0.25s;
  }

  .dashboard-item:nth-child(5) {
    animation-delay: 0.3s;
  }

  .dashboard-item:nth-child(6) {
    animation-delay: 0.35s;
  }

  .dashboard-item:nth-child(7) {
    animation-delay: 0.4s;
  }

  .dashboard-item:nth-child(8) {
    animation-delay: 0.45s;
  }

/* ============================= */
/*        Responsive tweaks       */
/* ============================= */
@media (max-width: 768px) {
  .settings-btn {
    top: 10px;
    right: 10px;
    width: 45px;
    height: 45px;
  }

  .container-custom {
    padding: 2rem 1rem;
  }

  .circle-row {
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .circle-row {
    gap: 12px;
  }
}
/* ============================= */
/*        Settings Sections       */
/* ============================= */
.settings-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.settings-section:last-child {
  border-bottom: none;
}

.settings-section h6 {
  color: var(--theme-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.settings-section h6 i {
  opacity: 0.7; /* makes icon softer */
}

/* ============================= */
/*     Color Picker Styling      */
/* ============================= */

.color-picker {
  margin: 1rem 0;
}

.color-picker label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--bs-body-color);
  font-weight: 500;
}

.color-picker input[type="color"] {
  width: 100%;
  height: 45px;
  border: 2px solid var(--bs-border-color);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.color-picker input[type="color"]:hover {
  border-color: var(--theme-primary-hover);
}
/* ============================= */
/*           Tablist            */
/* ============================= */
/*.theme-tabs {
  background: var(--bs-card-cap-bg);
  border-radius: var(--bs-border-radius-rounded);
  padding: .5rem;
  display: inline-flex;
  gap: .25rem;
  overflow-x: auto;
  white-space: nowrap;
}*/
/*.theme-tabs {
  background: var(--bs-card-cap-bg);
  border-radius: var(--bs-border-radius-rounded);
  padding: .5rem;
  display: flex;*/ /* Full width + flex layout */
  /*width: 100%;*/ /* Needed so scroll triggers only on overflow */

  /*gap: .25rem;
  white-space: nowrap;
  overflow-x: auto;*/ /* Scrollbar appears only when needed */
/*}*/
  /*.theme-tabs::-webkit-scrollbar {
    height: 6px;
  }

  .theme-tabs::-webkit-scrollbar-thumb {
    background: rgba(var(--theme-primary-rgb), 0.3);
    border-radius: 10px;
  }

  .theme-tabs::-webkit-scrollbar-track {
    background: transparent;
  }

.nav-pills.theme-tabs .nav-link {
  background: var(--bs-body-bg);
  border-radius: var(--bs-border-radius-rounded);
  padding: .5rem 1rem;
  transition: all .2s ease;
}

.nav-pills.theme-tabs .nav-link:hover {
  background: rgba(var(--theme-primary-rgb), 0.08);
  color: var(--theme-primary);
}

  .nav-pills.theme-tabs .nav-link.active {
    background: var(--bs-body-bg);
    border: 1px solid var(--theme-primary-border-subtle);
    color: var(--theme-primary);
    font-weight: 600;
    box-shadow: var(--wg-shadow);
  }

.nav-underline.theme-tabs .nav-link {
  font-size: 1rem;*/ /* increase font */
  /*padding: .75rem 0.2rem;
  color: var(--bs-body-color);
  border-radius: 0;
  transition: .2s;
}

.nav-underline.theme-tabs .nav-link:hover {
  color: var(--theme-primary);
}

.nav-underline.theme-tabs .nav-link.active {
  font-weight: 600;
  color: var(--theme-primary);
  border-bottom: 3px solid var(--theme-primary);*/ /* thicker underline */
/*}*/
.theme-tabs {
  display: flex;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

  .theme-tabs::-webkit-scrollbar {
    display: none;
  }

  .theme-tabs .nav-item {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .theme-tabs .nav-link {
    white-space: nowrap;
  }

 /* Cursor changes for drag scrolling */
  .theme-tabs {
    cursor: grab;
  }

  .theme-tabs.dragging {
    cursor: grabbing;
    user-select: none;
  }

  .theme-tabs.dragging .nav-link {
    pointer-events: none;
  }

/* Styling for pills and underline variants */
.nav-pills .nav-link {
  padding: 8px 20px;
}

.nav-underline.theme-tabs .nav-link {
  font-size: 1rem;
  padding: .75rem 0.2rem;
  transition: .2s;
}

.filter-tag {
  background: rgba(var(--theme-primary-rgb), 0.08);
  color: var(--theme-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-tag:hover {
  background-color: var(--theme-primary-hover);
  color: var(--bs-icon-color);
}

.filter-tag .remove-x {
  color: var(--filter-text);
  font-weight: bold;
}
.presentation-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  height: 100%;
  border: 1px solid var(--bs-card-border-color);
  border-radius: var(--bs-border-radius-rounded);
  background-color: var(--bs-card-bg);
  color: var(--bs-body-color);
  display: flex;
  flex-direction: column;
}

.presentation-card .preview-wrapperbox {
  height: 150px;
}

.presentation-card .preview-image {
  max-width: 100%;
  max-height: 100%;
  display: block; /* remove extra space below image */
}

.presentation-card:hover {
  box-shadow: 0 8px 25px var(--bs-shadow-color);
}
  /* Card Body Content */
  .presentation-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--bs-body-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
  }

    .presentation-card .text-muted i {
      color: var(--bs-primary);
      opacity: 0.8;
    }
  /* Hover Effect on Image */
  .presentation-card:hover .preview-image {
    transform: scale(1.05);
    transition: transform 0.5s ease;
  }

  /* Ensure proper spacing */
  .presentation-card > div:last-child {
    margin-top: auto;
  }
  /* Outline Primary (Default State) */
  .btn-circle.btn-outline-primary {
    background-color: transparent;
    color: var(--theme-primary);
    border: 1px solid var(--theme-primary);
  }

  .btn-circle.btn-outline-primary:hover,
  .btn-circle.btn-outline-primary:focus {
    background-color: var(--theme-primary);
    color: var(--theme-primary-text);
    transform: scale(1.05);
    box-shadow: 0 0.5rem 1rem rgba(var(--theme-primary-rgb), 0.25);
    border-color: var(--theme-primary);
  }

  .btn-circle.btn-outline-primary:disabled,
  .btn-circle.btn-outline-primary[disabled] {
    background-color: transparent;
    color: var(--bs-gray-400);
    border-color: var(--bs-gray-300);
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
  }

    .btn-circle.btn-outline-primary:disabled:hover,
    .btn-circle.btn-outline-primary[disabled]:hover {
      background-color: transparent;
      color: var(--bs-gray-400);
      border-color: var(--bs-gray-300);
      transform: none;
      box-shadow: none;
    }

/* Pagination Container */
  #paginationContainer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 0;
  }

  /* Remove Bootstrap default button margins */
  #paginationContainer .btn-circle {
    margin: 0 !important;
  }

    /* Alternative: Without !important (Better Practice) */
    /* Use higher specificity instead */
  #paginationContainer .btn-circle.btn-primary {
  background-color: var(--theme-primary);
  color: var(--theme-primary-text);
  border-color: var(--theme-primary);
  font-weight: 600;
  }

  #paginationContainer .btn-circle.btn-primary:hover,
  #paginationContainer .btn-circle.btn-primary:focus {
    background-color: var(--theme-primary-hover);
    color: var(--theme-primary-text);
    border-color: var(--theme-primary-hover);
    transform: scale(1.08);
    box-shadow: 0 0.75rem 1.5rem rgba(var(--theme-primary-rgb), 0.35);
  }

  #paginationContainer .btn-circle.btn-primary:active {
    background-color: var(--theme-primary-active);
    transform: scale(1);
  }

/* Focus visible for accessibility */
.btn-circle:focus-visible {
  outline: 2px solid var(--theme-primary);
  outline-offset: 2px;
}
/* Responsive adjustments */
@media (max-width: 768px) {
  #paginationContainer {
    gap: 0.25rem;
  }
}

.bg-danger-soft-hover:hover, .bg-danger-soft-hover:active, .bg-danger-soft-hover:focus {
  background-color: rgba(214, 41, 62, 0.1) !important;
  color: var(--bs-danger) !important;
}

/*#mainNavbar {
  transition: all 0.3s ease-in-out;
}

.navbar .btn {
  display: flex;
  align-items: center;
}

.profile-avatar {
  object-fit: cover;
}*/
/* === Navbar toggler animated icon === */
.navbar-toggler-animation {
  display: inline-block;
  width: 24px;
  height: 18px;
  position: relative;
  transition: all 0.3s ease-in-out;
}

  .navbar-toggler-animation span {
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: currentColor;
    left: 0;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
  }

    .navbar-toggler-animation span:nth-child(1) {
      top: 0;
    }

    .navbar-toggler-animation span:nth-child(2) {
      top: 8px;
    }

    .navbar-toggler-animation span:nth-child(3) {
      top: 16px;
    }

/* When expanded (X shape) */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-animation span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-animation span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-animation span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
}

/* === Full width profile dropdown on mobile === */
@media (max-width: 991.98px) {
  #profileDropdown {
    width: 100%;
    justify-content: center;
  }

  .dropdown-menu[aria-labelledby="profileDropdown"] {
    width: 100%;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
  }
}
/* Soft hover for Sign Out */
.bg-danger-soft-hover:hover {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545 !important;
}
/* 🌗 Base dark mode switch container */
.dark-mode-switch {
  background-color: var(--bs-light);
  border-radius: 0.5rem;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

  /* 🌞 Buttons inside the switch */
  .dark-mode-switch .btn {
    border: none;
    color: #555;
    background-color: transparent;
    transition: all 0.25s ease-in-out;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 10px;
  }

    /* ✅ Active or Checked Button */
    .dark-mode-switch .btn-check:checked + .btn,
    .dark-mode-switch .btn.active {
      background-color: #fff !important; /* White background */
      color: #000 !important; /* Black text */
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
      font-weight: 600;
    }

    /* 🖱️ Hover effect */
    .dark-mode-switch .btn:hover {
      background-color: rgba(255, 255, 255, 0.4);
      color: #000;
    }

/* 🌙 Adjust for dark theme */
html[data-bs-theme="dark"] .dark-mode-switch {
  background-color: #1f1f1f;
}

html[data-bs-theme="dark"] .dark-mode-switch .btn {
  color: #aaa;
}

  html[data-bs-theme="dark"] .dark-mode-switch .btn-check:checked + .btn,
  html[data-bs-theme="dark"] .dark-mode-switch .btn.active {
    background-color: #2b2b2b !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  }

/* 🪄 Smooth icon alignment */
.dark-mode-switch svg {
  vertical-align: middle;
  margin-bottom: 2px;
}
/* Base dropdown menu style */
.dropdown-menu-theme {
  max-width: 100%;
  min-width: 240px; /* keeps it usable on desktop */
  width: auto;
  overflow: hidden;
  border-radius: 1rem;
}

/* 📱 Full width on small screens */
@media (max-width: 767.98px) {
  .dropdown-menu-theme[aria-labelledby="profileDropdown"] {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    border-radius: 0; /* optional: edge-to-edge look */
    margin-top: 0.25rem;
  }

  /* Fix any inner button text wrapping */
  .dropdown-menu-theme .dropdown-item {
    white-space: normal;
    text-align: center; /* optional for better alignment */
  }
}
html, body {
  height: 100%;
  min-height: 100vh;
  overflow: auto;
}
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo img {
  width: auto;
  display: block;
}
.cursor-pointer {
  cursor: pointer !important;
}
/*****************************Profile page *****************************/
/* Info Section Container */
.info-section {
  border: 1px solid var(--bs-card-border-color);
  transition: box-shadow 0.3s ease;
}

  .info-section:hover {
    box-shadow: 0 8px 25px var(--bs-shadow-color);
  }

/* Info Items */
.info-item {
  transition: all 0.2s ease;
  border: 1px solid var(--bs-card-border-color);
}

  .info-item:hover {
    box-shadow: 0 8px 25px var(--bs-shadow-color);
  }

  .info-item .info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
  }

    .info-item .info-icon i {
      font-size: 1.25rem;
    }

  .info-item small {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .info-item h6 {
    font-size: 0.95rem;
  }

/* Tool Action Card */
.tool-action-card {
  transition: all 0.3s ease;
  border: 1px solid var(--bs-card-border-color);
  min-height: 200px;
}

  .tool-action-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
  }

.tool-icon-large {
  width: 70px;
  height: 70px;
  background: var(--wg-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

  .tool-icon-large i {
    font-size: 2rem;
    color: var(--bs-icon-color);
  }

@keyframes rotate {
  0%, 100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(180deg);
  }
}

.tool-action-card:hover .tool-icon-large i {
  animation: rotate 3s linear infinite;
}

.badge.bg-success-subtle {
  background-color: #d1e7dd !important;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .info-section {
    margin-bottom: 1rem;
  }

  .tool-icon-large {
    width: 60px;
    height: 60px;
  }

    .tool-icon-large i {
      font-size: 1.75rem;
    }

  .info-item .info-icon {
    width: 35px;
    height: 35px;
  }

    .info-item .info-icon i {
      font-size: 1.1rem;
    }
}
/* Section Headers */
.info-section h6.text-uppercase {
  border-bottom: 2px solid var(--bs-card-border-color);
  padding-bottom: 0.5rem;
  color: var(--bs-body-color) !important;
}

.action-card {
  transition: all 0.3s ease;
  cursor: pointer;
}
/*****************************Quote Search*****************************/
.currSign:before {
  content: '$';
}
.livechat_button img {
  filter: hue-rotate(38deg) grayscale(10%);
}

.star {
  font-size: 1.2rem;
  display: inline-block;
  position: relative;
  color: #b7b9bc; /* Muted base */
}

  .star.filled {
    color: #ffc107; /* Gold */
  }

  .star.half::before {
    content: '★';
    position: absolute;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
  }

.no-wrap-tabs {
  white-space: nowrap;
  overflow-x: auto;
}

  .no-wrap-tabs .nav-item {
    white-space: nowrap;
  }