:root {
  --page-padding: 28px;
  --gap: 20px;
  --card-bg: #ffffff;
  --muted: #6b7280;
  --shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
}

/* Grid container */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  /* Adjusted min-width slightly */
  gap: var(--gap);
  padding: var(--page-padding);
  box-sizing: border-box;
  grid-auto-rows: 1fr;
  background: transparent;
}

/* Card wrapper */
.project-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  box-sizing: border-box;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;

  border-radius: 8px 8px 16px 16px;
  border-top: 1px solid #f6f6f6;
  border-right: 1px solid #f6f6f6;
  border-left: 1px solid #f6f6f6;
  /* background: #FFF; */
  box-shadow: 0 1px 30px 0 rgba(0, 0, 0, 0.08);
}

/* .project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(228, 10, 119, 1.08);
} */

/* header: Contains top row with icon, primary/secondary tags, and menu */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.headerdashboard-left,
.headerdashboard-right {
  display: flex;
  align-items: center;
  gap: 2px;
  /* Gap between items in header sections */
}

/* This makes sure the dropdown is positioned relative to the header's right side */
.headerdashboard-right {
  position: relative;
}

/* Primary tag text next to the icon */
.primary-tag-text {
  font-size: 11px;
  font-weight: 500;
  /* color: #12175f; */
  padding: 6px 5px;
  border-radius: 5px;
  line-height: 1;
}

/* Color variants for .primary-tag-text */
.primary-tag-text--purple {
  background: #8b5cf6;
  color: #ffffff;
}

.primary-tag-text--green {
  background: #10b981;
  color: #ffffff;
}

.primary-tag-text--orange {
  background: #efae40;
  color: #ffffff;
}

.primary-tag-text--red {
  background: rgba(208, 64, 78, 0.78);
  color: #ffffff;
  white-space: nowrap;
}

/* .primary-tag-text--default {
  background: #f3f4f6;
  color: #111827;
} */

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.tag {
  font-size: 10px;
  padding: 6px 12px;
  border-radius: 999px;

  line-height: 1;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  white-space: nowrap;
  background: #f1f5f9;
  color: #374151;
  font-family: Inter;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

/* tag color variants */

.tag--orange {
  background: #fff7ed;
  color: #b45309;
}

.tag--green {
  background: rgba(0, 196, 23, 0.08);
  color: #10b981;
}

.tag--default {
  background: #f3f4f6;
  color: #111827;
}

.card-menu {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* body */
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  /* allows footer to sit at bottom */
  padding-top: 16px;
  /* Add padding to separate from header */
}

.card-icon {
  border-radius: 8px;
  /* Adjusted radius */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  /* Changed background */
  color: #0f172a;
  height: 16px;
  width: 16px;
}

/* title + desc */
.project-title {
  /* font-size: 16px;
  margin: 0;

  color: #0f172a;
  font-weight: 600; */
}

/* .project-description {
  font-size: 13px;
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  
} */

/* chips */

.chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* This is the updated style for the chip container */
.chip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  /* This is the key change */
  padding: 5px 4px 4px 4px;

  /* Applying your requested styles */
  border-radius: 4px;
  background: #f4f4f4;
  border: none;
  /* Removing the previous border for a flatter look */
}

/* New style for the left-side group (icon + label) */
.chip-left {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Space between the icon and the label text */
}

.chip-label {
  font-size: 12px;
  color: var(--muted);
}

.chip-value {
  font-weight: 400;
  font-size: 12px;
  color: #c1cdd2;
}

