@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;600&display=swap');

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Noto Sans KR', 'Segoe UI', sans-serif;
  background-color: #f5f7fa; /* 연한 그레이톤 배경 */
  color: #223344; /* 진한 네이비 텍스트 */
  display: flex;
  flex-direction: column;
}

/* Header */
#header {
  height: 60px;
  background: #e1e8f0; /* 부드러운 연회색-파란 톤 */
  border-bottom: 1px solid #b0b8c1;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #223344;
}

.logo {
  font-size: 17px;
  font-weight: bold;
  color: #334a65;
}

.nav a {
  text-decoration: none;
  color: #556677;
  margin-right: 12px;
}
.nav span {
  color: #445566;
  font-weight: 500;
}

/* Main Container */
#main-container {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* Map Section */
#map-section {
  flex: 1;
  position: relative;
  padding: 2px;
  box-sizing: border-box;
  background-color: #ffffff; /* 흰색 배경으로 강조 */
}

#map {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 1.5px solid rgba(34, 51, 68, 0.2); /* 연한 네이비 반투명 */
  box-shadow: 0 0 12px rgba(34, 51, 68, 0.12); /* 은은한 그림자 */
  background-color: white;
}

/* Popup */
.ol-popup {
  position: absolute;
  background-color: #f0f3f7;
  box-shadow: 0 2px 6px rgba(34,51,68,0.15);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #a3b1c2;
  font-size: 13px;
  z-index: 1000;
  color: #223344;
  min-width: 300px;     /* ✅ 팝업 기본 너비 지정 */
  max-width: 450px;     /* ✅ 너무 커지지 않도록 제한 */
  word-wrap: break-word; /* ✅ 내용 줄바꿈 보장 */
}

/* Map Border */
.map-bordered {
  border: 2px solid #a3b1c2;
  box-shadow: 0 0 8px rgba(34,51,68,0.2);
}

/* Sidebar */
#sidebar {
  width: 25%;
  min-width: 200px;
  max-width: 70%;
  background: #e9eff7; /* 연한 블루 그레이 배경 */
  border-left: 1px solid #a3b1c2;
  padding: 18px;
  overflow-y: auto;
  font-size: 13px;
  box-sizing: border-box;
  color: #223344;
}

#sidebar label {
  display: block;
  margin-bottom: 6px;
  color: #334a65;
}

#sidebar button {
  margin-top: 6px;
  margin-bottom: 12px;
  background-color: #334a65;
  border: none;
  color: white;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#sidebar button:hover {
  background-color: #223344;
}


/* 드래그 핸들 */
#resizer {
  width: 1px;
  cursor: col-resize;
  background: #8899aa;
}

/* 원 반경 입력 */
#circleRadiusInput {
  width: 45px;
  text-align: center;
  margin-left: 4px;
  border: 1px solid #a3b1c2;
  border-radius: 4px;
  padding: 2px 4px;
  background-color: #f0f3f7;
  color: #223344;
}

/* Footer */
#footer {
  height: 40px;
  background: #e1e8f0;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  color: #445566;
  border-top: 1px solid #a3b1c2;
}

.tool-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

#sidebar input[type="number"] {
  width: 45px;
  text-align: center;
  padding: 2px 4px;
  border: 1px solid #a3b1c2;
  border-radius: 4px;
  background-color: #f0f3f7;
  color: #223344;
}

