/* ==========================================================================
   SHIPPSARTHI - Official Gold & Metallic Silver Theme
   Directly inspired by the official SHIPPSARTHI logo colors
   ========================================================================== */

:root {
  /* Primary Gold Theme Colors */
  --shipp-gold-main: #C59B27;
  --shipp-gold-light: #D4AF37;
  --shipp-gold-bright: #E5B842;
  --shipp-gold-dark: #B8860B;
  --shipp-gold-deep: #946E13;
  --shipp-gold-tint: #FFFDF5;
  --shipp-gold-soft: #FFF9E6;
  --shipp-gold-border: rgba(212, 175, 55, 0.4);
  --shipp-gold-glow: rgba(212, 175, 55, 0.25);
  
  /* Gradients */
  --shipp-gold-grad: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
  --shipp-gold-grad-hover: linear-gradient(135deg, #E5B842 0%, #C59B27 100%);
  --shipp-gold-grad-soft: linear-gradient(135deg, #FFF9E6 0%, #FFFDF5 100%);

  /* Metallic Silver Slate */
  --shipp-silver-light: #F8FAFC;
  --shipp-silver-border: #E2E8F0;
  --shipp-silver-mid: #94A3B8;
  --shipp-silver-dark: #64748B;
  --shipp-silver-slate: #334155;
  --shipp-silver-grad: linear-gradient(135deg, #94A3B8 0%, #475569 100%);

  /* System Color Overrides */
  --primary: #C59B27;
  --primary-hover: #B8860B;
}

/* --------------------------------------------------------------------------
   1. BUTTONS & ACTIONS
   -------------------------------------------------------------------------- */
.btn-primary, 
button.btn-primary, 
input[type="submit"].btn-primary,
.bg-primary {
  background: var(--shipp-gold-grad) !important;
  border-color: var(--shipp-gold-dark) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px var(--shipp-gold-glow) !important;
  transition: all 0.25s ease-in-out !important;
}

.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  background: var(--shipp-gold-grad-hover) !important;
  border-color: var(--shipp-gold-main) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4) !important;
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--shipp-gold-dark) !important;
  border-color: var(--shipp-gold-main) !important;
  background-color: transparent !important;
  transition: all 0.25s ease-in-out !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
  background: var(--shipp-gold-grad) !important;
  border-color: var(--shipp-gold-dark) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px var(--shipp-gold-glow) !important;
}

.btn-secondary {
  background: var(--shipp-silver-grad) !important;
  border-color: var(--shipp-silver-dark) !important;
  color: #ffffff !important;
}

.btn-info {
  background: linear-gradient(135deg, #D4AF37 0%, #A67C1E 100%) !important;
  border-color: #A67C1E !important;
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   2. SIDEBAR NAVIGATION
   -------------------------------------------------------------------------- */
.left-side-menu {
  background: #ffffff !important;
  border-right: 1px solid rgba(212, 175, 55, 0.15) !important;
}

#sidebar-menu > ul > li > a:hover,
#sidebar-menu > ul > li > a:focus,
#sidebar-menu > ul > li > a:active {
  color: var(--shipp-gold-dark) !important;
  background: var(--shipp-gold-soft) !important;
}

#sidebar-menu > ul > li.mm-active > a,
#sidebar-menu > ul > li > a.active {
  color: var(--shipp-gold-dark) !important;
  background: var(--shipp-gold-soft) !important;
  border-left: 4px solid var(--shipp-gold-main) !important;
  font-weight: 600 !important;
}

#sidebar-menu > ul > li.mm-active > a i,
#sidebar-menu > ul > li > a.active i,
#sidebar-menu > ul > li > a:hover i {
  color: var(--shipp-gold-main) !important;
}

/* Sidebar Image Icons Visibility & Gold Filter */
.sidebar-icons {
  width: 19px;
  margin: 0px 5px;
  transition: filter 0.2s ease, opacity 0.2s ease !important;
}

#sidebar-menu > ul > li > a .sidebar-icons {
  filter: brightness(0) saturate(100%) invert(20%) sepia(10%) hue-rotate(200deg) opacity(0.85) !important;
}

#sidebar-menu > ul > li > a:hover .sidebar-icons,
#sidebar-menu > ul > li > a:focus .sidebar-icons,
#sidebar-menu > ul > li > a.active .sidebar-icons,
#sidebar-menu > ul > li.mm-active > a .sidebar-icons {
  filter: brightness(0) saturate(100%) invert(42%) sepia(88%) saturate(542%) hue-rotate(5deg) brightness(92%) contrast(90%) !important;
  opacity: 1 !important;
}

.nav-second-level li a,
.nav-third-level li a,
.nav-second-level li ul li a {
  color: #6e768e !important;
  background-color: transparent !important;
}

.nav-second-level li a:focus, 
.nav-second-level li a:hover,
.nav-third-level li a:focus,
.nav-third-level li a:hover,
.nav-second-level li ul li a:hover,
.nav-second-level li ul li a:focus {
  color: var(--shipp-gold-dark) !important;
  background-color: transparent !important;
}

.nav-second-level li a.active,
.nav-second-level li.mm-active > a,
.nav-third-level li.mm-active > a,
.nav-third-level li a.active,
.nav-second-level li ul li a.active,
.nav-second-level li ul li.mm-active > a {
  color: var(--shipp-gold-dark) !important;
  font-weight: 600 !important;
  background-color: transparent !important;
}

