/* Date Picker — GitHub-дизайн, минималистичный календарь */

/* ─── Анимация появления ─────────────────────────────────────────── */
#datePickerModal .modal-content {
  animation: dpFadeIn 0.18s ease-out;
}

@keyframes dpFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(-8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ─── Навигация ──────────────────────────────────────────────────── */
.dp-nav-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.12s ease;
  padding: 0;
}

.dp-nav-btn:hover {
  background: #e5e7eb;
  color: #1f2937;
}

.dp-month-year {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  letter-spacing: -0.2px;
}

/* ─── Дни недели ─────────────────────────────────────────────────── */
.dp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.dp-weekdays .dp-weekend {
  color: #f87171;
}

/* ─── Сетка дней ─────────────────────────────────────────────────── */
.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

/* ─── Ячейки ─────────────────────────────────────────────────────── */
.dp-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.1s ease;
  box-sizing: border-box;
}

/* Пустые серые квадратики для ровной сетки */
.dp-cell-empty {
  background: #f9fafb;
  border-radius: 6px;
}

/* Обычный день */
.dp-cell-day {
  border: none;
  cursor: pointer;
  background: transparent;
  color: #1f2937;
  font-weight: 500;
}

.dp-cell-day:not([disabled]):hover {
  background: #f3f4f6;
}

.dp-cell-day:not([disabled]):active {
  transform: scale(0.92);
}

/* Прошедший день */
.dp-past {
  color: #d1d5db !important;
  cursor: not-allowed !important;
  background: transparent !important;
}

/* Выходной */
.dp-weekend {
  color: #ef4444 !important;
}

/* Сегодня — зелёный (яскравий, як синій для вибраної) */
.dp-today {
  background: #059669 !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(5,150,105,0.3) !important;
}

/* Выбранная дата — синий */
.dp-selected {
  background: #6366f1 !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3) !important;
  animation: dpPulse 0.25s ease-out;
}

@keyframes dpPulse {
  0%   { transform: scale(0.85); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ─── Кнопки действий ────────────────────────────────────────────── */
.dp-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

.dp-btn {
  flex: 1;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s ease;
}

.dp-btn-today {
  background: #eef2ff;
  color: #6366f1;
}

.dp-btn-today:hover {
  background: #e0e7ff;
}

.dp-btn-clear {
  background: #f9fafb;
  color: #6b7280;
}

.dp-btn-clear:hover {
  background: #f3f4f6;
  color: #4b5563;
}
