:root {
  --w-10: 10%;
  --w-20: 20%;
  --w-30: 30%;
  --w-40: 40%;
  --w-50: 50%;
  --w-60: 60%;
  --w-70: 70%;
  --w-80: 80%;
  --w-90: 90%;
  --w-100: 100%;
  --h-10: 10%;
  --h-20: 20%;
  --h-30: 30%;
  --h-40: 40%;
  --h-50: 50%;
  --h-60: 60%;
  --h-70: 70%;
  --h-80: 80%;
  --h-90: 90%;
  --h-100: 100%;
  /*primary colours*/
  --primary: #0d6efd;
  --primary-dark: #0b5ed7;
  --primary-darker: #0948a8;
  --primary-light: #3d89ff;
  --primary-lighter: #cfe2ff;
  /*secondary colours*/
  --secondary: #6c757d;
  --secondary-dark: #565e64;
  --secondary-light: #ced4da;
  /*functional colours*/
  --success: #198754;
  --success-dark: #146c43;
  --success-light: #d1e7dd;

  --warning: #ffc107;
  --warning-dark: #cc9a06;
  --warning-light: #fff3cd;

  --danger: #dc3545;
  --danger-dark: #b02a37;
  --danger-light: #f8d7da;

  --info: #0dcaf0;
  --info-dark: #0aa7c2;
  --info-light: #cff4fc;

  /*natural colurs*/
  --white: #ffffff;
  --black: #000000;

  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  --text-dark: #212529;
  --text-light: #f8f9fa;

  --border-color: #dee2e6;

  /*primary colour shades*/
  --primary-50: #e7f0ff;
  --primary-100: #cfe2ff;
  --primary-200: #9ec5fe;
  --primary-300: #6ea8fe;
  --primary-400: #3d8bfd;
  --primary-500: #0d6efd;
  /* main */
  --primary-600: #0b5ed7;
  --primary-700: #0a58ca;
  --primary-800: #0948a8;
  --primary-900: #052c65;

  /*gradient system*/
  --gradient-primary: linear-gradient(135deg, #0d6efd, #0948a8);
  --gradient-soft: linear-gradient(135deg, #e7f0ff, #cfe2ff);
  --gradient-dark: linear-gradient(135deg, #052c65, #0b5ed7);

  /*shadow colours*/
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);

  /* blue shadow system (based on primary color) */
  --shadow-blue-xs: 0 1px 2px rgba(13, 110, 253, 0.15);
  --shadow-blue-sm: 0 2px 4px rgba(13, 110, 253, 0.2);
  --shadow-blue-md: 0 4px 10px rgba(13, 110, 253, 0.25);
  --shadow-blue-lg: 0 8px 20px rgba(13, 110, 253, 0.3);
  --shadow-blue-xl: 0 12px 30px rgba(13, 110, 253, 0.35);
  --shadow-blue-soft: 0 4px 12px rgba(13, 110, 253, 0.18);
  --shadow-blue-glow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}
body {
  background-color: var(--primary-50) !important;
}
@media (min-width: 576px) {
  .w-sm-10 {
    width: var(--w-10) !important;
  }

  .w-sm-20 {
    width: var(--w-20) !important;
  }

  .w-sm-30 {
    width: var(--w-30) !important;
  }

  .w-sm-40 {
    width: var(--w-40) !important;
  }

  .w-sm-50 {
    width: var(--w-50) !important;
  }

  .w-sm-60 {
    width: var(--w-60) !important;
  }

  .w-sm-70 {
    width: var(--w-70) !important;
  }

  .w-sm-80 {
    width: var(--w-80) !important;
  }

  .w-sm-90 {
    width: var(--w-90) !important;
  }

  .w-sm-100 {
    width: var(--w-100) !important;
  }
  .h-sm-10 {
    height: var(--h-10) !important;
  }

  .h-sm-20 {
    height: var(--h-20) !important;
  }

  .h-sm-30 {
    height: var(--h-30) !important;
  }

  .h-sm-40 {
    height: var(--h-40) !important;
  }

  .h-sm-50 {
    height: var(--h-50) !important;
  }

  .h-sm-60 {
    height: var(--h-60) !important;
  }

  .h-sm-70 {
    height: var(--h-70) !important;
  }

  .h-sm-80 {
    height: var(--h-80) !important;
  }

  .h-sm-90 {
    height: var(--h-90) !important;
  }

  .h-sm-100 {
    height: var(--h-100) !important;
  }
}
@media (min-width: 768px) {
  .w-md-10 {
    width: var(--w-10) !important;
  }

  .w-md-20 {
    width: var(--w-20) !important;
  }

  .w-md-30 {
    width: var(--w-30) !important;
  }

  .w-md-40 {
    width: var(--w-40) !important;
  }

  .w-md-50 {
    width: var(--w-50) !important;
  }

  .w-md-60 {
    width: var(--w-60) !important;
  }

  .w-md-70 {
    width: var(--w-70) !important;
  }

  .w-md-80 {
    width: var(--w-80) !important;
  }

  .w-md-90 {
    width: var(--w-90) !important;
  }

  .w-md-100 {
    width: var(--w-100) !important;
  }
  .h-md-10 {
    height: var(--h-10) !important;
  }

  .h-md-20 {
    height: var(--h-20) !important;
  }

  .h-md-30 {
    height: var(--h-30) !important;
  }

  .h-md-40 {
    height: var(--h-40) !important;
  }

  .h-md-50 {
    height: var(--h-50) !important;
  }

  .h-md-60 {
    height: var(--h-60) !important;
  }

  .h-md-70 {
    height: var(--h-70) !important;
  }

  .h-md-80 {
    height: var(--h-80) !important;
  }

  .h-md-90 {
    height: var(--h-90) !important;
  }

  .h-md-100 {
    height: var(--h-100) !important;
  }
}
@media (min-width: 992px) {
  .w-lg-10 {
    width: var(--w-10) !important;
  }

  .w-lg-20 {
    width: var(--w-20) !important;
  }

  .w-lg-30 {
    width: var(--w-30) !important;
  }

  .w-lg-40 {
    width: var(--w-40) !important;
  }

  .w-lg-50 {
    width: var(--w-50) !important;
  }

  .w-lg-60 {
    width: var(--w-60) !important;
  }

  .w-lg-70 {
    width: var(--w-70) !important;
  }

  .w-lg-80 {
    width: var(--w-80) !important;
  }

  .w-lg-90 {
    width: var(--w-90) !important;
  }

  .w-lg-100 {
    width: var(--w-100) !important;
  }
  .h-lg-10 {
    height: var(--h-10) !important;
  }

  .h-lg-20 {
    height: var(--h-20) !important;
  }

  .h-lg-30 {
    height: var(--h-30) !important;
  }

  .h-lg-40 {
    height: var(--h-40) !important;
  }

  .h-lg-50 {
    height: var(--h-50) !important;
  }

  .h-lg-60 {
    height: var(--h-60) !important;
  }

  .h-lg-70 {
    height: var(--h-70) !important;
  }

  .h-lg-80 {
    height: var(--h-80) !important;
  }

  .h-lg-90 {
    height: var(--h-90) !important;
  }

  .h-lg-100 {
    height: var(--h-100) !important;
  }
}
@media (min-width: 1400px) {
  .w-xl-10 {
    width: var(--w-10) !important;
  }

  .w-xl-20 {
    width: var(--w-20) !important;
  }

  .w-xl-30 {
    width: var(--w-30) !important;
  }

  .w-xl-40 {
    width: var(--w-40) !important;
  }

  .w-xl-50 {
    width: var(--w-50) !important;
  }

  .w-xl-60 {
    width: var(--w-60) !important;
  }

  .w-xl-70 {
    width: var(--w-70) !important;
  }

  .w-xl-80 {
    width: var(--w-80) !important;
  }

  .w-xl-90 {
    width: var(--w-90) !important;
  }

  .w-xl-100 {
    width: var(--w-100) !important;
  }
  .h-xl-10 {
    height: var(--h-10) !important;
  }

  .h-xl-20 {
    height: var(--h-20) !important;
  }

  .h-xl-30 {
    height: var(--h-30) !important;
  }

  .h-xl-40 {
    height: var(--h-40) !important;
  }

  .h-xl-50 {
    height: var(--h-50) !important;
  }

  .h-xl-60 {
    height: var(--h-60) !important;
  }

  .h-xl-70 {
    height: var(--h-70) !important;
  }

  .h-xl-80 {
    height: var(--h-80) !important;
  }

  .h-xl-90 {
    height: var(--h-90) !important;
  }

  .h-xl-100 {
    height: var(--h-100) !important;
  }
}
.center-card-container {
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
}

@media (max-width: 767px) {
  .center-card-container {
    justify-content: flex-start;
    align-items: flex-start;
  }
}

.form-con .title {
  text-align: center;
}

.loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  margin-left: 6px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
} /* Toast Container */
/* Custom Toast Container */
.custom-toast-container {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  max-width: 400px !important;
  pointer-events: auto !important;
}

/* Custom Toast */
.custom-toast {
  background: var(--white) !important;
  padding: 16px 20px !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 300px !important;
  animation: slideIn 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
  opacity: 1 !important;
}

.custom-toast.removing {
  animation: slideOut 0.3s ease forwards !important;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

/* Toast Icon */
.custom-toast .toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: bold;
  font-size: 16px;
}

.custom-toast.success .toast-icon {
  background: var(--success);
  color: var(--white);
}

.custom-toast.error .toast-icon {
  background: var(--danger);
  color: var(--white);
}

.custom-toast.info .toast-icon {
  background: var(--info);
  color: white;
}

.custom-toast.warning .toast-icon {
  background: var(--warning);
  color: var(--white);
}

/* Toast Content */
.custom-toast .toast-content {
  flex: 1;
}

.custom-toast .toast-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
  color: #1f2937;
}

