@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bd-ff-body: 'Plus Jakarta Sans', sans-serif;
  --clr-brand-gold: #B18B5E;
  --clr-brand-gold-hover: #99754C;
  --clr-brand-gold-light: rgba(177, 139, 94, 0.08);
  --clr-premium-dark: #1A1A1A;
  --clr-premium-dark-hover: #2d2d2d;
  --clr-common-heading: #1A1A1A;
  --clr-common-body-text: #4A4A4A;
  --clr-card-bg: #ffffff;
  --clr-border: #E5E7EB;
  --clr-shadow: rgba(0, 0, 0, 0.04);
}

/* Global Font Overrides */
body {
  font-family: var(--bd-ff-body) !important;
  background-color: #FAF9F6 !important; /* Soft warm ivory-white background */
  color: var(--clr-common-body-text) !important;
}

h1, h2, h3, h4, h5, h6, .menu-title, .user-name {
  font-family: var(--bd-ff-body) !important;
  color: var(--clr-common-heading) !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(177, 139, 94, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(177, 139, 94, 0.4);
}

/* Sidebar Wrapper Styling */
.sidebar-wrapper {
  background-color: #ffffff !important;
  border-right: 1px solid rgba(177, 139, 94, 0.1) !important;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.02) !important;
}

.sidebar-header {
  border-bottom: 1px solid rgba(177, 139, 94, 0.08) !important;
  padding: 20px 0 !important;
}

.sidebar-bottom {
  border-top: 1px solid rgba(177, 139, 94, 0.08) !important;
  background-color: #ffffff !important;
}

.sidebar-nav ul li a {
  transition: all 0.2s ease !important;
  border-left: 4px solid transparent !important;
}

