.form-select {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* ── Modern Slim Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(248, 250, 252, 0.2);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e0 !important;
  border-radius: 100px !important;
  border: 1px solid transparent !important;
}

::-webkit-scrollbar-thumb:hover {
  background: #a0aec0 !important;
}

/* Firefox support */
* {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 #f8fafc;
}

.spinner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
}

.spinner-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  /* adjust as needed */
  height: auto;
  transform: translate(-50%, -50%);
}

.spinner-text {
  margin-top: 16px;
  font-size: 16px;
  color: #000;
}

.modal-body-scroll {
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  overflow-x: hidden;
}


/* =================================================
   Custom React Select (AsyncPaginate)
   Brand Color: #155DFC
   ================================================= */

/* ---------- Control ---------- */
.custom-select .react-select__control {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #dfe5ef;
  background-color: #ffffff;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Hover */
.custom-select .react-select__control:hover {
  border-color: #155DFC;
}

/* Focus */
.custom-select .react-select__control--is-focused {
  border-color: #155DFC;
  box-shadow: 0 0 0 2px rgba(18, 59, 110, 0.12);
}

/* Disabled */
.custom-select .react-select__control--is-disabled {
  background-color: #f5f6f8;
  border-color: #e5e7eb;
  cursor: not-allowed;
  opacity: 0.7;
}

/* ---------- Value Container ---------- */
.custom-select .react-select__value-container {
  padding: 0 12px;
}

/* Single value */
.custom-select .react-select__single-value {
  font-size: 13px;
  font-weight: 500;
  color: #1f2937;
}

/* Placeholder (muted) */
.custom-select .react-select__placeholder {
  font-size: 13px;
  color: #9ca3af;
}

/* ---------- Indicators ---------- */
.custom-select .react-select__indicator {
  color: #6b7280;
  padding: 0 8px;
}

.custom-select .react-select__indicator:hover {
  color: #155DFC;
}

.custom-select .react-select__indicator-separator {
  display: none;
}

/* ---------- Menu ---------- */
.custom-select .react-select__menu {
  z-index: 9999;
  border-radius: 10px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  margin-top: 6px;
}

/* Menu list */
.custom-select .react-select__menu-list {
  padding: 6px;
  max-height: 240px;
}

/* ---------- Option ---------- */
.custom-select .react-select__option {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* Hover */
.custom-select .react-select__option--is-focused {
  background-color: #E8F0FE;
  color: #155DFC;
}

/* Selected */
.custom-select .react-select__option--is-selected {
  background-color: #155DFC;
  color: #ffffff;
}

/* Image when option is selected */
.custom-select .react-select__option--is-selected img {
  background-color: #ffffff;
  border-color: #ffffff;
}

/* -------- sidebar count--------------------*/
.sidebar-count-badge {
  margin-left: auto;
  max-width: 48px;
  /* 🔒 prevents layout break */
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;

  white-space: nowrap;
  /* keep in one line */
  overflow: hidden;
  /* hide overflow */
  text-overflow: ellipsis;
  /* show ... */
}


/* Primary badge (theme color) */
.badge-primary-light {
  background-color: rgba(18, 59, 110, 0.12);
  /* #155DFC with opacity */
  color: #155DFC;
}

/* Danger badge (alerts like Contact Us) */
.badge-danger-light {
  background-color: rgba(220, 38, 38, 0.12);
  /* soft red */
  color: #dc2626;
}

/* If you want subtle contrast instead of pure white */
.sidebar-item.selected .badge-primary-light {
  background-color: rgba(255, 255, 255, 0.9);
  color: #155DFC;
}

/* Danger badge on selected item */
.sidebar-item.selected .badge-danger-light {
  background-color: rgba(255, 255, 255, 0.9);
  color: #dc2626;
}

/* Image */
.custom-select .custom-option img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background-color: #e5e7eb;
}

/* Text */
.custom-select .custom-option-label {
  font-size: 13px;
  font-weight: 500;
  color: inherit;
}

/* ---------- Multi Select ---------- */
.custom-select .react-select__multi-value {
  background-color: #eaf4ff;
  border-radius: 16px;
  padding: 2px 6px;
}

.custom-select .react-select__multi-value__label {
  font-size: 12px;
  font-weight: 500;
  color: #155DFC;
}

.custom-select .react-select__multi-value__remove {
  color: #155DFC;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.15s ease;
}

.custom-select .react-select__multi-value__remove:hover {
  background-color: transparent;
  color: #ff4d4f;
}

/* ---------- Scrollbar ---------- */
.custom-select .react-select__menu-list::-webkit-scrollbar {
  width: 6px;
}

.custom-select .react-select__menu-list::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 10px;
}