.custom-toast .toast-message {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

/* Close Button */
.custom-toast .toast-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 20px;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.custom-toast .toast-close:hover {
  background: #f3f4f6;
  color: #4b5563;
}

/* Progress Bar */
.custom-toast .toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.3;
  animation: progress linear;
}

.custom-toast.success .toast-progress {
  color: var(--success);
}

.custom-toast.error .toast-progress {
  color: var(--danger);
}

.custom-toast.info .toast-progress {
  color: var(--info);
}

.custom-toast.warning .toast-progress {
  color: var(--warning);
}

@keyframes progress {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

@media (max-width: 640px) {
  .custom-toast-container {
    left: 20px !important;
    right: 20px !important;
    max-width: none !important;
  }

  .custom-toast {
    min-width: auto !important;
  }
}

/* 
   Globle Reset & Base Style*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: #f8fafc;
  color: #1e293b;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================
   SIDEBAR STYLES
   ============================================ */

.sidebar {
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

/* Desktop Collapsed State */
.sidebar.collapsed {
  width: 80px;
}

.sidebar.collapsed .logo {
  opacity: 0;
  visibility: hidden;
  height: 0;
  padding: 0;
  border: none;
  overflow: hidden;
  transition: all 0.3s ease;
}

.sidebar.collapsed .toggle-btn {
  /* Keep toggle button visible when collapsed - centered in collapsed sidebar */
  opacity: 1;
  visibility: visible;
  position: fixed;
  left: 20px;
  top: 20px;
  right: auto;
  transform: none;
  background: var(--primary);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
  z-index: 1002;
}

.sidebar.collapsed ul {
  margin-top: 80px;
}

.sidebar.collapsed ul li a {
  justify-content: center;
  padding: 16px 0;
}

.sidebar.collapsed ul li a .text {
  display: none;
}

.sidebar.collapsed ul li a .icon {
  font-size: 22px;
  margin-right: 0;
}

.sidebar.collapsed ul li a.active {
  border-left: none;
  background: rgba(59, 130, 246, 0.2);
}

.sidebar.collapsed .menu-heading {
  display: none;
}

/* Mobile Hidden State */
@media (max-width: 768px) {
  .sidebar {
    left: -280px;
    width: 280px;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar.collapsed {
    width: 280px;
    left: -280px;
  }

  .sidebar.collapsed.open {
    left: 0;
    width: 280px;
  }

  .sidebar.collapsed .logo {
    opacity: 1;
    visibility: visible;
    height: auto;
    padding: 28px 60px 28px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .sidebar.collapsed .toggle-btn {
    position: absolute;
    right: 15px;
    top: 28px;
    left: auto;
    transform: none;
  }

  .sidebar.collapsed ul {
    margin-top: 0;
  }

  .sidebar.collapsed ul li a {
    justify-content: flex-start;
    padding: 16px 24px;
  }

  .sidebar.collapsed ul li a .text {
    display: inline;
  }

  .sidebar.collapsed ul li a .icon {
    margin-right: 16px;
  }

  .sidebar.collapsed ul li a.active {
    border-left: 4px solid var(--primary);
  }
}

/* Logo Section */
.logo {
  text-align: start;
  font-size: 24px;
  font-weight: 700;
  padding: 28px 20px;
  color: #ffffff;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

/* Desktop Toggle Button */
.toggle-btn {
  position: absolute;
  right: 15px;
  top: 28px;
  width: 40px;
  height: 40px;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  font-size: 18px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background: var(--primary);
  transform: scale(1.05);
}

.toggle-btn i {
  pointer-events: none;
  transition: transform 0.3s ease;
}

/* Hide desktop toggle button on mobile */
@media (max-width: 768px) {
  .toggle-btn {
    display: none !important;
  }
}

/* Mobile Close Button - Shows only on mobile */
.mobile-close-btn {
  display: none;
  position: absolute;
  right: 15px;
  top: 28px;
  width: 40px;
  height: 40px;
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--danger);
  font-size: 20px;
  z-index: 10;
  transition: all 0.3s ease;
}

.mobile-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--danger);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .mobile-close-btn {
    display: flex;
  }

  .logo {
    padding-right: 60px;
  }
}

/* Navigation List */
.sidebar ul {
  list-style: none;
  padding: 20px 0;
  margin: 0;
  transition: margin 0.3s ease;
}

.sidebar ul li {
  margin: 0;
}

.sidebar ul li a {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.sidebar ul li a:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--white);
}

.sidebar ul li a.active {
  background: linear-gradient(
    90deg,
    rgba(59, 130, 246, 0.2) 0%,
    transparent 100%
  );
  color: #ffffff;
  border-left: 4px solid var(--primary);
}

.sidebar ul li a .icon {
  font-size: 20px;
  min-width: 24px;
  margin-right: 16px;
  transition: all 0.3s ease;
}

.sidebar ul li a .text {
  white-space: nowrap;
  transition: all 0.3s ease;
}

/* Mobile Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .sidebar-overlay.active {
    display: block;
    opacity: 1;
  }
}

/* Main Content Adjustment */
.main-content {
  margin-left: 280px;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px;
  min-height: 100vh;
  background: #f8fafc;
}

.sidebar.collapsed ~ .main-content {
  margin-left: 80px;
}

@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    padding: 80px 20px 20px 20px;
  }

  .sidebar.collapsed ~ .main-content {
    margin-left: 0;
  }
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  width: 45px;
  height: 45px;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: var(--primary);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Tooltip for collapsed sidebar */
