:root{
    --theme-primary-color: #9FE870;
    --theme-primary-color-light: color-mix(in srgb, var(--theme-primary-color), #ffffff 70%);
    --theme-primary-color-light: color-mix(in srgb, var(--theme-primary-color), #ffffff 70%);
    --theme-primary-transparent: color-mix(in srgb, var(--theme-primary-color) 60%, transparent 60%);
    --theme-color-dark: #000000;
    --theme-color-white: #ffffff;
    --theme-secondary-color: #333333;
    --theme-secondary-color-light: #444444;
    --theme-secondary-color-light-2: #d9d9d9;
    --theme-secondary-color-light-3: #f5f5f5;
    --theme-accent-color: color-mix(in srgb, var(--theme-primary-color), #000000 20%);
    --theme-background-color: #ffffff;
    --theme-text-color: #333333;
    --theme-header-bg: #ffffff;
    --theme-footer-bg: #ffffff;
    --theme-text-collight: #6c757d;
    --theme-danger-color:#ed5e5e;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--theme-text-color);
}



/* Header-specific styling */
.navbar-brand {
  color: #ffffff !important;
}

.navbar-brand:hover {
  color: var(--theme-primary-color) !important;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-nav .nav-link:hover {
  color: var(--theme-primary-color) !important;
}

.navbar-nav .nav-link.active {
  color: var(--theme-primary-color) !important;
}

/* Dropdown styling in header */
.navbar .dropdown-menu {
  background-color: #333333;
  border-color: #555555;
}

.navbar .dropdown-item {
  color: rgba(255, 255, 255, 0.8);
}

.navbar .dropdown-item:hover {
  background-color: #555555;
  color: var(--theme-primary-color);
}

.navbar .dropdown-item.active {
  background-color: var(--theme-primary-color);
  color: #000000;
}

/* Badge styling in header */
.navbar .badge {
    background-color: var(--theme-primary-color) !important;
    color: var(--theme-color-dark) !important;
}

.nav.min-nav{
    padding-bottom: 0px;
    border-bottom: 1px solid #ccc;
}

.min-nav .nav-link{
    color: var(--theme-text-color) !important;
}

/* Sidebar Styling */
.sidebar {
  background-color: var(--theme-secondary-color-light-3) !important;
  height: 100vh;
  padding-top: 1rem;
  position: fixed !important;
  top: 0;
  left: 0;
  width: 15%; /* col-lg-2 equivalent */
  z-index: 1001;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-secondary-color-light-2)
    var(--theme-secondary-color-light-3);
  box-shadow: inset -3px -3px 14px #43434317;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Custom scrollbar for webkit browsers */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: var(--theme-secondary-color-light-3) !important;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--theme-secondary-color-light-2) !important;
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--theme-secondary-color-light-2) !important;
}

.sidebar .nav-link {
  font-size: 0.85rem !important;
  color: var(--theme-text-color) !important;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin: 0.125rem 0.5rem;
  transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
  background-color: var(--theme-secondary-color-light-2);
  color: var(--theme-text-color) !important;
}

.sidebar .nav-link.active {
  color: var(--theme-text-color) !important;
  background-color: var(--theme-secondary-color-light-2) !important;
  font-weight: 500;
}

.sidebar .nav-link.active:hover {
  background-color: #ffffff !important;
}

.sidebar .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
}

.sidebar .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--theme-primary-color);
  color: var(--theme-primary-color);
}

