/**
 * @file
 * SensFRX Frontend CSS.
 */

/* SensFRX tracking pixel styles */
.sensfrx-pixel {
  position: absolute;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* SensFRX form tracking styles */
.sensfrx-login-form,
.sensfrx-registration-form,
.sensfrx-checkout-form {
  position: relative;
}

/* SensFRX interaction tracking */
.sensfrx-tracked {
  position: relative;
}

.sensfrx-tracked::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

/* SensFRX debug mode styles */
.sensfrx-debug {
  border: 2px solid #ff6b6b;
  background-color: rgba(255, 107, 107, 0.1);
}

.sensfrx-debug::before {
  content: 'SensFRX Debug';
  position: absolute;
  top: -20px;
  left: 0;
  background: #ff6b6b;
  color: white;
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 2px;
}

/* SensFRX loading indicator */
.sensfrx-loading {
  position: relative;
}

.sensfrx-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: sensfrx-spin 1s linear infinite;
  z-index: 1000;
}

@keyframes sensfrx-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* SensFRX error styles */
.sensfrx-error {
  border: 2px solid #e74c3c;
  background-color: rgba(231, 76, 60, 0.1);
}

.sensfrx-error::before {
  content: 'SensFRX Error';
  position: absolute;
  top: -20px;
  left: 0;
  background: #e74c3c;
  color: white;
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 2px;
}

/* SensFRX success styles */
.sensfrx-success {
  border: 2px solid #27ae60;
  background-color: rgba(39, 174, 96, 0.1);
}

.sensfrx-success::before {
  content: 'SensFRX Success';
  position: absolute;
  top: -20px;
  left: 0;
  background: #27ae60;
  color: white;
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 2px;
}

/* SensFRX warning styles */
.sensfrx-warning {
  border: 2px solid #f39c12;
  background-color: rgba(243, 156, 18, 0.1);
}

.sensfrx-warning::before {
  content: 'SensFRX Warning';
  position: absolute;
  top: -20px;
  left: 0;
  background: #f39c12;
  color: white;
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 2px;
}

/* SensFRX device fingerprint styles */
.sensfrx-fingerprint {
  display: none;
}

/* SensFRX analytics styles */
.sensfrx-analytics {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px;
  border-radius: 5px;
  font-size: 12px;
  z-index: 9999;
  max-width: 300px;
}

.sensfrx-analytics h4 {
  margin: 0 0 5px 0;
  font-size: 14px;
}

.sensfrx-analytics ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sensfrx-analytics li {
  margin: 2px 0;
}

/* SensFRX responsive styles */
@media (max-width: 768px) {
  .sensfrx-analytics {
    bottom: 10px;
    right: 10px;
    max-width: 250px;
    font-size: 11px;
  }
}

/* SensFRX print styles */
@media print {
  .sensfrx-pixel,
  .sensfrx-analytics,
  .sensfrx-debug::before,
  .sensfrx-error::before,
  .sensfrx-success::before,
  .sensfrx-warning::before {
    display: none !important;
  }
}

/* SensFRX accessibility styles */
@media (prefers-reduced-motion: reduce) {
  .sensfrx-loading::after {
    animation: none;
  }
}

/* SensFRX high contrast mode */
@media (prefers-contrast: high) {
  .sensfrx-debug,
  .sensfrx-error,
  .sensfrx-success,
  .sensfrx-warning {
    border-width: 3px;
  }
}

/* SensFRX dark mode support */
@media (prefers-color-scheme: dark) {
  .sensfrx-analytics {
    background: rgba(255, 255, 255, 0.9);
    color: black;
  }
} 