/* Custom Styles */

/* Google Fonts Import - Raleway */
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&display=swap");

/* Apply Raleway to the entire application */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.navbar,
.btn,
.nav,
.sidebar-nav,
input,
select,
textarea,
button,
table,
td,
th,
span,
label,
a,
div {
  font-family: "Raleway", sans-serif !important;
}

/* Strictly enforce zero border-radius globally for a sharp, modern flat UI */
.box,
.small-box,
.quick-button,
.btn,
.btn-success,
.btn-primary,
.btn-default,
.btn-info,
.btn-warning,
.btn-danger,
.form-control,
.table,
.table-bordered,
.label,
.nav.main-menu > li > ul,
.stacking-loader .layer,
.stacking-loader .shadow-floor,
.img-thumbnail,
.img-circle,
.mini_avatar,
.dropdown-menu {
  border-radius: 0 !important;
}

/* Prevent horizontal page overflow */
html,
body,
#app_wrapper {
  overflow-x: hidden;
}

/* Enforce fixed layout on the main grid table wrapper to prevent content overflow from stretching the page */
.lt {
  table-layout: fixed !important;
  width: 100% !important;
}

/* Subtle micro-interaction hover transition for the native small-box widgets */
.small-box {
  transition: all 0.2s ease-in-out;
}

.small-box:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* ==========================================
   Header Design Upgrades (Color-only Overrides)
   ========================================== */
#header.navbar {
  background: #0f172a !important;
  border-bottom: 1px solid #1e293b !important;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#header.navbar a.navbar-brand {
  color: #ffffff !important;
  font-weight: 700;
}

#header.navbar a.navbar-brand span {
  background: none !important;
  color: #3b82f6 !important; /* Electric Blue Logo Text */
  font-weight: 800;
}

/* Header buttons and navigation links styling */
.header-nav a.btn,
.header-nav a.btn.cart {
  background: #1e293b !important;
  color: #94a3b8 !important;
  border: 1px solid #334155 !important;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.header-nav a.btn.account {
  background: transparent !important;
  border: none !important;
}

.header-nav a.btn:hover,
.header-nav a.btn.cart:hover {
  background: #334155 !important;
  color: #ffffff !important;
  border-color: #475569 !important;
}

.header-nav a.btn.account:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

/* User identity name container */
.header-nav a.btn.account .user span {
  color: #e2e8f0 !important;
}

/* Dropdown menu boxes in the header */
.header-nav .dropdown-menu {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.3),
    0 4px 6px -2px rgba(0, 0, 0, 0.15);
}

.header-nav .dropdown-menu li a {
  color: #94a3b8 !important;
  transition: all 0.2s ease;
}

.header-nav .dropdown-menu li a:hover {
  background: #334155 !important;
  color: #ffffff !important;
}

.header-nav .dropdown-menu .divider {
  background-color: #334155 !important;
}

/* ==========================================
   Sidebar Navigation Menu (Premium Space Navy Design)
   ========================================== */
.lt td.sidebar-con {
  background-color: #0d1527 !important; /* Deep dark space navy */
  border-right: 1px solid #1e293b !important;
}

#sidebar-left {
  background: #0d1527 !important;
  padding: 15px 0 !important;
  z-index: 100 !important; /* Keep sidebar above content shadow layers */
}

