/* CSS pour le plugin Insurance Claims Tracker */

.ict-claims-tracker {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.ict-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e1e5e9;
}

.ict-header h2 {
  margin: 0;
  color: #2c3e50;
  font-size: 28px;
}

.ict-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Barre de progression */
.ict-progress-container {
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.ict-progress-bar {
  width: 100%;
  height: 20px;
  background-color: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: 8px;
}

.ict-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #28a745, #20c997);
  border-radius: 10px;
  transition: width 0.6s ease-in-out;
  position: relative;
}

.ict-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
  background-size: 50px 50px;
  animation: move 2s linear infinite;
}

@keyframes move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

.ict-progress-text {
  display: block;
  text-align: center;
  font-weight: 600;
  color: #495057;
  font-size: 14px;
}

/* Mini progress bars pour le tableau */
.ict-progress-mini {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ict-progress-bar-mini {
  width: 60px;
  height: 8px;
  background-color: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.ict-progress-fill-mini {
  height: 100%;
  background: linear-gradient(90deg, #28a745, #20c997);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.ict-progress-text-mini {
  font-size: 11px;
  font-weight: 600;
  color: #495057;
  min-width: 30px;
}

.ict-description-preview {
  max-width: 150px;
  font-size: 13px;
  color: #6c757d;
  line-height: 1.3;
}

/* Boutons */
.ict-btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.ict-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.ict-btn:hover::before {
  width: 300px;
  height: 300px;
}

.ict-btn-primary {
  background-color: #3498db;
  color: white;
}

.ict-btn-primary:hover {
  background-color: #2980b9;
}

.ict-btn-secondary {
  background-color: #95a5a6;
  color: white;
}

.ict-btn-secondary:hover {
  background-color: #7f8c8d;
}

.ict-btn-danger {
  background-color: #e74c3c;
  color: white;
}

.ict-btn-danger:hover {
  background-color: #c0392b;
}

.ict-btn-success {
  background-color: #27ae60;
  color: white;
}

.ict-btn-success:hover {
  background-color: #229954;
}

.ict-btn-warning {
  background-color: #f39c12;
  color: white;
}

.ict-btn-warning:hover {
  background-color: #e67e22;
}

/* Boutons suggérés */
.ict-btn-suggested {
  position: relative;
  animation: pulse-suggestion 2s infinite;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

@keyframes pulse-suggestion {
  0% {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(52, 152, 219, 0.1);
  }
  100% {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
  }
}

.ict-suggested-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e74c3c;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-4px);
  }
  60% {
    transform: translateY(-2px);
  }
}

/* Messages */
.ict-success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #c3e6cb;
  margin-bottom: 20px;
}

.ict-error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #f5c6cb;
  margin-bottom: 20px;
}

