body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f2f4f7;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
  font-size: 1.6rem;
}

.description {
  text-align: center;
  font-size: 15px;
  margin-top: -10px;
  margin-bottom: 10px;
  color: #2d3436;
  line-height: 1.6;
}

.price-box {
  text-align: center;
  font-size: 15px;
  margin-bottom: 25px;
  color: #2c3e50;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.price-box p {
  margin: 6px 0;
  font-weight: 500;
}

.price-box strong {
  color: #007bff;
}

.price-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin-right: 3px;
  vertical-align: middle;
  border-radius: 4px;
  transform: translateY(-2px); /* 👈 이미지 살짝 위로 */
}


label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  font-weight: 600;
  color: #34495e;
}

input[type="number"],
input[type="text"] {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  background-color: #fafafa;
  margin-bottom: 1px;
}

button {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  background-color: #007bff;
  color: white;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

button:hover {
  background-color: #0056b3;
}

.result {
  margin-top: 30px;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #dee2e6;
}

.result p {
  margin: 12px 0;
  font-size: 16px;
  color: #2c3e50;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.result strong {
  color: #007bff;
}

.warning {
  font-size: 13px;
  color: #d35400;
  margin-top: 10px;
  text-align: left;
  line-height: 1.5;
}

.card {
  max-width: 600px;
  margin: 35px auto;
  background-color: #ffffff;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.card h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #2c3e50;
}

.sub-description {
  font-size: 14px;
  color: #555;
  margin-top: -10px;
  margin-bottom: 20px;
  text-align: left;
  line-height: 1.6;
}

#requiredNGYResult {
  white-space: pre-line;
  margin-top: 10px;
  color: #333;
  font-weight: 500;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 12px;
}

.preset-buttons button {
  flex: 1 1 48%;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.preset-buttons button:hover {
  background-color: #0056b3;
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 20px;
  }

  h1 {
    font-size: 1.4rem;
  }

  input[type="number"],
  input[type="text"],
  button {
    font-size: 14px;
    padding: 12px;
  }

  .description,
  .price-box,
  .result p,
  .card h2,
  .card p,
  .sub-description {
    font-size: 13.5px;
  }
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper input.has-clear {
  width: 100%;
  padding-right: 36px;
  box-sizing: border-box;
}

.clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #aaa;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  cursor: pointer;
}

.clear-btn:hover {
  color: #333;
}

/* 분석기, 예산 리포트 결과 상자 */
.card p#futureValuationResult,
.card p#budgetRewardResult {
  background: #fff;
  padding: 12px 16px;
  border: 1px dashed #ccc;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-line;
  margin-top: 10px;
}

.card p strong {
  font-weight: bold;
  color: #1c3faa;
}
.date-display {
  text-align: center;
  font-size: 14px;
  color: #2c3e50;
  margin-bottom: 10px;
  font-weight: 600;
}

.side-info-box {
  position: sticky;
  top: 100px;
  float: right;
  width: 240px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  color: #2c3e50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-left: 30px;
  line-height: 1.6;
}

/* 공통 스타일 */
.side-info-box {
  position: fixed;
  z-index: 9999;
  font-size: 13px;
  line-height: 1.5;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  max-width: fit-content;
}

/* 펼친 상태 */
.side-info-box:not(.collapsed) {
  padding: 14px 16px;
  border-radius: 12px;
  background-color: #fff;
  width: fit-content;
  max-width: 90vw;
}

/* 축소 상태 */
.side-info-box.collapsed {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 8px 12px;
  border-radius: 8px;
  width: fit-content;
  max-width: 90vw;
}

/* 내용 숨김 */
.side-info-box.collapsed .side-box-content {
  display: none;
}

/* 모바일 위치: 오른쪽 상단 끝 */
@media (max-width: 768px) {
  .side-info-box {
    top: 10px;
    right: 10px;
    left: auto;
    transform: none;
  }
}

/* PC 위치: 기존처럼 오른쪽 상단 */
@media (min-width: 769px) {
  .side-info-box {
    top: 120px;
    right: 20px;
    left: auto;
    transform: none;
  }

  .side-info-box.collapsed {
    position: fixed;
    top: 120px;
    right: 20px;
  }
}
/* 배경색 & 텍스트 스타일 조정 */
.side-info-box {
  background-color: #eaf6ff !important; /* 밝은 하늘색 배경 */
}

/* 토글 버튼 스타일 (사이드 리포트 보기/숨기기) */
#sideBoxToggle {
  font-weight: bold;
  font-size: 14.5px;
}

/* 결과값 텍스트 모두 진하게 */
.side-box-content p,
.side-box-content span {
  font-weight: 600;
  color: #2c3e50;
}

/* 수익률 색상 */
#floatingProfitRate.positive {
  color: red;
}
#floatingProfitRate.negative {
  color: #3399cc;
}
#floatingProfitRate.positive {
  color: red;
}
#floatingProfitRate.negative {
  color: #3399cc;
}
