:root {
  --primary-color: #4361ee;
  --secondary-color: #3f37c9;
  --accent-color: #4cc9f0;
  --light-bg: #f8f9fa;
  --dark-text: #212529;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--dark-text);
  overflow-x: hidden;
}

/* 네비게이션 스타일 */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
  z-index: 100;
}

.navbar-brand {
  font-weight: 700;
}

.nav-link {
  color: var(--dark-text);
  font-weight: 500;
}

/* 버튼 스타일 */
.btn-custom-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-custom-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

.btn-outline-custom {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-custom:hover {
  background-color: var(--primary-color);
  color: white;
}

/* 히어로 섹션 스타일 */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 100px 0;
}

.hero-image {
  max-width: 90%;
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 섹션 스타일 */
.section-padding {
  padding: 80px 0;
}

.bg-light-custom {
  background-color: var(--light-bg);
}

.cta-section {
  background-color: var(--primary-color);
  color: white;
}

/* 특징 섹션 스타일 */
.features-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* 테스티모니얼 스타일 */
.testimonial-card {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

/* 데모 브라우저 스타일 */
.demo-browser {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.demo-browser-header {
  background: #f1f3f5;
  padding: 0.6rem;
  border-bottom: 1px solid #dee2e6;
}

.browser-dot {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

.dot-red { background-color: #ff5f57; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #28ca41; }

.avatar {
  height: 100px;
}






.side-panels {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  /* padding: 1rem 0; */
}

/* 제어 패널 스타일 */
.control-panel {
  background: white;
  border-radius: 8px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

/* 지오코드 목록 스타일 */
/* .geocode-list {
  max-height: 60vh;
  overflow-y: auto;
} */

.geocode-list ol {
  padding-left: 1.25rem;
}

.geocode-item {
  cursor: pointer;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eaeaea;
}

.geocode-item:hover {
  background-color: #f8f9fa;
}

.geocode-item.active {
  background-color: rgba(67, 97, 238, 0.1);
  border-left: 3px solid var(--primary-color);
}

/* 모달 스타일 */
.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.modal-header {
  border-bottom: 1px solid #eaeaea;
  padding: 1.25rem 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid #eaeaea;
  padding: 1.25rem 1.5rem;
}

/* 폼 요소 스타일 */
.form-control, .form-select {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}




/* 기타 UI 요소 스타일 */

/* .toggle-sidebar:hover {
  background-color: var(--light-bg);
} */

/* .toggle-sidebar-highlight {
  animation: pulse-highlight 1.5s ease-in-out 3;
  background-color: var(--primary-color);
  color: white;
} */

/* 토글 사이드바 버튼 애니메이션 */
@keyframes pulse-highlight {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.7);
  }
  
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(67, 97, 238, 0);
  }
  
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
  }
}

.demo-tool-title {
  text-align: center;
}

.check-option {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.check-option input {
  margin-right: 0.5rem;
}

.download-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.alert-success-custom {
  background-color: rgba(25, 135, 84, 0.1);
  border-color: rgba(25, 135, 84, 0.2);
  color: #198754;
}

/* #geocode-list {
  margin-top: 1rem;
  overflow-y: auto;
} */

.geocode-list
/* 지오코드 목록 스타일 - 기존 스타일을 수정/추가
.geocode-list {
  max-height: 60vh;
  overflow-y: auto;
  padding: 0.5rem;
} */

.geocode-list ol {
  padding-left: 0;
  margin-bottom: 0;
}

/* 결과 목록 스타일 개선 */
#selectable {
  list-style-type: none;
  counter-reset: item;
}

#selectable li {
  position: relative;
  padding: 0.8rem 0.5rem 0.8rem 2.5rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  border: 1px solid #eaeaea;
  background-color: white;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
}

#selectable li:before {
  content: counter(item);
  counter-increment: item;
  position: absolute;
  left: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--primary-color);
  color: white;
  /* font-weight: bold; */
  font-size: 0.7rem;
  border-radius: 50%;
}

/* 검색결과 상태 표시 */
#selectable li.geocode-success:before {
  background-color: #198754; /* 성공 - 녹색 */
}

#selectable li.geocode-success-similar:before {
  background-color:orchid !important;
}

#selectable li.geocode-failed:before {
  background-color: #dc3545; /* 실패 - 빨간색 */
}

#selectable li:hover {
  background-color: rgba(67, 97, 238, 0.05);
  border-color: rgba(67, 97, 238, 0.2);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

#selectable li.active {
  background-color: rgba(67, 97, 238, 0.1);
  border-color: var(--primary-color);
  border-left-width: 3px;
  box-shadow: 0 2px 8px rgba(67, 97, 238, 0.15);
}

/* 아이템 내 정보 영역 */
.geocode-item-content {
  display: flex;
  flex-direction: column;
}

.geocode-item-address {
  font-weight: 500;
  margin-bottom: 0.3rem;
  word-break: break-all;
}

.geocode-item-coords {
  font-size: 0.8rem;
  color: #6c757d;
}

/* 스크롤바 스타일 개선 */
.geocode-list::-webkit-scrollbar {
  width: 6px;
}

.geocode-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 6px;
}

.geocode-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 6px;
}

.geocode-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.hide {
    display: none;
}

.show {
    display: block;
}


/* 알림 애니메이션 효과 */
.alert {
  transition: opacity 0.3s ease-in-out;
}

#geocode-result-alert {
  position: relative;
  margin-top: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#geocode-result-alert.alert-success {
  background-color: rgba(25, 135, 84, 0.1);
  border-color: rgba(25, 135, 84, 0.2);
  color: #198754;
}

#geocode-result-alert.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