/* Messages de notification */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.ict-message {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ict-message-close:hover {
  opacity: 1 !important;
}

/* Filtres */
.ict-filters {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.ict-filter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.ict-filter-form input,
.ict-filter-form select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.ict-filter-form input[type="text"] {
  min-width: 200px;
}

/* Tableau */
.ict-table-container {
  overflow-x: auto;
  margin-bottom: 20px;
}

.ict-claims-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.ict-claims-table th,
.ict-claims-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #dee2e6;
  vertical-align: middle;
  font-size: 13px;
}

.ict-claims-table th {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  color: #495057;
  border-bottom: 2px solid #dee2e6;
  font-size: 13px;
}

.ict-claims-table tr:hover {
  background-color: #f8f9fa;
}

/* Historique dans les détails */
.ict-history-summary {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #007bff;
}

.ict-history-items {
  margin-top: 10px;
}

.ict-history-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.ict-history-item:last-child {
  border-bottom: none;
}

.ict-history-date {
  font-size: 12px;
  color: #6c757d;
  min-width: 100px;
}

.ict-history-action {
  font-size: 13px;
  color: #495057;
}

/* Statuts */
.ict-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.ict-status-not-started {
  background-color: #6c757d;
  color: white;
}

.ict-status-in-progress {
  background-color: #fd7e14;
  color: white;
}

.ict-status-completed {
  background-color: #28a745;
  color: white;
}

.ict-status-not-applicable {
  background-color: #6c757d;
  color: white;
}

.ict-status-yes {
  background-color: #28a745;
  color: white;
}

.ict-status-no {
  background-color: #dc3545;
  color: white;
}

.ict-status-blocked {
  background-color: #6c757d;
  color: white;
}

.ict-status-pending {
  background-color: #ffc107;
  color: #212529;
}

/* Amélioration des statuts - sans icônes */
.ict-status-completed {
  background-color: #28a745;
  color: white;
}

.ict-status-yes {
  background-color: #28a745;
  color: white;
}

.ict-status-no {
  background-color: #dc3545;
  color: white;
}

.ict-status-in-progress {
  background-color: #007bff;
  color: white;
}

.ict-status-pending {
  background-color: #ffc107;
  color: #212529;
}

.ict-status-blocked {
  background-color: #6c757d;
  color: white;
}

.ict-status-not-started {
  background-color: #e9ecef;
  color: #495057;
}

.ict-status-not-applicable {
  background-color: #6c757d;
  color: white;
}

/* Détails de déclaration */
.ict-claim-details {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.ict-claim-info {
  background-color: white;
  border: 1px solid #e1e5e9;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ict-info-edit {
  background-color: #f8f9fa;
  border: 2px solid #3498db;
  border-radius: 4px;
  padding: 20px;
}

.ict-info-edit .ict-form-group {
  margin-bottom: 20px;
}

.ict-info-edit .ict-form-group:last-child {
  margin-bottom: 0;
}

.ict-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.ict-info-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ict-info-item strong {
  color: #2c3e50;
}

.ict-description {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e1e5e9;
}

.ict-description p {
  margin: 10px 0 0 0;
  line-height: 1.6;
}

/* Étapes */
.ict-steps {
  margin-top: 30px;
}

.ict-steps h3 {
  color: #2c3e50;
  margin-bottom: 20px;
}

.ict-steps-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
}

.ict-step {
  counter-increment: step-counter;
  background-color: white;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

.ict-step:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ict-step::before {
  content: counter(step-counter);
  position: absolute;
  top: 20px;
  left: 20px;
  width: 30px;
  height: 30px;
  background-color: #6c757d;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  font-size: 14px;
  z-index: 1;
}

.ict-step.ict-status-in-progress::before {
  background-color: #fd7e14;
}

.ict-step.ict-status-completed::before {
  background-color: #28a745;
}

.ict-step.ict-status-yes::before {
  background-color: #28a745;
}

.ict-step.ict-status-no::before {
  background-color: #dc3545;
}

.ict-step.ict-status-not-applicable::before {
  background-color: #6c757d;
}

/* En-tête des étapes */
.ict-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 20px 65px;
  margin: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.ict-step-header:hover {
  background-color: rgba(0, 123, 186, 0.05);
}

.ict-step.expanded .ict-step-header {
  border-bottom-color: #e1e5e9;
  background-color: rgba(0, 123, 186, 0.03);
}

.ict-step-title {
  font-weight: 600;
  color: #2c3e50;
  font-size: 16px;
  margin: 0;
}

.ict-step-header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ict-step-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ict-step-status.ict-status-not-started {
  background-color: #f8f9fa;
  color: #6c757d;
}

.ict-step-status.ict-status-in-progress {
  background-color: #fff3cd;
  color: #856404;
}

.ict-step-status.ict-status-completed {
  background-color: #d4edda;
  color: #155724;
}

.ict-step-status.ict-status-yes {
  background-color: #d4edda;
  color: #155724;
}

.ict-step-status.ict-status-no {
  background-color: #f8d7da;
  color: #721c24;
}

.ict-step-status.ict-status-not-applicable {
  background-color: #e2e3e5;
  color: #383d41;
}

.ict-step-toggle {
  font-size: 16px;
  color: #007cba;
  transition: transform 0.3s ease;
  font-weight: bold;
}

.ict-step.expanded .ict-step-toggle {
  transform: rotate(180deg);
}

/* Contenu des étapes */
.ict-step-content {
  padding: 0 20px 20px 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  max-height: 0;
  opacity: 0;
}

.ict-step.expanded .ict-step-content {
  max-height: 2000px;
  opacity: 1;
}

.ict-step-quick-actions {
  margin-bottom: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border-left: 4px solid #007cba;
}

.ict-step-quick-actions h4 {
  margin: 0 0 15px 0;
  color: #2c3e50;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ict-step-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  justify-content: flex-start;
}

.ict-step-form {
  padding: 25px;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  margin-top: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ict-step-form h4 {
  margin: 0 0 20px 0;
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 2px solid #007cba;
  padding-bottom: 10px;
  display: inline-block;
}

/* Fichiers uploadés */
.ict-current-file {
  margin-bottom: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
  border: 1px solid #c3e6c3;
  border-radius: 8px;
  border-left: 4px solid #28a745;
}

.ict-current-file p {
  margin: 0 0 10px 0;
  font-weight: 600;
  color: #155724;
}

.ict-file-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  background-color: #007cba;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 123, 186, 0.3);
}

.ict-file-link:hover {
  background-color: #005a87;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 123, 186, 0.4);
}

.ict-file-link::before {
  content: "📎";
  margin-right: 8px;
  font-size: 14px;
}

/* Formulaires dans les étapes */
.ict-step-form .ict-form-group {
  margin-bottom: 20px;
}

/* Étapes bloquées */
.ict-step-blocked {
  opacity: 0.6;
  position: relative;
}

.ict-step-blocked .ict-step-header {
  cursor: not-allowed;
}

.ict-step-blocked-text {
  margin-left: 8px;
  font-size: 12px;
  opacity: 0.7;
  color: #6c757d;
  font-style: italic;
}

.ict-step-blocked-message {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 15px;
}

.ict-step-blocked-message p {
  margin: 0;
  color: #856404;
  font-size: 14px;
}

.ict-step-blocked-message small {
  color: #6c757d;
  font-style: italic;
}

/* Boutons bloqués */
.ict-btn-blocked {
  opacity: 0.6;
  background-color: #95a5a6 !important;
  color: #7f8c8d !important;
  cursor: not-allowed;
  position: relative;
  border: 2px dashed #bdc3c7 !important;
}

.ict-btn-blocked:hover {
  opacity: 0.8;
  background-color: #7f8c8d !important;
  transform: none;
}

.ict-btn-blocked:active {
  transform: none;
}

/* Indicateur de verrouillage */
.ict-blocked-indicator {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e74c3c;
  color: white;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  line-height: 1;
  animation: lock-pulse 2s infinite;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

@keyframes lock-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* Actions bloquées */
.ict-actions-blocked {
  border: 2px dashed #e9ecef;
  border-radius: 8px;
  padding: 10px;
  background-color: #f8f9fa;
  position: relative;
}

.ict-actions-blocked::before {
  content: "ÉTAPE BLOQUÉE";
  position: absolute;
  top: -12px;
  left: 10px;
  background: #fff;
  padding: 0 8px;
  font-size: 12px;
  color: #6c757d;
  font-weight: 600;
}

/* Pagination */
.ict-pagination {
  text-align: center;
  margin-top: 30px;
}

.ict-pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 3px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #3498db;
}

.ict-pagination .page-numbers:hover,
.ict-pagination .page-numbers.current {
  background-color: #3498db;
  color: white;
}

/* Message pas de déclarations */
.ict-no-claims {
  text-align: center;
  padding: 40px;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.ict-no-claims p {
  font-size: 16px;
  color: #6c757d;
  margin-bottom: 20px;
}

/* Formulaire d'ajout de déclaration */
.ict-add-claim-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.ict-claim-form {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-top: 20px;
}

.ict-form-group {
  margin-bottom: 20px;
}

.ict-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #495057;
  font-size: 14px;
}

.ict-form-group input,
.ict-form-group select,
.ict-form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

.ict-form-group input:focus,
.ict-form-group select:focus,
.ict-form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.ict-form-group small {
  display: block;
  margin-top: 5px;
  color: #6c757d;
  font-size: 12px;
}

.ict-form-group.ict-upload-group {
  border: 2px dashed #dee2e6;
  padding: 20px;
  border-radius: 8px;
  background-color: #f8f9fa;
  transition: border-color 0.3s ease;
}

.ict-form-group.ict-upload-group:hover {
  border-color: #007bff;
}

.ict-form-actions {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.ict-steps-preview {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #007bff;
}

.ict-steps-preview h3 {
  margin: 0 0 15px 0;
  color: #495057;
  font-size: 16px;
}

#steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#steps-list li {
  padding: 8px 0;
  border-bottom: 1px solid #dee2e6;
  color: #6c757d;
  font-size: 14px;
}

#steps-list li:last-child {
  border-bottom: none;
}

#steps-list li::before {
  content: "▶";
  margin-right: 8px;
  color: #007bff;
}

