/* Modern Nepali Date Picker CSS - Element Plus Style */
.nepali-date-picker {
  background: #ffffff;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  color: #303133;
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  padding: 0;
  position: absolute;
  z-index: 9999;
  min-width: 320px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Calendar Controller */
.nepali-date-picker .calendar-controller {
  background: #f5f7fa;
  border-bottom: 1px solid #e4e7ed;
  border-radius: 8px 8px 0 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nepali-date-picker .calendar-controller .prev-btn,
.nepali-date-picker .calendar-controller .next-btn,
.nepali-date-picker .calendar-controller .today-btn {
  background: none;
  border: none;
  color: #606266;
  cursor: pointer;
  font-size: 16px;
  height: 32px;
  width: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  text-decoration: none;
  outline: none;
}

.nepali-date-picker .calendar-controller .prev-btn:hover,
.nepali-date-picker .calendar-controller .next-btn:hover,
.nepali-date-picker .calendar-controller .today-btn:hover {
  background-color: #f2f6fc;
  color: #409eff;
}

.nepali-date-picker .calendar-controller .prev-btn::before {
  content: '‹';
  font-size: 20px;
  font-weight: 500;
}

.nepali-date-picker .calendar-controller .next-btn::before {
  content: '›';
  font-size: 20px;
  font-weight: 500;
}

.nepali-date-picker .calendar-controller .today-btn::before {
  content: '⊙';
  font-size: 16px;
}

/* Month and Year Selectors */
.nepali-date-picker .current-month-txt,
.nepali-date-picker .current-year-txt {
  color: #303133;
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  line-height: 32px;
  padding: 0 8px;
  position: relative;
  border-radius: 4px;
  transition: all 0.2s;
  background: none;
  border: none;
  outline: none;
}

.nepali-date-picker .current-month-txt:hover,
.nepali-date-picker .current-year-txt:hover {
  background-color: #f2f6fc;
  color: #409eff;
}

.nepali-date-picker .current-month-txt i.icon-drop-down,
.nepali-date-picker .current-year-txt i.icon-drop-down {
  background: none;
  width: auto;
  height: auto;
  position: static;
  margin-left: 4px;
}

.nepali-date-picker .current-month-txt i.icon-drop-down::before,
.nepali-date-picker .current-year-txt i.icon-drop-down::before {
  content: '▼';
  font-size: 10px;
  color: #909399;
}

/* Calendar Table */
.nepali-date-picker table {
  background-color: transparent;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
}

.nepali-date-picker table thead {
  background: none;
}

.nepali-date-picker table thead td {
  color: #909399;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  padding: 12px 0;
  border: none;
  background: none;
}

.nepali-date-picker table tbody td {
  border: none;
  color: #606266;
  padding: 0;
  width: 45px;
  height: 40px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.nepali-date-picker table tbody td.current-month-date {
  border-radius: 4px;
  margin: 2px;
  width: 36px;
  height: 36px;
  line-height: 36px;
}

.nepali-date-picker table tbody td.current-month-date:hover {
  background-color: #f2f6fc;
  color: #409eff;
  font-weight: 600;
}

/* Active/Selected Date */
.nepali-date-picker table tbody td.current-month-date.active {
  background-color: #409eff;
  color: #ffffff;
  font-weight: 600;
}

.nepali-date-picker table tbody td.current-month-date.active:hover {
  background-color: #337ecc;
}

/* Other Month Dates */
.nepali-date-picker table td.other-month-date {
  color: #c0c4cc;
  cursor: default;
  border: none;
  background: none;
}

/* Disabled Dates */
.nepali-date-picker table td.current-month-date.disable {
  color: #c0c4cc;
  cursor: not-allowed;
  background: none;
}

.nepali-date-picker table tbody td.current-month-date.disable:hover {
  background-color: inherit;
  color: #c0c4cc;
  font-weight: normal;
}

/* Dropdown Styles */
.nepali-date-picker .drop-down-content {
  background-color: #ffffff;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: none;
  max-height: 200px;
  padding: 4px 0;
  position: absolute;
  width: 100%;
  z-index: 1000;
  top: 100%;
  left: 0;
  margin-top: 4px;
}

.nepali-date-picker .drop-down-content .option-wrapper {
  height: 100%;
  max-height: 200px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  position: relative;
}

.nepali-date-picker .drop-down-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nepali-date-picker .drop-down-content li {
  border-bottom: none;
  font-size: 14px;
  font-weight: normal;
  line-height: 34px;
  text-align: center;
  padding: 0 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.nepali-date-picker .drop-down-content li:hover {
  background-color: #f5f7fa;
  color: #409eff;
}

.nepali-date-picker .drop-down-content li.active {
  background-color: #409eff;
  color: #ffffff;
  font-weight: 600;
}

.nepali-date-picker .drop-down-content li.active:hover {
  background-color: #337ecc;
}

/* Calendar Wrapper */
.nepali-date-picker .calendar-wrapper {
  padding: 8px;
}

/* Remove old icon styles */
.nepali-date-picker .icon {
  opacity: 1;
  background-image: none;
}

.nepali-date-picker .icon:hover {
  opacity: 1;
}

.nepali-date-picker .prev-btn.icon,
.nepali-date-picker .next-btn.icon,
.nepali-date-picker .today-btn.icon {
  background-position: initial;
  float: none;
  height: 32px;
  width: 32px;
}

/* Scrollbar Styling */
.nepali-date-picker .drop-down-content .option-wrapper::-webkit-scrollbar {
  width: 6px;
}

.nepali-date-picker .drop-down-content .option-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.nepali-date-picker .drop-down-content .option-wrapper::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.nepali-date-picker .drop-down-content .option-wrapper::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Responsive Design */
@media (max-width: 480px) {
  .nepali-date-picker {
    min-width: 280px;
  }
  
  .nepali-date-picker .calendar-controller {
    padding: 8px 12px;
  }
  
  .nepali-date-picker .current-month-txt,
  .nepali-date-picker .current-year-txt {
    font-size: 14px;
  }
  
  .nepali-date-picker table tbody td {
    width: 40px;
    height: 36px;
  }
  
  .nepali-date-picker table tbody td.current-month-date {
    width: 32px;
    height: 32px;
    line-height: 32px;
  }
}

/* Animation for dropdown */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nepali-date-picker .drop-down-content {
  animation: fadeIn 0.2s ease-out;
}

/* Focus styles for accessibility */
.nepali-date-picker table tbody td.current-month-date:focus {
  outline: 2px solid #409eff;
  outline-offset: 2px;
}

.nepali-date-picker .current-month-txt:focus,
.nepali-date-picker .current-year-txt:focus {
  outline: 2px solid #409eff;
  outline-offset: 2px;
}