.listWrap {
  padding: 16px;
  background: #f8f9fa;
  min-height: 100%;
}

/* Modern Card Style */
.cardCompact {
  margin-bottom: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;

  &:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  }
}

.cardBody {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

/* Three-dot Menu */
.menuButton {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 10;
  padding: 4px;
  color: #bfbfbf;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s;

  &:hover {
    color: #1890ff;
  }
}

/* Icon/Image Box */
.imageBox {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  span {
    font-size: 24px;
    font-weight: 600;
  }
}

/* Content Area */
.contentArea {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.titleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-right: 20px; /* Space for menu button */
}

.title {
  font-size: 17px;
  font-weight: 700;
  color: #262626;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.countTag {
  font-size: 12px;
  color: #1890ff;
  background: #e6f7ff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* RFM Metrics */
.metricsRow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.rfmMain {
  font-size: 13px;
  font-weight: 600;
  color: #ff7a45;
  background: #fff2e8;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #ffbb96;
}

.metricPill {
  font-size: 11px;
  color: #8c8c8c;
  background: #f5f5f5;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 400;
}

/* Info Row */
.infoRow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #bfbfbf;
  margin-top: 2px;

  .typeTag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #8c8c8c;

    &::before {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: currentColor;
    }
  }

  .time {
    margin-left: auto;
  }
}

/* Global styles for search bar in Layout */
:global {
  .search-bar {
    padding: 12px 16px;
    background: #fff;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;

    .search-input-wrapper {
      flex: 1;

      .ant-input-affix-wrapper {
        border-radius: 8px;
        background: #f5f5f5;
        border: none;
        padding-left: 12px;

        input {
          background: transparent;
        }

        .ant-input-prefix {
          color: #bfbfbf;
        }
      }
    }

    .ant-btn {
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

  .pagination-container {
    padding: 12px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: center;
  }
}
