:root {
  color-scheme: light;
}

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;
}

/* 탭 관련 요소 */
.tabs-nav-container {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid #E5E7EB;
}

/* 유튜브 가이드 버튼 */
.yt-guide-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.yt-guide-btn:hover {
  opacity: 1;
}

/* 유튜브 가이드 모달 */
.yt-guide-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-guide-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.yt-guide-modal-content {
  position: relative;
  width: 340px;
  aspect-ratio: 9 / 16;
  max-height: 85vh;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.yt-guide-modal-content iframe {
  width: 100%;
  height: 100%;
}

.yt-guide-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.tab-link {
  padding-bottom: 15px;
  margin-right: 2rem;
  text-decoration: none;
  font-size: 1rem;
  color: #6B7280;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out;
  white-space: nowrap;
}

.tab-link:last-child {
  margin-right: 0;
}

.tab-link:hover {
  color: #374151;
}

.tab-link.active-tab {
  color: #2563EB;
  border-bottom-color: #2563EB;
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* EPC 지원 브랜드 슬라이더 */
.epc-brands-section {
  margin: 16px 0;
  overflow: hidden;
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}

.epc-brands-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4b5563;
  margin: 0 0 10px 4px;
}

.epc-brands-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.epc-brands-slider::-webkit-scrollbar {
  display: none;
}

.epc-brand-card {
  flex: 0 0 auto;
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  scroll-snap-align: start;
  cursor: default;
}

.epc-brand-logo {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.epc-brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.epc-brand-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #111827;
}

.epc-brand-maker {
  font-size: 0.65rem;
  color: #9ca3af;
}

/* 차대번호 조회하기 및 인푼 로직 */
.vin-lookup-container {
  max-width: 100%;
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vin-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

#vin-input {
  flex-grow: 1;
  padding: 13px 16px;
  font-size: 1rem;
  border: 1px solid #2563EB;
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#vin-input:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

#vin-input:disabled {
  background-color: #f3f4f6;
  border-color: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
}

.camera-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.camera-btn {
  padding: 10px 20px;
  background-color: #e5e7eb;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.camera-btn:hover {
  background-color: #d1d5db;
}

.camera-btn svg {
  color: #374151;
}

.vin-message {
  margin: 0px 6px;
  font-size: 0.94rem;
  min-height: 1.2em;
  /* 메시지 영역 높이 고정 */
}

.vin-message.error {
  color: #ef4444;
  /* 빨간색 */
}

.vin-message.success {
  color: #10b981;
  /* 초록색 */
}

.lookup-btn {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background-color: #386cff;
  border: none;
  border-radius: 10px;
  margin-top: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.lookup-btn:hover {
  background-color: #254ec3;
}

/*  차량 선택 목록 스타일  */
.vehicle-selection-container {
  margin-top: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  overflow: hidden;
}

.vehicle-selection-header {
  padding: 14px 18px;
  background-color: #f7f7f7;
  color: #374151;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vehicle-selection-header svg {
  width: 20px;
  height: 20px;
  color: #6b7280;
}

.vehicle-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.vehicle-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  border-bottom: 1px solid #d8d8d8;
}

.vehicle-item:last-child {
  border-bottom: none;
}

.vehicle-item:hover {
  background-color: #ecf5ff;
}

.vehicle-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vehicle-item-title {
  font-weight: 600;
  color: #29313b;
  font-size: 1rem;
}

.vehicle-item-desc {
  font-size: 0.84rem;
  color: #6b7280;
}

.vehicle-item-arrow {
  width: 20px;
  height: 20px;
  color: #4090f9;
  transition: color 0.2s ease-in-out;
}

.vehicle-item:hover .vehicle-item-arrow {
  color: #374151;
}

/* --- 차량 상세 정보 카드 --- */
.vehicle-details-card {
  margin-top: 20px;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(56, 60, 67, .05), 0 1px 3px 0 rgba(56, 60, 67, .15);
  padding: 20px;
}

.vehicle-details-top {
  display: flex;
  align-items: center;
  gap: 20px;
}

.vehicle-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  flex-shrink: 0;
}

