/* 베어링 수명 계산기 & 진단 도구 - 전용 스타일시트 */

.bearing-calculator-container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.bearing-calculator-container h1 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 2.2em;
}

/* 베어링 수명 계산기 섹션 */
.bearing-life-calculator-section {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
}

.bearing-life-calculator-section h2 {
  color: #495057;
  margin-bottom: 20px;
  font-size: 1.5em;
}

/* 베어링 입력 그룹 */
.bearing-input-group {
  margin-bottom: 20px;
}

.bearing-input-group label {
  display: block;
  margin-bottom: 8px;
  color: #495057;
  font-weight: 500;
}

.bearing-input-group input[type="number"],
.bearing-input-group select {
  width: 100%;
  padding: 10px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.bearing-input-group input[type="number"]:focus,
.bearing-input-group select:focus {
  outline: none;
  border-color: #f5576c;
}

/* 베어링 액션 버튼 */
.bearing-action-button {
  width: 100%;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s;
  margin-top: 20px;
}

.bearing-action-button:hover {
  transform: translateY(-2px);
}

/* 베어링 수명 결과 박스 */
.bearing-result-box {
  background: #e7f5ff;
  border-left: 4px solid #339af0;
  padding: 20px;
  margin-top: 20px;
  border-radius: 8px;
  display: none;
}

.bearing-result-box.bearing-show {
  display: block;
  animation: bearingSlideIn 0.5s ease;
}

@keyframes bearingSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bearing-result-emoji {
  font-size: 48px;
  text-align: center;
  margin: 20px 0;
}

/* 베어링 진행률 바 */
.bearing-progress-bar {
  width: 100%;
  height: 30px;
  background: #e9ecef;
  border-radius: 15px;
  overflow: hidden;
  margin-top: 15px;
}

.bearing-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #FFC107, #FF5722);
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

/* 베어링 유지보수 스케줄 */
.bearing-maintenance-schedule {
  background: #fff8e1;
  border-radius: 10px;
  padding: 15px;
  margin-top: 15px;
}

.bearing-maintenance-schedule h4 {
  margin-top: 0;
  color: #f57c00;
}

/* 베어링 팁 카드 */
.bearing-tip-card {
  background: #f0fff4;
  border: 2px dashed #51cf66;
  border-radius: 10px;
  padding: 15px;
  margin-top: 20px;
}

.bearing-tip-card strong {
  color: #2b8a3e;
}

/* 베어링 진단 섹션 */
.bearing-diagnosis-section {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
}

.bearing-diagnosis-section h2 {
  color: #495057;
  margin-bottom: 20px;
  font-size: 1.5em;
}

.bearing-diagnosis-instruction {
  color: #6c757d;
  margin-bottom: 20px;
}

.bearing-symptom-counter {
  font-weight: bold;
  color: #f5576c;
}

/* 베어링 증상 그리드 */
.bearing-symptom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.bearing-symptom-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  position: relative;
}

.bearing-symptom-card:hover {
  border-color: #f5576c;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(245, 87, 108, 0.2);
}

.bearing-symptom-card.bearing-selected {
  background: #ffe3e3 !important;
  border-color: #f5576c !important;
  box-shadow: 0 0 0 3px rgba(245, 87, 108, 0.2) !important;
  transform: scale(1.02);
}

.bearing-symptom-card.bearing-selected::before {
  content: "?";
  position: absolute;
  top: 5px;
  right: 10px;
  background: #f5576c;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.bearing-symptom-card:active {
  transform: scale(0.98);
}

.bearing-symptom-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.bearing-symptom-card p {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

/* 베어링 진단 결과 */
.bearing-diagnosis-result {
  background: #fff4e6;
  border-left: 4px solid #ff922b;
  padding: 20px;
  margin-top: 20px;
  border-radius: 8px;
  display: none;
}

.bearing-diagnosis-result.bearing-show {
  display: block;
  animation: bearingSlideIn 0.5s ease;
}

.bearing-diagnosis-result h3 {
  margin-top: 0;
  color: #e8590c;
}

/* 베어링 진단 상태 표시 */
.bearing-status-critical {
  background: #dc3545;
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
}

.bearing-status-warning {
  background: #fd7e14;
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
}

.bearing-status-caution {
  background: #ffc107;
  color: #212529;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
}

.bearing-status-good {
  background: #28a745;
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
}

/* 베어링 경고 박스 */
.bearing-alert-box {
  background: #ffebee;
  border-left: 4px solid #f44336;
  padding: 15px;
  margin-top: 15px;
  border-radius: 5px;
}

.bearing-alert-box strong {
  color: #d32f2f;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .bearing-calculator-container {
    padding: 20px;
    margin: 10px;
  }

  .bearing-symptom-grid {
    grid-template-columns: 1fr;
  }

  .bearing-calculator-container h1 {
    font-size: 1.8em;
  }
}