/* Basic page styling */
body {
  display: flex;
  justify-content: center; /* Center content horizontally */
  align-items: center;     /* Center content vertically */
  height: 100vh;           /* Full screen height */
  background-color: #f4f4f4 !important;
  font-family: Arial, sans-serif;
  user-select: none !important; /* Prevent text selection */
}

/* Captcha container box */
.captcha-box {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 5px;
  border: 1px solid gray;
  width: 450px; /* Smaller fixed width */
  padding: 8px 10px;
  background-color: #f8f8f8;
}

/* Text and Checkbox section */
.checkbox-with-text {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 15px;
  margin-bottom: 10px;
}

/* Logo image size */
.captcha-logo {
  width: 80px;
  height: auto;
}

/* Label for CAPTCHA status */
.captcha-label {
  font-size: 1.2rem;
  color: #727272; /* Dark gray color */
}

/* Container for the checkboxes */
#checkbox-container {
  position: relative;
  display: flex;
  margin-top: 15px;
  gap: 15px;
  margin-bottom: 10px;
  margin-left: 15px; /* Push to the right */
}

/* Checkbox basic styling */
input[type="checkbox"] {
  appearance: none;
  width: 36px;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background-color: white;
}

/* Message box styling */
.captcha-message {
  margin-top: 10px;
  padding: 10px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9rem;
  max-width: 300px;
}

.captcha-message.info {
  color: #0c5460;
  background-color: #d1ecf1;
}

.captcha-message.warning {
  color: #856404;
  background-color: #fff3cd;
}

.captcha-message.success {
  color: #155724;
  background-color: #d4edda;
}

.captcha-message.error {
  color: #721c24;
  background-color: #f8d7da;
}

/* Button group styling */
.button-group {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Style for all buttons */
.button-group button {
  font-size: 16px;
  padding: 10px 20px;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

/* Log button - green */
.log-button {
  background-color: #59a13c;
}
.log-button:hover {
  background-color: #6e8b63;
}

/* Toggle fake boxes - olive green */
.toggle-fake-button {
  background-color: #6e8b63;
}
.toggle-fake-button:hover {
  background-color: #5a734f;
}

/* Analytics button - blue */
.analytics-button {
  background-color: #007bff;
}
.analytics-button:hover {
  background-color: #0056b3;
}

/* Refresh button - cyan */
.refresh-button {
  background-color: #17a2b8;
}
.refresh-button:hover {
  background-color: #117a8b;
}

/* Loading spinner style */
.loading-spinner {
  width: 30px;
  height: 30px;
  border: 4px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Shared checkbox box styling */
.checkbox-box {
  width: 36px;
  height: 36px;
  border-radius: 10%;
  cursor: pointer;
  appearance: none;
}

/* Fake checkbox styling */
.fake-checkbox {
  border: 2px solid red;
  background-color: #ffeaea;
}

/* Real checkbox styling */
.real-checkbox {
  border: 2px solid rgb(163, 163, 163);
  background-color: #eaffea;
}

/* Slider CAPTCHA (touch) styles */

/* Wrapper for slider */
.slider-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

/* Slider track */
#slider-track {
  width: 200px;
  transition: width 0.3s ease;
  height: 40px;
  background-color: #e0e0e0;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

/* Slider handle */
#slider-handle {
  width: 40px;
  height: 40px;
  background-color: #6f00ff;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  cursor: grab;
  transition: background-color 0.2s;
}