/* Remove default list items styling and lines */
.nav.main-menu {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.nav.main-menu > li {
  margin: 4px 12px !important;
  border: none !important;
}

/* Base anchor element styling */
.nav.main-menu > li > a {
  background: transparent !important;
  color: #94a3b8 !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 12px 16px !important;
  height: auto !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  transition: all 0.2s ease-in-out !important;
  text-decoration: none !important;
}

/* Normalize menu icons */
.nav.main-menu > li > a > i,
.nav.main-menu > li > ul > li > a > i {
  margin-right: 12px !important;
  height: auto !important;
  width: auto !important;
  padding: 0 !important;
  font-size: 16px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  color: #64748b !important;
  transition: all 0.2s ease-in-out !important;
}

/* Hover transitions */
.nav.main-menu > li > a:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

.nav.main-menu > li > a:hover > i {
  color: #3b82f6 !important;
}

/* Submenu container box */
.nav.main-menu > li > ul {
  background: #070b14 !important;
  border-radius: 0 !important;
  margin: 4px 0 !important;
  padding: 4px 0 !important;
  list-style: none !important;
}

.nav.main-menu > li > ul > li {
  margin: 2px 8px !important;
}

.nav.main-menu > li > ul > li > a {
  background: transparent !important;
  color: #94a3b8 !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 10px 12px 10px 32px !important;
  height: auto !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  transition: all 0.2s ease-in-out !important;
  text-decoration: none !important;
}

/* Submenu hover transitions */
.nav.main-menu > li > ul > li > a:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}

/* Menu Active States */
.nav.main-menu > li.active > a,
.nav.main-menu > li.active > a:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
  border-left: none !important;
}

.nav.main-menu > li.active > a > i {
  color: #ffffff !important;
}

/* Submenu Active States */
.nav.main-menu > li > ul > li.active > a,
.nav.main-menu > li > ul > li.active > a:hover {
  background: rgba(37, 99, 235, 0.15) !important;
  color: #60a5fa !important;
  font-weight: 600 !important;
}

.nav.main-menu > li > ul > li.active > a > i {
  color: #60a5fa !important;
}

/* Chevron decoration icons adjustments */
.nav.main-menu .chevron {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  right: 16px !important;
  height: auto !important;
  width: auto !important;
  padding: 0 !important;
  color: #64748b !important;
  font-size: 11px !important;
}

.nav.main-menu .chevron.closed:after {
  color: #64748b !important;
}

.nav.main-menu .chevron.opened:after {
  color: #94a3b8 !important;
}

/* Collapsible toggle buttons */
a#main-menu-toggle {
  background: #0d1527 !important;
  border-right: 1px solid #1e293b !important;
}

a#main-menu-toggle.close {
  background: #0d1527 !important;
}

a#main-menu-act {
  border-bottom: 1px solid #1e293b !important;
}

a#main-menu-act i {
  background: #1e293b !important;
  color: #94a3b8 !important;
  border-bottom: 1px solid #1e293b !important;
}

/* ==========================================
   Responsive Sidebar Collapsible Handling
   ========================================== */
@media only screen and (max-width: 991px) {
  #sidebar-left,
  #sidebar-left.sidebar-fixed {
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    padding: 5px 0 !important;
  }

  #header.navbar {
    position: relative !important;
    width: 100% !important;
  }

  #app_wrapper {
    padding-top: 0 !important;
  }

  .lt td.sidebar-con {
    background-color: transparent !important;
    border-right: none !important;
    width: 100% !important;
    display: block !important;
  }

  .lt td.content-con {
    display: block !important;
    width: 100% !important;
  }
}

/* ==========================================
   Stacking Preloader Styling & Animation
   ========================================== */
#loading {
  background: #0f172a !important; /* Deep dark space navy to match the layout */
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 32px !important;
}

.stacking-loader {
  width: 64px;
  height: 64px;
  position: relative !important;
  transform: rotateX(60deg) rotateZ(-45deg);
  transform-style: preserve-3d !important;
}

.stacking-loader .layer {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  opacity: 0;
  transform: translateZ(0);
  transition: all 0.3s ease;
}

/* Layer 1 - Bottom */
.stacking-loader .layer-1 {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%) !important;
  box-shadow:
    0 0 15px rgba(29, 78, 216, 0.4),
    inset 0 0 8px rgba(255, 255, 255, 0.1) !important;
  animation: layer1-anim 3s infinite cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Layer 2 - Middle */
