/* ------------------ global styles --------------------- */
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;

}

.primary {
  color: #005691;
}



.bgprimary {
  background-color: #005691;
}

body.dark-mode .btn {
  background-color: white !important;
  color: #005691 !important;
}

body.dark-mode .btn:hover {
  background-color: #005691 !important;
  color: white !important;
}

/* loader */
#global-site-admin-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffffd0;
  /* White background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s;
}

/* Modern Spinner Design */
.spinner-modern {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(0, 86, 145, 0.1);
  border-left-color: #005691;
  /* Aapka primary color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

.loading-text {
  display: block;
  font-weight: bold;
  color: #005691;
  letter-spacing: 2px;
  animation: pulse 1.5s infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}

.loader-finished {
  opacity: 0;
  visibility: hidden;
}

h1,
h2,
h3,
.sidebar-header {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}


/* ------------------  Main dashboard Content  ------------------- */
.dropdown-toggle::after {
  display: none !important;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #005691;
}

.dropdown-item.active {
  background-color: #005691 !important;
  color: white !important;
}

.animate-slide-in {
  animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.extra-small {
  font-size: 0.7rem;
}

.pointer {
  cursor: pointer;
}

@media (max-width: 576px) {
  h2.fw-bold {
    font-size: 1.5rem;
  }

  .card {
    padding: 1.5rem !important;
  }
}

.card {
  transition: transform 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
}

.bg-success-subtle {
  background-color: #e6fcf5 !important;
}

.bg-info-subtle {
  background-color: #e3f2fd !important;
}

.bg-danger-subtle {
  background-color: #fff5f5 !important;
}

.bg-primary-subtle {
  background-color: #f0f4ff !important;
}

.icon-box i {
  font-size: 1.2rem;
}

.card {
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

/* ---------- row 3 ---------- */
.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.extra-small {
  font-size: 0.75rem;
}

.bg-success-subtle {
  background-color: #e2f6ed !important;
}

.bg-danger-subtle {
  background-color: #fce8e8 !important;
}

.bg-warning-subtle {
  background-color: #fff4e5 !important;
}

.bg-info-subtle {
  background-color: #e0f2fe !important;
}



/* Badge Dot (Paid Status) */
.badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}

/* Subtle Labels */
.extra-small {
  font-size: 10px;
}

.table-hover tbody tr:hover {
  background-color: #f8f9fa !important;
}

.border-transparent {
  border-color: transparent !important;
}

.pointer {
  cursor: pointer;
}



/* customer table styles */
main {
  transition: margin-left 0.3s ease;
}

@media (max-width: 991.98px) {
  main {
    margin-left: 0 !important;
  }
}

.customer-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.table tbody td {
  padding-top: 11px;
  padding-bottom: 11px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.badge-paid {
  background-color: #dcfce7;
  color: #005691;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
}

.badge-dot {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #64748b;
  transition: all 0.2s;
}

.action-btn:hover {
  background: #f1f5f9;
  color: #005691;
}

.search-input {
  border-radius: 10px;
  padding-left: 40px;
  border-color: #e2e8f0;
}

.search-wrapper {
  position: relative;
}

.search-wrapper i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

/* coupon styles */
main {
  transition: margin-left 0.3s ease;
}

@media (max-width: 991.98px) {
  main {
    margin-left: 0 !important;
  }
}



.form-control:focus,
.form-select:focus {
  border-color: #005691 !important;
  box-shadow: 0 0 0 0.25rem #00579154 !important;
}

/* Badge styling for code input */
.code-input {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  color: #005691;
}

/* admin user styles */
main {
  transition: margin-left 0.3s ease;
}

@media (max-width: 991.98px) {
  main {
    margin-left: 0 !important;
  }
}



/* Card shadow and border refinement */
.form-container {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* currency styles */
main {
  transition: margin-left 0.3s ease;
}

@media (max-width: 991.98px) {
  main {
    margin-left: 0 !important;
  }
}

/* Form Styling */
.currency-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}


/* customer styles */
.sub-ref {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #334155;
}

/* ------------------ Dark Mode Styles --------------------- */
#theme-toggle:focus {
  outline: none !important;
  box-shadow: none !important;
  background: #f1f5f9;
}

#theme-toggle:hover .fa-sun {
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

body.dark-mode #close-sidebar {
  color: #fff !important;
}

/* Dark Mode Colors */
body.dark-mode {
  background-color: #111827 !important;
  color: #fff !important;
}

body.dark-mode .card,
body.dark-mode .table-header,
body.dark-mode .table thead th,
body.dark-mode .table tbody td,
body.dark-mode .btn-link {
  background-color: #1f2937 !important;
  color: #fff !important;
}

body.dark-mode .extra-content {
  color: #fff !important;
}

body.dark-mode .sub-ref {
  color: #111827 !important;
  background-color: #e2e8f0 !important;
  opacity: 100% !important;
}

body.dark-mode .adminUser-form {
  border: 1px solid #fff !important;
}

body.dark-mode .admin-header,
body.dark-mode .currency-card,
body.dark-mode .customer-card,
body.dark-mode .sidebar-content,
body.dark-mode .footer-admin,
body.dark-mode .sidebar-header,
body.dark-mode .coupon-card,
body.dark-mode .main-content-area,
body.dark-mode .form-container,
body.dark-mode .admin-user,
body.dark-mode .para-line,
body.dark-mode .tracking-wider,
body.dark-mode .mobile-search-overlay,
body.dark-mode #inputMobileSearch {
  background-color: #111827 !important;
  color: white !important;
}

