/* 기본 스타일 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: grid;
  grid-template-rows: auto 1fr; /* auto는 nav 높이에 맞게, 1fr는 container가 남은 공간을 차지하도록 설정 */
  height: 100vh;
}

/* AI 플래너 */

#notContainer {
  border-radius: 10px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#bigBox {
  width: 100%;
}

#spinner {
  margin-left: 10px;
  border: 4px solid #555; /* 어두운 회색 */
  border-top: 4px solid #777; /* 어두운 회색 */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#box {
  border-radius: 8px;
  overflow-y: auto;
  height: 80vh;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 720px;
}

#box p {
  align-self: flex-start; /* p 태그는 왼쪽 정렬 */
}

pre {
  border-radius: 5px;
  white-space: pre-wrap; /* 줄바꿈 가능 */
  word-wrap: break-word; /* 긴 단어 잘라서 줄바꿈 */
  overflow-y: auto;
}

/* 팝업 스타일 */
/* .popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border: 1px solid #333;
  padding: 10px;
}
.popup iframe {
  width: 100%;
  height: 100%;
  border: none;
} */
.locationsPopup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border: 1px solid #333;
  padding: 10px;
}
#map {
  width: 100%;
  height: 100%;
}
/* 팝업 배경 */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* #closePopupBtn {
  display: flex;
  align-items: center;
} */

/* 닫기 버튼 */
/* #closePopupBtn {
  position: absolute; 
  top: 100%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  padding: 8px 25px;
  background-color: rgb(255, 70, 70);
  color: rgb(0, 0, 0);
  border: none;
  border-radius: 5px;
  cursor: pointer;
} */

/* 닫기 버튼 */
#locationsClosePopupBtn {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 25px;
  background-color: #dc3545; /* 배경색 solid 빨간색 */
  color: white; /* 글자색 흰색 */
  border: none; /* 테두리 없음 */
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#locationsClosePopupBtn:hover {
  background-color: #c82333; /* 더 진한 빨간색 */
  transform: translate(-50%, -50%) translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.1);
}

/* 구글맵 마커 팝업 */
.card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.card-img-top {
  height: 150px;
  object-fit: cover;
}

.card-body {
  padding: 10px;
}

.card-title {
  font-size: 14px;
  font-weight: bold;
}

.card-text {
  font-size: 12px;
  color: #666;
}

.btn-primary {
  font-size: 12px;
  padding: 5px 10px;
}

.btn.btn-success {
  display: inline-block;
  border-radius: 5px;
  border: 1px solid rgba(74, 144, 226, 0.2) !important;
}

a.btn.btn-links,
.btn.btn-links,
a.btn-links {
  display: inline-block;
  background: rgba(74, 144, 226, 0.1) !important;
  color: #4a90e2 !important;
  border-radius: 5px;
  border: 1px solid rgba(74, 144, 226, 0.2) !important;
}

.btn.btn-links:hover {
  background: rgba(74, 144, 226, 0.15) !important;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
}

.btn-success {
  border: 1.5px solid #4a90e2 !important;
  color: #4a90e2 !important;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  background-color: transparent !important;
  transition: all 0.2s ease;
}

.btn-success:hover {
  background: rgba(74, 144, 226, 0.05) !important;
  border-color: #357abd !important;
  color: #357abd !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
}

#submitBtn {
  width: 100%;
  margin-bottom: 1rem;
  background-color: #4a90e2 !important;
  color: white !important;
  border: none !important;
}

#submitBtn:hover {
  background-color: #357abd !important;
  color: white !important;
}

#saveBtn,
#listBtn {
  width: 100%;
  font-size: 0.9rem;
}

.form-control {
  border: 1.5px solid rgba(74, 144, 226, 0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.1);
}

.form-label {
  color: #2c3e50;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

select.form-control {
  border: 1.5px solid rgba(74, 144, 226, 0.2);
  border-radius: 8px;
}

select.form-control:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.1);
}

#controller {
  padding: 2rem;
  border-radius: 15px;
  border: 1.5px solid rgba(74, 144, 226, 0.2);
  background: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.btn-delete {
  background-color: transparent;
  color: #dc3545;
  border: 1.5px solid rgba(220, 53, 69, 0.5);
  border-radius: 4px;
  transition: all 0.2s ease;
  padding: 0.5rem 2rem;
  font-weight: 500;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.btn-delete:hover {
  background-color: rgba(220, 53, 69, 0.05);
  color: #c82333;
  border-color: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.1);
}

.btn-call {
  background-color: transparent;
  color: #4a90e2;
  border: 1.5px solid rgba(74, 144, 226, 0.5);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-call:hover {
  background-color: rgba(74, 144, 226, 0.05);
  color: #357abd;
  border-color: #357abd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
}

.btn-delete,
.btn-call {
  margin-right: 0rem;
  display: inline-block;
}

.btn-secondary {
  border: 1.3px solid #9ea3a8;
  color: #f3f3f3;
  background-color: #6c757d;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  padding: 0.5rem 2rem;
}

.btn-secondary:hover {
  background-color: #5a6268;
  border-color: #495057;
  color: #f3f3f3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.1);
}
