/* ==========================================================================
   Featuron - Twitter/X Style Date & Month Calendar Picker
   ========================================================================== */

.tw-calendar-popover {
  position: absolute;
  z-index: 10000;
  width: 270px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.06);
  border: 1px solid #cfd9de;
  padding: 10px 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  user-select: none;
  animation: twCalFadeIn 0.15s ease-out;
}

@keyframes twCalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header & Twitter-style Dropdowns */
.tw-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 4px;
}

.tw-cal-nav-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0f1419;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: background 0.15s;
}

.tw-cal-nav-btn:hover {
  background: #eff3f4;
  color: #047A3D;
}

.tw-cal-selects {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tw-cal-select {
  padding: 3px 6px;
  border: 1px solid #cfd9de;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #0f1419;
  background: #ffffff;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tw-cal-select:hover,
.tw-cal-select:focus {
  border-color: #047A3D;
  box-shadow: 0 0 0 2px rgba(4, 122, 61, 0.15);
}

/* Weekday column headers */
.tw-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #536471;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Days Grid */
.tw-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.tw-cal-day {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 500;
  color: #0f1419;
  cursor: pointer;
  margin: 1px auto;
  transition: background 0.15s, color 0.15s;
}

.tw-cal-day:hover:not(.tw-cal-empty):not(.tw-cal-selected) {
  background: #e8f5ed;
  color: #047A3D;
  font-weight: 700;
}

.tw-cal-today {
  border: 1.5px solid #047A3D;
  font-weight: 700;
  color: #047A3D;
}

.tw-cal-selected {
  background: #047A3D !important;
  color: #ffffff !important;
  font-weight: 700;
}

.tw-cal-empty {
  cursor: default;
}

/* Footer Shortcuts */
.tw-cal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #eff3f4;
}

.tw-cal-action-btn {
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: #047A3D;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}

.tw-cal-action-btn:hover {
  background: #e8f5ed;
}

.tw-cal-btn-close {
  color: #536471;
}

.tw-cal-btn-close:hover {
  background: #eff3f4;
}

@media print {
  .tw-calendar-popover {
    display: none !important;
  }
}

