/* Mini stats en ligne dans le header */
.admin-mini-stats {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
}

.admin-mini-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.admin-mini-stat:hover {
  background: rgba(212, 175, 55, 0.1);
  color: #D4AF37;
}

.admin-mini-stat i {
  font-size: 0.75rem;
}

.admin-mini-stat strong {
  font-weight: 600;
  color: #374151;
}

/* Header admin avec titre et mini stats */
.admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Chips navigation */
.admin-nav-chips {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.admin-nav-chips::-webkit-scrollbar {
  display: none;
}

.admin-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.admin-chip:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #374151;
}

.admin-chip:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.admin-chip.active {
  background: linear-gradient(135deg, #D4AF37, #b8960c);
  border-color: transparent;
  color: white;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.admin-chip i {
  font-size: 0.85rem;
}

.admin-chip.active i {
  color: white;
}

.admin-chip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 8px;
  margin-left: 2px;
}

.admin-chip.active .admin-chip-badge {
  background: rgba(255, 255, 255, 0.9);
  color: #D4AF37;
}

/* Animation entree section */
.admin-main-section {
  animation: fadeInSection 0.3s ease;
}

@keyframes fadeInSection {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header actions boutons */
.admin-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-header-actions .btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

/* Cellule utilisateur */
.admin-user-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-user-name {
  font-weight: 600;
  color: #1e293b;
}

/* Cellule contact */
.admin-contact-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
}

.admin-contact-cell .admin-email,
.admin-contact-cell .admin-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
}

.admin-contact-cell i {
  width: 14px;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Boutons action - couleurs specifiques */
.admin-action-btn.admin-action-docs {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

.admin-action-btn.admin-action-docs:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.admin-action-btn.admin-action-notif {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.admin-action-btn.admin-action-notif:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
}

.admin-action-btn.admin-action-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.admin-action-btn.admin-action-success:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

.admin-action-btn.admin-action-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.admin-action-btn.admin-action-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* Filtre Type (remplace sous-onglets) */
.filter-type-select {
  background: linear-gradient(135deg, #ff8c42, #ff6b35);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  min-width: 160px;
}

.filter-type-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.3);
}

.filter-type-select option {
  background: white;
  color: #1e293b;
}

/* Filtres dynamiques */
.dynamic-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Vues admin */
.admin-view-content {
  animation: fadeInSection 0.3s ease;
}

/* ============================================
   Document Review Cards (modal inline preview)
   ============================================ */

.doc-review-summary {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc-review-summary-pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.doc-review-summary-ok {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.doc-review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.doc-review-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.doc-review-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.doc-review-card.doc-review-pending {
  border: 2px solid #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.doc-review-preview {
  width: 100%;
  max-height: 300px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.doc-review-preview img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.doc-review-preview img:hover {
  opacity: 0.9;
}

.doc-review-preview-pdf {
  position: relative;
}

.doc-review-preview-pdf iframe {
  width: 100%;
  height: 250px;
  border: none;
}

.doc-review-pdf-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.doc-review-pdf-overlay:hover {
  background: rgba(0, 0, 0, 0.9);
  color: white;
}

.doc-review-preview-file {
  padding: 30px;
  flex-direction: column;
  gap: 8px;
  color: #94a3b8;
}

.doc-review-preview-file i {
  font-size: 2rem;
}

.doc-review-preview-file a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
}

.doc-review-info {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
}

.doc-review-type {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
}

.doc-review-date {
  font-size: 0.8rem;
  color: #94a3b8;
}

.doc-review-date i {
  margin-right: 4px;
}

.doc-review-actions {
  padding: 0 16px 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn-doc-approve,
.btn-doc-reject {
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  color: white;
}

.btn-doc-approve {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.btn-doc-approve:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.btn-doc-reject {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.btn-doc-reject:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

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

  .admin-mini-stats {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .admin-nav-chips {
    padding: 10px 16px;
    gap: 6px;
  }

  .admin-chip {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .admin-chip span:not(.admin-chip-badge) {
    display: none;
  }

  .admin-chip i {
    font-size: 0.9rem;
  }

  .admin-chip.active span:not(.admin-chip-badge) {
    display: inline;
  }

  .admin-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-contact-cell {
    font-size: 0.8rem;
  }

  .filter-type-select {
    width: 100%;
    min-width: auto;
  }

  .dynamic-filters {
    width: 100%;
  }
}