/* ---------- Loading ---------- */
.custom-select .react-select__loading-message {
  font-size: 13px;
  color: #155DFC;
  text-align: center;
  padding: 8px;
}

/* ================= END CUSTOM SELECT ================= */




.error-message {
  color: #dc3545;
  /* Bootstrap's danger color */
  padding-top: 0.25rem;
  /* Adjusts space between input and error message */
  font-size: 0.875rem;
  /* Slightly smaller than the default font size */
  line-height: 1.2;
  /* Adjust line height for better readability */
}

.header-shadow {
  /* box-shadow: 0 4px 4px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); */
  /* box-shadow: rgba(67, 71, 85, 0.27) 0px 0px 0.25em, rgba(90, 125, 188, 0.05) 0px 0.25em 1em; */
  box-shadow: rgba(17, 17, 26, 0.068) 0px 1px 2px;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);  */
  z-index: 1001;
  /* Ensure it's above other elements */
}

.active-color {
  color: #9c9c9c !important;
}

.react-datepicker-wrapper {
  width: 100%;
}

.revenue-card {
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
  color: white;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Smooth zoom and shadow transition */
}

.revenue-card:hover {
  transform: scale(1.01);
  /* Zoom in the card */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Add shadow effect */
}

.revenue-card .card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.revenue-card h6 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0;
  color: white;
}

.revenue-card h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 8px 0;
  color: white;
}

.revenue-card .icon-box {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
}

.revenue-card .icon-box i {
  font-size: 28px;
  color: white;
  /* Set the icon color */
  transition: transform 0.3s ease;
  /* Smooth icon animation */
}

.revenue-card:hover .icon-box i {
  color: white;
  /* Ensure the color remains unchanged on hover */
  transform: none;
  /* Prevent scaling */
}

/*-----MODE------*/

.modal-content {
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 3px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: slide-down 0.3s ease-out;
}

.modal-header {
  border-bottom: 1px solid #dee2e6;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #706f6f;
}

.modal-dialog {
  z-index: 1050;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}