.vehicle-info-group {
  display: flex;
  flex-direction: column;
}

.info-line {
  margin: 0;
  line-height: 1.5;
}

.info-line.title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}

.info-line.subtitle {
  font-size: 1rem;
  color: #374151;
}

.info-line.year {
  font-size: 0.9rem;
  color: #6b7280;
}

.divider {
  border: none;
  border-top: 1px solid #f3f4f6;
  margin: 16px 0;
}

.vehicle-details-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  font-size: 0.95rem;
}

.spec-label {
  color: #6b7280;
  font-weight: 500;
}

.spec-value {
  color: #1f2937;
  font-weight: 600;
}

/* 최근 차대 조회 목록 스따일 */
.recent-searches {
  margin-top: 16px;
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}

.recent-searches-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4b5563;
  margin: 0 0 10px 4px;
}

.recent-vin-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex-direction: column;
}

.recent-vin-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background-color: #e5e5e5;
  color: #272727;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.recent-vin-item:hover {
  background-color: #e0e7ff;
  border-color: #c7d2fe;
}

.recent-vin-item .vin-text {
  font-weight: 600;
}

/* --- 견적 진행 목록 카드 스타일 --- */
.estimate-list-container {
  display: flex;
  flex-direction: column;
}

.estimate-item-card {
  margin-top: 16px;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 20px;
  cursor: pointer;
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.estimate-item-card:hover {
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.estimate-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.vehicle-info-summary .title {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.vehicle-info-summary .subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 4px 0 0 0;
}

.estimate-meta .estimate-no {
  font-size: 1rem;
  font-weight: 700;
  color: #656565;
  text-align: right;
}

.estimate-meta .date {
  white-space: nowrap;
  font-size: 0.85rem;
  color: #9ca3af;
  text-align: right;
  margin-top: 4px;
}

.estimate-body .parts-list {
  font-size: 0.95rem;
  color: #374151;
  margin: 0;
  padding-left: 20px;
  /* 들여쓰기 효과 */
}

.no-estimates-message {
  margin-top: 20px;
  text-align: center;
  padding: 60px;
  color: #2971ff;
  background-color: #d6eaff;
  border-radius: 12px;
}

/* 견적 상태 텍스트 스타일 */
.estimate-status {
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
  margin-bottom: 4px;
}

/* '견적 노출 대기중' 상태 (주황색) */
.estimate-status.img-submitted {
  color: #fe9920;
}

/* '견적 노출 대기중' 상태(img-submitted)인 카드의 테두리를 주황색으로 변경 */
.estimate-item-card[data-status="img-submitted"] {
  border: 1.5px solid #f4b76f;
}

/* '견적 노출중' 상태 (초록색) */
.estimate-status.approved {
  color: #2e66ff;
}

/* '견적 노출중' 상태(img-submitted-approval)인 카드의 테두리를 초록색으로 변경 
.estimate-item-card[data-status="img-submitted-approval"] {
  border: 1.5px solid #00b011;
}*/

/* '견적 노출 전' 상태 (회색) */
.estimate-status.rejected {
  color: #b5b5b5;
}

/* '견적 노출중' 상태(img-submitted-reject-personal-info)인 카드의 테두리를 초록색으로 변경 */
.estimate-item-card[data-status="img-submitted-reject-personal-info"] {
  border: 1.5px solid #dcdcdc;
}

/* 더보기(...) 메뉴 */
.estimate-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.estimate-more-menu {
  position: relative;
  flex-shrink: 0;
}

.more-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #9ca3af;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s, color 0.15s;
}

.more-menu-btn:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.more-menu-dropdown {
  position: absolute;
  right: 0;
  bottom: 100%;
  margin-bottom: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  min-width: 120px;
  z-index: 100;
  overflow: hidden;
}

.more-menu-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: #ef4444;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s;
}

