/* Styles pour la modale de détails de transaction */
.transaction-details {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

/* En-tête de la modale */
.transaction-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.transaction-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.transaction-header h4 {
  margin: 0;
  font-weight: 700;
  font-size: 1.5rem;
}

.transaction-id {
  font-size: 1rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.transaction-amount {
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0;
}

.transaction-status {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Cartes d'information */
.info-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-card h5 {
  margin-top: 0;
  font-weight: 600;
  color: var(--primary-color);
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

/* Groupes d'informations */
.info-group {
  display: flex;
  margin-bottom: 0.75rem;
  align-items: center;
}

.info-label {
  font-weight: 600;
  width: 40%;
  color: #666;
}

.info-value {
  width: 60%;
  word-break: break-word;
}

/* Participants */
.participants-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.participants-header {
  background: #f5f7fa;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eaedf3;
}

.participants-header h5 {
  margin: 0;
  font-weight: 600;
  color: var(--primary-color);
}

.participants-body {
  padding: 1rem 0;
}

.participant {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.participant:last-child {
  border-bottom: none;
}

.participant:hover {
  background-color: #f8f9fa;
}

.participant-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.participant-icon i {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.participant-details {
  flex-grow: 1;
}

.participant-role {
  font-weight: 600;
  color: #555;
  margin-bottom: 0.25rem;
}

.participant-address {
  font-size: 0.85rem;
  color: #777;
  font-family: monospace;
}

.participant-badge {
  margin-left: auto;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: #e3f2fd;
  color: var(--primary-color);
}

.badge-you {
  background-color: var(--primary-color);
  color: white;
}

/* Validation statuses */
.validation-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.validation-header {
  background: #f5f7fa;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eaedf3;
}

.validation-header h5 {
  margin: 0;
  font-weight: 600;
  color: var(--primary-color);
}

.validation-body {
  padding: 1.5rem;
}

.validation-status {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.validation-item {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  background: #f8f9fa;
  margin: 0.5rem;
}

.validation-role {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #555;
}

.validation-address {
  font-size: 0.8rem;
  color: #777;
  font-family: monospace;
  margin-bottom: 0.5rem;
  word-break: break-all;
}

.validation-date {
  font-size: 0.8rem;
  color: #888;
}

.validation-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.validation-icon.validated {
  color: var(--success-color);
}

.validation-icon.pending {
  color: var(--warning-color);
}

/* Timeline container styling */
.transaction-timeline-wrapper {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Status badges */
.status-0 { /* PendingValidation */
  background-color: #fff8e1;
  color: #ffa000;
}

.status-1 { /* AwaitingDeposit */
  background-color: #e1f5fe;
  color: #0288d1;
}

.status-2 { /* Created */
  background-color: #e8f5e9;
  color: #388e3c;
}

.status-3 { /* DownPaymentSent */
  background-color: #f3e5f5;
  color: #7b1fa2;
}

.status-4 { /* AwaitingValidation */
  background-color: #ede7f6;
  color: #512da8;
}

.status-5 { /* DisputeOpened */
  background-color: #ffebee;
  color: #d32f2f;
}

.status-6 { /* Resolved */
  background-color: #e0f2f1;
  color: #00796b;
}

.status-7 { /* Completed */
  background-color: #e8f5e9;
  color: #388e3c;
}

.status-99 { /* Rejected */
  background-color: #ffebee;
  color: #d32f2f;
}

/* Action buttons */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.action-buttons .btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.action-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Debug info */
.debug-info {
  font-size: 0.8rem;
  color: #999;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .validation-status {
    flex-direction: column;
  }
  
  .validation-item {
    margin: 0.5rem 0;
  }
  
  .info-group {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .info-label, .info-value {
    width: 100%;
  }
  
  .transaction-amount {
    font-size: 1.5rem;
  }
}
