/**
 * Styles pour le détecteur IA simplifié
 */
.ced-detector-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.ced-detector-textarea {
  width: 100%;
  min-height: 150px;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}

.ced-detector-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}

.ced-detector-button {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #0073aa;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.ced-detector-button:hover {
  background-color: #005c87;
}

.ced-detector-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.ced-detector-loading {
  display: none;
  text-align: center;
  margin: 20px 0;
  font-style: italic;
  color: #666;
}

.ced-detector-result {
  display: none;
  margin-top: 30px;
}

.ced-detector-result h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 18px;
  color: #333;
}

.ced-detector-score-item {
  margin-bottom: 20px;
}

.ced-detector-score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.ced-detector-label {
  font-weight: bold;
  font-size: 16px;
}

.ced-detector-value {
  font-weight: bold;
}

.ced-detector-bar-container {
  height: 20px;
  background-color: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
}

.ced-detector-bar {
  height: 100%;
  width: 0;
  transition: width 0.5s ease-in-out;
}

.ced-detector-ai-bar {
  background-color: #ff6b6b;
}

.ced-detector-human-bar {
  background-color: #51cf66;
}

.ced-detector-error {
  display: none;
  margin-top: 20px;
  padding: 12px;
  background-color: #f8d7da;
  color: #721c24;
  border-radius: 4px;
  text-align: center;
}

/* Styles pour la section de connexion requise */
.ced-detector-login-required {
  text-align: center;
  padding: 30px;
  margin: 20px 0;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.ced-detector-login-required h3 {
  margin-top: 0;
  color: #333;
  font-size: 20px;
  margin-bottom: 15px;
}

.ced-detector-login-required p {
  margin-bottom: 20px;
  color: #666;
}

.ced-detector-login-required .ced-detector-button {
  display: inline-block;
  width: auto;
  padding: 10px 20px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 600px) {
  .ced-detector-info {
    flex-direction: column;
    gap: 5px;
  }
}