.sidebar .dropdown-menu {
  background-color: #333333;
  border-color: #555555;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

.sidebar .dropdown-item {
  color: rgba(255, 255, 255, 0.8);
}

.sidebar .dropdown-item:hover {
  background-color: #555555;
  color: var(--theme-primary-color);
}

.sidebar .dropdown-item.active {
  background-color: var(--theme-primary-color);
  color: #000000;
}

.sidebar .dropdown-header {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar hr {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 1rem 0.5rem;
}

/* Logo styling in sidebar */
.sidebar .navbar-brand img {
  max-height: 40px;
  width: auto;
  transition: opacity 0.3s ease;
}

.sidebar .navbar-brand img:hover {
  opacity: 0.8;
}

/* User avatar styling */
.user-avatar {
  flex-shrink: 0;
}

/* Sidebar notifications and user profile styling */
.sidebar .row.g-2 {
  margin: 0;
}

.sidebar .col-4,
.sidebar .col-8 {
  padding: 0 0.25rem;
}

/* Notifications button styling */
.sidebar .dropdown .btn {
  position: relative;
  padding: 0.5rem;
  font-size: 0.875rem;
}

/* Notification badge positioning */
.sidebar .position-absolute.badge {
  top: -0.25rem !important;
  right: -0.25rem !important;
  min-width: 1.2rem;
  height: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  line-height: 1;
}

/* Sidebar content spacing */
.sidebar .position-sticky {
  padding-bottom: 2rem;
}

/* Ensure proper spacing for scrollable content */
.sidebar .nav {
  margin-bottom: 1rem;
}

/* Smooth scrolling behavior */
.sidebar {
  scroll-behavior: smooth;
}

/* Mobile Sticky bottom Menu */
.mobile-sticky-bottom-menu {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  z-index: 1000;
  border-top: 1px solid #e9ecef;
  padding: 0.5rem 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  -moz-backdrop-filter: blur(10px);
  -ms-backdrop-filter: blur(10px);
  -o-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  -moz-backdrop-filter: blur(10px);
  -ms-backdrop-filter: blur(10px);
  -o-backdrop-filter: blur(10px);
}

@media (max-width: 767.98px) {
  .mobile-sticky-bottom-menu {
    display: block; /* Only show on mobile */
  }
}

.mobile-sticky-bottom-menu-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--theme-text-color);
  font-size: 0.6rem;
  padding: 0 0.25rem;
  text-align: center;
}

.mobile-menu-item i {
  font-size: 1.5rem;
  display: block;
}

.mobile-menu-item span {
  display: block;
}

.mobile-menu-item:hover,
.mobile-menu-item:focus {
  color: var(--theme-accent-color);
}

.mobile-menu-item.active {
  color: var(--theme-text-color);
}
.mobile-menu-item.active i {
  background-color: var(--theme-secondary-color);
  padding: 0px 20px;
  border-radius: 100px;
  color: #ffffff;
}

.nav {
  padding-bottom: 10px;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scroll-behavior: smooth;
  gap: 1rem;
  flex-wrap: nowrap;
}

.nav-pills .nav-link {
  margin-right: 0 !important;
}

@media (max-width: 768px) {
  .nav {
    gap: 0.3rem;
    flex-wrap: nowrap;
  }

  .nav::-webkit-scrollbar {
    height: 1px; /* optional: custom scrollbar styling */
  }

  .nav::-webkit-scrollbar-thumb {
    background-color: #c2c2c2; /* scrollbar color */
    border-radius: 4px;
  }

  .nav::-webkit-scrollbar-thumb:hover {
    background-color: #555;
  }

  .nav .nav-link {
    font-size: 0.75rem;
    width: fit-content;
    padding: 0.3rem 0.5rem;
  }
}

.products-tabs .nav .nav-link .badge {
  display: none;
}

/* Override Bootstrap primary color for navigation */
.nav-pills .nav-link.active {
  background-color: #333333;
  color: #ffffff;
}

.nav-pills .nav-link:hover {
  background-color: #656565;
  color: #fff;
}

.container-fluid {
  padding: 0 !important;
}

.btn-outline-primary {
  color: var(--theme-accent-color);
  border-color: #8dd85f;
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: #8dd85f;
  border-color: #8dd85f;
}

.btn-outline-primary:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-outline-primary:disabled {
  color: #8dd85f;
  background-color: #8dd85f;
  border-color: #8dd85f;
}

.btn-secondary {
  font-size: 14px;
  background-color: var(--theme-secondary-color);
  color: #ffffff;
  border: none;
  border-radius: 100px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background-color: var(--theme-secondary-color-light);
  color: #ffffff;
  border: none;
}
.btn-secondary:active {
  background-color: var(--theme-secondary-color-light) !important;
  color: #ffffff;
  border: none;
}
.btn-secondary:focus {
  background-color: var(--theme-secondary-color-light) !important;
  color: #ffffff;
  border: none;
}

.btn-outline-secondary {
  color: #6c757d;
  border-color: #6c757d;
  border-radius: 100px;
}