.stacking-loader .layer-2 {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
  box-shadow:
    0 0 20px rgba(59, 130, 246, 0.5),
    inset 0 0 8px rgba(255, 255, 255, 0.2) !important;
  animation: layer2-anim 3s infinite cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Layer 3 - Top */
.stacking-loader .layer-3 {
  background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%) !important;
  box-shadow:
    0 0 25px rgba(34, 211, 238, 0.7),
    inset 0 0 8px rgba(255, 255, 255, 0.3) !important;
  animation: layer3-anim 3s infinite cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* 3D Floor shadow projection */
.stacking-loader .shadow-floor {
  position: absolute !important;
  top: 6px;
  left: 6px;
  width: 90% !important;
  height: 90% !important;
  background: rgba(2, 6, 23, 0.8) !important;
  border-radius: 0 !important;
  filter: blur(8px) !important;
  transform: translateZ(-20px) scale(0.7);
  opacity: 0;
  animation: shadow-anim 3s infinite cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Dynamic text pulsing underneath */
.loader-text {
  font-family: "Raleway", sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  animation: text-pulse-anim 1.5s infinite ease-in-out !important;
}

/* Keyframes Animations */
@keyframes layer1-anim {
  0%,
  10% {
    transform: translateZ(0);
    opacity: 0;
  }
  15%,
  85% {
    transform: translateZ(0);
    opacity: 1;
  }
  90%,
  100% {
    transform: translateZ(0);
    opacity: 0;
  }
}

@keyframes layer2-anim {
  0%,
  25% {
    transform: translateZ(0);
    opacity: 0;
  }
  30%,
  80% {
    transform: translateZ(18px);
    opacity: 1;
  }
  85%,
  100% {
    transform: translateZ(0);
    opacity: 0;
  }
}

@keyframes layer3-anim {
  0%,
  40% {
    transform: translateZ(0);
    opacity: 0;
  }
  45%,
  75% {
    transform: translateZ(36px);
    opacity: 1;
  }
  80%,
  100% {
    transform: translateZ(0);
    opacity: 0;
  }
}

@keyframes shadow-anim {
  0%,
  10% {
    transform: translateZ(-20px) scale(0.6);
    opacity: 0;
    filter: blur(4px);
  }
  15% {
    transform: translateZ(-20px) scale(1);
    opacity: 0.9;
    filter: blur(6px);
  }
  45%,
  75% {
    transform: translateZ(-20px) scale(1.1);
    opacity: 0.45;
    filter: blur(12px);
  }
  85%,
  100% {
    transform: translateZ(-20px) scale(0.6);
    opacity: 0;
    filter: blur(4px);
  }
}

@keyframes text-pulse-anim {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.97);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

/* ==========================================
   Premium Box & Cards Overhaul
   ========================================== */
.box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0 !important; /* Strictly no border radius */
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.025) !important;
  margin-bottom: 24px !important;
  overflow: hidden !important;
}

.box .box-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.box .box-header h2 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important; /* Dark Slate Navy instead of basic blue */
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.box .box-header h2 i {
  color: #3b82f6 !important; /* Electric Blue Icons */
  font-size: 16px !important;
}

/* ==========================================
   Greeting Box Redesign
   ========================================== */
.greeting-box {
  background: linear-gradient(
    135deg,
    #0f172a 0%,
    #1e293b 100%
  ) !important; /* Dark theme card */
  border: 1px solid #334155 !important;
  color: #ffffff !important;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.2),
    0 4px 6px -2px rgba(0, 0, 0, 0.1) !important;
}

.greeting-box .box-content {
  background: transparent !important;
}

.greeting-box .box-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.greeting-box .box-header h2 {
  color: #ffffff !important;
}

.greeting-box .box-header h2 i {
  color: #60a5fa !important;
}

.greeting-box h3 {
  color: #ffffff !important;
}

.greeting-box strong {
  color: #ffffff !important;
}

.greeting-box .blue {
  color: #60a5fa !important; /* Light electric blue name highlighting */
}