@keyframes slide-down {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.back {
  background-color: #f2f2f2;
  outline: none;
}

.back:hover {
  background-color: #f2f2f2;
  box-shadow: rgba(17, 17, 26, 0.068) 0px 2px 2px;
}

.back :focus {
  outline: none;
  border: none;
}

.qr-section {
  display: flex;
  justify-content: center;
}

.qr-container {
  background: white;
  padding: 10px;
  border-radius: 16px;
  display: inline-block;
}

.qr-code {
  width: 280px;
  height: 280px;
}

.instructions-section {
  padding: 20px 40px;
}

.instruction-item {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-bottom: 16px;
}

.instruction-number {
  color: #000;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

.instruction-text {
  color: #000;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.input-section {
  padding: 24px 40px;
}

.code-input {
  font-size: 16px;
  border-radius: 12px;
  padding: 10px;
}

.buttons-section {
  padding: 0 40px 20px;
}

.save-2fa-code-box {
  background: rgb(255, 255, 255);
  border: 2px solid rgba(97, 83, 83, 0.2);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.save-2fa-code-text {
  font-size: 24px;
  font-weight: 700;
  color: rgb(0, 0, 0);
  letter-spacing: 2px;
  flex: 1;
}

.save-2fa-copy-btn {
  background: white;
  border: none;
  border-radius: 6px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.save-2fa-copy-btn:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

.save-2fa-copy-btn:active {
  transform: scale(0.95);
}

.save-2fa-divider {
  height: 1px;
  background: rgba(63, 59, 59, 0.2);
  margin: 24px 0;
}

.save-2fa-info {
  margin-top: 10px;
  line-height: 1.6;
}

.save-2fa-info-text {
  font-size: 15px;
  color: rgba(122, 113, 113, 0.685);
  margin-bottom: 0;
  font-weight: 400;
}

@media (max-width: 768px) {
  .modal-title-2fa {
    font-size: 28px;
  }

  .modal-header-2fa,
  .qr-section,
  .instructions-section,
  .input-section,
  .buttons-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .qr-code {
    width: 220px;
    height: 220px;
  }
}

.logout-modal-body {
  padding: 40px 32px;
  text-align: center;
  background: white;
}

.logout-icon-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.logout-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #e6f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #b3dfff;
}

.logout-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.3;
  margin-top: 0;
}

.logout-description {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.5;
  padding: 0 10px;
}

.logout-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.logout-btn {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.logout-btn-primary {
  background: linear-gradient(135deg, #00B8DB 0%, #155DFC 100%);
  color: white;
  /* box-shadow: 0 4px 12px rgba(21, 93, 252, 0.3); */
}

.logout-btn-primary:hover {
  background: var(--brand-gradient) !important;
  transform: translateY(-2px);
}

.logout-btn-primary:active {
  transform: translateY(0);
  /* box-shadow: 0 2px 8px rgba(21, 93, 252, 0.3); */
}

.logout-btn-secondary {
  background-color: white;
  color: #155DFC;
  border: 2px solid #e0e0e0;
}

.logout-btn-secondary:hover {
  background-color: #f8f9fa;
  border-color: #155DFC;
  transform: translateY(-2px);
  /* box-shadow: 0 4px 12px rgba(21, 93, 252, 0.1); */
}

.logout-btn-secondary:active {
  transform: translateY(0);
  box-shadow: none;
}

@media (max-width: 576px) {
  .logout-modal-body {
    padding: 30px 20px;
  }

  .logout-title {
    font-size: 20px;
  }

  .logout-icon-circle {
    width: 70px;
    height: 70px;
  }

  .logout-icon-circle svg {
    width: 35px;
    height: 35px;
  }

  .logout-btn {
    padding: 12px 20px;
    font-size: 15px;
  }
}

.custom-swal-popup {
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(21, 93, 252, 0.15) !important;
  padding: 40px 32px !important;
  background: white !important;
}

.custom-swal-title {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  line-height: 1.3 !important;
  padding: 0 !important;
}

.custom-swal-text {
  font-size: 16px !important;
  color: #666 !important;
  line-height: 1.5 !important;
}

.custom-swal-icon {
  border-color: #155DFC !important;
  color: #155DFC !important;
  margin: 0 auto 24px !important;
}

.custom-swal-icon.swal2-warning {
  border-color: #155DFC !important;
  color: #155DFC !important;
}

.swal2-icon.swal2-warning .swal2-icon-content {
  color: #155DFC !important;
}

.swal2-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
  margin-top: 24px !important;
}

.custom-swal-confirm-btn {
  width: 100% !important;
  padding: 14px 24px !important;
  background: linear-gradient(135deg, #00B8DB 0%, #155DFC 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(21, 93, 252, 0.3) !important;
  margin: 0 !important;
}

.custom-swal-confirm-btn:hover {
  background: var(--brand-gradient) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(21, 93, 252, 0.4) !important;
}

.custom-swal-confirm-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(21, 93, 252, 0.3) !important;
}

.custom-swal-cancel-btn {
  width: 100% !important;
  padding: 14px 24px !important;
  background-color: white !important;
  color: #155DFC !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 10px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  margin: 0 !important;
}

.custom-swal-cancel-btn:hover {
  background-color: #f8f9fa !important;
  border-color: #155DFC !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(21, 93, 252, 0.1) !important;
}

.custom-swal-cancel-btn:active {
  transform: translateY(0) !important;
  box-shadow: none !important;
}

@media (max-width: 576px) {
  .custom-swal-popup {
    padding: 30px 20px !important;
  }

  .custom-swal-title {
    font-size: 20px !important;
  }

  .custom-swal-text {
    font-size: 15px !important;
  }

  .custom-swal-confirm-btn,
  .custom-swal-cancel-btn {
    padding: 12px 20px !important;
    font-size: 15px !important;
  }
}

/* Container */
.vsa-container {
  padding: 20px;
  background: #f8f9fc;
  min-height: calc(100vh - 200px);
}

/* Main Card */
.vsa-main-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #e3e6f0;
}

/* Card Header */
.vsa-card-header {
  background: linear-gradient(135deg, #155DFC 0%, #4971e4 100%);
  padding: 24px 30px;
  border-bottom: none;
}

.vsa-header-title {
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.3px;
}

/* Card Body */
.vsa-card-body {
  padding: 30px;
}

/* Profile Section */
.vsa-profile-section {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px;
}

.vsa-profile-image-wrapper {
  display: inline-block;
  position: relative;
  padding: 8px;
  background: linear-gradient(135deg, #155DFC 0%, #4971e4 100%);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(21, 93, 252, 0.3);
}

.vsa-profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  display: block;
}

/* Info Grid */
.vsa-info-grid {
  margin-bottom: 40px;
}

.vsa-info-card {
  background: #f8f9fc;
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid #155DFC;
  transition: all 0.3s ease;
  height: 100%;
}

.vsa-info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 93, 252, 0.15);
}

.vsa-info-label {
  font-size: 13px;
  font-weight: 600;
  color: #5a5c69;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.vsa-info-value {
  font-size: 16px;
  color: #2c3e50;
  font-weight: 500;
  margin: 0;
  word-break: break-word;
}

/* Status Badge */
.vsa-status-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
}

