/* Стили для генератора показа блоков по времени */
.time-visibility-container {
  max-width: 1000px;
  margin: 20px auto;
  background: var(--bg-gradient);
  border-radius: var(--radius-lg);
  padding: 25px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Карточка правила */
.rule-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 25px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.rule-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.rule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

.rule-title {
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
}

.rule-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  margin-left: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(68, 131, 245, 0.2);
}

.rule-body {
  padding: 20px;
}

/* Секция выбора дней недели */
.weekday-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  margin-bottom: 15px;
}

.weekday-item {
  flex: 0 0 auto;
}

.weekday-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.weekday-label:hover {
  background: #e2e8f0;
}

.weekday-checkbox {
  opacity: 0;
  position: absolute;
}

.weekday-checkbox:checked + .weekday-label {
  background: var(--primary-color);
  color: white;
}

/* Секция настройки даты скрытия */
.hide-date-section {
  margin-top: 15px;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-color);
}

.hide-date-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.hide-date-field {
  flex: 1;
  min-width: 200px;
}

/* Кнопка добавления правила */
.add-rule-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px;
  background-color: rgba(68, 131, 245, 0.08);
  border: 2px dashed rgba(68, 131, 245, 0.3);
  border-radius: var(--radius-md);
  color: var(--primary-color);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 20px;
  font-size: 15px;
}

.add-rule-button:hover {
  background-color: rgba(68, 131, 245, 0.12);
  border-color: rgba(68, 131, 245, 0.5);
  transform: translateY(-2px);
}

.add-rule-button svg {
  margin-right: 8px;
}

/* Кнопка удаления правила */
.remove-rule-button {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-light);
}

.remove-rule-button:hover {
  background-color: var(--error-color);
  color: white;
  transform: scale(1.1);
}

/* Секции настроек */
.settings-section {
  margin-bottom: 20px;
}

.settings-section-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.t-vs.important-note li {
  margin-bottom: 10px;
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rule-card {
  animation: fadeIn 0.3s ease-out;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .rule-body {
    padding: 15px;
  }

  .weekday-container {
    gap: 8px;
  }

  .weekday-label {
    padding: 6px 10px;
    font-size: 13px;
  }
}
