/* Recurring badge emphasis */
.task-badge.task-recurring {
  color: #28a745;
  cursor: pointer;
  position: relative;
}
.task-badge.task-recurring.prominent {
  background: #e8f5e9;
  border: 1px solid #c6e6c9;
  padding: 0 6px;
  border-radius: 10px;
}

/* Recurring badge custom black tooltip */
.recurring-tooltip-trigger {
  position: relative;
  user-select: none;
}

.recurring-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-60%);
  margin-bottom: 8px;
  padding: 0.5rem 0.75rem;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 0.75rem;
  line-height: 1.4;
  border-radius: 6px;
  white-space: normal;
  max-width: 400px;
  min-width: 200px;
  word-wrap: break-word;
  z-index: 100002 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.recurring-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 60%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1a1a1a;
}

.recurring-tooltip-trigger.show-tooltip .recurring-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Icon tooltips (habit, repeat, progress icons) */
.icon-tooltip-trigger {
  position: relative;
  user-select: none;
  cursor: pointer;
}

/* Dynamic tooltips (generated from data-tooltip attribute, appended to body) */
.dynamic-tooltip,
.icon-tooltip,
.recurring-tooltip {
  position: fixed;
  padding: 0.5rem 0.75rem;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 0.75rem;
  line-height: 1.4;
  border-radius: 6px;
  white-space: normal;
  max-width: 300px;
  min-width: 150px;
  word-wrap: break-word;
  z-index: 100002 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dynamic-tooltip::after,
.icon-tooltip::after,
.recurring-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 60%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1a1a1a;
}

.dynamic-tooltip.show-tooltip,
.icon-tooltip.show-tooltip,
.recurring-tooltip.show-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Buttons */
.btn {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(250, 250, 250, 0.4) 100%);
  color: #666;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border-radius: 6px;
  backdrop-filter: blur(10px) saturate(1.1);
  letter-spacing: 0.01em;
  font-feature-settings: 'kern' 1, 'liga' 1, 'tnum' 1;
  outline: none;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn:focus {
  border-color: rgba(200, 190, 180, 0.4);
  box-shadow: 0 0 0 2px rgba(200, 190, 180, 0.2), 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn:hover {
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn.add-task {
  background: #27ae60;
  color: white;
  border-color: #229954;
  padding: 0.2rem 0.4rem;
  font-size: 0.7rem;
}

.btn.add-task:hover {
  background: #229954;
}

.edit-btn {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(252, 252, 252, 0.3) 100%);
  color: #888;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.3rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: lowercase;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
  border-radius: 5px;
  backdrop-filter: blur(10px);
  letter-spacing: 0.01em;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-btn:hover {
  color: #555;
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.delete-btn {
  background: transparent;
  color: #999;
  border: none;
  padding: 0;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0;
  box-shadow: none;
  height: auto;
  width: auto;
  min-width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.delete-btn:hover {
  opacity: 1;
  color: #666;
}

.btn-primary {
  padding: 0.5rem 1rem;
  background: transparent;
  color: #666;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.75rem;
  width: 100%;
  margin-bottom: 0.75rem;
}

.btn-primary:hover {
  color: #999;
  border-color: #ddd;
}

.btn-small {
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  border: none;
  background: transparent;
  color: #999;
  cursor: pointer;
}

.btn-small:hover {
  color: #666;
}

.btn-danger {
  color: #999;
}

.btn-danger:hover {
  color: #e74c3c;
}

.btn-minimal {
  padding: 0.25rem 0.5rem;
  background: transparent;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-minimal:hover {
  background: #f5f5f5;
  border-color: #ddd;
}

.btn-minimal-danger {
  color: #c62828;
  border-color: #ffcdd2;
}

.btn-minimal-danger:hover {
  background: #ffebee;
  border-color: #ef9a9a;
}

.task-badge {
  color: #888;
  font-size: 0.75rem;
  font-weight: 400;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 2rem;
  color: #7f8c8d;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
  color: #95a5a6;
}

.empty-state p {
  margin-bottom: 1.5rem;
}

.empty-state-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.empty-state-actions .btn {
  min-width: 140px;
}