body.dark-mode .para-line2 {
  color: #262727 !important;
}

body.dark-mode .search-bar-icon {
  color: #fff !important;
}

body.dark-mode #inputMobileSearch::placeholder {
  color: #fff !important;
}

body.dark-mode .action-btn {
  color: #fff !important;
}

body.dark-mode .action-btn:hover {
  background: #374151 !important;
  color: #005691 !important;
}

body.dark-mode #editor {
  color: #374151 !important;
  background-color: #f3f4f6 !important;
}

body.dark-mode .ql-toolbar .ql-stroke {
  stroke: #ffffff !important;
}

body.dark-mode .ql-toolbar .ql-fill {
  fill: #ffffff !important;
}

body.dark-mode .ql-toolbar .ql-picker {
  color: #ffffff !important;
}

.ql-toolbar button:hover .ql-stroke {
  stroke: #005691 !important;
}

.ql-toolbar button:hover .ql-fill {
  fill: #005691 !important;
}

.ql-toolbar .ql-picker-label:hover {
  color: #005691 !important;
}

.ql-toolbar .ql-picker-label {
  border: 1px solid #1f2937 !important;
  border-radius: 4px !important;
}

body.dark-mode .ql-toolbar .ql-picker-label {
  border: 1px solid #ffffff !important;
}

body.dark-mode .ql-toolbar button:hover .ql-stroke {
  stroke: #005691 !important;
}

body.dark-mode .ql-toolbar button:hover .ql-fill {
  fill: #005691 !important;
}

body.dark-mode .ql-toolbar .ql-picker-options {
  color: #374151 !important;
}

body.dark-mode .ql-toolbar .ql-picker-item:hover {
  color: #005691 !important;
}

body.dark-mode .text-dark {
  color: #eeeeee !important;
}

body.dark-mode .sidebar-link {
  color: #fff !important;
}

body.dark-mode .sub-link {
  color: #cbd5e1 !important;
}

body.dark-mode .sidebar-link.active,
body.dark-mode .sidebar-link:hover {
  background-color: #ebedf0e1 !important;
  color: #005691 !important;
}

.container-fluid {
  max-width: 1590px;
  margin: 0 auto;
}

.btn-success {
  border-radius: 10px !important;
  padding: 10px 25px !important;
  font-weight: 600 !important;
}

/* Chrome, Safari, Edge, aur Opera ke liye */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


input[type="number"] {
  -moz-appearance: textfield;
}

/* Layout & Responsiveness */
.main-content-wrapper {
  margin-left: 250px;
}

@media (max-width: 991px) {
  .main-content-wrapper {
    margin-left: 0;
  }
}

/* Light Mode */
.role-card {
  background-color: #ffffff;
}

.custom-input {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #212529;
}

.custom-permission-table thead {
  background-color: #f8f9fa;
  color: #495057;
}

.module-name {
  color: #334155 !important;
}

/* Dark Mode Overrides */
body.dark-mode {
  background-color: #0f172a;
  color: #f8fafc;
}

body.dark-mode .page-title {
  color: #f8fafc;
}

body.dark-mode .role-card {
  background-color: #1e293b;
  border: 1px solid #334155;
}

body.dark-mode .label-text {
  color: #fff;
}

