/* Verdant Plant Reminders Styles */

.reminders-section {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
}

.reminders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.reminders-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading, #1a202c);
}

.reminder-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reminder-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-subtle, #f8fafc);
  border: 1px solid var(--border-subtle, #cbd5e1);
  border-radius: 6px;
  gap: 1rem;
}

.reminder-card.status-overdue {
  border-left: 4px solid var(--color-danger, #ef4444);
}

.reminder-card.status-due_today {
  border-left: 4px solid var(--color-warning, #f59e0b);
}

.reminder-card.status-upcoming {
  border-left: 4px solid var(--color-info, #3b82f6);
}

.reminder-card.status-paused {
  border-left: 4px solid var(--color-muted, #94a3b8);
  opacity: 0.75;
}

.reminder-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.reminder-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main, #0f172a);
}

.reminder-meta {
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
}

.reminder-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-overdue {
  background: #fee2e2;
  color: #991b1b;
}

.badge-due_today {
  background: #fef3c7;
  color: #92400e;
}

.badge-upcoming {
  background: #dbeafe;
  color: #1e40af;
}

.badge-paused {
  background: #f1f5f9;
  color: #475569;
}

.reminder-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-icon:hover {
  background: var(--bg-hover, #e2e8f0);
}

/* Modal styles for accessible editor */
.reminder-editor-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.reminder-editor-overlay.hidden {
  display: none;
}

.reminder-editor-modal {
  background: var(--bg-surface, #ffffff);
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.reminder-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.reminder-editor-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.reminder-editor-notice {
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border-left: 3px solid #3b82f6;
}

.reminder-editor-error {
  background: #fee2e2;
  color: #991b1b;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.reminder-editor-error.hidden {
  display: none;
}

.reminder-editor-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.row {
  flex-direction: row;
  gap: 1rem;
}

.form-group.row > div {
  flex: 1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main, #1e293b);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.5rem;
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: 4px;
  font-size: 0.95rem;
}

.reminder-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}
