body {
  margin: 0;
  background-color: #f4f5f7;
  color: #333;
  font-family: sans-serif;
  /* 기본 폰트 추가 */
}

/* 톱바 높이만큼 공간 확보 */
#app-container {
  padding-top: 60px;
  /* 톱바 높이와 동일하게 설정 */
}

/* 사이드바와 메인 콘텐츠를 가로로 배치 */
#main-wrapper {
  display: flex;
}

.main {
  /* 사이드바 너비만큼 왼쪽 마진을 주어 위치 조정 */
  margin-left: 200px;
  padding: 24px;
  width: 100%;
  transition: margin-left 0.3s ease-in-out;
}

.main-container {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
}

/* 사이드바가 닫혔을 때 메인 콘텐츠가 전체 너비를 차지하도록 설정 */
body.sidebar-collapsed .main {
  margin-left: 0;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 24px;
}

/* 스크롤 버튼 스타일 (기존 코드 유지) */
#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  background-color: #2563EB;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#scrollTopBtn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  background-color: #1d4ed8;
}

.feed-list-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* 카드 사이 간격 */
  max-width: 700px;
  /* 피드 최대 너비 (선택 사항) */
  margin: 0 auto;
  /* 가운데 정렬 */
}

.feed-placeholder {
  text-align: center;
  padding: 4rem;
  color: #6b7280;
  font-size: 1rem;
  background-color: #fff;
  border-radius: 12px;
}

/* --- [추가] 피드 카드 --- */
.feed-card {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: box-shadow 0.2s ease-in-out;
}

.feed-card:hover {
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.08);
}

/* 카드 헤더 (유형, 시간) */
.feed-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.feed-type-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #007bff;
  /* 파란색 */
  background-color: #e7f3ff;
  padding: 4px 8px;
  border-radius: 6px;
}

/* 다른 유형을 위한 스타일 (예시) */
.feed-type-label.export {
  background-color: #e6f7ff;
  color: #0056b3;
}

.feed-type-label.usedCar {
  background-color: #e6fffb;
  color: #008767;
}

.feed-timestamp {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* 카드 본문 (이미지 + 내용) */
.feed-card-body {
  display: flex;
  gap: 16px;
  padding: 16px;
}

.feed-image-wrapper {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #e5e7eb;
  border: 1px solid #d3d3d3;
}

.feed-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* flex 아이템이 줄어들 수 있도록 */
}

.feed-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-vehicle-info {
  font-size: 0.95rem;
  color: #4b5563;
  margin: 0 0 12px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  align-items: center;
  /* 태그를 아래쪽에 붙임 */
}

.feed-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 8px;
  align-items: center;
}

.location-tag {
  background-color: #f3f4f6;
  color: #4b5563;
}

.requester-type-tag {
  background-color: #e4effb;
  color: #2e66ff;
  font-weight: 600;
}

.condition-tag {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* 카드 푸터 (버튼) */
.feed-card-footer {
  padding: 12px 16px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  justify-content: flex-end;
  /* 버튼 오른쪽 정렬 */
  align-items: center;
  gap: 10px;
}

.feed-detail-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.feed-detail-link:hover {
  background-color: #f3f4f6;
  color: #1f2937;
}

.feed-action-btn {
  /* 공급자용 '견적 제출' 버튼 */
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background-color: #2563EB;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.feed-action-btn:hover {
  background-color: #1d4ed8;
}

@media (max-width: 768px) {
  .main {
    margin-left: 0;
    padding: 0px;
  }

  #app-container {
    padding-top: 48px;
  }

  .main-container {
    padding: 1.2rem;
  }

  .feed-card-body {
    padding: 6px;
    gap: 8px;
  }

  .feed-image-wrapper {
    width: 80px;
    height: 80px;
  }

  .feed-title {
    font-size: 1.05rem;
    margin: 1px 0 2px 0;
  }

  .feed-vehicle-info {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }

  .feed-list-container {
    gap: 0.5rem;
  }

  /* 카드 헤더 (유형, 시간) */
  .feed-card-header {
    padding: 6px 8px;
  }

  .feed-card-footer {
    padding: 6px 8px;
  }

  .feed-tag {
    font-size: 0.7rem;
  }

  .feed-action-btn {
    font-size: 0.8rem;
    padding: 4px 10px;
  }
}


/* 스켈레톤 */
.thumbnail.skeleton,
.modal-quote-thumb.skeleton,
.feed-image-wrapper.skeleton {
  background-color: #e6e6e6;
  background-image: none !important;
  position: relative;
  overflow: hidden;
}

.feed-image-wrapper.skeleton .feed-thumbnail {
  visibility: hidden;
}

.thumbnail.skeleton::before,
.modal-quote-thumb.skeleton::before,
.feed-image-wrapper.skeleton::before {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgb(199 199 199), #ffffff00);
  animation: shimmer 0.8s infinite;
  z-index: 1;
}

/* 반짝이는 효과 애니메이션 */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}