/**
 * Styles minimalistes pour le plugin IA Detect - Intégration Elementor
 * La plupart des styles sont hérités du thème Elementor
 */

/* Ajustements spécifiques pour l'analyseur */
#ced-iadetect-analyzing .elementor-loader {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 0 auto 10px;
}

/* Ajustement pour le compteur de mots */
.elementor-field-info-wrapper {
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
  margin-bottom: 10px;
}

/* Ajustements responsifs */
@media (max-width: 768px) {
  .elementor-field-info-wrapper {
    flex-direction: column;
    gap: 5px;
  }
}

.ced-iadetect-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  max-width: 800px;
  margin: 0 auto;
}

#ced-iadetect-text {
  width: 100%;
  min-height: 150px;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

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

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

#ced-iadetect-submit:hover {
  background-color: #005177;
}

#ced-iadetect-submit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}

#ced-iadetect-analyzing {
  text-align: center;
  padding: 20px;
  font-style: italic;
  color: #555;
}

#ced-iadetect-result h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.2em;
  color: #333;
}

.ced-iadetect-score-container {
  margin-top: 20px;
}

.ced-iadetect-score-item {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

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

.ced-iadetect-label {
  font-weight: bold;
}

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

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

#ced-iadetect-ai-bar {
  background-color: #ff4136;
}

#ced-iadetect-human-bar {
  background-color: #2ecc40;
}

.ced-iadetect-percentage {
  font-weight: bold;
}

#ced-iadetect-error {
  margin-top: 20px;
  padding: 10px;
  background-color: #f8d7da;
  color: #721c24;
  border-radius: 4px;
  text-align: center;
}

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

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

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

.ced-iadetect-login-required .ced-iadetect-button {
  display: inline-block;
  background-color: #0073aa;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.ced-iadetect-login-required .ced-iadetect-button:hover {
  background-color: #005177;
}

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