.btn-outline-secondary:hover {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}
.btn-outline-secondary:active {
  color: #fff;
  background-color: #6c757d !important;
  border-color: #6c757d !important;
}
.btn-outline-secondary:focus-visible {
  color: #fff;
  background-color: #6c757d !important;
  border-color: #6c757d !important;
}

.btn-outline-secondary:focus {
  box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.25);
}

.btn-danger {
  border-radius: 100px;
  color: #fff;
  background-color: var(--theme-danger-color);
}

.btn.show {
  background-color: #6c757d !important;
}

/* Product type card styling */
.product-type-card {
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-type-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-type-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hide radio button circle but keep functionality */
.product-type-card .form-check-input {
  position: absolute;
  opacity: 0;
  pointer-events: auto;
  z-index: 1;
}

/* Selected product type card styling */
.product-type-card .form-check-input:checked + .form-check-label {
  background-color: #f0f9e8;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: -1rem;
}

.product-type-card .form-check-input:checked ~ .card-body {
  background-color: #f0f9e8;
  border-radius: 0.5rem;
}

.product-type-card .form-check-input:checked + .form-check-label .card-body {
  background-color: #f0f9e8;
  border-radius: 0.5rem;
}

/* Selected state with shadow and border */
.product-type-card:has(.form-check-input:checked) {
  background-color: #f0f9e8;
  border: 2px solid var(--theme-primary-color);
  box-shadow: 0 8px 25px rgba(159, 232, 112, 0.3);
  transform: translateY(-2px);
}

/* Fallback for browsers that don't support :has() */
.product-type-card.selected {
  background-color: #f0f9e8;
  border: 2px solid var(--theme-primary-color);
  box-shadow: 0 8px 25px rgba(159, 232, 112, 0.3);
  transform: translateY(-2px);
}

/* Product type grid layout */
.product-type-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  gap: 0.5rem;
}

.product-type-item {
  display: flex;
}
.product-type-item img {
  height: 150px;
  object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .product-type-item {
    flex: 1 1 calc(33.333% - 0.75rem);
  }
  .product-type-item img {
    height: 80px;
    object-fit: contain;
  }
}

@media (max-width: 768px) {
  .product-type-item {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 130px;
  }
}

/*# sourceMappingURL=custom.min.css.map */
.product-type-item .form-check {
  padding-left: 0em;
}

/* Main content area adjustment for fixed sidebar */
.main-content {
  margin-left: 15%; /* col-lg-2 equivalent */
  width: 85%; /* col-lg-10 equivalent */
  min-height: 100vh;
  border-top-left-radius: 20px;
  padding: 0 2rem 100px;
  background-color: #ffffff;
  position: relative;
  z-index: 1;
}

