/* Compliance Popup Styles - GPSR & GDPR */

.compliance-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.compliance-overlay.show {
  opacity: 1;
  visibility: visible;
}

.compliance-popup {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid #e0e0e0;
  transform: scale(0.8) translateY(50px);
  transition: all 0.3s ease;
}

.compliance-overlay.show .compliance-popup {
  transform: scale(1) translateY(0);
}

.compliance-header {
  padding: 30px 30px 20px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

.compliance-title {
  color: #333333;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px;
  font-family: 'Poppins', sans-serif;
}

.compliance-subtitle {
  color: #666666;
  font-size: 16px;
  margin: 0;
  font-weight: 400;
}

.compliance-content {
  padding: 30px;
}

.compliance-section {
  margin-bottom: 25px;
}

.compliance-section h4 {
  color: #333333;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compliance-section p {
  color: #555555;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 15px;
}

.compliance-section ul {
  color: #555555;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 15px;
  padding-left: 20px;
}

.compliance-section li {
  margin-bottom: 5px;
}

.compliance-highlight {
  background: rgba(76, 175, 80, 0.1);
  border-left: 4px solid #4caf50;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
}

.compliance-highlight p {
  margin: 0;
  color: #2d5016;
}

.compliance-actions {
  padding: 20px 30px 30px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid #e0e0e0;
}

.compliance-btn {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  font-family: 'Poppins', sans-serif;
}

.compliance-btn-accept {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.compliance-btn-accept:hover {
  background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
  transform: translateY(-2px);
}

.compliance-btn-settings {
  background: transparent;
  color: #333333;
  border: 2px solid #d0d0d0;
}

.compliance-btn-settings:hover {
  background: #f5f5f5;
  border-color: #4caf50;
  color: #4caf50;
  transform: translateY(-2px);
}

.compliance-btn-decline {
  background: transparent;
  color: #666666;
  border: 2px solid #d0d0d0;
}

.compliance-btn-decline:hover {
  background: #f9f9f9;
  border-color: #999999;
  color: #333333;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .compliance-popup {
    width: 95%;
    margin: 20px;
    max-height: 90vh;
  }
  
  .compliance-header {
    padding: 20px 20px 15px;
  }
  
  .compliance-title {
    font-size: 24px;
  }
  
  .compliance-content {
    padding: 20px;
  }
  
  .compliance-actions {
    padding: 15px 20px 20px;
    flex-direction: column;
  }
  
  .compliance-btn {
    width: 100%;
    min-width: auto;
  }
}

/* Settings Panel (for future use) */
.compliance-settings {
  display: none;
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
}

.compliance-settings.show {
  display: block;
}

.compliance-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  margin: 10px 0;
}

.compliance-toggle label {
  color: #555555;
  font-size: 14px;
  flex: 1;
  margin-right: 15px;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 24px;
  background: #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-switch.active {
  background: #4caf50;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.toggle-switch.active::after {
  transform: translateX(26px);
}

/* Animation for smooth entrance */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.compliance-popup.animate-in {
  animation: slideInUp 0.4s ease-out forwards;
}