/* bullets list style */
.bullets {
  margin: 0;
  padding-left: 0;
  list-style-type: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bullet-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bullet-icon {
  display: flex;
  align-items: center;
}

.bullet-success {
  color: #38B86C;
}

.bullet-error {
  color: #ef4444;
}

/* footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatars-stack {
  display: flex;
  align-items: center;
  margin-right: 4px;
}

.avatars {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(2, 6, 23, 0.06);
  transform: translateX(0);
  margin-left: -8px;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  color: #374151;
  position: relative;
}

.icon-btn:hover {
  background: rgba(15, 23, 42, 0.03);
}

.notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background-color: #ef4444;
  border-radius: 50%;
  border: 1.5px solid #fff;
}

@media (max-width: 640px) {
  .projects-grid {
    padding: 16px;
    gap: 12px;
  }

  .chip {
    min-width: 72px;
  }

  .project-title {
    font-size: 15px;
  }
}

/* Add this for the new 'info' icon style */
.bullet-info {
  color: #f59e0b;
}

/* An amber/yellow color */

/* Add these new classes for the inline stats */
.card-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Gap between stat items */
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
  /* Allows wrapping on small screens */
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  /* Gap between icon and text */
}

.stats-divider {
  height: 14px;
  width: 1px;
  background-color: #e2e8f0;
  /* A light gray divider */
}

/* Add this to correctly align the comment button when it's alone */
.card-footer.footer--no-avatars {
  justify-content: flex-end;
}

/* Add this class for the new title */
.alerts-title {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  /* A medium gray */
  margin: 0;
  margin-top: 4px;
  /* Adds space above the title */
  margin-bottom: 8px;
  /* Adds space between title and list */
}

/* Add these new classes for the icon colors */
.bullet-warning {
  color: #ef4444;
}

/* Red for the warning icon */
.bullet-task {
  color: #6b7280;
}

/* Muted gray for the task icon */

.project-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* For the bold status value */
.status-value {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

/* For the single-line stats that replace chips */
.inline-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* The main container for the two-column details section */
.agent-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.agent-detail-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Title for each column (e.g., "Deployed Channels") */
.detail-title {
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
}

/* Container for the channel icons */
.channel-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: #f1f5f9;
  color: #374151;
  border: 1px solid #e2e8f0;
}

/* The "Working" status tag */
.health-status-tag {
  display: inline-flex;
  align-items: center;

  font-size: 12px;
  font-weight: 500;

  width: fit-content;
  /* Ensures tag is only as wide as its content */
  border-radius: 10px;
  padding: 6px 10px;

  gap: 8px;
}

/* --- Dropdown Menu Styles --- */
.card-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  /* Changed from -120px to 0 */
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;
  z-index: 1000;
  /* Increased z-index */
  width: max-content;
  min-width: 160px;
  /* Added min-width for consistency */
  margin-top: 4px;
  /* Reduced margin */
  overflow: hidden;
  font-weight: 500;
}

.card-dropdown-menu ul {
  list-style: none;
  margin: 0;
  padding: 8px;
  /* Padding inside the dropdown */
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* Space between menu items */
}

.card-dropdown-menu li {
  padding: 5px 8px;
  cursor: pointer;
  font-size: 14px;
  color: #080808;
  border-radius: 4px;
  /* Rounded corners for hover effect */
  white-space: nowrap;
  /* Prevent text wrapping */
}

.card-dropdown-menu li:hover {
  background-color: #f5f5f5;
}

/* Add these styles to your existing CSS */
.bullet-success-text {
  color: #38B86C;
  font-weight: 500;
}

.card-dropdown-menu ul {
  list-style: none;
  padding: 8px;
  margin: 0;
}