.top-toolbar {
  padding: 0.8rem 1rem 0.8rem 1rem;
  display: none;
  position: sticky;
  top: 0;
  z-index: 0;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .sidebar {
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main-content {
    border-top-right-radius: 20px;
    margin-left: 0;
    padding: 0 1rem 100px;
    width: 100%;
    box-shadow: 3px -1px 14px 0px #0000001f;
  }

  .top-toolbar {
    display: block;
  }

  .top-toolbar i {
    font-size: 1.5rem;
  }
}

/* Page header styling for flexible content */
.page-header-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header-content .page-title {
  margin: 0;
}

.page-header-content .page-description {
  margin: 0;
  margin-left: 0.5rem;
}

.page-header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

/* Medium screens (tablets) */
@media (max-width: 991.98px) {
  .page-header-actions {
    margin-left: 0;
    margin-top: 1rem;
    justify-content: flex-end;
  }

  .page-header-actions .btn {
    min-width: auto;
  }
}

/* Mobile screens */
@media (max-width: 767.98px) {
  .page-header-actions.mobile-float {
    position: fixed;
    bottom: 70px;
    right: 20px;
    left: auto;
    width: auto;
    margin: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 50px;
  }

  .page-header-actions .btn {
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .page-header-actions .btn i {
    margin-right: 0.2rem;
  }

  .page-header-actions .btn-primary {
    padding: 0.3rem 0.8rem !important;
    font-size: 0.7rem !important;
  }


  .page-header-actions.mobile-float .btn-primary {
    padding: 0.3rem 0.8rem !important;
    font-size: 0.7rem !important;
    box-shadow: -2px -2px 18px 5px var(--theme-primary-transparent);
  }

 
}

.file-gallery-container {
  display: flex; /* lays out divs in a row */
  overflow-x: auto; /* enables horizontal scrolling */
  overflow-y: hidden; /* prevents vertical scrolling */
  white-space: nowrap; /* keeps content on one line */
  scroll-behavior: smooth; /* optional: makes scrolling smooth */
  gap: 1rem; /* optional: space between divs */
  padding: 1rem 0; /* optional: a bit of breathing room */
  height: 180px;
}

.file-gallery-container::-webkit-scrollbar {
  height: 8px; /* optional: custom scrollbar styling */
}

.file-gallery-container::-webkit-scrollbar-thumb {
  background-color: #888; /* scrollbar color */
  border-radius: 4px;
}

.file-gallery-container::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

.file-item {
  /* ensures items don't shrink */
  width: 100px;
  height: 100px;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .file-item {
    width: 100px;
  }
}

/* Quill Editor Styling */
.quill-editor {
  background-color: #f5f6f5;
  border: 1px solid #e9ecef;
  border-radius: 0.375rem;
  transition: all 0.15s ease-in-out;
}

.quill-editor:hover {
  border-color: var(--theme-primary-color);
}

.quill-editor.ql-focused {
  background-color: #ffffff;
  border-color: var(--theme-primary-color);
  box-shadow: 0 0 0 0.2rem rgba(159, 232, 112, 0.25);
}

/* Quill editor content area */
.quill-editor .ql-editor {
  background-color: transparent;
  padding: 0.75rem;
  min-height: 120px;
}

/* Quill toolbar styling */
.quill-editor .ql-toolbar {
  border-bottom: 1px solid #e9ecef;
  background-color: #f8f9fa;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

/* Quill container styling */
.quill-editor .ql-container {
  border-bottom-left-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
  background-color: transparent;
}

/* Quill image styling */
.quill-editor .ql-editor img {
  max-width: 100%;
  height: auto;
  border-radius: 0.25rem;
  margin: 0.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Quill image hover effect */
.quill-editor .ql-editor img:hover {
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

.ql-toolbar.ql-snow {
  background: var(--theme-primary-color-light);
}

.snow-editor {
  height: auto !important;
  min-height: 120px !important;
}

.sticky-form-button {
  position: fixed;
  bottom: 20px;
  right: 10px;
  z-index: 1;
}
.sticky-form-button .btn {
  box-shadow: -2px -2px 18px 12px var(--theme-primary-transparent);
}


@media (max-width: 768px) {
  .sticky-form-button {
    bottom: 80px;
  }
}




.border-none {
  border: none !important;
  border-color: none !important;
  border-style: none !important;
  border-width: 0 !important;
}

@media screen and (max-width: 767px) {
  div.dt-container div.dt-layout-row:not(.dt-layout-table) {
    display: flex !important;
  }
}
.dt-length label {
  display: none !important;
}

.dt-search .dt-input,
.dt-length select {
  border: 1px solid var(--theme-secondary-color-light-2) !important;
  padding: 0.3rem 0.5rem !important;
  border-radius: 10px !important;
}
.dt-search label {
  display: none !important;
}

table.dataTable > tbody > tr > td:first-child a {
  color: var(--theme-text-color) !important;
  text-decoration: underline !important;
}
@media screen and (max-width: 767px) {
  #products-table td:first-child {
    min-width: 200px;
  }

  table.dataTable > tbody > tr {
    font-size: 0.75rem !important;
  }
}

table.dataTable > thead > tr > th {
  border-bottom: 1px solid var(--theme-secondary-color-light-2) !important;
}

div.dt-container .dt-paging .dt-paging-button.current {
  background-color: var(--theme-secondary-color-light-3) !important;
  border: none !important;
  border-radius: 100px !important;
}

.sidebar-user {
  background-color: var(--theme-secondary-color-light-2) !important;
}

.sidebar .nav {
  gap: 0.2rem;
}

table.dataTable.stripe > tbody > tr:nth-child(odd) > *,
table.dataTable.display > tbody > tr:nth-child(odd) > * {
  box-shadow: none !important;
}

table.dataTable > tbody > tr:hover {
  background-color: var(--theme-secondary-color-light-3) !important;
}

#products-table_wrapper{
  overflow-x: auto;
}
