.py-2-5 {
  padding-top: 0.7rem !important;
  padding-left: 0.7rem;
  padding-bottom: 0.7rem !important;
}
.py-2-6 {
  padding-top: 0.9rem !important;
  padding-left: 0.7rem;
  padding-bottom: 0.8rem !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0 !important;
}

input[readonly] {
  border: 1px solid #ddd !important;
}

.custom-file-placeholder {
  border: 1px solid #ccc;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  background-color: #fff;
  cursor: pointer;
  color: #6c757d;
  font-size: 0.875rem;
  min-height: 38px;
  line-height: 1.5;
  display: flex;
  align-items: center;
}

input::placeholder,
textarea::placeholder,
select::placeholder {
  font-size: 12px;
  font-weight: 600;
  color: #6c757d;
  /* Make placeholder same weight as form controls */
}

/* Make select elements use same font size as input placeholders for consistency */
/* select.text-small {
  font-size: 14px !important;
  font-weight: 600 !important;
} */

:focus {
  box-shadow: none !important;
  outline: none !important;
}

/* 
  input[name="dealValue"] {
    padding: 0.875rem 60px !important;
  } */
.text-danger.d-block.fs-xs.mt-1.text-weight-normal-gordita {
  font-size: 12.5px;
}

.phoneFormInput .dropdown {
  position: relative !important;
  z-index: 10;
  height: auto !important;
  min-height: 44px;
  background: transparent;
  display: block;
  width: auto !important;
  min-width: 90px;
  top: auto !important;
  transform: none !important;
  border: none !important;
  flex-shrink: 0;
}

.phoneFormInput .dropdown button {
  background: #f8f9fa !important;
  border: 1px solid #ced4da !important;
  border-right: none !important;
  border-radius: 0.25rem 0 0 0.25rem !important;
  position: relative !important;
  width: auto !important;
  height: 100% !important;
  min-height: 48px !important;
  min-width: 90px !important;
  inset: auto !important;
  margin: 0 !important;
  padding: 0.5rem 0.75rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #495057 !important;
}

.phoneFormInput .dropdown button::after {
  display: none !important;
}

.phoneFormInput img {
  width: 24px !important;
  height: auto;
  object-fit: contain;
}

.dropdown-item img {
  width: 24px !important;
  height: auto;
  object-fit: contain;
}

.phoneFormInput input {
  padding: 0.5rem 1rem !important;
  padding-left: 1rem !important;
  min-height: 44px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 0 0.25rem 0.25rem 0 !important;
  margin-top: 0 !important;
  border-left: none !important;
  flex: 1;
}

/* Ensure phone input uses text-small styling consistently */
.phoneFormInput input {
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* Newsletter checkbox styling */
.subscribe-checkbox .form-check-label {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #222222 !important;
  font-family: "Manrope", sans-serif !important;
}

/* Ensure proper connection between dropdown and input */
/* .phoneFormInput .dropdown button:focus {
  z-index: 3;
  box-shadow: 0 0 0 0.2rem rgba(17, 97, 171, 0.25) !important;
} */

/* .phoneFormInput input:focus {
  z-index: 2;
  border-color: #1262ab !important;
  border-left: none !important;
  box-shadow: 0 0 0 0.2rem rgba(17, 97, 171, 0.25) !important;
} */

/* Mobile responsive adjustments */
@media (max-width: 576px) {
  .phoneFormInput .dropdown {
    min-width: 80px !important;
  }

  .phoneFormInput .dropdown button {
    min-width: 80px !important;
    padding: 0.5rem !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }

  .phoneFormInput input {
    padding: 0.5rem 0.75rem !important;
  }

  .phoneFormInput img {
    width: 20px !important;
  }

  /* Ensure dropdown menu is properly positioned on mobile */
  .phoneFormInput .dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
    min-width: 250px !important;
    left: 0 !important;
    margin-top: 0.25rem !important;
  }

  .phoneFormInput .dropdown-item {
    padding: 0.5rem 1rem !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }
}

