/* 전체 컨테이너 스타일 */
.entry-content {
   margin-top: 5px !important; 
   padding: 0;
}

.forecast-container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 15px;
   font-family: 'Malgun Gothic', Arial, sans-serif;
   background: #f8f9fa;
   min-height: auto;
   height: auto;
}

/* 제목 스타일 */
.forecast-title {
   text-align: center;
   font-size: 18px;
   font-weight: bold;
   color: white;
   margin-bottom: 15px;
   padding: 12px;
   background: #667eea;
   border-radius: 8px;
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 공통 테이블 스타일 */
.forecast-table {
   width: 100%;
   max-width: 1200px;
   margin: 0 auto 12px auto;
   border-collapse: collapse;
   background: white;
   border-radius: 8px;
   overflow: hidden;
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.forecast-table th,
.forecast-table td {
   padding: 5px 10px;
   border: 1px solid #e1e8ed;
   vertical-align: middle;
   font-size: 13px;
   line-height: 1.2;
}

.forecast-table th {
   background: #667eea;
   color: white;
   font-weight: 600;
   text-align: center;
   font-size: 14px;
}

.forecast-table td {
   background: white;
}

/* 입력 폼 테이블 스타일 */
.input-table {
   margin-bottom: 15px;
}

.input-table th {
   background: #f8f9fa;
   color: #495057;
   font-weight: 600;
   width: 15%;
}

/* 입력 필드 스타일 */
.forecast-input {
   border: 1.5px solid #495057;
   padding: 6px 8px !important;
   font-size: 13px;
   transition: border-color 0.3s ease;
   margin: 8px 0;
   border-radius: 4px;
}

.forecast-input:focus {
   outline: none;
   border-color: #667eea;
   box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.forecast-input.amount {
   width: 150px;
   text-align: right;
   color: #e74c3c;
   font-weight: bold;
   font-size: 16px;
   padding: 8px 10px !important;
   border: 2px solid #495057;
}

.forecast-input.rate {
   width: 100px;
   text-align: right;
   color: #e74c3c;
   border: 2px solid #495057;
   font-size: 16px;
   padding: 8px 10px !important;
   font-weight: bold;
}

/* 버튼 스타일 */
.forecast-btn {
   background: #28a745;
   color: white;
   border: none;
   padding: 8px 14px;
   border-radius: 4px;
   cursor: pointer;
   font-size: 13px;
   font-weight: 500;
   transition: all 0.3s ease;
   white-space: nowrap;
   margin-left: 5px;
}

.forecast-btn:hover {
   transform: translateY(-1px);
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 계산 버튼 스타일 */
.forecast-btn.calc-btn {
   background: #17a2b8;
}

/* 사정율 랜덤 계산 버튼 스타일 */
.forecast-btn.random-btn {
   background: #fd7e14;
}

/* 라디오 버튼 스타일 */
.radio-group {
   display: flex;
   gap: 12px;
   align-items: center;
}

.radio-group label {
   display: flex;
   align-items: center;
   gap: 4px;
   cursor: pointer;
   font-size: 13px;
   color: #495057;
}

.radio-group input[type='radio'] {
   margin: 0;
}

/* 결과 테이블 스타일 */
.result-table {
   margin-bottom: 15px;
}

.result-table th {
   background: #f8f9fa;
   color: #495057;
   font-weight: 600;
   text-align: right;
   width: 45%;
}

.result-table td {
   color: #2c3e50;
   font-weight: 500;
}

/* 가격 테이블 스타일 */
.price-table {
   margin-bottom: 15px;
}

.price-table th {
   background: #667eea;
   color: white;
   font-weight: 600;
   text-align: center;
   font-size: 14px;
}

.price-table td {
   text-align: center;
   padding: 4px 6px;
}

.price-table .seq-cell {
   background: #f8f9fa;
   font-weight: 600;
   color: #495057;
}

.price-table .data-cell {
   font-weight: 500;
   color: #2c3e50;
}

.price-table .percent-cell {
   color: #667eea;
   font-weight: 500;
}

/* 안내 문구 */
.info-text {
   text-align: center;
   color: #6c757d;
   font-size: 12px;
   margin: 10px 0;
   padding: 8px;
   background: #e9ecef;
   border-radius: 4px;
   border-left: 4px solid #667eea;
}

/* 입력 힌트 */
.input-hint {
   font-size: 11px;
   color: #6c757d;
   margin-top: 3px;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
   .forecast-container {
      padding: 8px;
   }

   .forecast-title {
      font-size: 18px;
      padding: 10px;
      margin-bottom: 12px;
   }

   .forecast-table {
      font-size: 11px;
      margin-bottom: 8px;
   }

   .forecast-table th,
   .forecast-table td {
      padding: 4px 6px;
   }

   /* 입력 폼 테이블 반응형 */
   .input-table th {
      width: 20%;
      font-size: 11px;
   }

   .input-table td {
      font-size: 11px;
   }

   .forecast-input {
      font-size: 11px;
      padding: 3px 6px;
   }

   .forecast-input.amount {
      width: 120px;
      font-size: 16px;
      padding: 8px 10px !important;
   }

   .forecast-input.rate {
      width: 80px;
      font-size: 16px;
      padding: 8px 10px !important;
   }

   .forecast-btn {
      font-size: 13px;
      padding: 8px 14px;
   }

   .radio-group {
      flex-direction: column;
      gap: 6px;
   }

   .radio-group label {
      font-size: 11px;
   }

   /* 결과 테이블 반응형 */
   .result-table th {
      width: 50%;
      font-size: 11px;
   }

   .result-table td {
      font-size: 11px;
   }

   /* 가격 테이블 반응형 */
   .price-table td {
      padding: 3px 4px;
      font-size: 11px;
   }

   /* 안내 문구 반응형 */
   .info-text {
      font-size: 11px;
      margin: 8px 0;
      padding: 6px;
   }

   .input-hint {
      font-size: 10px;
   }
}

/* 더 작은 화면을 위한 추가 반응형 */
@media (max-width: 480px) {
   .forecast-container {
      padding: 5px;
   }

   .forecast-title {
      font-size: 16px;
      padding: 8px;
   }

   .forecast-table {
      font-size: 10px;
   }

   .forecast-table th,
   .forecast-table td {
      padding: 3px 4px;
   }

   .forecast-input.amount {
      width: 100px;
      font-size: 16px;
      padding: 8px 10px !important;
   }

   .forecast-input.rate {
      width: 70px;
      font-size: 16px;
      padding: 8px 10px !important;
   }

   .forecast-btn {
      font-size: 13px;
      padding: 8px 14px;
   }

   .radio-group label {
      font-size: 10px;
   }

   .result-table th,
   .result-table td {
      font-size: 10px;
   }

   .price-table td {
      font-size: 10px;
      padding: 2px 3px;
   }
}
