/* Past Schedule Display Styles */

.past-day {
  opacity: 0.7;
}

/* Past Month Navigation */
.past-month-link,
.past-month-nav-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.past-month-link:hover,
.past-month-nav-link:hover {
  text-decoration: underline;
}

.past-schedule-mark {
  position: relative;
}

.past-schedule-link {
  color: #666;
  cursor: pointer;
  text-decoration: none;
}

.past-schedule-link:hover {
  color: #333;
  text-decoration: underline;
}

/* Modal Styles */

.takezofarm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.takezofarm-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 800px;
  max-height: 90vh;
  width: 100%;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.takezofarm-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1;
}

.takezofarm-modal-close:hover {
  background: #f5f5f5;
  border-color: #999;
}

.takezofarm-modal-content {
  padding: 40px;
}

.takezofarm-modal-content h2 {
  margin: 0 0 15px;
  font-size: 28px;
  color: #333;
}

.takezofarm-modal-status {
  display: inline-block;
  padding: 6px 16px;
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 400;
  border-radius: 0;
  border: 1px solid;
  background-color: transparent;
}

.takezofarm-modal-status.status-finished {
  color: #a03030;
  border-color: #a03030;
}

.takezofarm-modal-status.status-closed {
  color: #a03030;
  border-color: #a03030;
}

.takezofarm-modal-image {
  margin: 0 0 20px;
}

.takezofarm-modal-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.takezofarm-modal-body {
  line-height: 1.8;
  color: #555;
}

.takezofarm-modal-body p {
  margin: 0 0 1em;
}

.takezofarm-modal-body img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .takezofarm-modal-content {
    padding: 30px 20px;
  }

  .takezofarm-modal-content h2 {
    font-size: 22px;
  }

  .takezofarm-modal-close {
    width: 35px;
    height: 35px;
    font-size: 20px;
    top: 10px;
    right: 10px;
  }
}

/* Date Picker Modal */

.takezo-date-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.takezo-date-picker-modal {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.takezo-date-picker-header {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.takezo-date-picker-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.takezo-date-picker-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.takezo-date-picker-close:hover {
  color: #333;
}

.takezo-date-picker-body {
  padding: 30px 20px;
  display: flex;
  gap: 20px;
}

.takezo-date-picker-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.takezo-date-picker-field label {
  font-size: 14px;
  font-weight: 500;
  color: #555;
}

.takezo-date-picker-field select {
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.takezo-date-picker-field select:hover {
  border-color: #999;
}

.takezo-date-picker-field select:focus {
  outline: none;
  border-color: #0066cc;
}

.takezo-date-picker-footer {
  padding: 15px 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.takezo-date-picker-actions {
  display: flex;
  gap: 10px;
}

.takezo-date-picker-cancel,
.takezo-date-picker-submit,
.takezo-date-picker-today {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.takezo-date-picker-cancel {
  background: #f5f5f5;
  color: #666;
}

.takezo-date-picker-cancel:hover {
  background: #e0e0e0;
}

.takezo-date-picker-submit {
  background: var(--wp--preset--color--sm-accent);
  color: #fff;
}

.takezo-date-picker-submit:hover {
  opacity: 0.85;
}

.takezo-date-picker-today {
  background: #fff;
  color: #666;
  border: 1px solid #ddd;
}

.takezo-date-picker-today:hover {
  background: #f5f5f5;
  border-color: #999;
}

.takezo-caption-clickable {
  user-select: none;
  transition: opacity 0.2s;
}

.takezo-caption-clickable:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .takezo-date-picker-body {
    flex-direction: column;
    gap: 15px;
  }

  .takezo-date-picker-footer {
    flex-direction: column;
    gap: 10px;
  }

  .takezo-date-picker-actions {
    width: 100%;
  }

  .takezo-date-picker-cancel,
  .takezo-date-picker-submit,
  .takezo-date-picker-today {
    width: 100%;
  }
}
