/* Reminders Page Specific Styles */

.clock-display {
  font-family: 'Monaco', 'Courier New', monospace;
  letter-spacing: 0.5px;
}

/* === LIST HEADER === */
.list-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 24px 0 32px;
  gap: 20px;
  flex-wrap: wrap;
}

.list-title h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 4px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.list-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-sync {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
  border-color: rgba(var(--accent-rgb), 0.3);
  color: var(--primary);
}

.btn-sync:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
  border-color: rgba(var(--accent-rgb), 0.5);
}

/* === EMPTY STATE === */
.empty-state-modern {
  text-align: center;
  padding: 80px 20px;
  background: var(--card);
  border: 2px dashed var(--line);
  border-radius: var(--border-radius-lg);
  max-width: 600px;
  margin: 40px auto;
}

.empty-illustration {
  margin-bottom: 24px;
  opacity: 0.3;
}

.empty-illustration svg {
  color: var(--primary);
}

.empty-state-modern h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.empty-state-modern p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* === REMINDERS GRID === */
.reminders-grid-modern {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.reminder-card-modern {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.reminder-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.reminder-card-modern.disabled {
  opacity: 0.6;
}

.reminder-card-modern.disabled:hover {
  transform: translateY(-2px);
}

.reminder-category-bar {
  height: 4px;
  width: 100%;
}

.reminder-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 12px;
}

.reminder-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.category-icon {
  font-size: 14px;
  line-height: 1;
}

.reminder-status {
  display: flex;
  gap: 6px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid;
}

.status-badge.active {
  background: var(--ok-light);
  color: var(--ok);
  border-color: rgba(34, 197, 94, 0.3);
}

.status-badge.disabled {
  background: var(--danger-light);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
}

.status-badge.past {
  background: rgba(156, 163, 175, 0.1);
  color: var(--muted);
  border-color: rgba(156, 163, 175, 0.3);
}

.status-badge svg {
  flex-shrink: 0;
}

.reminder-content-modern {
  padding: 0 20px 16px;
}

.reminder-title-modern {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.4;
}

.reminder-note-modern {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reminder-meta-modern {
  display: flex;
  gap: 16px;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.meta-item-modern {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

.meta-item-modern svg {
  flex-shrink: 0;
  color: var(--primary);
  opacity: 0.7;
}

.reminder-actions-modern {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

.btn-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-action svg {
  flex-shrink: 0;
}

[data-theme="light"] .btn-action {
  background: rgba(0, 0, 0, 0.02);
}

.btn-action.edit {
  color: var(--primary);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.btn-action.edit:hover {
  background: var(--primary-light);
  border-color: rgba(var(--accent-rgb), 0.5);
  transform: translateY(-1px);
}

.btn-action.delete {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-action.delete:hover {
  background: var(--danger-light);
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

/* === FORM STYLES === */
.form-container-modern {
  max-width: 900px;
  margin: 0 auto;
}

.form-header-modern {
  margin-bottom: 32px;
}

.form-header-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-back:hover {
  background: var(--primary-light);
  border-color: rgba(var(--accent-rgb), 0.3);
  transform: translateX(-4px);
}

.form-header-content h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text);
}

.form-card-modern {
  margin-bottom: 20px;
}

.modern-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.form-label svg {
  color: var(--primary);
  flex-shrink: 0;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--bg-secondary);
  color: var(--text);
  outline: none;
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  background: var(--card);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1);
}

.form-textarea {
  resize: vertical;
  line-height: 1.6;
  min-height: 100px;
}

.form-select {
  cursor: pointer;
}

.form-help {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.form-row {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}

/* === CATEGORY SELECTOR === */
.category-selector-modern {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.category-option-modern {
  cursor: pointer;
}

.category-option-modern input[type="radio"] {
  display: none;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: var(--bg-secondary);
  border: 2px solid var(--line);
  border-radius: 14px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.category-option-modern.selected .category-card {
  border-color: currentColor;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
  box-shadow: var(--shadow-md);
}

.category-icon-large {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 4px;
}

.category-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-color {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: var(--transition);
}

.category-option-modern.selected .category-color {
  opacity: 1;
}

/* === FORM ACTIONS === */
.form-actions-modern {
  display: flex;
  gap: 12px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.btn-submit {
  flex: 2;
}

.btn-cancel {
  flex: 1;
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-strong);
}

[data-theme="light"] .btn-cancel:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* === TIPS CARD === */
.tips-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.03));
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: var(--border-radius);
  padding: 24px;
}

.tips-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.tips-header svg {
  color: var(--primary);
  flex-shrink: 0;
}

.tips-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.tips-list {
  padding-left: 36px;
  margin: 0;
}

.tips-list li {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 8px;
}

.tips-list li:last-child {
  margin-bottom: 0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .reminders-grid-modern {
    grid-template-columns: 1fr;
  }

  .list-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-actions {
    width: 100%;
  }

  .list-actions form,
  .list-actions a {
    flex: 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-header-content {
    flex-direction: column;
    gap: 16px;
  }

  .btn-back {
    align-self: flex-start;
  }

  .form-header-content h1 {
    font-size: 24px;
  }

  .category-selector-modern {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .form-actions-modern {
    flex-direction: column-reverse;
  }

  .btn-submit,
  .btn-cancel {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .reminder-meta-modern {
    flex-direction: column;
    gap: 8px;
  }

  .reminder-actions-modern {
    flex-direction: column;
  }

  .btn-action {
    width: 100%;
  }
}