/* table.css (Modern Smart Table Theme) */

/* IMPORTANT:
   Remove/disable any old rule like this (it breaks modern look):
   .table-hover tbody tr:hover { background-color: #000 !important; color: #fff !important; }
*/

:root {
  --primary: #1262ab;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --card: rgba(255, 255, 255, 0.78);
  --bg: #f7fafc;
}

.tableShell {
  width: 100%;
}

/* Card wrapper */
.tableCard {
  position: relative;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.08);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* Scroll container */
.tableScroll {
  overflow: auto;
  max-width: 100%;
}

/* Smooth scrollbar */
.tableScroll::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.tableScroll::-webkit-scrollbar-thumb {
  background: rgba(18, 98, 171, 0.18);
  border-radius: 999px;
}

.tableScroll::-webkit-scrollbar-track {
  background: rgba(2, 6, 23, 0.03);
}

/* Table base */
.tableModern {
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text);
}

/* Header */
.tableModern thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%) !important;
  border-bottom: 1px solid var(--line) !important;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.82);
  padding: 12px 14px;
  white-space: nowrap;
  vertical-align: middle;
}

/* Header inner */
.thInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.thLabel {
  display: inline-block;
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sortableTh {
  cursor: pointer;
  user-select: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.sortableTh:hover {
  background: rgba(18, 98, 171, 0.06) !important;
  color: var(--text);
}

/* Sort icon style (no hardcoded JSX colors) */
.thIcon svg {
  opacity: 0.55;
  transform: translateY(0.5px);
  transition: opacity 160ms ease, transform 160ms ease, color 160ms ease;
  color: rgba(15, 23, 42, 0.65);
}

.sortableTh:hover .thIcon svg {
  opacity: 0.9;
  color: var(--primary);
}

/* Body cells */
.tableModern tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 14px;
  color: rgba(15, 23, 42, 0.92);
  vertical-align: middle;
}

/* Cell clamp to keep lines clean */
.cellClamp {
  display: block;
  max-width: clamp(120px, 22vw, 280px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Zebra */
.tableModern tbody tr:nth-child(even) {
  background: rgba(2, 6, 23, 0.015);
}

/* Modern hover */
.tableModern.table-hover tbody tr {
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.tableModern.table-hover tbody tr:hover {
  background: rgba(18, 98, 171, 0.06) !important;
  transform: translateY(-1px);
  box-shadow:
    0 10px 28px rgba(2, 6, 23, 0.08),
    inset 0 0 0 1px rgba(18, 98, 171, 0.12);
}

/* Ensure old hover doesn't override */
.table-hover tbody tr:hover {
  background-color: inherit !important;
  color: inherit !important;
}

/* Actions column */
.actionsTh {
  width: 84px;
  text-align: center;
}

/* Dropdown toggle modern */
.btn-toggle {
  border-radius: 10px !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  background: rgba(255, 255, 255, 0.85) !important;
  transition: transform 120ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.btn-toggle:hover {
  background: rgba(18, 98, 171, 0.10) !important;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.12);
}

.btn-toggle:active {
  transform: scale(0.96);
}

/* Optional: hide action button until row hover (very modern) */
.tableModern tbody .btn-toggle {
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.tableModern tbody tr:hover .btn-toggle {
  opacity: 1;
  transform: translateY(0px);
}

/* Overlay */
.tableOverlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(3px);
  pointer-events: none;
}

.tableOverlayInner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.12);
}

.tableOverlayText {
  font-weight: 700;
  color: rgba(15, 23, 42, 0.7);
  font-size: 13px;
}

.tableOverlaySample {
  background: rgba(255, 255, 255, 0.35);
}

.sampleStamp {
  font-size: clamp(32px, 7vw, 86px);
  font-weight: 900;
  letter-spacing: 2px;
  color: rgba(15, 23, 42, 0.12);
  transform: rotate(-20deg);
  text-transform: uppercase;
}

/* Footer + pagination */
.tableFooter {
  display: flex;
  justify-content: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.paginationModern {
  gap: 8px;
  margin: 0;
  padding: 0;
}

.paginationModern .page-item .page-link {
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(15, 23, 42, 0.85);
  border-radius: 999px;
  padding: 8px 12px;
  min-width: 40px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.04);
  transition: transform 120ms ease, background-color 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease, color 160ms ease;
}

.paginationModern .page-item .page-link:hover {
  background: rgba(18, 98, 171, 0.08);
  border-color: rgba(18, 98, 171, 0.22);
  color: var(--primary);
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.10);
}

.paginationModern .page-item.active .page-link {
  background: linear-gradient(135deg, #1262ab 0%, #0b3963 100%);
  border-color: rgba(18, 98, 171, 0.55);
  color: #fff;
  box-shadow: 0 16px 38px rgba(18, 98, 171, 0.22);
}

.paginationModern .page-item.disabled .page-link {
  opacity: 0.55;
  background: rgba(2, 6, 23, 0.04);
  box-shadow: none;
}

/* No data row */
.tableModern td[data-empty="true"] {
  padding: 26px 14px !important;
  color: rgba(100, 116, 139, 0.95);
  letter-spacing: 0.3px;
}

/* Fade animation */
.table-fade {
  animation: tableFade 180ms ease-in-out;
}

@keyframes tableFade {
  from {
    opacity: 0.25;
    transform: translateY(2px);
  }

  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

/* Keep your existing helpers */
.text-main-color {
  color: #1161ab !important;
}

.text-primary {
  color: #1161ab !important;
}

.toggle-switch-wrapper button {
  transition: all 0.2s ease-in-out;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .tableModern thead th {
    font-size: 11.5px;
    padding: 10px 12px;
  }

  .tableModern tbody td {
    padding: 10px 12px;
    font-size: 13.5px;
  }

  .thLabel {
    max-width: 16ch;
  }
}

/* ✅ table.css (More modern + richer open animation)
   Paste at bottom. Also remove any old "hide kebab until hover" rules.
*/

/* Column */
.actionsTd,
.actionsTh {
  width: 84px;
  text-align: center;
  white-space: nowrap;
}

/* --- Kebab button: modern, always visible, micro-interactions --- */
.actionKebab {
  opacity: 1 !important;
  transform: none !important;

  width: 36px;
  height: 36px;
  border-radius: 12px !important;

  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: rgba(15, 23, 42, 0.72) !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.05);
  transition: transform 140ms ease, box-shadow 180ms ease,
    background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.actionKebab svg {
  transition: transform 160ms ease, color 160ms ease;
}

.actionKebab:hover {
  background: rgba(18, 98, 171, 0.10) !important;
  border-color: rgba(18, 98, 171, 0.28) !important;
  color: #1262ab !important;
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.14);
  transform: translateY(-1px);
}

.actionKebab:hover svg {
  transform: rotate(8deg) scale(1.03);
}

.actionKebab:active {
  transform: translateY(0px) scale(0.96);
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.10);
}

.actionKebab.is-open {
  background: rgba(18, 98, 171, 0.12) !important;
  border-color: rgba(18, 98, 171, 0.34) !important;
  color: #1262ab !important;
  box-shadow: 0 18px 40px rgba(18, 98, 171, 0.18);
}

/* --- Menu container: glass + deeper shadow + soft border --- */
.actionMenu {
  min-width: 220px;
  border-radius: 16px;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.88);
  /* border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow:
    0 30px 90px rgba(2, 6, 23, 0.22),
    0 10px 30px rgba(2, 6, 23, 0.12); */
  backdrop-filter: blur(14px);
}

