/* GDPR Consent Management Styles */

/* Primary consent banner - appears at bottom of screen when consent needed */
#gdpr-consent-banner {
  display: none;
  position: sticky; 
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(33, 37, 41, 0.95);
  color: #fff;
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  margin-top: 20px; 
}

.gdpr-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.gdpr-content p {
  margin-right: 20px;
}

.gdpr-content a {
  color: #8ab4f8;
  text-decoration: underline;
}

.gdpr-buttons {
  display: flex;
  gap: 10px;
}

/* Information notice about consent requirement - appears inside validator form */
.upload-consent-notice {
  margin: 15px 0;
  padding: 12px 15px;
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 4px;
  color: #856404;
}

/* Style for process buttons when consent is declined */
.consent-disabled {
  position: relative;
  opacity: 0.7;
  cursor: not-allowed !important;
  background-color: #e9ecef !important;
  border-color: #ddd !important;
  color: #6c757d !important;
}

/* Hover tooltip for disabled buttons */
.consent-disabled:hover::after {
  content: "Consent required to process files";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 5px;
  background: #f8d7da;
  color: #721c24;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  border: 1px solid #f5c6cb;
}

/* Lock indicator shown on disabled process buttons */
.consent-indicator {
  margin-left: 8px;
  font-size: 14px;
}

/* Popup message shown when clicking on disabled process button */
.consent-error-tooltip {
  position: absolute;
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px 15px;
  border-radius: 4px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  animation: fade-in 0.3s ease-out;
  text-align: center;
  border: 1px solid #f5c6cb;
  max-width: 300px;
}

.consent-error-tooltip a {
  color: #0066cc;
  text-decoration: underline;
  font-weight: bold;
}

.consent-error-tooltip a:hover {
  color: #004080;
}

/* Generic reset consent link styling */
.reset-consent {
  color: #0066cc;
  text-decoration: underline;
  cursor: pointer;
}

.reset-consent:hover {
  color: #004080;
}

/* Animation for tooltip appearance */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.gdpr-action-button {
  opacity: 1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  background-color: #007bff !important; 
  border-color: #007bff !important;
  color: white !important;
}

/* Add space at the bottom of the page to ensure content isn't too close to the banner */
body {
  padding-bottom: 10px;
}

/* Ensure the banner is always visible when displayed */
html {
  scroll-padding-bottom: 150px; /* Ensure content doesn't get hidden behind the banner */
}
