/* Styles pour les indicateurs de champs requis dans config-agent.html */

/* Indicateur requis (*) */
.required-indicator {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1em;
    margin-left: 4px;
}

/* Message d'aide pour champ requis */
.required-help {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e74c3c !important;
}

/* Style pour les champs avec bordure rouge (requis) */
input.required-field {
    border-color: #e74c3c !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

/* Style pour les champs avec bordure verte (valide) */
input.valid-field {
    border-color: #10b981 !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Animation pour attirer l'attention sur le champ requis */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Transition douce pour les changements de bordure */
input[type="tel"], input[type="text"], input[type="email"] {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Style pour le focus sur les champs requis */
input.required-field:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

/* Style pour le focus sur les champs valides */
input.valid-field:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Statut d'indexation des documents */
.indexing-status {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.indexing-status .status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.indexing-status .status-label {
    font-weight: 600;
    color: #333;
}

.indexing-status .status-text {
    font-weight: 600;
    color: #3498db;
}

.indexing-status .progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.indexing-status .progress-bar {
    flex: 1;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.indexing-status .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #27ae60);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.indexing-status .progress-text {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    min-width: 35px;
}

.indexing-status .status-info {
    font-size: 13px;
    color: #666;
    margin: 0;
}