body.dark-mode .custom-input {
  background-color: #fff;
  border-color: #334155;
  color: #334155;
}

body.dark-mode .custom-permission-table thead {
  background-color: #334155;
  color: #cbd5e1;
}


body.dark-mode .custom-permission-table tbody tr {
  border-bottom-color: #334155;
}

body.dark-mode .module-name {
  color: #f1f5f9;
}

body.dark-mode .table {
  color: #cbd5e1;
}

/* Checkbox Styling */
.permission-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  border-radius: 4px;
}

.permission-checkbox:checked {
  background-color: #005691 !important;
  border-color: #005691 !important;
}

/* blog */
.blog-img-container {
  width: 80px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
}

.hover-row:hover {
  background-color: #f8fafc !important;
}

.slug-text {
  font-family: "Monaco", "Consolas", monospace;
  font-size: 0.85rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .blog-img-container {
    width: 60px;
    height: 40px;
  }

  .page-title {
    font-size: 1.25rem;
  }
}

.btn {
  color: #005691;
  border-color: #005691;
}

.btn:hover {
  background-color: #005691;
  color: #fff;
}



:root {
  --primary: #005691;
  --dark-bg: #0f172a;
  --input-bg: #dde1e7;
}

.login-page {
  background-color: var(--dark-bg);
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  height: 100vh;
  overflow: hidden;
}

.login-container {
  height: 100vh;
  display: flex;
}

/* Image Section Styling */
.login-image-section {
  flex: 1.2;
  background: linear-gradient(135deg, rgba(0, 87, 145, 0.555) 0%, rgba(15, 23, 42, 0) 100%),
    url('https://images.unsplash.com/photo-1576091358783-a212ec293ff3?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
}

.floating-card {
  background: rgba(20, 20, 20, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 32px;
  color: white;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Form Section Styling */
.login-form-section {
  flex: 1;
  background-color: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.form-wrapper {
  width: 100%;
  max-width: 450px;
}

.input-group-custom {
  margin-bottom: 24px;
}

.input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  z-index: 5;
}

.login-input {
  background-color: var(--input-bg) !important;
  border: 1px solid #334155 !important;
  border-radius: 16px;
  padding: 16px 20px 16px 50px !important;
  color: black !important;
  transition: all 0.3s ease;
}

.login-input::placeholder {
  color: #64748b;
}

.login-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(0, 86, 145, 0.2) !important;
  background-color: var(--input-bg) !important;
  color: black !important;
}

.password-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #64748b;
  z-index: 10;
  transition: 0.2s;
}

.password-toggle:hover {
  color: var(--primary);
}

/* Button Styling */
.btn-login {
  background-color: var(--primary) !important;
  border: none;
  padding: 16px;
  border-radius: 16px;
  font-weight: 700;
  color: white !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(0, 86, 145, 0.4) !important;
  filter: brightness(1.1);
}

/* Responsive Fixes */
@media (max-width: 991px) {
  .login-page {
    overflow-y: auto;
  }

  .login-container {
    flex-direction: column;
  }

  .login-form-section {
    padding: 60px 25px;
  }
}

/* logout style */
.cursor-pointer {
  cursor: pointer;
}

/* phone style */
.number-type {
  color: #6c757d !important;
  transition: all 0.2s ease-in-out;
}

.btn-check:checked+.number-type {
  background-color: #005691 !important;
  border-color: #005691 !important;
  color: #fff !important;
  font-weight: bold;
}

/* reset password */
.reset-wrapper {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.reset-card {
  max-width: 450px;
  width: 100%;
  background: #fff;
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.007);
}

.btn-primary {
  background-color: #005691;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: bold;
  transition: 0.3s;
}

.btn-primary:hover {
  background-color: #003d66;
}

.form-control {
  background-color: #f8fafc;
  border: 1px solid #eef2f6;
}

.form-para {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 2.5rem;
}



.label-small-form {
  font-size: 0.76rem;
  font-weight: 600;
  /* color: #94a3b8; */
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.label-small-form-permissions {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.cat_name {
  font-size: 14px !important;
}

.small-size {
  font-size: 12.25px !important;
}

.hover-bg:hover {
  background-color: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
}






/* sidebar css */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 10px;
  transition: background 0.3s ease;
}

#sidebar-container:hover .custom-scrollbar::-webkit-scrollbar-thumb {
  background: #e0e0e0;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #005691 !important;
}

.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

#sidebar-container:hover .custom-scrollbar {
  scrollbar-color: #e0e0e0 transparent;
}

