/* Container Padding & Background */
/*frontend\css\inboxMain.css*/
/* Container Padding & Background */
/* frontend/css/inboxMain.css */

.inbox-container {
  position: relative;
  isolation: isolate;

  padding: 0.1px 16px 100px 16px;

  background: #f4f7fa;

  min-height: calc(100vh - 120px);
  box-sizing: border-box;
  overflow: hidden;
}

/* Decorative background ribbons */
.inbox-container::before,
.inbox-container::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Upper-left ribbons */
.inbox-container::before {
  background: linear-gradient(
    132deg,
    transparent 0%,
    transparent 9%,
    rgba(65, 184, 92, 0.09) 9.2%,
    rgba(65, 184, 92, 0.09) 17%,
    transparent 17.2%,
    transparent 21%,
    rgba(65, 184, 92, 0.055) 21.2%,
    rgba(65, 184, 92, 0.055) 25%,
    transparent 25.2%
  );
}

/* Lower-right ribbons */
.inbox-container::after {
  background: linear-gradient(
    312deg,
    transparent 0%,
    transparent 10%,
    rgba(65, 184, 92, 0.09) 10.2%,
    rgba(65, 184, 92, 0.09) 18%,
    transparent 18.2%,
    transparent 22%,
    rgba(65, 184, 92, 0.055) 22.2%,
    rgba(65, 184, 92, 0.055) 26%,
    transparent 26.2%
  );
}

.inbox-title {
  font-size: 26px;
  font-weight: 800;
  color: #0b1f33;
  margin-bottom: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #e1e8ed;
  border-radius: 50px; /* Fully rounded soft pill corners */
  padding: 2px 14px;   /* More horizontal padding so text doesn't touch the edges */
  margin-bottom: 6px;
  min-height: 10px;    /* Slim height */
}

.search-box .search-icon {
  color: #38b44a;
  font-size: 13px;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  margin-left: 8px;
  font-size: 13px;
  color: #333;
  padding: 0;
}

/* Filter Chips */
.filter-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chip {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid #e1e8ed;
  background-color: #ffffff;
  color: #55606d;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.chip.active {
  background-color: #38b44a; /* Floynex Brand Green */
  color: #ffffff;
  border-color: #38b44a;
}

/* Inbox Cards List - Zero gaps */
.inbox-list {
  display: flex;
  flex-direction: column;
  gap: 0px; /* Completely removed gap between cards */
}

.inbox-card {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition: transform 0.1s ease;
  margin-bottom: -2px; /* Overlaps borders cleanly to remove any visual space */
}

.inbox-card:active {
  transform: scale(0.99);
}

/* Circular Category Icons */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #38b44a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 12px;
}

.card-icon i {
  font-size: 20px;
  color: #ffffff;
}
/* White inner wrapper specifically for the Floynex icon */
.floynex-icon-inner {
  width: 38px;
  height: 38px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Content Details */
.card-content {
  flex: 1;
  min-width: 0;
  margin-right: 8px;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.card-title {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  text-transform: uppercase; /* Forces all titles to be capital letters */
}

.card-time {
  font-size: 12px;
  color: #6b7280;
  flex-shrink: 0;
  margin-left: 6px;
}

.card-snippet {
  font-size: 13px;
  color: #4b5563;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}
/* Unread message styling - Makes text bolder and darker when unread */
.inbox-card.unread .card-title {
  font-weight: 850;
  color: #000000;
}

.inbox-card.unread .card-snippet {
  font-weight: 600;
  color: #1f2937;
}
/* Badges & Arrows */
.card-action {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge {
  background-color: #38b44a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-arrow {
  color: #9ca3af;
  font-size: 18px;
  font-weight: 400;
}

.loading-text, .no-messages {
  text-align: center;
  padding: 30px;
  color: #6b7280;
  font-size: 14px;
}
/* Prevent accidental text selection when tapping inbox conversations */
.inbox-card {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

/* Keep normal text selection in the search field */
#inboxSearchInput {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}