.greeting-box .introtext {
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #94a3b8 !important; /* Muted text */
}

.greeting-box #live-clock strong {
  color: #60a5fa !important;
}

.greeting-box img.img-circle.img-thumbnail {
  border: 2px solid #3b82f6 !important;
  padding: 2px !important;
  background-color: #1e293b !important;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3) !important;
}

/* ==========================================
   Premium Stats Cards Overhaul
   ========================================== */
.small-box {
  position: relative;
  padding: 24px 20px !important;
  border-radius: 0 !important; /* Strictly no border radius */
  color: #ffffff !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.05),
    0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.small-box:hover {
  transform: translateY(-5px) !important;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.15),
    0 10px 10px -5px rgba(0, 0, 0, 0.08) !important;
}

/* Today's Sales Card */
.small-box.bblue {
  background: linear-gradient(
    135deg,
    #2563eb 0%,
    #1d4ed8 100%
  ) !important; /* Vibrant Blue */
}

/* Total Sales Card */
.small-box.bdarkGreen {
  background: linear-gradient(
    135deg,
    #059669 0%,
    #047857 100%
  ) !important; /* Emerald Green */
}

/* Total Products Card */
.small-box.bpurple {
  background: linear-gradient(
    135deg,
    #7c3aed 0%,
    #6d28d9 100%
  ) !important; /* Premium Purple */
}

/* Total Customers Card */
.small-box.borange {
  background: linear-gradient(
    135deg,
    #ea580c 0%,
    #c2410c 100%
  ) !important; /* Soft Amber Orange */
}

/* Stats Card Typography */
.small-box h4 {
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  opacity: 0.85 !important;
  margin: 0 0 12px 0 !important;
  font-weight: 700 !important;
}

.small-box h3 {
  font-size: 32px !important;
  font-weight: 800 !important;
  margin: 0 0 8px 0 !important;
  letter-spacing: -0.02em !important;
  line-height: 1 !important;
}

.small-box p {
  font-size: 13px !important;
  margin: 0 0 4px 0 !important;
  opacity: 0.8 !important;
  font-weight: 500 !important;
}

