/* =========================================================
   Modern Persian Datepicker Theme
   Full Replacement for date1.css
   ========================================================= */

:root {
  --Primary: #2563eb;
  --Secondary: #e0f2fe;
  --Text-Primary: #0f172a;
  --Text-Soft: #64748b;
  --Border-Soft: rgba(148, 163, 184, 0.22);
  --Surface: #ffffff;
  --Surface-Soft: #f8fbff;
  --Shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --Radius: 20px;
}

.rtl {
  direction: rtl;
}

@keyframes start {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@-webkit-keyframes start {
  from {
    opacity: 0;
    -webkit-transform: translateY(8px) scale(.96);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0) scale(1);
  }
}

.pdp-default {
  direction: rtl;
  position: absolute;
  min-width: 320px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--Text-Primary);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--Radius);
  box-shadow: var(--Shadow);
  backdrop-filter: blur(10px);
  animation: start .22s ease;
  -webkit-animation: start .22s ease;
  z-index: 9999;
}

.pdp-default * {
  box-sizing: border-box;
}

.pdp-default .dows {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
  padding: 10px 8px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.pdp-default .dow {
  flex: 1 1 0;
  text-align: center;
}

.pdp-default .monthYear {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 6px;
}

.pdp-default .monthYear .title,
.pdp-default .monthYear span {
  font-size: 14px;
  font-weight: 800;
  color: var(--Text-Primary);
}

.pdp-default .nextArrow,
.pdp-default .prevArrow {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--Surface-Soft);
  border: 1px solid var(--Border-Soft);
  border-radius: 12px;
  cursor: pointer;
  transition: all .24s ease;
  user-select: none;
}

.pdp-default .nextArrow:hover,
.pdp-default .prevArrow:hover {
  background: var(--Primary);
  color: #fff;
  border-color: var(--Primary);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.pdp-default .nextArrow {
  transform: rotate(180deg);
}

.pdp-default .days,
.pdp-default .dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.pdp-default .cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px;
  text-align: center;
  cursor: pointer;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  transition: all .22s ease;
  color: var(--Text-Primary);
}

.pdp-default .cell:hover {
  background: rgba(37, 99, 235, 0.08);
}

.pdp-default .day:hover,
.pdp-default .selday,
.pdp-default .selday:hover,
.pdp-default .selected {
  background: linear-gradient(135deg, var(--Primary) 0%, #06b6d4 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.20);
}

.pdp-default .today {
  color: var(--Text-Primary);
  background: var(--Secondary);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.pdp-default .nul {
  background: rgba(148, 163, 184, 0.10);
  color: #94a3b8;
  cursor: default;
}

.pdp-default .yearSelect,
.pdp-default .monthSelect {
  margin-top: 10px;
  padding: 8px;
  max-height: 220px;
  overflow-y: auto;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid var(--Border-Soft);
}

.pdp-default .yearSelect li,
.pdp-default .monthSelect li {
  list-style: none;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--Text-Primary);
  transition: all .22s ease;
}

.pdp-default .yearSelect li:hover,
.pdp-default .monthSelect li:hover {
  background: rgba(37, 99, 235, 0.08);
}

.pdp-default .yearSelect li.selected,
.pdp-default .monthSelect li.selected {
  background: linear-gradient(135deg, var(--Primary) 0%, #06b6d4 100%);
  color: #fff;
}

@media (max-width: 575.98px) {
  .pdp-default {
    min-width: 290px;
    padding: 10px;
    border-radius: 16px;
  }

  .pdp-default .cell {
    min-height: 36px;
    font-size: 12px;
  }

  .pdp-default .nextArrow,
  .pdp-default .prevArrow {
    width: 34px;
    height: 34px;
  }
}
