/* User Consent Controls CSS - For Heatmap and other pages */

/* Simple Message for Consent */
.cf-simple-message {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  padding: 2rem;
}

.cf-message-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.cf-message-content h3 {
  color: #1e293b;
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.cf-message-content p {
  color: #64748b;
  margin: 0.5rem 0;
  line-height: 1.6;
}

.cf-message-content p:last-child {
  margin-bottom: 0;
}

/* Consent Required State - Legacy Support */
.cf-consent-required {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 2rem;
}

.cf-consent-content {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  max-width: 600px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.cf-consent-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cf-consent-content h3 {
  color: #1e293b;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.cf-consent-content p {
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 1rem;
}

/* Inline Consent Form */
.cf-inline-consent-form {
  margin-top: 1.5rem;
}

.cf-consent-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.cf-consent-option {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.cf-consent-option:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.cf-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cf-option-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cf-option-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f9ff, #bae6fd);
  border-radius: 12px;
}

.cf-option-details h4 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}

.cf-option-details p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

/* Toggle Switch */
.cf-consent-toggle {
  position: relative;
  width: 54px;
  height: 30px;
  background: #e2e8f0;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.cf-consent-toggle.active {
  background: #10b981;
}

.cf-consent-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cf-consent-toggle.active::before {
  transform: translateX(24px);
}

/* Action Buttons */
.cf-consent-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.cf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.cf-btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
}

.cf-btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  color: white;
  text-decoration: none;
}

.cf-btn-secondary {
  background: #f8fafc;
  color: #475569; /* Fixed text color */
  border: 2px solid #e2e8f0;
}

.cf-btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155; /* Fixed hover text color */
  text-decoration: none;
  transform: translateY(-1px);
}

.cf-btn-icon {
  font-size: 1rem;
}

/* Features List (if used) */
.cf-consent-features {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: left;
  border: 1px solid #e2e8f0;
}

.cf-consent-features h4 {
  color: #1e293b;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.cf-consent-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cf-consent-features li {
  padding: 0.5rem 0;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

.cf-consent-features li:last-child {
  border-bottom: none;
}

/* Collection Notice */
.cf-collection-notice {
  margin-top: 1rem;
  padding: 1rem;
  background: #fef3c7;
  border-radius: 8px;
  border-left: 4px solid #f59e0b;
}

.cf-collection-notice p {
  color: #92400e;
  margin: 0;
  font-size: 0.9rem;
}

.cf-collection-notice a {
  color: #d97706;
  text-decoration: underline;
}

.cf-collection-notice a:hover {
  color: #b45309;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cf-consent-required,
  .cf-simple-message {
    padding: 1rem;
  }

  .cf-consent-content,
  .cf-message-content {
    padding: 2rem;
  }

  .cf-consent-actions {
    flex-direction: column;
  }

  .cf-btn {
    width: 100%;
    justify-content: center;
  }

  .cf-option-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cf-consent-toggle {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .cf-consent-content,
  .cf-message-content {
    padding: 1.5rem;
  }

  .cf-consent-content h3,
  .cf-message-content h3 {
    font-size: 1.3rem;
  }

  .cf-option-info {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}