/* Card Action Footer line */
.small-box p:last-child {
  font-size: 11px !important;
  margin-top: 14px !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  opacity: 0.7 !important;
  font-weight: 400 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.small-box p:last-child::after {
  content: "→" !important;
  font-size: 14px !important;
  transition: transform 0.2s ease !important;
}

.small-box:hover p:last-child::after {
  transform: translateX(4px) !important;
}

/* Card Icons */
.small-box .icon {
  position: absolute !important;
  right: 15px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 54px !important;
  opacity: 0.12 !important;
  transition: all 0.3s ease !important;
}

.small-box:hover .icon {
  transform: translateY(-50%) scale(1.15) rotate(8deg) !important;
  opacity: 0.22 !important;
}

/* ==========================================
   Support/Help Card Styling
   ========================================== */
.support-box {
  border-left: 4px solid #10b981 !important; /* Emerald green left border */
}

.support-box .btn-success {
  background: #10b981 !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 12px 24px !important;
  box-shadow:
    0 4px 6px -1px rgba(16, 185, 129, 0.3),
    0 2px 4px -1px rgba(16, 185, 129, 0.15) !important;
  transition: all 0.2s ease-in-out !important;
  color: #ffffff !important;
}

.support-box .btn-success:hover {
  background: #059669 !important;
  transform: translateY(-2px) !important;
  box-shadow:
    0 10px 15px -3px rgba(16, 185, 129, 0.4),
    0 4px 6px -2px rgba(16, 185, 129, 0.2) !important;
}

/* ==========================================
   Quick Buttons Overhaul
   ========================================== */
.quick-button {
  border-radius: 0 !important;
  padding: 20px 10px !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
  text-align: center !important;
  display: block !important;
  margin-bottom: 20px !important;
  text-decoration: none !important;
}

/* Override color backgrounds to use clean modern tones */
.quick-button.bblue {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}
.quick-button.bdarkGreen {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border-color: #a7f3d0 !important;
}
.quick-button.blightOrange {
  background: #fff7ed !important;
  color: #c2410c !important;
  border-color: #fed7aa !important;
}
.quick-button.bred {
  background: #fef2f2 !important;
  color: #b91c1c !important;
  border-color: #fca5a5 !important;
}
.quick-button.bpink {
  background: #fdf2f8 !important;
  color: #be185d !important;
  border-color: #fbcfe8 !important;
}
.quick-button.bgrey {
  background: #f8fafc !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
}
.quick-button.blightBlue {
  background: #ecfeff !important;
  color: #0891b2 !important;
  border-color: #c5f6fa !important;
}

.quick-button:hover {
  transform: translateY(-4px) !important;
  box-shadow:
    0 12px 20px -5px rgba(0, 0, 0, 0.08),
    0 4px 6px -2px rgba(0, 0, 0, 0.04) !important;
  filter: brightness(0.97) !important;
}

.quick-button i {
  font-size: 26px !important;
  margin-bottom: 10px !important;
  display: inline-block !important;
}

.quick-button p {
  font-weight: 700 !important;
  font-size: 11px !important;
  margin: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

/* Small Quick Button overrides to prevent squishing in narrow column grids */
.quick-button.small {
  padding: 12px 2px !important;
}

.quick-button.small i {
  font-size: 18px !important;
  margin-bottom: 6px !important;
}

.quick-button.small p {
  font-size: 9px !important;
  letter-spacing: 0.01em !important;
  line-height: 1.2 !important;
}

/* ==========================================
   Tabs & Tables Styling
   ========================================== */
#dbTab.nav-tabs {
  border-bottom: 2px solid #e2e8f0 !important;
  margin-bottom: 20px !important;
  display: flex !important;
  gap: 8px !important;
}

#dbTab.nav-tabs li {
  margin-bottom: -2px !important;
}

#dbTab.nav-tabs li a {
  border: none !important;
  background: transparent !important;
  color: #64748b !important;
  padding: 10px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-bottom: 2px solid transparent !important;
  transition: all 0.2s ease !important;
  border-radius: 0 !important;
}

#dbTab.nav-tabs li a:hover {
  color: #0f172a !important;
  border-bottom-color: #cbd5e1 !important;
}

#dbTab.nav-tabs li.active a,
#dbTab.nav-tabs li.active a:hover,
#dbTab.nav-tabs li.active a:focus {
  border: none !important;
  color: #2563eb !important;
  border-bottom: 2px solid #2563eb !important;
  background: transparent !important;
}

/* Modern tables styling */
.table-responsive {
  border: none !important;
  overflow-x: auto !important;
  width: 100% !important;
  display: block !important;
}

.table.table-bordered {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

.table.table-bordered th {
  background-color: #f8fafc !important;
  border: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 12px 16px !important;
  text-align: left !important;
}

.table.table-bordered td {
  border: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  color: #334155 !important;
  text-align: left !important;
}

.table.table-bordered td * {
  text-align: left !important;
}

.table.table-bordered tr:last-child td {
  border-bottom: none !important;
}

/* Custom row hover states */
.table.table-bordered tbody tr {
  transition: background-color 0.15s ease !important;
  cursor: pointer !important;
}

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

/* Status label badge styling */
.label {
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 4px 8px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline-block !important;
}

.label-success {
  background-color: #d1fae5 !important;
  color: #065f46 !important;
}

.label-warning {
  background-color: #fef3c7 !important;
  color: #92400e !important;
}

.label-info {
  background-color: #e0f2fe !important;
  color: #075985 !important;
}

.label-danger {
  background-color: #fee2e2 !important;
  color: #991b1b !important;
}

.label-default {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
}

/* ==========================================
   Minified Sidebar (All Designs Override)
   ========================================== */
#sidebar-left.minified {
  background: #0d1527 !important;
}