/* ------------------  navbar ------------------- */
.user-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 80px;
  width: calc(100% - 80px);
  height: 85px;
  z-index: 1030 !important;
  background-color: #fff;
  transition: all 0.3s ease;
}

.main-container {
  margin-left: 260px;
  /* Sidebar ki width ke barabar */
  width: calc(100% - 260px);
  min-height: 100vh;
  transition: all 0.3s ease;
}

/* --- When Sidebar is OPENED --- */
@media (min-width: 992px) {

  #sidebar-container:not(.collapsed)~.user-header,
  #sidebar-container:not(.collapsed)~.navbar {
    left: 260px !important;
    width: calc(100% - 260px) !important;
  }

  #sidebar-container:not(.collapsed)~.main-container {
    margin-left: 260px !important;
    width: calc(100% - 260px) !important;
  }
}

@media (min-width: 992px) {
  .admin-header {
    left: 260px;
    /* Sidebar width */
    width: calc(100% - 260px);
  }
}

.search-box {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

/* Icon Buttons */
.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f8f9fa;
  color: #444 !important;
  position: relative;
  transition: 0.2s;
}

.icon-btn:hover {
  background: #eef2f5;
  color: #005691 !important;
}

/* Status Dots */
.dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.profile-btn {
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #005691;
  color: #444 !important;
  position: relative;
  transition: 0.2s;
}

/* Profile Section */
.profile-btn::after {
  display: none !important;
}

#hamburger-btn {
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

@media (max-width: 767.98px) {
  .mobile-search-overlay {
    position: fixed !important;
    top: 15px;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background: #ffffff;
    z-index: 2000;
    padding: 0 15px;
    display: flex;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.1); */
  }

  .mobile-search-overlay.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .search-input-group-mobile {
    border: 1px solid #e2e8f0;
    /* background: #f8fafc; */
    width: 100%;
  }
}

#inputMobileSearch:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  padding-left: 0 !important;
}

.main-container {
  margin-left: 250px;
}

/* ------------------- Sidebar Styles ------------------ */
.sidebar-link {
  color: #475569 !important;
  font-weight: 500;
  padding: 10px 15px !important;
  border-radius: 10px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

#sidebar-container.collapsed {
  width: 80px;
  min-width: 80px;
}

#sidebar-container.collapsed~.main-container {
  margin-left: 80px;
  width: calc(100% - 80px);
}

/* Mobile ke liye settings */
@media (max-width: 991px) {
  .main-container {
    margin-left: 0 !important;
    width: 100% !important;
  }

  #sidebar-container {
    left: -260px;
  }

  #sidebar-container.show {
    left: 0;
  }
}

#sidebar-container.collapsed .sidebar-link {
  text-align: center;
}



.sidebar-link:hover {
  background-color: #f8fafc;
  color: #005691 !important;
}

.sidebar-link.active {
  background-color: #f8fafc;
  color: #005691 !important;
  font-weight: 600;
}

.sub-link {
  font-size: 0.88rem;
  color: #64748b !important;
  padding: 5px 0 !important;
  transition: 0.2s;
}

.sub-link:hover {
  color: #005691 !important;
  padding-left: 8px !important;
}

#sidebar-container {
  width: 260px;
  min-width: 260px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1050;
  transition: all 0.3s ease;
}

.sidebar-link[aria-expanded="true"] .arrow-icon {
  transform: rotate(90deg);
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 10px;
}

/* ------------ Responsive Sidebar ------------- */
@media (max-width: 991.98px) {
  #sidebar-container {
    left: -260px !important;
    position: fixed !important;
    z-index: 1100 !important;
    width: 260px !important;
    transition: all 0.3s ease;
  }

  #sidebar-container.show-sidebar {
    left: 0 !important;
  }

  main,
  .user-header,
  .main-content-area {
    margin-left: 0 !important;
    width: 100% !important;
    left: 0 !important;

  }
}


/* --- SIDEBAR STYLE --- */
body.dark-mode .user-header {
  background-color: #111827 !important;
  z-index: 1030 !important;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 85px;
}

/* Toggle Button Fix */
#hamburger-btn {
  position: fixed;
  top: 22px;
  z-index: 1100;
  transition: left 0.3s ease;

  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.container-fluid {
  max-width: 100%;
  margin: 0 auto;
}

#sidebar-container.collapsed~.main-container #hamburger-btn {
  left: 100px;
}