/* Header inside menu (looks premium) */
.actionMenuHeader {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.75));
}

.actionMenuTitle {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.62);
}

/* List */
.actionMenuList {
  padding: 8px;
}

/* --- Super modern open animation (pop + slight spring feel) --- */
.actionMenuPop {
  transform-origin: top right;
  animation: menuPop 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes menuPop {
  0% {
    opacity: 0;
    transform: translateY(-14px) scale(0.92);
    filter: blur(2px);
  }

  60% {
    opacity: 1;
    transform: translateY(2px) scale(1.02);
    filter: blur(0px);
  }

  100% {
    opacity: 1;
    transform: translateY(0px) scale(1);
    filter: blur(0px);
  }
}

/* --- Action items: pill hover + sliding chevron --- */
.actionItem {
  width: 100%;
  border: 0;
  background: transparent;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 10px 10px;
  border-radius: 14px;

  font-size: 14px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.90);
  text-align: left;

  transition: background-color 160ms ease, transform 140ms ease,
    box-shadow 160ms ease, color 160ms ease;
}

/* left dot */
.actionItemDot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
  flex: 0 0 auto;
  transition: background-color 160ms ease, transform 160ms ease;
}

.actionItemLabel {
  flex: 1 1 auto;
}

/* right chevron */
.actionItemChevron {
  opacity: 0.35;
  font-size: 18px;
  line-height: 1;
  transform: translateX(-2px);
  transition: opacity 160ms ease, transform 160ms ease, color 160ms ease;
}

