/**
 * Custom Color Overrides
 * -------------------------------------------------------------------------------------
 * This file contains custom color overrides for the application.
 * Primary Color: #c3b40e (Golden Yellow)
 * Sidebar Background: #302e41 (Dark Purple/Gray)
 */

:root,
[data-bs-theme=light] {
  /* Primary Color Override - Golden Yellow */
  --bs-purple: #c3b40e;
  --bs-primary: #c3b40e;
  --bs-primary-rgb: 195, 180, 14;
  
  /* Primary Color Variations */
  --bs-primary-text-emphasis: #4e4806;
  --bs-primary-bg-subtle: #f5f3d9;
  --bs-primary-border-subtle: #e9e5b3;
  
  /* Sidebar Background Color */
  --bs-menu-bg: #302e41;
}

/* Dark theme colors */
[data-bs-theme=dark] {
  --bs-primary: #c3b40e;
  --bs-primary-rgb: 195, 180, 14;
  --bs-menu-bg: #302e41;
}

/* Sidebar Menu Background */
.layout-menu,
.menu-vertical {
  background-color: #302e41 !important;
}

.layout-menu[data-bs-theme="dark"],
.menu-vertical[data-bs-theme="dark"] {
  background-color: #302e41 !important;
}

/* Sidebar menu items */
.menu-vertical .menu-item.active > .menu-link:not(.menu-toggle) {
  background: linear-gradient(270deg, rgba(195, 180, 14, 0.1) 0%, rgba(195, 180, 14, 0.04) 100%) !important;
  box-shadow: 0.25rem 0 0 #c3b40e inset;
}

.menu-vertical .menu-item.active .menu-link {
  color: #c3b40e !important;
}

.menu-vertical .menu-item .menu-link:hover:not(.active) {
  background-color: rgba(195, 180, 14, 0.08) !important;
}

/* Primary Button */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #c3b40e;
  --bs-btn-border-color: #c3b40e;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #a99a0c;
  --bs-btn-hover-border-color: #9e900b;
  --bs-btn-focus-shadow-rgb: 195, 180, 14;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #9e900b;
  --bs-btn-active-border-color: #93850a;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #c3b40e;
  --bs-btn-disabled-border-color: #c3b40e;
}

/* Primary Outline Button */
.btn-outline-primary {
  --bs-btn-color: #c3b40e;
  --bs-btn-border-color: #c3b40e;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #c3b40e;
  --bs-btn-hover-border-color: #c3b40e;
  --bs-btn-focus-shadow-rgb: 195, 180, 14;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #c3b40e;
  --bs-btn-active-border-color: #c3b40e;
  --bs-btn-disabled-color: #c3b40e;
  --bs-btn-disabled-bg: transparent;
}

/* Primary Link */
.link-primary {
  color: #c3b40e !important;
}

.link-primary:hover,
.link-primary:focus {
  color: #9e900b !important;
}

/* Primary Badge */
.badge.bg-primary {
  background-color: #c3b40e !important;
}

/* Primary Border */
.border-primary {
  border-color: #c3b40e !important;
}

/* Primary Text Color */
.text-primary {
  color: #c3b40e !important;
}

/* Primary Background */
.bg-primary {
  background-color: #c3b40e !important;
}

/* Primary Alert */
.alert-primary {
  --bs-alert-color: #4e4806;
  --bs-alert-bg: #f5f3d9;
  --bs-alert-border-color: #e9e5b3;
}

/* Forms - Primary Focus */
.form-control:focus,
.form-select:focus {
  border-color: rgba(195, 180, 14, 0.5);
  box-shadow: 0 0 0 0.25rem rgba(195, 180, 14, 0.25);
}

.form-check-input:checked {
  background-color: #c3b40e;
  border-color: #c3b40e;
}

/* Progress Bar */
.progress-bar {
  background-color: #c3b40e;
}

/* Pagination */
.page-link {
  color: #c3b40e;
}

.page-item.active .page-link {
  background-color: #c3b40e;
  border-color: #c3b40e;
}

/* Dropdown Active Item */
.dropdown-item.active,
.dropdown-item:active {
  background-color: #c3b40e;
}

/* Nav Pills */
.nav-pills .nav-link.active {
  background-color: #c3b40e;
}