.more-menu-item:hover {
  background-color: #fef2f2;
}

/* '사진 첨부 안됨' 상태 (빨간색) */
.estimate-status.img-pending {
  color: #ef4444;
}

/* '사진 첨부 안됨' 상태(pending)인 카드의 테두리를 빨간색으로 변경 */
.estimate-item-card[data-status="img-pending"] {
  border: 2.5px solid #ff8080;
}

/* EPC 요청 상태 스타일 (보라색 계열) */
.estimate-status.epc-requested {
  color: #ababab;
  /* 보라색 */
}

/* 추가요청 */
.estimate-status.epc-requestedadd {
  color: #ffa2a2;
}


.estimate-item-card[data-type="epc"] {
  border-left: 4px solid #8b5cf6;
  /* 왼쪽 보라색 테두리로 구분 */
}

/* 담당자 확인중 */
.estimate-status.diagram-ready {
  color: #ababab;
}

/* 파란색 (도면 도착) */
.estimate-status.diagram-sent {
  color: #2e66ff;
}

/* 견적 완료 */
.estimate-status.diagram-sent {
  color: #439747;
}

/* 카드 헤더에 타입 배지 추가 */
.request-type-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
  font-weight: 600;
  vertical-align: middle;
}

.request-type-badge.used {
  background-color: #e0e7ff;
  color: #3730a3;
}

.request-type-badge.epc {
  background-color: #f3e8ff;
  color: #6b21a8;
}

/* --- 나의 차량 목록 스타일 --- */

/* 목록 전체 컨테이너 (최근 조회 목록과 동일한 스타일) */
.my-vehicles {
  margin-top: 16px;
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}

/* "나의 차량 목록" 제목 (최근 조회 목록과 동일한 스타일) */
.my-vehicles-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4b5563;
  margin: 0 0 10px 4px;
}

/* 등록된 차량이 없을 때 표시되는 메시지 */
.no-vehicles-message {
  padding: 10px 4px;
  font-size: 0.95rem;
  color: #6b7280;
}

/* VIN 목록 리스트 (최근 조회 목록과 동일한 스타일) */
.my-vin-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex-direction: column;
}

/* 개별 VIN 버튼 (최근 조회 목록과 동일한 스타일) */
.my-vin-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background-color: #e5e5e5;
  color: #272727;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* VIN 버튼에 마우스를 올렸을 때 (최근 조회 목록과 동일한 스타일) */
.my-vin-item:hover {
  background-color: #e0e7ff;
  border-color: #c7d2fe;
}

/* VIN 텍스트 (최근 조회 목록과 동일한 스타일) */
.my-vin-item .vin-text {
  font-weight: 600;
}