/* hover */
.actionItem:hover {
  background: rgba(18, 98, 171, 0.10);
  color: #1262ab;
  box-shadow: inset 0 0 0 1px rgba(18, 98, 171, 0.14);
  transform: translateX(2px);
}

.actionItem:hover .actionItemDot {
  background: rgba(18, 98, 171, 0.65);
  transform: scale(1.15);
}

.actionItem:hover .actionItemChevron {
  opacity: 0.9;
  transform: translateX(2px);
  color: rgba(18, 98, 171, 0.95);
}

.actionItem:active {
  transform: translateX(1px) scale(0.99);
}

/* Disabled */
.disabled-item {
  opacity: 0.55 !important;
  pointer-events: none;
  background: rgba(2, 6, 23, 0.04) !important;
  color: rgba(15, 23, 42, 0.55) !important;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .actionMenu {
    min-width: 200px;
  }

  .actionItem {
    padding: 12px 12px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .actionMenuPop {
    animation: none !important;
  }

  .actionKebab,
  .actionItem,
  .actionItemChevron,
  .actionItemDot,
  .actionKebab svg {
    transition: none !important;
  }
}




/* Export button modern style */
.exportBtn {
  transition: all 0.18s ease;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.06);
}

.exportBtn:hover:not(.export-disabled) {
  background: rgba(18, 98, 171, 0.10) !important;
  border-color: rgba(18, 98, 171, 0.28) !important;
  color: #1262ab !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.14);
}

.exportIcon {
  transition: transform 0.18s ease;
}

.exportBtn:hover:not(.export-disabled) .exportIcon {
  transform: translateY(-1px) scale(1.08);
}

/* Disabled state */
.export-disabled,
.exportBtn:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none;
  box-shadow: none !important;
  background: #f1f5f9 !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: #64748b !important;
}

/* Optional: tooltip style hint cursor */
.export-disabled:hover {
  transform: none !important;
}



/* =========================
   TABLE HEADER — MODERN
========================= */

.tableHead th {
  position: sticky;
  top: 0;
  z-index: 5;

  /* modern light header background */
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%) !important;

  /* border */
  border-bottom: 1px solid #e2e8f0 !important;

  /* spacing */
  padding: 14px 14px !important;

  /* TEXT STYLE */
  font-weight: 700 !important;
  /* bold */
  font-size: 13px !important;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: #334155 !important;

  white-space: nowrap;
}

/* first & last header rounding */
.tableHead th:first-child {
  padding-left: 18px !important;
}

.tableHead th:last-child {
  padding-right: 18px !important;
}

/* nice separator line under header */
.tableModern thead tr {
  box-shadow: 0 2px 0 rgba(15, 23, 42, 0.04);
}






/* .sticky-header {
    position: sticky;
    top: 75px;
    z-index: 1020;
    /* above content */