#sidebar-left.minified .sidebar-nav > ul > li > a .text {
  background: #0d1527 !important;
  border: 1px solid #1e293b !important;
  color: #94a3b8 !important;
}

#sidebar-left.minified .sidebar-nav > ul > li:hover > a .text {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

#sidebar-left.minified .sidebar-nav > ul > li:hover > ul {
  background: #070b14 !important;
  border: 1px solid #1e293b !important;
}

#sidebar-left.minified .sidebar-nav > ul > li.active > a .text {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

#sidebar-left.minified .sidebar-nav > ul > li:hover > ul > li > a {
  background: #070b14 !important;
  color: #94a3b8 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

#sidebar-left.minified .sidebar-nav > ul > li:hover > ul > li > a:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}

#sidebar-left.minified .sidebar-nav > ul > li:hover > ul > li.active > a {
  background: rgba(37, 99, 235, 0.15) !important;
  color: #60a5fa !important;
}

/* ==========================================
   Login Page Styling (Sleek Space Navy Theme)
   ========================================== */
.login-page .page-back {
  background: radial-gradient(
    circle at center,
    #1e293b 0%,
    #0f172a 100%
  ) !important;
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
}

.login-page .contents {
  background: #1e293b !important; /* Space navy */
  border: 1px solid #334155 !important;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(37, 99, 235, 0.12) !important;
  padding: 40px 30px !important;
  max-width: 440px !important;
  width: 100% !important;
  margin: 0 auto !important;
  backdrop-filter: blur(8px) !important;
}

.login-page .login-content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.login-page h3.text-primary {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 24px !important;
  text-transform: uppercase !important;
  text-align: center !important;
  border-bottom: 2px solid #3b82f6 !important;
  padding-bottom: 12px !important;
}

.login-page .form-control {
  background-color: #0f172a !important; /* Very dark input */
  border: 1px solid #334155 !important;
  color: #e2e8f0 !important;
  height: 44px !important;
  box-shadow: none !important;
  transition: all 0.2s ease-in-out !important;
}

.login-page .form-control:focus {
  border-color: #3b82f6 !important;
  background-color: #0c1322 !important;
}

.login-page .input-group-addon {
  background-color: #0f172a !important;
  border: 1px solid #334155 !important;
  border-right: none !important;
  color: #64748b !important;
  min-width: 44px !important;
}

.login-page label {
  color: #94a3b8 !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  cursor: pointer;
}

.login-page .btn-success {
  background: linear-gradient(
    135deg,
    #2563eb 0%,
    #1d4ed8 100%
  ) !important; /* Premium Blue Gradient */
  border: none !important;
  padding: 12px 24px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  box-shadow:
    0 4px 6px -1px rgba(37, 99, 235, 0.3),
    0 2px 4px -1px rgba(37, 99, 235, 0.15) !important;
  transition: all 0.2s ease-in-out !important;
  color: #ffffff !important;
}

.login-page .btn-success:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow:
    0 10px 15px -3px rgba(37, 99, 235, 0.4),
    0 4px 6px -2px rgba(37, 99, 235, 0.2) !important;
}

.login-page .login-form-links {
  background: rgba(15, 23, 42, 0.6) !important; /* Translucent box background */
  border: 1px solid #334155 !important;
  padding: 16px !important;
  margin-top: 24px !important;
  text-align: center !important;
  font-size: 13px !important;
  color: #94a3b8 !important;
}

