/**
 * customizetheme.css - Theme Customization Styles
 * @version 2.0.0
 * 
 * Table of Contents:
 * 1. Root Theme Variables
 * 2. Buttons
 * 3. Alerts & Badges
 * 4. Forms
 * 5. Navigation & Links
 * 6. Text & Background Utilities
 * 7. Pagination & Dropdowns
 * 8. Cards & Icons
 * 9. Dark Theme Support
 * 10. Navbar & Profile
 * 11. Service Cards & Layouts
 * 12. Circle & Square Layouts
 * 13. Dashboard & Animations
 * 14. Settings & Offcanvas
 * 15. Tabs & Filters
 * 16. Presentation Cards
 * 17. Profile Page
 * 18. Utilities & Misc
 */

/* ============================= */
/*  1. 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, 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;
}

/* ============================= */
/*  2. 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);
}

.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, transform 0.3s ease;
  text-decoration: none;
}

  .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:focus-visible {
    outline: 2px solid var(--theme-primary);
    outline-offset: 2px;
  }

  .btn-circle.square-shape {
    border-radius: var(--bs-border-radius-rounded);
  }

  .btn-circle.rounded-shape {
    border-radius: var(--bs-border-radius-circle);
  }

  .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;
      }

/* ============================= */
/*  3. Alerts & Badges           */
/* ============================= */
.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);
}

.badge-primary,
.text-bg-primary {
  background-color: var(--theme-primary);
  color: var(--theme-primary-text);
}

.badge.bg-success-subtle {
  background-color: #d1e7dd;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
}

/* ============================= */
/*  4. 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);
}

/* ============================= */
/*  5. Navigation & Links        */
/* ============================= */
.nav-link {
  color: var(--theme-primary);
  transition: color 0.2s ease, background-color 0.2s ease;
}

  .nav-link:hover,
  .nav-link:focus {
    color: var(--theme-primary-hover);
  }

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background-color: var(--theme-primary);
}

.nav-link.disabled {
  color: var(--bs-nav-link-disabled-color, #6c757d);
  pointer-events: none;
}

.btn-link:hover,
.btn-link:focus {
  color: var(--bs-icon-color);
}

.link-primary {
  color: var(--theme-primary);
}

  .link-primary:hover,
  .link-primary:focus {
    color: var(--theme-primary-hover);
  }

#quickLink .nav-link:hover {
  border-radius: 50rem;
  background-color: var(--theme-primary-hover);
  color: var(--bs-icon-color);
  transition: all 0.3s;
}

.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;
  }

/* ============================= */
/*  6. Text & Background Utils   */
/* ============================= */
.text-primary {
  color: var(--theme-primary);
}

.bg-primary {
  background-color: var(--theme-primary);
  color: var(--theme-primary-text);
}

.bg-primary-subtle {
  background-color: var(--theme-primary-bg-subtle);
  color: var(--theme-primary-text-emphasis);
}

.border-primary {
  border-color: var(--theme-primary);
}

.border-primary-subtle {
  border-color: var(--theme-primary-border-subtle);
}

.bg-danger-soft-hover:hover,
.bg-danger-soft-hover:active,
.bg-danger-soft-hover:focus {
  background-color: rgba(214, 41, 62, 0.1);
  color: var(--bs-danger);
}

/* ============================= */
/*  7. Pagination & Dropdowns    */
/* ============================= */
.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);
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--theme-primary);
}

.dropdown-menu-theme {
  max-width: 100%;
  min-width: 240px;
  width: auto;
  overflow: hidden;
  border-radius: 1rem;
}

/* Progress Bars */
.progress-bar {
  background-color: var(--theme-primary);
}

/* ============================= */
/*  8. 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;
}

/* ============================= */
/*  9. Dark Theme Support        */
/* ============================= */
[data-bs-theme="dark"] {
  --bs-body-bg: #212529;
  --bs-body-color: #dee2e6;
  --bs-card-bg: #343a40;
  --bs-card-border-color: #495057;
}

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;
      color: #fff;
      box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    }

/* ============================= */
/*  10. Navbar & Profile         */
/* ============================= */
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;
}

html,
body {
  height: 100%;
  min-height: 100vh;
  overflow: auto;
}

.navbar {
  background-color: var(--bs-navbar-bg);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

  .navbar.transparent {
    background-color: transparent;
    box-shadow: none;
  }

.profile-avatar {
  object-fit: cover;
}

.profile-initial {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  background-color: var(--bs-icon-color);
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

  .brand-logo img {
    width: auto;
    display: block;
  }

/* Navbar Toggler Animation */
.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;
    }

.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;
}

/* ============================= */
/*  11. Service Cards & Layouts  */
/* ============================= */
.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-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-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);
}

.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,
.service-icon .service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: fill 0.3s ease;
}

.service-icon.square-shape {
  border-radius: var(--bs-border-radius-rounded);
}

.service-icon.rounded-shape {
  border-radius: var(--bs-border-radius-circle);
}

.service-icon .bi,
.service-icon .fas {
  color: inherit;
}

.service-title {
  margin: 0;
  line-height: 1.4;
  font-weight: 600;
  color: var(--bs-body-color);
}

.service-link {
  color: var(--bs-body-color);
}

  .service-link:hover {
    color: var(--theme-primary);
  }

.mobile .service-card:hover .service-link {
  color: var(--theme-primary);
}

.service-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--bs-body-color);
  margin-bottom: 0;
  opacity: 0.8;
}