/* Animation de célébration pour déclaration terminée */
.ict-claim-completed {
  animation: celebration-glow 2s ease-in-out;
  border: 2px solid #28a745;
  border-radius: 8px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.1) 100%);
}

@keyframes celebration-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.6), 0 0 30px rgba(40, 167, 69, 0.4);
  }
}

/* Styles pour le statut global "Terminé" */
.ict-status-completed {
  background-color: #28a745 !important;
  color: white !important;
  font-weight: bold;
}

.ict-claim-status.ict-status-completed,
.ict-status-badge.ict-status-completed {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: 2px solid #1e7e34;
  animation: completed-pulse 1s ease-in-out;
}

@keyframes completed-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Message de succès spécial pour la completion */
.ict-message.ict-success:has-text("Félicitations") {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-color: #28a745;
  animation: success-celebration 1s ease-in-out;
}

@keyframes success-celebration {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-5px);
  }
  75% {
    transform: translateY(-2px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .ict-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .ict-filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .ict-filter-form input,
  .ict-filter-form select {
    width: 100%;
  }

  .ict-info-grid {
    grid-template-columns: 1fr;
  }

  /* Étapes responsive */
  .ict-step {
    margin-bottom: 10px;
  }

  .ict-step::before {
    position: static;
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
  }

  .ict-step-header {
    padding: 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ict-step-header-right {
    width: 100%;
    justify-content: space-between;
  }

  .ict-step-content {
    padding: 0 15px 15px 15px;
  }

  .ict-step-quick-actions,
  .ict-step-form {
    padding: 15px;
    margin-top: 10px;
  }

  .ict-step-actions {
    flex-direction: column;
    gap: 8px;
  }

  .ict-step-actions .ict-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .ict-form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .ict-form-actions .ict-btn {
    width: 100%;
  }

  .ict-step-title {
    font-size: 14px;
  }

  .ict-step-form h4 {
    font-size: 15px;
  }
}

.ict-step-actions {
  width: 100%;
  justify-content: flex-start;
}

.ict-form-actions {
  flex-direction: column;
}

.ict-step-quick-actions,
.ict-step-form {
  padding: 15px;
}

.ict-step-actions {
  flex-direction: column;
  gap: 8px;
}

.ict-step-form h4 {
  font-size: 15px;
}

/* Animations globales */
.ict-updating {
  opacity: 0.6;
  pointer-events: none;
}

.ict-fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.ict-step-success {
  animation: stepSuccess 0.5s ease;
}

@keyframes stepSuccess {
  0% { background-color: white; }
  50% { background-color: #d4edda; }
  100% { background-color: white; }
}

/* Animation pour les étapes activées automatiquement */
.ict-step-activated {
  animation: step-activation 1s ease-in-out;
  border: 2px solid #28a745;
  border-radius: 8px;
}

@keyframes step-activation {
  0% {
    background-color: transparent;
    transform: scale(1);
  }
  50% {
    background-color: rgba(40, 167, 69, 0.1);
    transform: scale(1.02);
  }
  100% {
    background-color: transparent;
    transform: scale(1);
  }
}

/* Flash animation pour la barre de progression */
.ict-progress-fill.ict-flash {
  animation: progress-flash 0.3s ease-in-out;
}

@keyframes progress-flash {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
  }
}

/* Animation de fade in pour les étapes */
.ict-fade-in {
  animation: fade-in-bounce 0.3s ease-out;
}

@keyframes fade-in-bounce {
  0% {
    opacity: 0.7;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.01);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation de succès pour les étapes */
.ict-step-success {
  animation: step-success 0.5s ease-in-out;
}

@keyframes step-success {
  0%, 100% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(40, 167, 69, 0.1);
  }
}

/* Focus styles pour l'accessibilité */
.ict-step-header:focus {
  outline: 2px solid #007cba;
  outline-offset: 2px;
}

.ict-btn:focus {
  outline: 2px solid #007cba;
  outline-offset: 2px;
}

/* Loading states */
.ict-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.ict-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Informations de l'expéditeur dans le formulaire d'email */
.ict-sender-info {
  background: #f0f8ff;
  padding: 12px;
  border-radius: 6px;
  border-left: 4px solid #0073aa;
  margin-bottom: 20px;
}

.ict-sender-info p {
  margin: 0 0 5px 0;
  font-size: 14px;
}

.ict-sender-info small {
  color: #666;
  font-size: 12px;
  font-style: italic;
}