#sidebar-container:not(.collapsed)~.main-container #hamburger-btn {
  left: 280px;
}

@media (max-width: 991px) {
  #hamburger-btn {
    left: 15px !important;
    position: absolute;
  }
}

@media (min-width: 992px) {

  /* Sidebar is small by default because it has the .collapsed class */
  #sidebar-container.collapsed {
    width: 80px !important;
    min-width: 80px !important;
  }

  /* Adjust Main Content and Header for the closed state */
  #sidebar-container.collapsed~.main-container,
  #sidebar-container.collapsed~.user-header {
    margin-left: 80px !important;
    left: 80px !important;
    width: calc(100% - 80px) !important;
  }

  /* Hide text/letters when closed */
  #sidebar-container.collapsed .hide-letters {
    max-width: 0 !important;
    opacity: 0 !important;
    margin: 0 !important;
    display: none !important;
  }

  #sidebar-container.collapsed .nav-link span,
  #sidebar-container.collapsed .arrow-icon {
    display: none !important;
  }

  /* Center icons when closed */
  #sidebar-container.collapsed .nav-link {
    justify-content: center !important;
    padding: 10px 0 !important;
  }

  #sidebar-container.collapsed .nav-link i {
    margin-right: 0 !important;
    font-size: 1.2rem;
  }
}

/* 2. Desktop Expanded State (When .collapsed is removed) */
@media (min-width: 992px) {
  #sidebar-container:not(.collapsed) {
    width: 260px !important;
  }

  #sidebar-container:not(.collapsed)~.main-container,
  #sidebar-container:not(.collapsed)~.user-header {
    margin-left: 260px !important;
    left: 260px !important;
    width: calc(100% - 260px) !important;
  }
}


@media (min-width: 992px) {
  #sidebar-container.collapsed .collapse.show {
    display: none !important;
  }
}


/* Mobile Logic (Hidden by default at -260px) */
@media (max-width: 991.98px) {
  #sidebar-container {
    left: -260px !important;
    position: fixed !important;
    width: 260px !important;
    transition: left 0.3s ease;
  }

  /* Show sidebar on mobile when toggled */
  #sidebar-container.show-sidebar {
    left: 0 !important;
  }

  .main-container,
  .user-header {
    margin-left: 0 !important;
    left: 0 !important;
    width: 100% !important;
  }
}

@media (min-width: 992px) {
  #sidebar-container.collapsed .sidebar-link {
    text-align: center !important;
    padding: 10px 0 !important;
    justify-content: center !important;
  }

  #sidebar-container.collapsed .sidebar-link i {
    margin-right: 0 !important;
    font-size: 1.2rem;
  }
}

/* Mobile setting fix */
@media (max-width: 991px) {
  #sidebar-container .sidebar-link {
    text-align: left !important;
    display: flex;
    align-items: center;
  }

  #sidebar-container .sidebar-link i {
    margin-right: 15px !important;
  }
}

@media (min-width: 992px) {
  #sidebar-container.collapsed~.main-container #sidebar-icon::before {
    content: "\f105";
  }

  #sidebar-container:not(.collapsed)~.main-container #sidebar-icon::before {
    content: "\f104";
  }
}

@media (max-width: 991.98px) {
  #sidebar-icon::before {
    content: "\f0c9";
  }

  #sidebar-container.show-sidebar~.main-container #sidebar-icon::before {
    content: "\f00d";
  }
}


/* Modern Search Loader */
.search-loading-bar {
  height: 3px;
  width: 100%;
  background-color: #f0f0f0;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 10;
}

.search-loading-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 50%;
  background: #005691;
  /* Your theme color */
  animation: search-load 1.5s infinite ease-in-out;
}

@keyframes search-load {
  0% {
    margin-left: -50%;
  }

  100% {
    margin-left: 100%;
  }
}

/* Skeleton Pulse */
.search-skeleton {
  padding: 15px;
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.skeleton-icon {
  width: 42px;
  height: 42px;
  background: #eee;
  border-radius: 8px;
  margin-right: 15px;
}

.skeleton-text {
  flex-grow: 1;
}

.skeleton-line {
  height: 12px;
  background: #eee;
  margin-bottom: 8px;
  border-radius: 4px;
  width: 60%;
}

.skeleton-line.short {
  width: 30%;
}

.pulse {
  animation: pulse-bg 1.2s infinite;
}

@keyframes pulse-bg {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}