/* ============================= */
/*  12. Circle & Square Layouts  */
/* ============================= */
.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;
  gap: 5px;
  min-width: max-content;
  padding: 10px;
}

.circle-layout {
  flex: 0 0 auto;
}

.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);
}

  .wizard-card:hover .circle-btn i {
    color: var(--bs-icon-color);
  }

.circle-btn img.wizard-image,
.circle-btn .wizard-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circle-btn i {
  color: var(--bs-icon-bg);
}

.wizard-title {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.4;
  font-weight: 700;
  color: var(--bs-body-color);
  padding: 0 10px;
  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 {
    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: 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;
}

  .square-layout-icon img.service-image,
  .square-layout-icon .service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .square-layout-icon.square-shape {
    border-radius: var(--bs-border-radius-rounded);
  }

  .square-layout-icon.rounded-shape {
    border-radius: var(--bs-border-radius-circle);
  }

  .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);
}

  .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 {
    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);
  }

/* ============================= */
/*  13. Dashboard & Animations   */
/* ============================= */
.dashboard-item {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.6s ease;
}

.loading .dashboard-item {
  opacity: 0.5;
  pointer-events: none;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.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;
}

@keyframes rotate {
  0%, 100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(180deg);
  }
}

/* ============================= */
/*  14. Settings & Offcanvas     */
/* ============================= */
.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-header,
.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;
}

.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;
    }

/* Color Picker */
.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);
    }

/* Quick & Welcome Cards */
.quick-card,
.welcome-card {
  transition: all 0.3s ease;
}

  .quick-card.hidden {
    display: none;
  }

/* Dark Mode Switch */
.dark-mode-switch {
  background-color: var(--bs-light);
  border-radius: 0.5rem;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

  .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;
  }

    .dark-mode-switch .btn-check:checked + .btn,
    .dark-mode-switch .btn.active {
      background-color: #fff;
      color: #000;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
      font-weight: 600;
    }

    .dark-mode-switch .btn:hover {
      background-color: rgba(255, 255, 255, 0.4);
      color: #000;
    }

  .dark-mode-switch svg {
    vertical-align: middle;
    margin-bottom: 2px;
  }

/* ============================= */
/*  15. Tabs & Filters           */
/* ============================= */
.theme-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

  .theme-tabs::-webkit-scrollbar {
    display: none;
  }

  .theme-tabs .nav-item {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .theme-tabs .nav-link {
    white-space: nowrap;
  }

  .theme-tabs.dragging {
    cursor: grabbing;
    user-select: none;
  }

    .theme-tabs.dragging .nav-link {
      pointer-events: none;
    }

.nav-pills .nav-link {
  padding: 8px 20px;
}

.nav-underline.theme-tabs .nav-link {
  font-size: 1rem;
  padding: 0.75rem 0.2rem;
  transition: 0.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;
  }

.no-wrap-tabs {
  white-space: nowrap;
  overflow-x: auto;
}

  .no-wrap-tabs .nav-item {
    white-space: nowrap;
  }

/* ============================= */
/*  16. Presentation Cards       */
/* ============================= */
.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;
  }

  .presentation-card:hover {
    box-shadow: 0 8px 25px var(--bs-shadow-color);
  }

  .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;
  }

  .presentation-card:hover .preview-image {
    transform: scale(1.05);
    transition: transform 0.5s ease;
  }

  .presentation-card > div:last-child {
    margin-top: auto;
  }

/* Pagination Container */
#paginationContainer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem 0;
}

  #paginationContainer .btn-circle {
    margin: 0;
  }

    #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);
      }

/* ============================= */
/*  17. Profile Page             */
/* ============================= */
.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-section h6.text-uppercase {
    border-bottom: 2px solid var(--bs-card-border-color);
    padding-bottom: 0.5rem;
    color: var(--bs-body-color);
  }

.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 {
  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);
  }

.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);
  }

.tool-action-card:hover .tool-icon-large i {
  animation: rotate 3s linear infinite;
}

.action-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

/* ============================= */
/*  18. Utilities & Misc         */
/* ============================= */
.cursor-pointer {
  cursor: pointer;
}

.currSign:before {
  content: '$';
}

.livechat_button img {
  filter: hue-rotate(38deg) grayscale(10%);
}

/* Star Rating */
.star {
  font-size: 1.2rem;
  display: inline-block;
  position: relative;
  color: #b7b9bc;
}

  .star.filled {
    color: #ffc107;
  }

  .star.half::before {
    content: '★';
    position: absolute;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
  }

/* ============================= */
/*  19. Responsive Styles        */
/* ============================= */
@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;
  }
}

@media (max-width: 768px) {
  .settings-btn {
    top: 10px;
    right: 10px;
    width: 45px;
    height: 45px;
  }

  .container-custom {
    padding: 2rem 1rem;
  }

  .circle-row {
    gap: 15px;
  }

  #paginationContainer {
    gap: 0.25rem;
  }

  .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;
    }
}

@media (max-width: 767.98px) {
  .dropdown-menu-theme[aria-labelledby="profileDropdown"] {
    width: 100%;
    left: 0;
    right: 0;
    transform: none;
    border-radius: 0;
    margin-top: 0.25rem;
  }

  .dropdown-menu-theme .dropdown-item {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .circle-row {
    gap: 12px;
  }
}

@media (max-width: 575.98px) {
  .service-icon,
  .square-layout-icon {
    margin-bottom: 0.75rem;
  }
}
