:root {
    /* Core Branding Colors */
    --color-primary: #016cd2;
    /* main blue (from bg gradient) */
    --color-accent: #7b1eb9;
    /* violet (from bg gradient) */
    --color-action: #0d6efd;
    /* secondary blue (button hover) */
    --color-warning: #ffb72c;
    /* orange (used for Share button) */

    /* Standard Colors */
    --color-black: #0f172a;
    /* slate-900 for text */
    --color-white: #ffffff;

    /* Gradient backgrounds */
    --color-gradient-main: linear-gradient(90deg, #016cd2, #7b1eb9 94.24%);
    --color-gradient-card: linear-gradient(135deg, #016cd2 0%, #7b1eb9 100%);

    /* Greyscale - Contemporary Slate Palette */
    --color-grey-light: #f8fafc;
    /* slate-50 - very light background */
    --color-grey-medium: #e2e8f0;
    /* slate-200 - borders and dividers */
    --color-grey-dark: #475569;
    /* slate-600 - secondary text */

    /* Legacy Color Palette for compatibility */
    --color-primary-50: #eff6ff;
    --color-primary-100: #dbeafe;
    --color-primary-200: #bfdbfe;
    --color-primary-300: #93c5fd;
    --color-primary-400: #60a5fa;
    --color-primary-500: var(--color-primary);
    --color-primary-600: var(--color-primary);
    --color-primary-700: var(--color-accent);
    --color-primary-800: var(--color-accent);
    --color-primary-900: var(--color-accent);

    --background-primary-gradient: linear-gradient(90deg, rgba(0, 108, 209, 0.05) 0%, rgba(0, 108, 209, 0.00) 100%), #FFF;


    /* Gray Scale */
    --color-gray-50: var(--color-grey-light);
    --color-gray-100: #f1f5f9;
    /* slate-100 */
    --color-gray-200: var(--color-grey-medium);
    --color-gray-300: #cbd5e1;
    /* slate-300 */
    --color-gray-400: #94a3b8;
    /* slate-400 */
    --color-gray-500: #64748b;
    /* slate-500 */
    --color-gray-600: var(--color-grey-dark);
    --color-gray-700: #334155;
    /* slate-700 */
    --color-gray-800: #1e293b;
    /* slate-800 */
    --color-gray-900: var(--color-black);

    --color-success: #10b981;
    --color-warning: var(--color-warning);
    --color-danger: #ef4444;
    --color-info: var(--color-action);

    /* Semantic Colors - */
    --color-background: #ffffff;
    /* pure white */
    --color-surface: #f8fafc;
    /* slate-50 - subtle background */
    --color-border: #e2e8f0;
    /* slate-200 - borders */
    --color-text-primary: #0f172a;
    /* slate-900 - primary text */
    --color-text-secondary: #475569;
    /* slate-600 - secondary text */
    --color-text-muted: #94a3b8;
    /* slate-400 - muted text */

    /* Typography */
    --font-family-base: 'Albert Sans', system-ui, -apple-system, sans-serif;
    --font-family-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;

    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-base: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

* {
  font-family: Nunito;
}

.active-text {
  color: #16A249;
}


.btn-danger {
    border-radius: 6px;
    background: #EF4444;
    padding: 10px 16px;
    color: #F8FAFC;
    text-align: center;
    font-family: Nunito;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

.text-danger {
  color: #EF4444;
}

.btn-outline-primary {
    border-radius: 10px;
    border: 1px solid var(--color-primary-600);
    background: linear-gradient(90deg, #016CD2 0%, #7B1EB9 94.24%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: Nunito;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    padding: 10px 15px;
}

.btn-outline-primary:hover:not(:disabled) {
    color: white;
    background-color: var(--color-primary-600);
}


.btn-primary {
    padding: 10px 15px;
    border-radius: 10px;
    background: linear-gradient(90deg, #016CD2 0%, #7B1EB9 94.24%);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    color: #FFF;
    text-align: center;
    font-family: Nunito;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    border: unset;
}


.bg-success {
    background: #16A249 !important;
}

.bg-primary-gradient {
    background: var(--background-primary-gradient);
}

.bg-primary {
  background:  linear-gradient(90deg, #016CD2 0%, #7B1EB9 100%); 
}

.main-content-container,
.main-container {
    min-height: 100vh;
}

.g-12 {
    gap: 12px;
}

.fs-32 {
  font-size: 32px;

}
.rounded-12 {
  border-radius: 12px !important;
}

.custom-rounded-radius {
  border-radius: 9999px !important;

}

.w-max-content {
  width: max-content;
}

.remove-default-hover-btn-danger:hover {
  background-color: transparent !important;
}
.remove-default-hover-btn-danger:hover {
  color: #dc3545 !important;
}
.text-purple-gradient {
    background: linear-gradient(90deg, #016CD2 0%, #7B1EB9 94.24%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.secondary-btn-one {
  border-radius: 10px;
  border: 1px solid #EAEDF0;
  background: #FAFAFA;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 8px 13px;
  color: #242B32;
  text-align: center;
  font-family: Nunito;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* toast message */
.toast-notifications-container {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-tooltip);
    pointer-events: none;
    max-width: 420px;
    width: 100%;
  }

.toast-notification {
    position: relative;
    background: var(--color-background);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 4px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: var(--space-3);
    overflow: hidden;
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-height: 80px;
  }
  
  .toast-notification.show {
    transform: translateX(0);
    opacity: 1;
  }
  
  .toast-notification.hide {
    transform: translateX(100%);
    opacity: 0;
    margin-bottom: 0;
    max-height: 0;
    padding: 0;
  }
.toast-notifications-container {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-tooltip);
    pointer-events: none;
    max-width: 420px;
    width: 100%;
  }
.toast-notification-content {
    display: flex;
    align-items: flex-start;
    padding: var(--space-5);
    gap: var(--space-4);
    position: relative;
  }

  .toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-top: 2px;
  }

  .toast-message {
    flex: 1;
    min-width: 0;
  }

  .toast-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-1);
    line-height: var(--line-height-tight);
  }

  .toast-description {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: var(--line-height-normal);
    word-wrap: break-word;
  }


.toast-close-btn {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-size: 0.75rem;
    padding: 0;
    margin-top: 2px;
  }
  
  .toast-close-btn:hover {
    color: var(--color-text-primary);
    background-color: var(--color-gray-100);
    transform: scale(1.1);
  }
  
  .toast-close-btn:active {
    transform: scale(0.95);
  }

  .toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
  }
  
  .toast-progress-bar {
    height: 100%;
    background: currentColor;
    transform-origin: left;
    transform: scaleX(1);
    opacity: 0.6;
    animation: toast-progress 5s linear forwards;
  }
  
  @keyframes toast-progress {
    from {
      transform: scaleX(1);
    }
    to {
      transform: scaleX(0);
    }
  }
  
  /* Toast Type Variants */
  .toast-success {
    border-left: 4px solid var(--color-success);
  }
  
  .toast-success .toast-progress-bar {
    background: var(--color-success);
  }
  
  .toast-error,
  .toast-danger {
    border-left: 4px solid var(--color-danger);
  }
  
  .toast-error .toast-progress-bar,
  .toast-danger .toast-progress-bar {
    background: var(--color-danger);
  }
  
  .toast-warning {
    border-left: 4px solid var(--color-warning);
  }
  
  .toast-warning .toast-progress-bar {
    background: var(--color-warning);
  }
  
  .toast-info {
    border-left: 4px solid var(--color-info);
  }
  
  .toast-info .toast-progress-bar {
    background: var(--color-info);
  }
  
  /* Hover states */
  .toast-notification:hover .toast-progress-bar {
    animation-play-state: paused;
  }

  .toast-progress-bar {
    height: 100%;
    background: currentColor;
    transform-origin: left;
    transform: scaleX(1);
    opacity: 0.6;
    animation: toast-progress 5s linear forwards;
  }
  
  @keyframes toast-progress {
    from {
      transform: scaleX(1);
    }
    to {
      transform: scaleX(0);
    }
  }

  .invalid-feedback {
    display: block;
    width: 100%;
    margin-top: var(--space-1);
    font-size: var(--font-size-sm);
    color: var(--color-danger);
    font-family: Nunito;
  }
  
  /* Toast message end */



  .custom-switch .form-check-input {
    width: 44px;
    height: 24px;
    appearance: none; /* Important */
    -webkit-appearance: none;
    background: #E5E7EB;
    border: none;
    border-radius: 9999px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease;
  }


  .form-field-desc {
    color: #737373;
font-family: Nunito;
font-size: 12px;
font-style: normal;
font-weight: 400;
line-height: 16px; 
margin-top: 8px;
  }

  /* Dot */
  /* .custom-switch .form-check-input::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 5px;
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    background: #FFF;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 
                0 4px 6px -4px rgba(0, 0, 0, 0.10);
    transition: transform 0.3s ease-in-out;
  } */

  /* When checked: move dot */
  .custom-switch .form-check-input:checked::before {
    transform: translateX(20px);
  }

  /* Optional: change gradient when checked */
  .custom-switch .form-check-input:checked {
    background: linear-gradient(117deg, #6514C8 0%, #0059D6 100%);
  }

  /* Remove Bootstrap's focus ring */
  .custom-switch .form-check-input:focus {
    box-shadow: none;
  }



/* =============================================================================
   Pagination Components
   ============================================================================= */

/* Pagination Wrapper */
.table-pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: 16px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  flex-wrap: wrap;
}

.table-pagination-wrapper.single-page {
  justify-content: center;
}

/* Pagination Info */
.pagination-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.results-info {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

.results-info strong {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
}

.filtered-indicator {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  background: rgba(1, 108, 210, 0.1);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  margin-left: var(--space-2);
}

/* Pagination Navigation */
.pagination-nav {
  display: flex;
  align-items: center;
}

.table-pagination {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.table-pagination .page-item {
  display: flex;
}

.table-pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-background);
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.table-pagination .page-link:hover {
  border-color: var(--color-primary);
  /* background: var(--color-primary-50); */
  color: var(--color-primary);
  transform: translateY(-1px);
  /* box-shadow: var(--shadow-sm); */
}

.table-pagination .page-link:active {
  transform: translateY(0);
}

/* Navigation Buttons */
.table-pagination .page-nav {
  /* background: linear-gradient(145deg, #ffffff, #f8fafc); */
  border-color: var(--color-gray-300);
  color: var(--color-text-secondary);
}

.table-pagination .page-nav:hover {
  /* background: var(--color-primary-50); */
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
  /* box-shadow: var(--shadow-sm); */
}

/* Current Page */
.table-pagination .page-item.active .page-current {
  background: var(--color-gradient-main);
  border-color: var(--color-primary);
  color: white;
  font-weight: var(--font-weight-semibold);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.table-pagination .page-item.active .page-current::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  pointer-events: none;
}

/* Page Numbers */
.table-pagination .page-number {
  font-weight: var(--font-weight-semibold);
}

.table-pagination .page-number:hover {
  /* background: var(--color-primary-50); */
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
  /* box-shadow: var(--shadow-sm); */
}

/* Bootstrap-style pagination border radius */
.table-pagination .page-item:first-child .page-link {
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
  margin-left: 0;
}

.table-pagination .page-item:last-child .page-link {
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

/* Pagination Summary */
.pagination-summary {
  display: flex;
  align-items: center;
}

.page-indicator {
  color: #64748B;
font-family: Nunito;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 20px; /* 142.857% */
}


/* Pagination Animations */
.table-pagination .page-link {
font-family: Nunito;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 20px; /* 142.857% */
}

.table-pagination .page-link::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(1, 108, 210, 0.1);
  border-radius: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate(-50%, -50%);
  z-index: 0;
}

.table-pagination .page-link:hover::after {
  width: 100%;
  height: 100%;
}

.table-pagination .page-link > * {
  position: relative;
  z-index: 1;
}


@media (max-width: 768px) {
  .table-pagination-wrapper {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

}

