/* Checklist Popup Styles */
:root {
  --checklist-btn-bg: #E74C3C; /* A distinctive red for attention, or use brand color */
  --checklist-btn-color: #fff;
  --checklist-modal-bg: #fff;
  --checklist-text-color: #333;
  --checklist-border-color: #ddd;
}

/* Floating Button */
#checklist-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background-color: var(--checklist-btn-bg);
  color: var(--checklist-btn-color);
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

#checklist-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

#checklist-launcher svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Modal Overlay */
.checklist-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.checklist-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Content */
.checklist-modal-content {
  background-color: var(--checklist-modal-bg);
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.checklist-modal-overlay.active .checklist-modal-content {
  transform: translateY(0);
}

/* Modal Header */
.checklist-modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--checklist-border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9f9;
}

.checklist-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--checklist-text-color);
}

.checklist-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.checklist-close-btn:hover {
  color: #000;
}

/* Modal Body */
.checklist-modal-body {
  padding: 20px;
  overflow-y: auto;
}

.checklist-intro {
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.checklist-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist-item {
  margin-bottom: 10px;
}

.checklist-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: #f5f5f5;
  border-radius: 6px;
  text-decoration: none;
  color: var(--checklist-text-color);
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.checklist-link:hover {
  background-color: #fff;
  border-color: var(--checklist-btn-bg);
  color: var(--checklist-btn-bg);
  transform: translateX(4px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.checklist-link-icon {
  margin-left: 10px;
  font-size: 0.85rem;
  color: #999;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  #checklist-launcher {
    bottom: 20px;
    right: 20px;
    padding: 10px 18px;
    font-size: 0.9rem;
  }
  
  .checklist-modal-content {
    width: 95%;
    max-height: 80vh;
  }
}