/* 중복 견적 알림 모달 스타일 */
.conflict-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  /* 톱바보다 높게 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.conflict-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.conflict-modal-content {
  background-color: #fff;
  padding: 24px;
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.conflict-modal-overlay.visible .conflict-modal-content {
  transform: scale(1);
}

.conflict-header {
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 12px;
}

.conflict-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.conflict-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
}

/* 요약 정보 박스 */
.summary-box {
  background-color: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-label {
  color: #6b7280;
  font-weight: 500;
}

.summary-value {
  color: #1f2937;
  font-weight: 600;
  text-align: right;
}

.highlight-price {
  color: #2e66ff;
  /* 고파츠 블루 */
  font-weight: 700;
  font-size: 1.05rem;
}

/* 부품 목록 태그 */
.parts-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.part-tag {
  background-color: #e4effb;
  color: #2e66ff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* 버튼 그룹 */
.conflict-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.action-btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

/* 메인 버튼 (보러가기) */
.action-btn.primary {
  background-color: #2e66ff;
  color: white;
  box-shadow: 0 2px 4px rgba(46, 102, 255, 0.2);
}

.action-btn.primary:hover {
  background-color: #1d4ed8;
}

/* 보조 버튼 (추가 요청) */
.action-btn.secondary {
  background-color: #ffffff;
  color: #4b5563;
  border: 1px solid #d1d5db;
}

.action-btn.secondary:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

/* 닫기 버튼 */
.action-btn.cancel {
  background-color: transparent;
  color: #9ca3af;
  padding: 10px;
  font-size: 0.9rem;
}

.action-btn.cancel:hover {
  color: #4b5563;
}

@media (max-width: 768px) {
  #app-container {
    padding-top: 45px;
  }

  .main {
    margin-left: 0;
    padding: 0;
  }

  .tabs-nav-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 0;
  }

  .tabs-nav-container::-webkit-scrollbar {
    display: none;
  }

  .tab-link {
    margin-right: 1.2rem;
  }

  .vin-lookup-container {
    margin: 1.5rem auto;
    gap: 0.4rem;
  }

  .camera-btn {
    padding: 10px;
  }

  .vin-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 0.4rem;
    padding-bottom: 3px;
    /* 메시지를 위한 하단 여백 */
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f8f7f7;
  }

  #vin-preview-image-wrapper {
    width: 100%;
    aspect-ratio: 5 / 2;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
  }

  #vin-preview-image {
    width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
  }

  /* 더블 탭으로 확대됐을 때의 스타일 */
  #vin-preview-image.zoomed {
    transform: scale(2.5);
    /* 2.5배 확대 */
    cursor: zoom-out;
  }

  .vin-preview-message {
    color: #ef4444;
    /* 빨간색 */
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    margin-top: 3px;
    margin-bottom: 3px;
    padding: 0 10px;
  }

  .vehicle-selection-container {
    margin-top: 14px;
  }

  .vehicle-selection-header {
    padding: 6px 10px;
    font-weight: 500;
    font-size: 0.90rem;
  }

  .vehicle-item {
    padding: 12px 10px;
  }

  .vehicle-item-content {
    gap: 1px;
  }

  /* 차량 상세 조회 */
  .vehicle-logo {
    width: 80px;
    height: 70px;
  }

  .vehicle-details-card {
    padding: 16px;
  }

  /* 최근 차대 조회 항목 */
  .recent-vin-item {
    display: flex;
    width: 100%;
    align-items: flex-start;
    text-align: left;
    gap: 6px;
    background-color: #ececec;
    color: #4f4f4f;
    font-size: 0.95rem;
    flex-direction: column;
  }

  .estimate-item-card {
    margin-top: 10px;
    padding: 10px;
  }

  .estimate-header {
    padding-bottom: 8px;
    margin-bottom: 6px;
  }

  .recent-vin-list {
    gap: 8px;
  }

  .estimate-status {
    font-size: 0.8;
    margin-bottom: 0px;
  }

  .my-vin-list {
    gap: 8px;
  }

  /* 모바일에서 개별 VIN 버튼 (최근 조회 목록과 동일한 스타일) */
  .my-vin-item {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    background-color: #ececec;
    color: #4f4f4f;
    font-size: 0.95rem;
    flex-direction: column;
  }

  .no-estimates-message {
    margin-top: 20px;
    padding: 20px;
  }

  .main-container {
    padding: 1.2rem;
  }

  .vehicle-info-summary .title {
    font-size: 0.93rem;
  }
}

#loadingOverlay {
  position: fixed;
  /* 화면 전체를 기준으로 위치를 잡음 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(71 71 71 / 70%);
  /* 살짝 반투명한 흰색 배경 */
  display: flex;
  /* 내부 스피너를 중앙 정렬하기 위함 */
  justify-content: center;
  align-items: center;
  z-index: 9999999;
  /* 다른 모든 요소들보다 위에 보이도록 설정 (가장 중요!) */
}

/* 스피너 애니메이션 (기존에 없다면 추가) */
.spinner {
  border: 5px solid #ffffff;
  /* Light grey */
  border-top: 5px solid #005ccd;
  /* Blue */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 0.4s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}