.sidebar.collapsed ul li {
  position: relative;
}

.sidebar.collapsed ul li a::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 70px;
  background: #1e293b;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 1002;
}

.sidebar.collapsed ul li a:hover::after {
  opacity: 1;
}

/*Header */
.header {
  height: 85px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: fixed;
  top: 0;
  left: 280px;
  right: 0;
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar.collapsed ~ .header {
  left: 80px;
}

@media (max-width: 768px) {
  .header {
    left: 0 !important;
    padding: 0 20px;
  }
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: #1e293b;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-toggle:hover {
  background: #334155;
  transform: scale(1.05);
}

.mobile-toggle:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex !important;
  }
}

/* Header Title / Breadcrumb */
.header h4,
.header .breadcrumb-title {
  font-size: 22px;
  color: #1e293b;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
}

/* Hide breadcrumb on mobile */
@media (max-width: 768px) {
  .header h4,
  .header .breadcrumb-title {
    display: none;
  }
}

.profile-dropdown {
  position: relative;
}

.profile-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;

  /* New matching gradient */
  background: linear-gradient(135deg, #f0f4f8 0%, #dce4ec 100%);

  border-radius: 25px;
  cursor: pointer;
  color: #1e293b;
  font-weight: 500;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff50;
}

.profile-name {
  font-weight: 600;
  font-size: 14px;
}