/* List Group */
.list-group-item.active {
  background-color: #c3b40e;
  border-color: #c3b40e;
}

/* Spinner */
.spinner-border.text-primary,
.spinner-grow.text-primary {
  color: #c3b40e !important;
}

/* App Brand / Logo */
.app-brand .text-primary {
  /* color: #c3b40e !important; */
}

/* Menu Header in Sidebar */
.menu-vertical .menu-header {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Menu Link Colors in Dark Sidebar */
.menu-vertical .menu-link {
  color: rgba(255, 255, 255, 0.8) !important;
}

.menu-vertical .menu-link:hover {
  color: #fff !important;
}

.menu-vertical .menu-icon {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Navbar with Primary Background */
.navbar.bg-primary {
  --bs-navbar-bg: rgba(195, 180, 14, 0.88);
  background-color: rgba(195, 180, 14, 0.88) !important;
}

/* Card with Primary Border */
.card.border-primary {
  border-color: #c3b40e !important;
}

/* Table Primary */
.table-primary {
  --bs-table-color: #000;
  --bs-table-bg: #f5f3d9;
  --bs-table-border-color: #e9e5b3;
}

/* Toast Primary */
.toast.bg-primary {
  background-color: #c3b40e !important;
  color: #fff;
}

/* Offcanvas with Sidebar Color */
.offcanvas {
  background-color: #302e41 !important;
}

/* Switch / Toggle Primary */
.form-switch .form-check-input:checked {
  background-color: #c3b40e;
  border-color: #c3b40e;
}

/* Range Input */
.form-range::-webkit-slider-thumb {
  background-color: #c3b40e;
}

.form-range::-moz-range-thumb {
  background-color: #c3b40e;
}

/* Accordion Primary */
.accordion-button:not(.collapsed) {
  color: #4e4806;
  background-color: #f5f3d9;
}

/* Sidebar Logo Styling */
.app-brand {
  padding: 1.25rem 1.5rem;
  /* background-color: rgba(0, 0, 0, 0.1); */
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.05); */
}

.app-brand-link {
  text-decoration: none;
  transition: all 0.3s ease;
}

.app-brand-link:hover {
  opacity: 0.9;
}

.app-brand-logo img {
  filter: brightness(1.1);
  transition: all 0.3s ease;
}

.app-brand-link:hover .app-brand-logo img {
  transform: scale(1.05);
}

.app-brand-text {
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

/* Collapsed sidebar logo */
.layout-menu-collapsed .app-brand-text {
  display: none;
}

.layout-menu-collapsed .app-brand-logo {
  margin: 0 auto;
}

/* Auth Pages Logo */
.auth-cover-brand {
  z-index: 10;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.auth-cover-brand:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.auth-cover-brand img {
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.auth-cover-brand:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.auth-cover-brand .app-brand-text {
  color: #444050 !important;
  transition: color 0.3s ease;
}

.auth-cover-brand:hover .app-brand-text {
  color: #c3b40e !important;
}

/* Responsive logo for auth pages */
@media (max-width: 768px) {
  .auth-cover-brand {
    inset-block-start: 1.5rem !important;
    inset-inline-start: 1rem !important;
  }
  
  .auth-cover-brand img {
    /*height: 40px !important;*/
  }
  
  .auth-cover-brand .app-brand-text {
    font-size: 1.2rem !important;
  }
}

.menu-vertical .menu-inner > .menu-item .menu-link{
  border-radius: 0rem;
}

/* Fix mini-cart dropdown positioning */
.navbar-nav .nav-item.dropdown {
  position: relative;
}

.navbar-nav .nav-item.dropdown .dropdown-menu {
  z-index: 1100 !important;
  position: absolute !important;
}

/* RTL specific dropdown positioning */
[dir="rtl"] .navbar-nav .nav-item.dropdown .dropdown-menu.dropdown-menu-end {
  left: auto !important;
  right: 0 !important;
  transform: translateX(0) !important;
  inset: 100% 0 auto auto !important;
}

/* LTR specific dropdown positioning */
[dir="ltr"] .navbar-nav .nav-item.dropdown .dropdown-menu.dropdown-menu-end {
  left: auto !important;
  right: 0 !important;
  transform: translateX(0) !important;
  inset: 100% 0 auto auto !important;
}

div.card-datatable {
padding: 15px;
}