/* } */
.sticky-bottom-bar {
  position: sticky;
  bottom: 0px;
  /* ⬆ lifts it 10px above bottom */
  z-index: 1020;
  /* on top of content */
  background-color: #fff;
}

/* Horizontal scroll ON, scrollbar hidden */
.tableScroll {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  /* smooth iOS */
}

/* Hide scrollbar: Chrome/Safari/Edge */
.tableScroll.hideScroll::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

/* Hide scrollbar: Firefox */
.tableScroll.hideScroll {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/old Edge */
}

/* Old Edge/IE extra */
.tableScroll.hideScroll::-webkit-scrollbar-thumb {
  background: transparent;
}


.tableCard {
  position: relative;
}

/* left/right fade hints */
.tableCard::before,
.tableCard::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 26px;
  pointer-events: none;
  z-index: 6;
}

.tableCard::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}

.tableCard::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}

/* //abhishek */

/* Sticky header + body scroll */
.tableScrollWrap {
  /* max-height: 75vh; */
  /* change as you want (ex: 420px) */
  overflow: auto;
  border-radius: 14px;
}

/* Desktop only (Bootstrap lg ≥ 992px) */
@media (min-width: 992px) {
  .tableScrollWrap {
    max-height: 75vh;
  }
}

/* IMPORTANT: make table behave correctly with sticky header */
.tableModern {
  margin-bottom: 0;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

/* Sticky header */
.tableModern thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  /* must be set or it will look transparent */
}

/* Optional: keep actions column header above others if needed */
.tableModern thead th.actionsTh {
  z-index: 6;
}