/* Metismenu Overrides for Gold Theme */
.sidebar-nav ul li a {
  border-left: 0 !important;
  padding: 10px 20px !important;
  border-radius: 12px !important;
  margin: 4px 16px !important;
  color: var(--clr-common-body-text) !important;
  display: flex !important;
  align-items: center !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sidebar-wrapper .metismenu a.active,
.sidebar-wrapper .metismenu .mm-active > a {
  background-color: var(--clr-brand-gold) !important;
  color: #ffffff !important;
}

.sidebar-wrapper .metismenu a.active .menu-title,
.sidebar-wrapper .metismenu .mm-active > a .menu-title {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.sidebar-wrapper .metismenu a.active .parent-icon,
.sidebar-wrapper .metismenu .mm-active > a .parent-icon {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

.sidebar-wrapper .metismenu a.active .parent-icon .material-symbols-outlined,
.sidebar-wrapper .metismenu .mm-active > a .parent-icon .material-symbols-outlined {
  color: #ffffff !important;
}

/* Sidebar Hover States */
.sidebar-nav ul li a:hover {
  background-color: var(--clr-brand-gold-light) !important;
  color: var(--clr-brand-gold) !important;
}

.sidebar-nav ul li a:hover .menu-title {
  color: var(--clr-brand-gold) !important;
  font-weight: 600 !important;
}

.sidebar-nav ul li a:hover .parent-icon {
  background-color: rgba(177, 139, 94, 0.1) !important;
  border-color: rgba(177, 139, 94, 0.2) !important;
  color: var(--clr-brand-gold) !important;
}

.sidebar-nav ul li a:hover .parent-icon .material-symbols-outlined {
  color: var(--clr-brand-gold) !important;
}

/* Breadcrumb Styling */
.breadcrumb {
  display: flex !important;
  flex-wrap: wrap !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.breadcrumb-item {
  display: flex !important;
  align-items: center !important;
}

.breadcrumb-item a {
  color: #8E8E93 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  font-weight: 500 !important;
}

.breadcrumb-item a:hover {
  color: var(--clr-brand-gold) !important;
}

.breadcrumb-item.active {
  color: var(--clr-brand-gold) !important;
  font-weight: 600 !important;
  background: transparent !important;
  border-left: 0 !important;
}

/* Perfect spacing and separator styling */
.breadcrumb-item + .breadcrumb-item {
  padding-left: 8px !important;
}

.breadcrumb-item + .breadcrumb-item::before {
  display: inline-block !important;
  padding-right: 8px !important;
  color: #8E8E93 !important;
  content: "/" !important;
  font-weight: 400 !important;
}

/* Header & Top Bar */
.top-header {
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(177, 139, 94, 0.08) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01) !important;
}

.btn-toggle-menu {
  color: var(--clr-brand-gold) !important;
  background-color: var(--clr-brand-gold-light) !important;
  border-radius: 10px !important;
  padding: 8px !important;
  border: 1px solid rgba(177, 139, 94, 0.1) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-toggle-menu:hover {
  background-color: var(--clr-brand-gold) !important;
  color: #ffffff !important;
  transform: scale(1.05);
}

/* Card Enhancements (Soft border, float effect) */
.card {
  background: var(--clr-card-bg) !important;
  border: 1px solid var(--clr-border) !important;
  box-shadow: 0 4px 20px var(--clr-shadow) !important;
  border-radius: 16px !important;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease !important;
  overflow: hidden;
  margin-bottom: 24px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(177, 139, 94, 0.06) !important;
  border-color: rgba(177, 139, 94, 0.2) !important;
}

.card-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(177, 139, 94, 0.08) !important;
  padding: 20px 24px !important;
}

.card-body {
  padding: 24px !important;
}

/* Buttons Theme (Matching Eusta Store Gold & Charcoal) */
.btn-primary {
  background-color: var(--clr-brand-gold) !important;
  border-color: var(--clr-brand-gold) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 30px !important;
  padding: 10px 24px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(177, 139, 94, 0.15) !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: var(--clr-brand-gold-hover) !important;
  border-color: var(--clr-brand-gold-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(177, 139, 94, 0.25) !important;
}

.btn-light {
  background-color: #F3F4F6 !important;
  border-color: #E5E7EB !important;
  color: var(--clr-premium-dark) !important;
  font-weight: 600 !important;
  border-radius: 30px !important;
  padding: 10px 24px !important;
}

.btn-light:hover {
  background-color: #E5E7EB !important;
  color: var(--clr-premium-dark) !important;
}

.btn-danger {
  background-color: var(--clr-premium-dark) !important;
  border-color: var(--clr-premium-dark) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 30px !important;
  padding: 10px 24px !important;
}

.btn-danger:hover {
  background-color: var(--clr-premium-dark-hover) !important;
  border-color: var(--clr-premium-dark-hover) !important;
}

/* Form Styling */
.form-control, .form-select {
  border-radius: 10px !important;
  border: 1px solid #D1D5DB !important;
  padding: 11px 16px !important;
  font-size: 14px !important;
  transition: all 0.2s ease !important;
}

.form-control:focus, .form-select:focus {
  border-color: var(--clr-brand-gold) !important;
  box-shadow: 0 0 0 3px rgba(177, 139, 94, 0.18) !important;
}

/* Custom Table overrides */
.table-responsive {
  border-radius: 12px;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

table.table {
  border-collapse: separate;
  border-spacing: 0;
}

.users-page-table table.table {
  min-width: 1050px !important; /* Scope horizontal scrolling to users page table only */
}

table.table thead th {
  background-color: #FAF7F2 !important; /* Soft warm header background */
  color: var(--clr-premium-dark) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  font-size: 11px !important;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(177, 139, 94, 0.1) !important;
  padding: 16px 20px !important;
  white-space: nowrap !important; /* Prevent wrapping in headers */
}

table.table tbody td {
  padding: 16px 20px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
  white-space: nowrap !important; /* Prevent wrapping in table values */
}

table.table tbody tr:hover td {
  background-color: var(--clr-brand-gold-light) !important;
}

/* Premium Badges matching store pill style */
.lable-table {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  border-radius: 30px !important;
  padding: 6px 14px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  border: 1px solid transparent !important;
  line-height: 1 !important;
}

.lable-table.bg-success-subtle {
  background-color: rgba(16, 185, 129, 0.06) !important;
  color: #10B981 !important;
  border-color: rgba(16, 185, 129, 0.18) !important;
}

.lable-table.bg-danger-subtle {
  background-color: rgba(239, 68, 68, 0.06) !important;
  color: #EF4444 !important;
  border-color: rgba(239, 68, 68, 0.18) !important;
}

.lable-table.bg-secondary-subtle {
  background-color: var(--clr-brand-gold-light) !important;
  color: var(--clr-brand-gold) !important;
  border-color: rgba(177, 139, 94, 0.18) !important;
}

/* Premium KPI Cards Redesign */
.card-kpi {
  border: 1px solid #E5E7EB !important;
  background-color: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.015) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.card-kpi:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 28px rgba(177, 139, 94, 0.06) !important;
  border-color: rgba(177, 139, 94, 0.25) !important;
}

.card-kpi .card-body {
  padding: 24px !important;
}

.card-kpi .kpi-label {
  font-size: 12px;
  color: #8E8E93;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.card-kpi .kpi-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--clr-premium-dark) !important;
}

.card-kpi .widget-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--clr-brand-gold-light) !important;
  border: 1px solid rgba(177, 139, 94, 0.1) !important;
  color: var(--clr-brand-gold) !important;
  transition: all 0.3s ease;
}

.card-kpi .widget-icon .material-symbols-outlined {
  color: var(--clr-brand-gold) !important;
  font-size: 20px !important;
}

.card-kpi:hover .widget-icon {
  background-color: var(--clr-brand-gold) !important;
  color: #ffffff !important;
}

.card-kpi:hover .widget-icon .material-symbols-outlined {
  color: #ffffff !important;
}

/* Authentication Page Enhancements */
body.auth-page {
  background: linear-gradient(135deg, #1A1A1A 0%, #4D3B25 100%) !important; /* Premium dark background with deep gold glow */
}

body.auth-page .card {
  border: 1px solid rgba(177, 139, 94, 0.15) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
}

/* Checkbox alignment */
.form-check-input:checked {
  background-color: var(--clr-brand-gold) !important;
  border-color: var(--clr-brand-gold) !important;
}

/* Compact Sidebar View Refinements (Toggled State) - Desktop Only */
@media screen and (min-width: 1199px) {
  body.toggled:not(.sidebar-hovered) .sidebar-wrapper .metismenu a {
    margin: 6px 12px !important;
    padding: 0 !important;
    width: 46px !important;
    height: 46px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 50% !important; /* Clean circular selection pills */
    border-left: 0 !important;
  }

  body.toggled:not(.sidebar-hovered) .sidebar-wrapper .metismenu li.menu-label {
    display: none !important;
  }

  /* Active State when toggled */
  body.toggled:not(.sidebar-hovered) .sidebar-wrapper .metismenu a.active,
  body.toggled:not(.sidebar-hovered) .sidebar-wrapper .metismenu .mm-active > a {
    background-color: var(--clr-brand-gold) !important;
    color: #ffffff !important;
  }

  /* Clear icon backgrounds & borders to prevent squashed ovals */
  body.toggled:not(.sidebar-hovered) .sidebar-wrapper .metismenu a .parent-icon {
    background: transparent !important;
    border: none !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    color: var(--clr-common-body-text) !important;
  }

  body.toggled:not(.sidebar-hovered) .sidebar-wrapper .metismenu a .parent-icon .material-symbols-outlined {
    font-size: 22px !important;
    color: var(--clr-common-body-text) !important;
  }

  /* Active/Hover states of parent icon inside the circular selector */
  body.toggled:not(.sidebar-hovered) .sidebar-wrapper .metismenu a.active .parent-icon,
  body.toggled:not(.sidebar-hovered) .sidebar-wrapper .metismenu .mm-active > a .parent-icon {
    color: #ffffff !important;
  }

  body.toggled:not(.sidebar-hovered) .sidebar-wrapper .metismenu a.active .parent-icon .material-symbols-outlined,
  body.toggled:not(.sidebar-hovered) .sidebar-wrapper .metismenu .mm-active > a .parent-icon .material-symbols-outlined {
    color: #ffffff !important;
  }

  /* Hover highlights when toggled */
  body.toggled:not(.sidebar-hovered) .sidebar-wrapper .metismenu a:hover {
    background-color: var(--clr-brand-gold-light) !important;
    color: var(--clr-brand-gold) !important;
  }

  body.toggled:not(.sidebar-hovered) .sidebar-wrapper .metismenu a:hover .parent-icon .material-symbols-outlined {
    color: var(--clr-brand-gold) !important;
  }

  /* Clean profile img container at the bottom when toggled */
  body.toggled:not(.sidebar-hovered) .sidebar-wrapper .sidebar-bottom .user-img {
    border: none !important;
  }
}


/* Search Input Icon Padding Fix */
.position-relative input[type="search"],
.position-relative input.form-control.px-5 {
  padding-left: 48px !important;
}

.position-relative .material-symbols-outlined {
  color: #8E8E93 !important;
  transition: color 0.2s ease;
}

.position-relative:focus-within .material-symbols-outlined {
  color: var(--clr-brand-gold) !important;
}

/* Premium Filter Dropdown Buttons */
.dropdown-toggle.btn-light,
.btn-group .btn.dropdown-toggle,
.dropdown-toggle.border {
  background-color: #ffffff !important;
  border: 1px solid #E5E7EB !important;
  color: var(--clr-premium-dark) !important;
  font-weight: 600 !important;
  border-radius: 30px !important;
  padding: 10px 24px !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}

.dropdown-toggle.btn-light:hover,
.dropdown-toggle.btn-light:focus,
.dropdown-toggle.btn-light[aria-expanded="true"],
.btn-group .btn.dropdown-toggle:hover,
.btn-group .btn.dropdown-toggle:focus,
.btn-group .btn.dropdown-toggle[aria-expanded="true"] {
  background-color: var(--clr-brand-gold-light) !important;
  border-color: var(--clr-brand-gold) !important;
  color: var(--clr-brand-gold) !important;
}

/* Reduce width and padding of selection and ID table columns */
table.table thead th:first-child,
table.table tbody td:first-child {
  width: 44px !important;
  padding-left: 20px !important;
  padding-right: 6px !important;
}

table.table thead th:nth-child(2),
table.table tbody td:nth-child(2) {
  width: 58px !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
}

/* Sidebar Width Reduction overrides */
@media screen and (min-width: 1199px) {
  /* Normal Expanded Sidebar Width: 230px */
  .sidebar-wrapper {
    width: 230px !important;
  }
  .sidebar-wrapper .sidebar-header {
    width: 230px !important;
  }
  .sidebar-wrapper .sidebar-bottom {
    width: 230px !important;
  }
  .top-header .navbar {
    left: 230px !important;
  }
  .page-content {
    margin-left: 230px !important;
  }

  /* Compact Toggled Sidebar Width: 70px */
  body.toggled:not(.sidebar-hovered) .sidebar-wrapper {
    width: 70px !important;
  }
  body.toggled:not(.sidebar-hovered) .sidebar-wrapper .sidebar-header {
    width: 70px !important;
  }
  body.toggled:not(.sidebar-hovered) .sidebar-wrapper .sidebar-bottom {
    width: 70px !important;
  }
  body.toggled:not(.sidebar-hovered) .top-header .navbar {
    left: 70px !important;
  }
  body.toggled:not(.sidebar-hovered) .page-content {
    margin-left: 70px !important;
  }
}

/* Mobile responsive fixes for overlay and close button */
@media only screen and (max-width: 1199px) {
  .toggled .overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.4) !important;
    opacity: 1 !important;
    z-index: 1040 !important;
    display: block !important;
  }
  .sidebar-wrapper {
    z-index: 1050 !important;
  }
  .sidebar-close-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--clr-premium-dark);
    margin-left: auto;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .sidebar-close-btn:hover {
    background-color: var(--clr-brand-gold-light);
    color: var(--clr-brand-gold);
  }
  
  /* Hide sidebar and related toggles/overlays under 1199px viewport */
  .sidebar-wrapper, .overlay, .btn-toggle-menu {
    display: none !important;
  }
  .top-header .navbar {
    left: 0 !important;
  }
  .page-content {
    margin-left: 0 !important;
    padding-bottom: 100px !important;
  }
  
  /* Mobile Logo styling in navbar */
  .mobile-logo {
    display: flex !important;
    align-items: center;
    gap: 8px;
    z-index: 100;
  }
}