.login-page .login-form-links h4 {
  margin: 0 0 6px 0 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.login-page .login-form-links a {
  color: #3b82f6 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.login-page .login-form-links a:hover {
  color: #60a5fa !important;
  text-decoration: underline !important;
}

/* Captcha Reload styling */
.login-page .reload-captcha {
  color: #94a3b8 !important;
}
.login-page .reload-captcha:hover {
  color: #ffffff !important;
}

/* Captcha Wrapper adjustments */
.login-page .div-captcha-left {
  padding-right: 5px !important;
}
.login-page .div-captcha-right {
  padding-left: 5px !important;
}

/* Alert dialog boxes overrides */
.login-page .alert {
  border: none !important;
  font-size: 13px !important;
  padding: 12px 16px !important;
  margin-bottom: 20px !important;
}

.login-page .alert-danger {
  background-color: #fee2e2 !important;
  color: #991b1b !important;
}

.login-page .alert-success {
  background-color: #d1fae5 !important;
  color: #065f46 !important;
}

.login-page .alert-warning {
  background-color: #fef3c7 !important;
  color: #92400e !important;
}

.login-page .alert .close {
  color: inherit !important;
  opacity: 0.8 !important;
}

/* Login Logo Text branding override */
.login-logo-text {
  font-family: "Raleway", sans-serif !important;
  font-weight: 800 !important;
  font-size: 28px !important;
  color: #ffffff !important;
  letter-spacing: 0.08em !important;
  margin: 0 0 24px 0 !important;
  text-transform: uppercase !important;
  text-align: center !important;
}

.login-logo-text span {
  color: #3b82f6 !important; /* Electric Blue Accent */
}

/* Fix minified content spacer background and z-indexing */
body.sidebar-minified #content.sidebar-minified,
#content.sidebar-minified {
  border-left: 70px solid #0d1527 !important; /* Creates the dark navy background track */
  margin-left: 0 !important;
}

/* ==========================================
   Comprehensive Sidebar Collapse Fix (Rock-Solid)
   ========================================== */
/* 1. Collapse the table cell so it stops pushing content */
body.sidebar-minified .lt td.sidebar-con {
    width: 0px !important;
    min-width: 0px !important;
    max-width: 0px !important;
    padding: 0 !important;
    border: none !important;
}

/* 2. Make the sidebar exactly 70px, pull it out of the 0px cell to sit on top of the content border */
body.sidebar-minified #sidebar-left,
body.sidebar-minified #sidebar-left.sidebar-fixed {
    width: 70px !important;
    margin-right: -70px !important;
    overflow: visible !important;
    padding: 15px 0 !important;
    background: transparent !important;
    z-index: 9999 !important;
}

/* 3. Normalize list items so they span the full 70px */
body.sidebar-minified .nav.main-menu > li {
    margin: 4px 0 !important;
    padding: 0 !important;
}

/* 4. Center icons perfectly */
body.sidebar-minified .nav.main-menu > li > a {
    padding: 12px 0 !important;
    justify-content: center !important;
    width: 70px !important;
    text-align: center !important;
    margin: 0 !important;
}

body.sidebar-minified .nav.main-menu > li > a > i {
    margin: 0 !important;
    font-size: 20px !important;
}

/* 5. Hide text */
body.sidebar-minified .nav.main-menu > li > a .text,
body.sidebar-minified .nav.main-menu > li > a .chevron {
    display: none !important;
}

/* 6. Hover submenus */
body.sidebar-minified .nav.main-menu > li:hover > a .text {
    display: block !important;
    position: absolute !important;
    left: 70px !important;
    top: 0 !important;
    width: 200px !important;
    background: #0d1527 !important;
    padding: 12px 15px !important;
    border: 1px solid #1e293b !important;
    z-index: 1000 !important;
}
body.sidebar-minified .nav.main-menu > li:hover > ul {
    display: block !important;
    position: absolute !important;
    left: 70px !important;
    top: 45px !important;
    width: 200px !important;
    background: #070b14 !important;
    z-index: 1000 !important;
    margin: 0 !important;
}

/* 7. Toggle button */
body.sidebar-minified a#main-menu-act {
    width: 70px !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 10px 0 !important;
}
body.sidebar-minified a#main-menu-act i {
    margin: 0 auto !important;
    display: block !important;
}
