/* 모바일 전용 스타일 */
body, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f9;
  color: #333;
  height: 100%;
}

/* 컨테이너 */
.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* 헤더 */
.header {
  background-color: #007bff;
  color: #fff;
  padding: 15px;
}

.header h1 {
  font-size: 18px;
  margin: 0 0 10px 0;
  text-align: center;
}

/* 검색바와 상단 인원수 */
.search-bar {
  display: flex;
  gap: 5px;
  justify-content: space-between;
  align-items: center;
}

.search-bar select,
.search-bar input {
  padding: 8px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  flex: 1;
}

.search-bar input {
  flex: 2; /* 검색창은 더 길게 */
}

#member-count {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background-color: #0056b3;
  padding: 5px 8px;
  border-radius: 5px;
  text-align: center;
  flex-shrink: 0;
}

/* 메인 콘텐츠 */
.main {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

/* 명함 카드 */
/* 명함 카드 */
.namecard {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 8px; /* 행 간 간격 */
  padding: 8px; /* 내부 패딩을 줄여 높이 감소 */
  height: 40px; /* 전체 행 높이를 70px로 고정 */
  justify-content: space-between; /* 콘텐츠 간격 조정 */
}

.namecard .info {
  display: flex;
  justify-content: space-between;
  align-items: center; /* 세로 중앙 정렬 */
  width: 100%;
}

/* 좌측 정보 (이름, 회사명) */
.namecard .info .left .name {
  font-size: 14px; /* 폰트 크기 감소 */
  font-weight: bold;
  margin: 0;
}

.namecard .info .left .company {
  font-size: 12px; /* 폰트 크기 감소 */
  color: #666;
  margin-top: 3px; /* 간격 축소 */
}

/* 우측 정보 (지역) */
.namecard .info .right {
  font-size: 12px; /* 폰트 크기 감소 */
  font-weight: bold;
  color: #333;
  text-align: right;
  flex-shrink: 0;
}


/* 스크롤 스타일 */
.main::-webkit-scrollbar {
  width: 8px;
}

.main::-webkit-scrollbar-thumb {
  background-color: #007bff;
  border-radius: 2px;
}

.main::-webkit-scrollbar-track {
  background-color: #f4f4f9;
}