/* Hide mobile logo on desktop */
@media screen and (min-width: 1199px) {
  .mobile-logo {
    display: none !important;
  }
}

/* Hide scrollbar for horizontally scrollable filter rows on mobile/all screens */
.col-auto.flex-grow-1.overflow-auto {
  -ms-overflow-style: none !important;  /* IE/Edge */
  scrollbar-width: none !important;  /* Firefox */
}
.col-auto.flex-grow-1.overflow-auto::-webkit-scrollbar {
  display: none !important;  /* Chrome/Safari/Opera */
}

/* Premium Floating Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 440px;
  height: 66px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(177, 139, 94, 0.15);
  border-radius: 35px;
  box-shadow: 0 10px 30px rgba(177, 139, 94, 0.12);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1030;
  padding: 0 10px;
}

.mobile-bottom-nav .nav-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8A8A8F;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', 'Noto Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  width: 70px;
  height: 52px;
  border-radius: 20px;
  transition: all 0.25s ease;
  position: relative;
}

.mobile-bottom-nav .nav-link-item .material-symbols-outlined {
  font-size: 24px;
  margin-bottom: 2px;
  transition: all 0.25s ease;
  color: #8A8A8F !important;
}

.mobile-bottom-nav .nav-link-item:hover {
  color: var(--clr-brand-gold) !important;
}

.mobile-bottom-nav .nav-link-item:hover .material-symbols-outlined {
  color: var(--clr-brand-gold) !important;
}

/* Active State styling with Gold accent */
.mobile-bottom-nav .nav-link-item.nav-active {
  color: var(--clr-brand-gold) !important;
  font-weight: 700;
}

.mobile-bottom-nav .nav-link-item.nav-active .material-symbols-outlined {
  transform: translateY(-2px);
  color: var(--clr-brand-gold) !important;
}