.vsa-status-active {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.vsa-status-inactive {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Permissions Section */
.vsa-permissions-section {
  margin-top: 20px;
}

.vsa-section-header {
  background: linear-gradient(135deg, #155DFC 0%, #4971e4 100%);
  padding: 16px 24px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.vsa-section-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.3px;
}

/* Permission Card */
.vsa-permission-card {
  background: #ffffff;
  border: 2px solid #e3e6f0;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.vsa-permission-header {
  background: linear-gradient(135deg, #155DFC 0%, #4971e4 100%);
  padding: 14px 18px;
}

.vsa-permission-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  text-transform: capitalize;
}

.vsa-permission-body {
  padding: 16px 18px;
  min-height: 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.vsa-permission-badge {
  display: inline-block;
  background: #e6f4ff;
  color: #4971e4;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-transform: capitalize;
  border: 1px solid #b3e0ff;
  transition: all 0.2s ease;
}

.vsa-nopermission-badge {
  display: inline-block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-transform: capitalize;
  transition: all 0.2s ease;
}

/* No Data */
.vsa-no-data {
  text-align: center;
  padding: 40px;
  background: #f8f9fc;
  border-radius: 8px;
  border: 2px dashed #d1d3e2;
}

.vsa-no-data p {
  color: #858796;
  font-size: 15px;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .vsa-container {
    padding: 15px;
  }

  .vsa-card-body {
    padding: 20px 15px;
  }

  .vsa-card-header {
    padding: 18px 20px;
  }

  .vsa-header-title {
    font-size: 20px;
  }

  .vsa-profile-image {
    width: 140px;
    height: 140px;
  }

  .vsa-info-card {
    padding: 16px;
  }

  .vsa-info-label {
    font-size: 12px;
  }

  .vsa-info-value {
    font-size: 14px;
  }

  .vsa-section-header {
    padding: 14px 18px;
  }

  .vsa-section-title {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .vsa-profile-image {
    width: 120px;
    height: 120px;
  }

  .vsa-permission-card {
    margin-bottom: 15px;
  }
}

.error404__container {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-color: #f8f9fa;
}

.error404__box {
  text-align: center;
  max-width: 600px;
  background: white;
  padding: 60px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.error404__icon {
  width: 150px;
  height: 150px;
  margin: 0 auto 30px;
}

.error404__icon svg {
  width: 100%;
  height: 100%;
}

.error404__code {
  font-size: 120px;
  font-weight: bold;
  color: #155DFC;
  line-height: 1;
  margin-bottom: 20px;
}

.error404__title {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.error404__description {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.error404__actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.error404__btn-primary {
  background: #155DFC;
  border: none;
  color: white;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.error404__btn-primary:hover {
  background: var(--brand-gradient) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 93, 252, 0.3);
}

.error404__btn-outline {
  border: 2px solid #155DFC;
  color: #155DFC;
  background: transparent;
  padding: 10px 25px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.error404__btn-outline:hover {
  background: #155DFC;
  color: white;
}

.error403__container {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-color: #f8f9fa;
}

.error403__box {
  text-align: center;
  max-width: 600px;
  background: white;
  padding: 60px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.error403__icon {
  width: 150px;
  height: 150px;
  margin: 0 auto 30px;
}

.error403__icon svg {
  width: 100%;
  height: 100%;
}

.error403__code {
  font-size: 120px;
  font-weight: bold;
  color: #155DFC;
  line-height: 1;
  margin-bottom: 20px;
}

.error403__title {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.error403__description {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.error403__actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.error403__btn-primary {
  background: #155DFC;
  border: none;
  color: white;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.error403__btn-primary:hover {
  background: var(--brand-gradient) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 93, 252, 0.3);
}

.error403__btn-outline {
  border: 2px solid #155DFC;
  color: #155DFC;
  background: transparent;
  padding: 10px 25px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.error403__btn-outline:hover {
  background: #155DFC;
  color: white;
}

@media (max-width: 768px) {

  .error404__box,
  .error403__box {
    padding: 40px 20px;
  }

  .error404__code,
  .error403__code {
    font-size: 80px;
  }

  .error404__title,
  .error403__title {
    font-size: 24px;
  }

  .error404__icon,
  .error403__icon {
    width: 120px;
    height: 120px;
  }
}

/* Force consistent hover color for primary buttons */
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
  background: var(--brand-gradient) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(21, 93, 252, 0.35) !important;
}


/* Status Badges Premium Hover */
.badge.bg-success-subtle:hover,
.badge.bg-info-subtle:hover,
.badge.bg-danger-subtle:hover,
.badge.bg-warning-subtle:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  filter: brightness(0.98);
}

/* =================================================
   Global Brand Gradient Overrides
   Applied to align with Figma Design
   ================================================= */
:root {
  --brand-gradient: linear-gradient(135deg, #00B8DB 0%, #155DFC 100%);
}

/* Primary Buttons */
.btn-primary,
.btn-outline-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:hover,
.btn-default {
  background: var(--brand-gradient) !important;
  border: none !important;
  color: #fff !important;
}

/* Sidebar Selected State */
.sidebar-item.selected>.sidebar-link,
.sidebar-item>.sidebar-link.active,
.sidebar-link.active,
.sidebar-selected-highlight {
  background: var(--brand-gradient) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(21, 93, 252, 0.2);
}

.sidebar-item.selected>.sidebar-link i,
.sidebar-item.selected>.sidebar-link .ti,
.sidebar-item.selected>.sidebar-link span,
.sidebar-link.active i,
.sidebar-link.active .ti,
.sidebar-link.active span {
  color: #fff !important;
}

/* Pagination Active State */
.pagination .page-item.active .page-link {
  background: var(--brand-gradient) !important;
  border-color: transparent !important;
  color: #fff !important;
}

/* Primary Badges and Backgrounds */
.badge-primary,
.bg-primary,
.badge-primary-light {
  background: var(--brand-gradient) !important;
  color: #fff !important;
}

/* Progress Bars */
.progress-bar,
.progress-bar-animated {
  background: var(--brand-gradient) !important;
}

/* Logo Circle Background */
.logo-circle-bg {
  background: var(--brand-gradient) !important;
}

/* Override for any element with .active class that should be primary */
.nav-pills .nav-link.active,
.nav-tabs .nav-link.active {
  background: var(--brand-gradient) !important;
  color: #fff !important;
}

/* --- Enhanced Status Pills with Gradients --- */
.badge.bg-success-subtle {
  background: linear-gradient(135deg, #dcfce7 0%, #f0fff4 100%) !important;
  color: #16a34a !important;
  border: 1px solid rgba(22, 163, 74, 0.2) !important;
}

.badge.bg-info-subtle {
  background: linear-gradient(135deg, #e8f0fe 0%, #f1f7ff 100%) !important;
  color: #155DFC !important;
  border: 1px solid rgba(21, 93, 252, 0.2) !important;
}

.badge.bg-danger-subtle {
  background: linear-gradient(135deg, #fee2e2 0%, #fff5f5 100%) !important;
  color: #dc2626 !important;
  border: 1px solid rgba(220, 38, 38, 0.2) !important;
}

.badge.bg-warning-subtle {
  background: linear-gradient(135deg, #fef9c3 0%, #fffdf0 100%) !important;
  color: #ca8a04 !important;
  border: 1px solid rgba(202, 138, 4, 0.2) !important;
}

/* --- Loader Spinner Enhancement --- */
.spinner-border.text-primary {
  border-right-color: #00B8DB !important;
  color: #155DFC !important;
}

/* --- Form Switch / Checkbox --- */
.form-check-input:checked {
  background-image: var(--bs-form-check-bg-image), var(--brand-gradient) !important;
  background-color: #155DFC !important;
  border-color: #155DFC !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

/* Force switch knob to appear correctly (Bootstrap 5) */
.form-switch .form-check-input:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e"), var(--brand-gradient) !important;
  background-position: right center, center !important;
}

/* ── FINAL GLOBAL BRANDING ENFORCEMENT ── */

/* Force Brand Gradient on all Primary elements */
.btn-primary,
.bg-primary,
.badge.bg-primary {
  background: linear-gradient(135deg, #00B8DB 0%, #155DFC 100%) !important;
  border: none !important;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(21, 93, 252, 0.4) !important;
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: scale(0.98) !important;
}

/* Sidebar Active State Standardization */
.sidebar-nav ul .sidebar-item.selected>.sidebar-link,
.sidebar-nav ul .sidebar-item.selected>.sidebar-link.active,
.sidebar-nav ul .sidebar-item>.sidebar-link.active {
  background: linear-gradient(135deg, #00B8DB 0%, #155DFC 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(21, 93, 252, 0.25);
  border-radius: 7px;
}

.sidebar-nav ul .sidebar-item.selected>.sidebar-link i,
.sidebar-nav ul .sidebar-item.selected>.sidebar-link svg,
.sidebar-nav ul .sidebar-item>.sidebar-link.active i,
.sidebar-nav ul .sidebar-item>.sidebar-link.active svg {
  color: #fff !important;
}

/* Outline Buttons */
.btn-outline-primary {
  border: 1.5px solid #155DFC !important;
  color: #155DFC !important;
  background: transparent !important;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, #00B8DB 0%, #155DFC 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
  transform: translateY(-1px);
}

/* Global Text Colors */
.text-primary {
  color: #155DFC !important;
}

/* Dashboard & Card Specifics */
.card-title.text-primary,
.fw-semibold.text-primary {
  color: #155DFC !important;
}

/* Pagination Fix */
.page-item.active .page-link {
  background: linear-gradient(135deg, #00B8DB 0%, #155DFC 100%) !important;
  border-color: transparent !important;
}

.page-link {
  color: #155DFC !important;
  transition: all 0.2s ease;
}

.page-link:hover {
  background-color: #E8F0FE !important;
  color: #155DFC !important;
  border-color: #E8F0FE !important;
  z-index: 3;
}

/* Success Badges & Progress */
.bg-success {
  background: #00B8DB !important;
  /* Branded Cyan */
}


/* Header & Navbar */
.app-header .navbar-nav .nav-link.nav-icon-hover:hover {
  color: #155DFC !important;
}

/* SWAL Overrides */
.swal2-confirm.premium-confirm {
  background: linear-gradient(135deg, #00B8DB 0%, #155DFC 100%) !important;
}

/* ── UI REFINEMENTS & BRANDING FIXES ── */


/* Branded Badges & Sidebar Counts */
.badge-primary,
.sidebar-count-badge.badge-primary {
  background: linear-gradient(135deg, #00B8DB 0%, #155DFC 100%) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 10px rgba(21, 93, 252, 0.25) !important;
}

.badge-danger,
.sidebar-count-badge.badge-danger {
  background: #FA896B !important;
  color: #fff !important;
  border: none !important;
  font-weight: 800 !important;
}

.sidebar-count-badge {
  min-width: 18px;
  height: 18px;
  padding: 2px 6px !important;
  border-radius: 20px !important;
  font-size: 10px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

/* Sidebar Hover Consistency */
.sidebar-link:hover {
  background-color: #E8F0FE !important;
  color: #155DFC !important;
}

.sidebar-link:hover i,
.sidebar-link:hover svg {
  color: #155DFC !important;
}

/* Profile Dropdown Hover Effects */
.message-body .d-flex:hover {
  background-color: #E8F0FE !important;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.message-body .d-flex:hover .text-dark,
.message-body .d-flex:hover h6 {
  color: #155DFC !important;
}