.profile-toggle .arrow i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

/* Rotate arrow when active */
.profile-dropdown.active .arrow i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 45px;
  right: 0;
  width: 200px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 0;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 999;
}

.profile-dropdown.active .dropdown-menu {
  display: block;
}

/* Each menu item */
.dropdown-menu .item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  transition: 0.2s;
}

.dropdown-menu .item:hover {
  background: #f4f6f9;
}

/* Divider */
.dropdown-menu .divider {
  height: 1px;
  background: #ddd;
  margin: 8px 0;
}

/* Logout special styling */
.dropdown-menu .logout {
  color: var(--danger);
  font-weight: 600;
}

.dropdown-menu .logout .icon {
  color: var(--danger) d9534f;
}

/* Icon colors */
.icon {
  font-size: 16px;
}

.icon.blue {
  color: var(--primary);
}
.icon.yellow {
  color: var(--warning);
}
.icon.teal {
  color: var(--success);
}
.icon.red {
  color: var(--danger);
}
/* Main Content Area*/
.main-wrapper {
  margin-left: 280px;
  margin-top: 70px;
  padding: 30px;
  min-height: calc(100vh - 70px - 60px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed ~ .main-wrapper {
  margin-left: 80px;
}

@media (max-width: 768px) {
  .main-wrapper {
    margin-left: 0 !important;
    padding: 20px;
  }
}

/* Footer */
.footer {
  background: var(--white);
  border-top: 1px solid #e2e8f0;
  padding: 18px 30px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
  position: fixed;
  bottom: 0;
  left: 280px;
  right: 0;
  z-index: 998;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar.collapsed ~ .footer {
  left: 80px;
}

@media (max-width: 768px) {
  .footer {
    left: 0 !important;
    padding: 15px 20px;
    font-size: 13px;
  }
}

.footer p {
  margin: 0;
  font-weight: 500;
}

/* Mobile Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* Globle Page Header Styles */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border: 2px solid whitesmoke; /* light border */
  padding: 16px 20px; /* space inside container */
  border-radius: 8px; /* smooth corner */
  background: var(--white); /* clean white background */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-title {
  color: #1e293b;
  font-size: 1.5rem;
  font-weight: 600;
}

.btn-add {
  background: var(--gradient-primary); /* gradient background */
  color: var(--white);
  padding: 10px 20px;
  border: 2px solid #3b82f6; /* border effect */
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* subtle shadow */
}

.btn-add:hover {
  background: var(--gradient-dark); /* darker on hover */
  border-color: var(--primary); /* change border color on hover */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* slightly bigger shadow */
  transform: translateY(-2px); /* small lift effect */
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.dashboard-graphs {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.graph-card {
  flex: 1 1 48%;
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.graph-card h4 {
  margin-bottom: 16px;
  font-size: 1.1rem;
  color: #1e293b;
}

/* Card design */
.card {
  position: relative;
  background: #fff;
  padding: 24px 20px 20px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 24px;
  color: #fff;
  transition: transform 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.1);
}

.card h3 {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card .value {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.card .badge {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* Icon background colors */
.bg-blue {
  background: #0d6efd;
}
.bg-green {
  background: #10b981;
}
.bg-orange {
  background: #f97316;
}
.bg-purple {
  background: #8b5cf6;
}

/* Badge colors */
.badge.success {
  background: #dcfce7;
  color: #16a34a;
}
.badge.info {
  background: #dbeafe;
  color: #2563eb;
}
.badge.warning {
  background: #fef3c7;
  color: #f59e0b;
}
.badge.danger {
  background: #fee2e2;
  color: #dc2626;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .dashboard-cards {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .dashboard-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card {
    padding: 20px 16px;
  }
  .card-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  .card .value {
    font-size: 24px;
  }
}

.dashboard-heading {
  font-size: 2rem; /* Larger and bold */
  font-weight: 700;
  color: #0f172a; /* Darker shade for modern look */
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
  letter-spacing: 0.5px;
}

/* Gradient underline */
.dashboard-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px; /* space below text */
  width: 50%;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  border-radius: 2px;
}

/* Optional: subtle shadow for depth */
.dashboard-heading {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
/* ============================================
   MODERN RESPONSIVE TABLE STYLING
   ============================================ */

/* Modern Table Container */
.modern-table-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-bottom: 24px;
  overflow: hidden;
}

.modern-table-card h4 {
  color: #1a202c;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

/* Table Wrapper for Horizontal Scroll */
.table-responsive-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Modern Table Styling */
.modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  min-width: 100%;
}

/* Table Header */
.modern-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modern-table thead th {
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 16px 20px;
  text-align: left;
  border: none;
  white-space: nowrap;
}

.modern-table thead th:first-child {
  border-top-left-radius: 8px;
}

.modern-table thead th:last-child {
  border-top-right-radius: 8px;
}

/* Table Body */
.modern-table tbody tr {
  background: #ffffff;
  transition: all 0.3s ease;
  border-bottom: 1px solid #e2e8f0;
}

.modern-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.modern-table tbody tr:hover {
  background: #eef2ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.modern-table tbody td {
  padding: 16px 20px;
  color: #4a5568;
  vertical-align: middle;
}

.modern-table tbody tr:last-child {
  border-bottom: none;
}

/* Text Center */
.text-center {
  text-align: center !important;
}

/* Button Styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-outline-primary {
  background: transparent;
  color: #0d6efd;
  border: 2px solid #0d6efd;
}
.btn-outline-warning {
  background: transparent;
  color: #ffc107;

  border: 2px solid #ffc107;
}

.btn-outline-warning:hover,
.btn-outline-warning:focus {
  background: #ffc107;
  color: #000;

  border-color: #ffc107;
}
.btn-outline-success {
  background: transparent;
  color: #198754;
  border: 2px solid #198754;
}

.btn-outline-success:hover,
.btn-outline-success:focus {
  background: #198754;
  color: #fff;
  border-color: #198754;
}
.btn-outline-primary:hover {
  background: #0d6efd;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.btn-outline-danger {
  background: transparent;
  color: #dc3545;
  border: 2px solid #dc3545;
}

.btn-outline-danger:hover {
  background: #dc3545;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.me-1 {
  margin-right: 0.5rem;
}

/* Scrollbar Styling */
.table-responsive-wrapper::-webkit-scrollbar {
  height: 8px;
}

.table-responsive-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.table-responsive-wrapper::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
}

.table-responsive-wrapper::-webkit-scrollbar-thumb:hover {
  background: #764ba2;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE OPTIMIZED
   ============================================ */

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
  .modern-table-card {
    padding: 20px;
  }

  .modern-table thead th {
    padding: 14px 16px;
    font-size: 0.8rem;
  }

  .modern-table tbody td {
    padding: 14px 16px;
    font-size: 0.88rem;
  }
}

/* Mobile Devices - Card Layout (Below 768px) */
@media (max-width: 767px) {
  .modern-table-card {
    padding: 16px;
    border-radius: 8px;
  }

  .table-responsive-wrapper {
    overflow-x: visible;
  }

  /* Transform table into cards */
  .modern-table {
    border: 0;
    min-width: 100%;
  }

  /* Hide table header on mobile */
  .modern-table thead {
    display: none;
  }

  .modern-table tbody {
    display: block;
  }

  .modern-table tbody tr {
    display: block;
    margin-bottom: 16px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transform: none;
  }

  .modern-table tbody tr:nth-child(even) {
    background: #ffffff;
  }

  .modern-table tbody tr:hover {
    background: #f8fafc;
    transform: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  }

  .modern-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border: none;
    text-align: right;
    position: relative;
  }

  .modern-table tbody td:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
  }

  /* Add labels before each cell */
  .modern-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #1a202c;
    text-align: left;
    flex: 0 0 40%;
    padding-right: 10px;
  }

  /* Style the data part */
  .modern-table tbody td > * {
    flex: 1;
    text-align: right;
  }

  /* First cell (ID) - Simple left alignment NO "ID:" prefix */
  .modern-table tbody td:first-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 14px 16px;
    margin: -16px -16px 12px -16px;
    border-radius: 12px 12px 0 0;
    display: block;
    text-align: left;
    border-bottom: none !important;
  }

  /* NO "ID:" prefix - just show the number */
  .modern-table tbody td:first-child::before {
    display: none;
  }

  /* Action buttons container - NO BORDER, buttons together */
  .modern-table tbody td:last-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-top: 4px;
    border-bottom: none !important;
    flex-wrap: nowrap;
  }

  .modern-table tbody td:last-child::before {
    content: attr(data-label);
    font-weight: 600;
    color: #1a202c;
    text-align: left;
    flex: none;
    padding-right: 0;
    margin-right: auto;
  }

  /* Buttons grouped together on the right */
  .modern-table tbody td:last-child .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    margin: 0;
  }

  /* First button (Edit) - add small gap to second button */
  .modern-table tbody td:last-child .btn:first-of-type {
    margin-right: 6px;
  }

  .modern-table tbody td:last-child .btn i {
    margin: 0;
    font-size: 1rem;
  }
}
.select2-container--default .select2-selection--multiple.is-invalid {
  border-color: #dc3545;
}
/* Extra Small Devices (Below 480px) */
@media (max-width: 480px) {
  .modern-table-card {
    padding: 12px;
  }

  .modern-table tbody tr {
    padding: 12px;
    margin-bottom: 12px;
  }

  .modern-table tbody td {
    padding: 10px 0;
    font-size: 0.9rem;
  }

  .modern-table tbody td::before {
    font-size: 0.85rem;
  }

  .modern-table tbody td:first-child {
    margin: -12px -12px 10px -12px;
    padding: 12px;
    font-size: 1.1rem;
  }

  .modern-table tbody td:last-child .btn {
    width: 38px;
    height: 38px;
  }

  .modern-table tbody td:last-child .btn:first-of-type {
    margin-right: 5px;
  }
}

/* Print Styles */
@media print {
  .modern-table-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .modern-table tbody tr:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
  }

  .btn {
    display: none;
  }
}

.policy-card-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Card */
.policy-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.policy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* Title */
.policy-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #dc3545;
  margin-bottom: 10px;
}

/* Description */
.policy-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  max-height: 120px;
  overflow: hidden;
}

/* Actions */
.policy-card-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 15px;
}

/* Mobile */
@media (max-width: 768px) {
  .policy-card-wrapper {
    grid-template-columns: 1fr;
  }
}
