/* 🌙 Калькулятор цикла сна — тёмная «ночная» тема */

/* Тёмные карточки калькулятора и результатов */
.calc-block,
.result-block {
  background: #0f1e33;
  border: 1px solid #26395c;
}

.calc-intro {
  color: #aab3c3;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 8px 0 0;
}

.calc-block label {
  display: block;
  margin-top: 16px;
  font-weight: bold;
  font-size: 15px;
  color: #e8edf5;
}

/* 🎛 Стилизованные поля ввода */
.calc-block select,
.calc-block input {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #2c3e5e;
  border-radius: 8px;
  font-size: 15px;
  background: #16233b;
  color: #e8edf5;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-block select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234c9aff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.calc-block select option {
  background: #16233b;
  color: #e8edf5;
}

/* Цветовая индикация календаря и времени */
.calc-block input::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
}

.calc-block select:hover,
.calc-block input:hover {
  border-color: #4c9aff;
}

.calc-block select:focus,
.calc-block input:focus {
  outline: none;
  border-color: #4c9aff;
  box-shadow: 0 0 0 3px rgba(76, 154, 255, 0.2);
}

.field-hint {
  display: block;
  color: #7a8699;
  font-size: 12px;
  font-weight: normal;
  margin-top: 3px;
}

.calc-block button {
  margin-top: 22px;
  padding: 12px 24px;
  background: #3f7bd9;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s ease;
}

.calc-block button:hover {
  background: #2f63b8;
}

.calc-block button:active {
  background: #26529c;
}

/* 🎴 Карточка результата */
.result-block h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  color: #9cc7ff;
}

.result-output {
  background: #0b1526;
  border: 1px solid #26395c;
  border-radius: 12px;
}

/* 🌙 Заголовок результата */
.sleep-title {
  font-size: 15px;
  color: #c9d4e5;
  margin: 0 0 14px;
  line-height: 1.5;
}

.sleep-title strong {
  color: #9cc7ff;
}

/* ⏰ Варианты пробуждения / засыпания */
.sleep-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #16233b;
  border: 1px solid #2c3e5e;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.sleep-option.recommended {
  border-color: #4c9aff;
  background: linear-gradient(135deg, #16233b, #1b2c4d);
  box-shadow: 0 0 0 1px rgba(76, 154, 255, 0.25);
}

.sleep-cycle-count {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #24344f;
  color: #9cc7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 15px;
  flex-shrink: 0;
}

.sleep-option.recommended .sleep-cycle-count {
  background: #3f7bd9;
  color: #fff;
}

.sleep-time {
  font-size: 1.35rem;
  font-weight: bold;
  color: #e8edf5;
}

.sleep-dur {
  font-size: 12px;
  color: #7a8699;
  margin-top: 2px;
}

.sleep-tag {
  margin-left: auto;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #24344f;
  color: #9cc7ff;
  white-space: nowrap;
}

.sleep-option.recommended .sleep-tag {
  background: #3f7bd9;
  color: #fff;
}

.sleep-note {
  font-size: 12px;
  color: #7a8699;
  margin-top: 14px;
  line-height: 1.5;
  border-top: 1px dashed #2c3e5e;
  padding-top: 10px;
}

/* 📖 Описание */
.calculator-description {
  background-color: #0f1e33;
  border-left-color: #4c9aff;
  color: #c9d4e5;
}

.calculator-description h2,
.calculator-description h3 {
  color: #9cc7ff;
}

.calculator-description p {
  color: #c9d4e5;
}