.card-dropdown-menu li {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.card-dropdown-menu li:hover {
  background: #f5f7fa;
}

/* Common base styles for all tab buttons */
.commonTabs {
  border-radius: 8px 8px 0 0;
  padding: 10px 20px;
  width: 140px;
  height: 29px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 21px;
  letter-spacing: 0%;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background-color: transparent;
  color: #495057;
  /* default text color */
  font-weight: 400;
  /* default inactive weight */
}

/* Active state — this will highlight the selected tab */
.commonTabs.activeTab {
  background-color: #dcdfe3;
  /* active background */
  font-weight: 700;
  /* bold for active tab */
}

/* Inactive tabs — normal text */
.commonTabs.inactiveTab {
  background-color: transparent;
  font-weight: 400;
}

.commonTabs.disabledTab {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Add these styles to your existing CSS file */

.project-card--shared {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.shared-card-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #6b7280;
}

.card-footer--shared {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.shared-by-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.shared-by-text {
  font-size: 13px;
  color: #6b7280;
}

.shared-by-text strong {
  color: #111827;
  font-weight: 500;
}

/* --- Styles for Simple Dropdowns (No changes) --- */
.dropdown-menu {
  position: absolute;
  top: 105%;
  left: 0;
  z-index: 1000;
  min-width: 220px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 14px;
  color: #212529;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

/* --- CORRECTED Styles for Module Dropdown --- */

/* Box 1: The Parent Container */
.module-dropdown-container {
  position: absolute;
  top: 105%;
  left: 0;
  z-index: 1000;
  width: 320px;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
  font-family: "Inter", sans-serif;
  background-color: #0d1117 !important;
  padding: 8px;
  box-sizing: border-box;
  margin-top: 10px;
}

/* Box 2: The Header Box */
.module-header-box {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background-color: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px;
  margin-bottom: 8px;
  gap: 8px;
}

.header-icon {
  color: #64748b;
  margin-right: 8px;
}

.search-input-container {
  flex: 1;
  min-width: 120px;
}

.module-search-input {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  width: 100%;
  font-size: 12px;
  color: #f8fafc !important;
  padding: 0;
  box-shadow: none !important;
}

/* High specificity to override wizard-dark-theme global input rules */
.pagehome-content:not(.no-dark-theme) .module-dropdown-container .module-search-input.newcss,
.pagehome-content:not(.no-dark-theme) .module-dropdown-container .module-search-input.newcss:focus {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  font-family: inherit !important;
}

.module-search-input::placeholder {
  color: #64748b;
}

.header-placeholder {
  color: #64748b;
  font-size: 14px;
  margin-right: auto;
}

.selected-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.selected-tag {
  background-color: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- KEY CSS CHANGES --- */

/* Box 3: The new List Box */
.module-list-box {
  background-color: #0d1117;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* The <ul> list inside the new box */
.module-list {
  list-style: none;
  padding: 0;
  /* Remove padding from the ul itself */
  margin: 0;
}

/* The <li> items */
.module-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  cursor: pointer;
  margin-left: 8px;
  margin-right: 8px;
  margin-bottom: 4px;
  border-radius: 8px;
  margin-top: 8px;
}

.module-list-item:last-child {
  border-bottom: none;
}

.module-list-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.module-list-item.selected {
  background-color: color-mix(in srgb, var(--wiz-btn-primary-bg, #305cd6) 15%, transparent);
}

.module-list-item.selected .item-label {
  color: #93c5fd;
}

.module-list-item.selected .item-icon {
  color: #93c5fd;
}

.item-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-icon {
  color: #94a3b8;
}

.item-label {
  font-size: 12px;
  color: #f8fafc;
}

.selected-text {
  color: #94a3b8;
  font-weight: 400;
  font-size: 12px;
}

/* Footer text styles */
.dropdown-footer {
  padding: 12px 4px 4px 4px;
  font-size: 12px;
  color: #64748b;
  background-color: transparent;
  border-top: none;
}

.status-dropdown-container {
  position: absolute;
  top: 105%;
  left: 0;
  z-index: 1000;
  width: 280px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  background-color: #0d1117;
  padding: 8px;
  box-sizing: border-box;
  margin-top: 10px;
}

.status-header-box {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 8px;
}

.status-selected-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-list-box {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px;
}

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

.status-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 8px;
}

.status-list-item .item-label {
  font-weight: 400;
  /* Bold text as in Figma */
}

.status-list-item:not(:last-child) {
  margin-bottom: 4px;
}

.status-list-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.status-list-item.selected {
  background-color: color-mix(in srgb, var(--wiz-btn-primary-bg, #305cd6) 15%, transparent);
}

.status-list-item.selected .item-label {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  /* Prevents dot from shrinking */
}

.sort-dropdown-container {
  position: absolute;
  top: 105%;
  right: -50px;
  z-index: 1000;
  width: 300px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  background-color: #0d1117;
  padding: 8px;
  box-sizing: border-box;
  margin-top: 10px;
}

.sort-header-box {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 8px;
}

.sort-list-box {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px;
}

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

.sort-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Pushes "Selected" text to the right */
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 6px;
}

.sort-list-item .item-label {
  font-size: 12px;
  color: #f8fafc;
}

.sort-list-item:not(:last-child) {
  margin-bottom: 4px;
}

.sort-list-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.sort-list-item.selected {
  background-color: color-mix(in srgb, var(--wiz-btn-primary-bg, #305cd6) 15%, transparent);
}

.sort-list-item.selected .item-label {
  font-weight: 600;
  color: #93c5fd;
}

.sort-selected-text {
  font-size: 12px;
  color: #64748b;
  font-weight: 400;
}

.date-dropdown-container {
  position: absolute;
  top: 105%;
  right: 0;
  z-index: 1000;
  width: 300px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  background-color: #0d1117;
  padding: 8px;
  box-sizing: border-box;
  margin-top: 10px;
}

/* Custom Range view — aligned header, calendar, actions, footer */
.date-dropdown-container.custom-range-view {
  width: 328px;
  right: 0;
  left: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.date-dropdown-container.custom-range-view .date-header-box.custom-range-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  padding: 8px 10px;
}

.date-dropdown-container.custom-range-view .custom-range-header .back-button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.date-dropdown-container.custom-range-view .custom-range-header .header-value {
  justify-self: center;
  text-align: center;
  white-space: nowrap;
}

.date-dropdown-container.custom-range-view .custom-range-header-spacer {
  justify-self: end;
  width: 1px;
  height: 1px;
  visibility: hidden;
  pointer-events: none;
}

.date-dropdown-container.custom-range-view .custom-range-calendar-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  box-sizing: border-box;
}

.date-dropdown-container.custom-range-view .custom-range-calendar-container .react-datepicker {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
}

.date-dropdown-container.custom-range-view .custom-range-calendar-container .react-datepicker__month-container {
  float: none;
  width: 100%;
}

.date-dropdown-container.custom-range-view .custom-range-calendar-container .react-datepicker__month {
  margin: 0.4rem;
}

.date-dropdown-container.custom-range-view .custom-range-calendar-container .react-datepicker__day-name,
.date-dropdown-container.custom-range-view .custom-range-calendar-container .react-datepicker__day {
  width: 1.9rem;
  line-height: 1.9rem;
  margin: 0.15rem;
}

.date-dropdown-container.custom-range-view .custom-range-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 2px 2px 0;
}

.date-dropdown-container.custom-range-view .custom-range-actions .selection-info {
  width: 100%;
  text-align: left;
  line-height: 1.35;
}

.date-dropdown-container.custom-range-view .custom-range-actions .action-buttons {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.date-dropdown-container.custom-range-view .custom-range-actions .action-buttons .btn {
  flex: 1 1 0;
  min-width: 0 !important;
  width: auto !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
}

.date-dropdown-container.custom-range-view .dropdown-footer {
  padding: 4px 2px 2px;
  margin: 0;
  text-align: left;
  line-height: 1.4;
}

.date-header-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 8px;
}

.date-header-box .header-value {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 500;
}

.date-list-box {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px;
}

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

.date-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 6px;
}

.date-list-item .item-label {
  font-size: 12px;
  color: #f8fafc;
  font-weight: 500;
}

.date-list-item:not(:last-child) {
  margin-bottom: 4px;
}

.date-list-item:hover {
  background-color: var(--wiz-bg-glass, rgba(255, 255, 255, 0.06));
}

.date-list-item.selected {
  background-color: color-mix(in srgb, var(--wiz-btn-primary-bg, #305cd6) 15%, transparent);
}

.date-list-item.selected .item-label {
  font-weight: 600;
  color: #93c5fd;
}

.date-item-icon {
  color: #94a3b8;
}

/* Module Header with Search Input */
/* Cleaned up duplicate module styles */
/* Standardized Premium Search Bar (Matching Universe Design) */
.dashboard-search-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  width: 280px;
  height: 38px;
  padding: 0 10px;
  background: var(--wiz-bg-container);
  border: 1px solid var(--wiz-border);
  border-radius: var(--wiz-radius-md);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-search-container:focus-within {
  border-color: color-mix(in srgb, var(--wiz-btn-primary-bg, #3b82f6) 40%, transparent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--wiz-btn-primary-bg, #3b82f6) 20%, transparent);
}

.dashboard-search-premium {
  height: 100% !important;
  flex: 1;
  min-width: 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  color: var(--wiz-text-accent) !important;
  padding: 0 !important;
  font-family: "Inter", sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  width: 100%;
  box-shadow: none !important;
  transition: none !important;
}

.dashboard-search-premium:focus {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.dashboard-search-premium::placeholder {
  color: #94a3b8 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.dashboard-search-icon,
.dashboard-search-icon svg {
  position: static;
  flex-shrink: 0;
  transform: none;
  color: #94a3b8 !important;
  stroke: #94a3b8 !important;
  width: 16px;
  height: 16px;
  z-index: 1;
  pointer-events: none;
}

.dashboard-search-container:focus-within .dashboard-search-icon,
.dashboard-search-container:focus-within .dashboard-search-icon svg {
  color: rgba(248, 250, 252, 0.9) !important;
  stroke: rgba(248, 250, 252, 0.9) !important;
}

/* Align Filter Buttons height to match Search (38px) */
.pagehome-content:not(.no-dark-theme) .wizardcustom-btn--filter,
.pagehome-content:not(.no-dark-theme) .wizardcustom-btn--refresh {
  height: 38px !important;
  padding: 0 16px !important;
  /* Increased padding for better balance */
  font-size: 13px !important;
  /* Standardize font size to match search */
  border-radius: var(--wiz-radius-md) !important;
}

.module-list-item.no-results {
  pointer-events: none;
  color: #64748b;
  font-style: italic;
}

/* Keep all other existing styles the same */

.aligncss {
  margin-left: 8px !important;
}

/* Add this new style to fix dropdown overlap */
.project-card.is-menu-active {
  z-index: 10;
}

img {
  max-width: 100%;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.shadow-blink .row,
.input-container .row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.shadow-blink .col-10,
.input-container .col-10 {
  flex-grow: 1;
  flex-basis: 0;
  width: auto;
}

.shadow-blink .col-2,
.input-container .col-2 {
  flex-shrink: 0;
  width: auto;
  padding: 0 !important;
}

.shadow-blink .col-2>.font-size-18,
.input-container .col-2>.font-size-18 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-right: 15px;
}

@media (max-width: 1200px) {

  /* Make tab navigation horizontally scrollable on medium screens to
     accommodate the open sidebar without hiding tabs. */
  .nav-tabs.nav-tabs-custom {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* For Firefox */
  }

  .nav-tabs.nav-tabs-custom::-webkit-scrollbar {
    display: none;
    /* For Chrome, Safari, and Opera */
  }

  .nav-tabs-custom .nav-item {
    flex: 0 0 auto;
    /* Allow items to have their natural width */
    white-space: nowrap;
    /* THIS IS THE FIX: It overrides nav-justified's stretching behavior */
    flex-grow: 0;
  }
}

/* Stack buttons ONLY when the screen is narrow enough to require it. */
@media (max-width: 1200px) {

  #profile1 .row.pt-0,
  #messages1 .row.pt-0.pb-3 {
    /* Added specificity for sources tab */
    flex-direction: column;
    gap: 15px;
  }

  #profile1 .row.pt-0 .col-6,
  #messages1 .row.pt-0.pb-3 .col-6 {
    width: 100%;
    max-width: 100%;
    display: flex;
  }

  #profile1 .row.pt-0 .col-6:first-child,
  #messages1 .row.pt-0.pb-3 .col-6:first-child {
    flex-wrap: wrap;
    gap: 8px;
  }

  #profile1 .row.pt-0 .col-6.justify-content-end,
  #messages1 .row.pt-0.pb-3 .col-6.justify-content-end {
    justify-content: flex-start !important;
  }

  #profile1 .row.pt-0 .btn,
  #messages1 .row.pt-0.pb-3 .btn {
    align-self: flex-start;
  }
}

.d-grid[style*="grid-template-columns: auto auto auto"] {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px;
}

/* At this width, switch to 2 columns */
@media (max-width: 992px) {
  .d-grid[style*="grid-template-columns: auto auto auto"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* At this width, switch to 1 column to prevent text squishing */
@media (max-width: 768px) {
  .d-grid[style*="grid-template-columns: auto auto auto"] {
    grid-template-columns: 1fr !important;
  }
}

/* Image Card Footer Text Fix (Confirmed Working) */
.tab-pane#profile1 .card .d-flex.justify-content-between.p-2 {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

.tab-pane#profile1 .card .d-flex.justify-content-between>div:first-child {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.tab-pane#profile1 .card .d-flex.justify-content-between>div:first-child>div {
  min-width: 0;
  padding-left: 5px;
}

.tab-pane#profile1 .card .d-flex.justify-content-between>div:last-child {
  flex-shrink: 0;
  white-space: nowrap;
}

p.text-ellipse-img {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

/* =================================================================
   5. General Mobile Adjustments (Consolidated)
================================================================= */
@media (max-width: 768px) {
  .section-container {
    padding: 0 10px;
  }

  /* Adjust source list items for better mobile view */
  .tab-pane .d-flex.pb-3.align-item-center.justify-content-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  /* Adjust accordion content alignment for mobile */
  .custom-accordion .d-flex.align-item-center {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }

  .custom-accordion .d-flex.align-item-center>div:first-child {
    width: 100% !important;
  }
}

@media (max-width: 576px) {

  /* Stack bottom action buttons vertically */
  .tab-pane .row.border-top.pt-2 {
    flex-direction: column;
    gap: 10px;
  }

  .tab-pane .row.border-top.pt-2 .col-6 {
    width: 100%;
    justify-content: flex-start !important;
  }
}

.icon-white {
  filter: brightness(0) invert(1);
}

.icon-gray {
  filter: invert(78%) sepia(5%) saturate(0%) hue-rotate(183deg) brightness(87%) contrast(89%);
}

.submenu-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.submenu-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.submenu-scroll-container::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.submenu-scroll-container::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.chat-option-item.selected {
  background-color: #f4f4f4 !important;
  border-radius: 6px;
  padding: 5px 8px;
}

.ant-switch {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  min-width: 30px;
  height: 16px;
  line-height: 22px;
  vertical-align: middle;
  background-color: rgba(107, 114, 128, 0.15);
  border: 1.5px solid #6b7280;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  padding: 0;
  margin-top: 3px;
  margin-bottom: 6px;
}

.ant-switch-checked {
  background: var(--wiz-toggle-on-bg, var(--wiz-btn-primary-fill, var(--wiz-btn-primary-bg, #1670f0)));
  border: 1.5px solid var(--wiz-toggle-on-border, var(--wiz-btn-primary-border, #1670f0));
  /* border: 1.5px solid #6b7280; */
}

.ant-switch-handle {
  position: absolute;
  top: 1px;
  inset-inline-start: 2px;
  width: 12px;
  height: 12px;
  transition: all 0.2s ease-in-out;
  background-color: #6b7280;
  border-radius: 9px;
  box-shadow: 0 2px 4px 0 rgba(0, 35, 11, 0.2);
}

.ant-switch-checked .ant-switch-handle {
  inset-inline-start: calc(100% - 14px);
  background-color: #ffffff;
  top: 1px;
}

.ant-switch-inner {
  display: block;
  margin: 0 7px 0 25px;
  color: #fff;
  font-size: 12px;
  transition: margin 0.2s;
}

.ant-switch-checked .ant-switch-inner {
  margin: 0 25px 0 7px;
}

/* Focus styles for accessibility */
.ant-switch:focus {
  outline: 1.5px solid #6b7280;
  outline-offset: 2px;
}

/* Disabled state */
.ant-switch:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.ant-switch:disabled .ant-switch-handle {
  box-shadow: none;
}

.send-icon {
  width: 26px;
  /* Slightly smaller to fit your layout */
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: #E1E3E6; */
  background: #f4f4f4;
  border: 1px solid #e1e3e6;
  color: #000;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.25s ease;
  padding-left: 2px;
}

/* .send-icon:hover {
  background: #0664d1;
} */

/* ChatDropdown.css */
.menu-wrap {
  position: relative;
  display: inline-block;
}

.menu-btn {
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  cursor: pointer;
}

.plus-circle {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #000;
  font-weight: 700;
  font-size: 26px;
  background: none;
  border: none;
  box-shadow: none;
  transition: transform 0.15s ease;
}

.menu-btn:hover .plus-circle {
  transform: translateY(-2px);
}

.popup {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 260px;
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 0 25px rgba(2, 6, 23, 0.12);
  border: 1px solid #e9ecef;
  z-index: 40;
  display: none;
}

.popup.open {
  display: block;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* margin-bottom: 8px; */
}

.popup-title {
  font-weight: 600;
  font-size: 14px;
}

.clear-btn {
  background: transparent;
  border: none;
  color: #0b76ff;
  cursor: pointer;
  font-size: 13px;
}

.options {
  display: flex;
  flex-direction: column;
  /* gap: 6px; */
}

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.option:hover {
  background: #f1f5f9;
}

.option input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.option-label {
  font-size: 12px;
  font-weight: 400 !important;
}

.selected-list {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: #eef6ff;
  /* color: #0b76ff; */
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.bottom-menu .popup {
  top: auto;
  /* Unset the default top positioning */
  bottom: calc(100% + 10px);
  /* Position it 10px above the parent (.menu-wrap) */
}

.paddingcss {
  padding: 4rem 2rem;
}

.homecss {
  color: #354258;
  text-align: center;
  font-family: Inter;
  font-size: 22px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.textcssshared {
  color: #1a3b5e;
  text-align: center;
  font-family: Inter;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 4px;
}

.textcsssharedsecond {
  color: #6b7280;
  text-align: center;
  font-family: Inter;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* .like-dislike-buttons .btn-outline-secondary {
    border-color: #e5e7eb;
    color: #6b7280;
    background-color: white;
}

.like-dislike-buttons .btn-outline-secondary:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.like-dislike-buttons .btn-outline-secondary i {
    font-size: 14px;
} */

/* Like/Dislike Button Styles */
/* In your CSS file */
.like-dislike-buttons .btn-outline-secondary {
  border-color: #e5e7eb;
  color: #6b7280;
  background-color: #f9fafb;
  transition: all 0.2s ease;
}

/* Active state (when button IS selected) */
.like-dislike-buttons .btn-outline-secondary.active-feedback-like {
  background-color: rgba(34, 197, 94, 0.12) !important;
  border-color: #22c55e !important;
  color: #16a34a !important;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2) !important;
}

.like-dislike-buttons .btn-outline-secondary.active-feedback-dislike {
  background-color: rgba(239, 68, 68, 0.12) !important;
  border-color: #ef4444 !important;
  color: #dc2626 !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2) !important;
}

.like-dislike-buttons .btn-outline-secondary.active-feedback-like i {
  color: #16a34a !important;
}

.like-dislike-buttons .btn-outline-secondary.active-feedback-dislike i {
  color: #dc2626 !important;
}

/* Hover state for active buttons */
.like-dislike-buttons .btn-outline-secondary.active-feedback-like:hover {
  background-color: rgba(34, 197, 94, 0.2) !important;
  border-color: #16a34a !important;
  color: #15803d !important;
}

.like-dislike-buttons .btn-outline-secondary.active-feedback-dislike:hover {
  background-color: rgba(239, 68, 68, 0.2) !important;
  border-color: #dc2626 !important;
  color: #b91c1c !important;
}

/* Hover state for inactive buttons */
.like-dislike-buttons .btn-outline-secondary:hover:not(.active-feedback-like):not(.active-feedback-dislike) {
  border-color: #d1d5db;
  background-color: #f8fafc;
  /* Slightly lighter background */
  color: #4b5563;
}

/* FeedbackModal.css */
.feedback-modal-container {
  /* position: absolute; */
  bottom: 100%;
  right: 0;
  z-index: 1000;
}

.feedback-modal {
  background: #ffffff;
  border: 1px solid #e5e6e8;
  border-radius: 5px;

  min-width: 320px;
  margin-bottom: 8px;
  width: 90vw !important;
  margin-left: -3px;
}

.feedback-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  /* Add this */
}

.feedback-title {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  line-height: 1.4;
  position: absolute;
  /* Add this */
  left: 50%;
  /* Add this */
  transform: translateX(-50%);
  /* Add this */
  text-align: center;
  /* Add this */
}

.feedback-modal-header> :first-child {
  margin-right: auto;
}

/* For the close icon */
.feedback-modal-header> :last-child {
  margin-left: auto;
}

.close-icon {
  font-size: 20px;
  color: #9ca3af;
  cursor: pointer;
  padding: 2px;
}

.close-icon:hover {
  color: #6b7280;
}

.feedback-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px;
}

.feedback-option-btn {
  background: #f8f9fc;
  border: 1px solid #e5e6e8;
  border-radius: 5px;
  padding: 10px 8px;
  font-size: 12px;
  color: #374151 !important;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  word-break: break-word;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-option-btn:hover {
  background: #ffffff;
  border-color: #d0d0d1;
  transform: translateY(-1px);
}

.feedback-option-btn:active {
  background: #ffffff;
  border-color: #d0d0d1;
  transform: translateY(0);
}

/* For the "Other..." button to span appropriately */
.feedback-option-btn:nth-child(6) {
  grid-column: span 1;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .feedback-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feedback-modal {
    min-width: 280px;
  }
}

/* FeedbackModal.css - Additional styles */

.back-icon {
  font-size: 20px;
  color: #6b7280;
  margin-right: 8px;
  cursor: pointer;
}

.back-icon:hover {
  color: #374151;
}

.feedback-other-details {
  padding: 16px;
}

.feedback-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.feedback-textarea:focus {
  outline: none;
  border-color: var(--wiz-btn-primary-hover-bg, #3b82f6);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wiz-btn-primary-bg, #3b82f6) 10%, transparent);
}

.feedback-submit-btn {
  width: 100%;
  padding: 10px;
  background-color: var(--wiz-btn-primary-fill, var(--wiz-btn-primary-bg, #3b82f6));
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.feedback-submit-btn:hover:not(:disabled) {
  background-color: var(--wiz-btn-primary-hover-fill, var(--wiz-btn-primary-hover-bg, #2563eb));
}

.feedback-submit-btn:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .feedback-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feedback-modal {
    min-width: 280px;
  }
}