.group-title-main {
  color: var(--shipp-gold-dark) !important;
  letter-spacing: 0.5px;
}

.group-lines {
  background: linear-gradient(90deg, var(--shipp-gold-light), transparent) !important;
}

/* --------------------------------------------------------------------------
   3. TOPBAR & NAVBAR
   -------------------------------------------------------------------------- */
.navbar-custom {
  background-color: #ffffff !important;
  border-bottom: 2px solid var(--shipp-gold-border) !important;
}

.topbar-left {
  background-color: #ffffff !important;
  border-bottom: 2px solid var(--shipp-gold-border) !important;
}

.logo-box {
  background-color: #ffffff !important;
}

/* User profile & Notification icons */
.nav-user img {
  border: 2px solid var(--shipp-gold-light) !important;
}

.notification-list .noti-icon-badge {
  background: var(--shipp-gold-grad) !important;
}

/* --------------------------------------------------------------------------
   4. TEXT, LINKS & BADGES
   -------------------------------------------------------------------------- */
a {
  color: var(--shipp-gold-dark);
}

a:hover {
  color: var(--shipp-gold-deep);
  text-decoration: none;
}

.text-primary {
  color: var(--shipp-gold-dark) !important;
}

.badge-primary {
  background: var(--shipp-gold-grad) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px var(--shipp-gold-glow) !important;
}

.badge-soft-primary {
  background-color: var(--shipp-gold-soft) !important;
  color: var(--shipp-gold-dark) !important;
  border: 1px solid var(--shipp-gold-border) !important;
}

/* --------------------------------------------------------------------------
   5. FORM INPUTS & SELECTS
   -------------------------------------------------------------------------- */
.form-control:focus, 
.custom-select:focus,
textarea.form-control:focus {
  border-color: var(--shipp-gold-main) !important;
  box-shadow: 0 0 0 0.2rem var(--shipp-gold-glow) !important;
}

.custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--shipp-gold-main) !important;
  border-color: var(--shipp-gold-dark) !important;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--shipp-gold-main) !important;
  border-color: var(--shipp-gold-dark) !important;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--shipp-gold-main) !important;
  border-color: var(--shipp-gold-dark) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--shipp-gold-grad) !important;
  color: #ffffff !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--shipp-gold-main) !important;
}

/* --------------------------------------------------------------------------
   6. TABS, PILLS & PAGINATION
   -------------------------------------------------------------------------- */
.nav-pills .nav-link.active, 
.nav-pills .show > .nav-link {
  background: var(--shipp-gold-grad) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px var(--shipp-gold-glow) !important;
}

.nav-tabs .nav-link:hover,
.btn-tab:hover {
  color: var(--shipp-gold-dark) !important;
  border-bottom: 3px solid var(--shipp-gold-main) !important;
}

.nav-tabs .nav-link.active,
.btn-tab.active {
  color: var(--shipp-gold-dark) !important;
  border-bottom: 3px solid var(--shipp-gold-main) !important;
  background: var(--shipp-gold-soft) !important;
  font-weight: 600 !important;
}

.selection-btn-add {
  background: #fff !important;
  color: var(--shipp-gold-dark) !important;
  border: 1px solid var(--shipp-gold-border) !important;
}

.selection-btn-add:hover {
  background: var(--shipp-gold-soft) !important;
  color: var(--shipp-gold-dark) !important;
}

.selection-mode-index {
  background: var(--shipp-gold-soft) !important;
  color: var(--shipp-gold-dark) !important;
}

.selection-mode-row .form-control:focus,
.config-field:focus {
  border-color: var(--shipp-gold-main) !important;
  box-shadow: 0 0 0 0.2rem var(--shipp-gold-glow) !important;
}

.page-item.active .page-link {
  background: var(--shipp-gold-grad) !important;
  border-color: var(--shipp-gold-dark) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px var(--shipp-gold-glow) !important;
}

.page-link {
  color: var(--shipp-gold-dark);
}

.page-link:hover {
  color: var(--shipp-gold-deep);
  background-color: var(--shipp-gold-soft);
}

/* --------------------------------------------------------------------------
   7. CARDS & TABLES
   -------------------------------------------------------------------------- */
.card {
  border-top: 3px solid var(--shipp-gold-main) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.card-header {
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
}

.card-title {
  color: #1e293b !important;
  font-weight: 600;
}

.table th {
  border-top: none;
  background-color: #fcfbfa;
  color: #334155;
  font-weight: 600;
}

.table-hover tbody tr:hover {
  background-color: var(--shipp-gold-tint) !important;
}

/* --------------------------------------------------------------------------
   8. MISCELLANEOUS (LOADERS, PROGRESS, BORDERS)
   -------------------------------------------------------------------------- */
.progress-bar {
  background: var(--shipp-gold-grad) !important;
}

.border-primary {
  border-color: var(--shipp-gold-main) !important;
}

/* Custom Search Container Highlight */
.custom-search-input:focus {
  border-color: var(--shipp-gold-main) !important;
  box-shadow: 0 0 0 0.2rem var(--shipp-gold-glow) !important;
}