/* If you have shadow/line for header */
.tableModern thead th {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

/* Optional: hide scrollbars if you already use hideScroll */
.hideScroll {
  scrollbar-width: none;
  /* Firefox */
}

.hideScroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .toggle-switch-checkbox {
    display: none;
  }
  
  .toggle-switch-label {
    display: inline-block;
    width: 50px;
    height: 24px;
    position: relative;
    cursor: pointer;
  }
  
  .toggle-switch-inner {
    background-color: #ccc;
    border-radius: 24px;
    position: absolute;
    width: 100%;
    height: 100%;
    transition: background-color 0.3s;
  }

  .uploadModal .toggle-switch-inner {
    background-color: #0a53be;
  }
  
  .toggle-switch-switch {
    background: white;
    border-radius: 50%;
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    top: 2px;
    transition: transform 0.3s;
  }
  
  .toggle-switch-checkbox:checked + .toggle-switch-label .toggle-switch-inner {
    background-color: #0a53be;
  }
  
  .toggle-switch-checkbox:checked + .toggle-switch-label .toggle-switch-switch {
    transform: translateX(26px);
  }
  
/* Notification Bell Styles */
.notification-bell-container {
  position: relative;
  display: inline-block;
  top: 3px;
}

.notification-bell-button {
  padding: 8px;
  transition: all 0.3s ease;
}

.notification-bell-button:hover {
   background-color: rgba(18, 98, 171, 0.08) !important;
}

.notification-icon {
  transition: color 0.3s ease;
}

/* Pulse animation for unread dots */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* Notification Dropdown Styles */
.notification-dropdown-container {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 400px;
  max-width: 90vw;
  z-index: 1300;
  border-radius: 8px;
  overflow: hidden;
  animation: slideDown 0.3s ease;
  background-color: white !important;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

.notification-dropdown-header {
  padding: 12px 16px;
  background-color: #f5f5f5 !important;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Main container */
.notification-dropdown-container {
  display: flex;
  flex-direction: column;
  max-height: 80vh;   /* important for landscape */
}

/* Scrollable list */
.notification-dropdown-list {
  overflow-y: auto;
  flex: 1;   /* take remaining space */
}

/* Sticky footer */
.notification-dropdown-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 2;
  padding: 8px;
}
.notification-dropdown-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333 !important;
}

.notification-unread-count {
  background-color: #2196f3;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.notification-dropdown-actions {
  display: flex;
  gap: 4px;
}

.notification-dropdown-list {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
}

.notification-dropdown-list::-webkit-scrollbar {
  width: 6px;
}

.notification-dropdown-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.notification-dropdown-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.notification-dropdown-list::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.notification-dropdown-empty {
  padding: 32px;
  text-align: center;
}

.notification-dropdown-loading {
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.notification-dropdown-error {
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.notification-dropdown-footer {
  padding: 8px;
  background-color: #f5f5f5 !important;
  border-top: 1px solid #e0e0e0;
}

.notification-view-all-button {
  color: #2196f3 !important;
  background-color: transparent !important;
  font-weight: 500;
  text-transform: none;
  padding: 8px 16px;
}

.notification-view-all-button:hover {
  background-color: rgba(33, 150, 243, 0.08) !important;
}

/* Notification Item Styles */
.notification-item {
  position: relative;
  padding: 12px 16px !important;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.notification-item.unread {
  background-color: rgba(33, 150, 243, 0.04);
}

.notification-item:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.notification-item.priority-critical {
  border-left-color: #f44336 !important;
}

.notification-item.priority-high {
  border-left-color: #ff9800 !important;
}

.notification-item.priority-medium {
  border-left-color: #2196f3 !important;
}

.notification-item.priority-low {
  border-left-color: #9e9e9e !important;
}

.notification-item-icon {
  min-width: 40px !important;
  position: relative;
}

.notification-unread-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background-color: #2196f3;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.notification-title-unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #2196f3;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

.notification-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.notification-item-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-priority-chip {
  height: 20px !important;
  font-size: 0.7rem !important;
}

.notification-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notification-item-message {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.notification-item-time {
  font-size: 0.75rem;
  opacity: 0.7;
}

.notification-item-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.notification-item:hover .notification-item-actions {
  opacity: 1;
}

.notification-action-button {
  padding: 4px !important;
}

/* Notification Toast Styles */
.notification-toast {
  z-index: 1400;
}

.notification-toast-alert {
  border-radius: 8px;
}

.notification-toast-alert .MuiAlert-message {
  padding: 0;
}

.notification-toast-alert .MuiAlertTitle-root {
  margin-bottom: 4px;
}

/* Notification Page Styles */
.notifications-page {
  padding: 24px;
  /* max-width: 1200px; */
  margin: 0 auto;
}

.notifications-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.notifications-page-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notifications-page-filters {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.notifications-page-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.notifications-page-empty {
  padding: 64px;
  text-align: center;
}

.notifications-page-loading {
  padding: 64px;
  display: flex;
  justify-content: center;
}

.notifications-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notification-group {
  margin-bottom: 24px;
}

.notification-group-header {
  padding: 8px 16px;
  background-color: #0B3963 !important;
  /* Exact sidebar color */
  font-weight: 600;
  font-size: 0.875rem;
  color: white !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* Responsive Styles */

@media (max-width: 768px) {

  .notification-dropdown-list {
    max-height: 60vh;
  }

  .notification-item-message {
    -webkit-line-clamp: 1;
  }

  .notifications-page {
    padding: 16px;
  }

  .notifications-page-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .notifications-page-filters {
    flex-direction: column;
  }
}
@media (max-width: 991px) {.notification-dropdown-footer {

    margin-top: -126px !important;
}}

@media (max-width: 575px) {
  .notification-dropdown-container {
    width: 300px;
    right: -65px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .notification-dropdown-container {
    background-color: #424242;
  }

  .notification-dropdown-header,
  .notification-dropdown-footer {
    background-color: #333;
    border-color: #555;
  }

  .notification-item {
    border-bottom-color: #555;
  }

  .notification-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
  }

  .notification-item.unread {
    background-color: rgba(33, 150, 243, 0.1);
  }

  .notifications-page-content {
    background-color: #424242;
  }

  .notification-group-header {
    background-color: #333;
    color: #bbb;
  }
}
