/**
 * Thème Stripe moderne pour Lead Manager
 */

:root {
  /* Couleurs principales */
  --stripe-primary: #6772e5;
  --stripe-primary-rgb: 103, 114, 229;
  --stripe-primary-light: #7795f8;
  --stripe-primary-dark: #555abf;
  --stripe-secondary: #32325d;
  --stripe-secondary-rgb: 50, 50, 93;
  --stripe-success: #2dce89;
  --stripe-danger: #f5365c;
  --stripe-warning: #fb6340;
  --stripe-info: #11cdef;
  --stripe-accent: #3ecf8e;
  --stripe-accent-rgb: 62, 207, 142;
  
  /* Couleurs de fond et texte */
  --stripe-bg-body: #f6f9fc;
  --stripe-bg-card: #ffffff;
  --stripe-bg-light: #f8f9fa;
  --stripe-text-dark: #32325d;
  --stripe-text-medium: #525f7f;
  --stripe-text-light: #8898aa;
  --stripe-text-white: #ffffff;
  
  /* Ombres et bordures */
  --stripe-shadow-sm: 0 2px 5px rgba(50, 50, 93, 0.1);
  --stripe-shadow: 0 4px 12px rgba(50, 50, 93, 0.15);
  --stripe-shadow-lg: 0 8px 16px rgba(50, 50, 93, 0.2);
  --stripe-radius: 0.375rem;
  --stripe-radius-lg: 0.5rem;
  --stripe-radius-sm: 0.25rem;
  --stripe-border-color: #e9ecef;
}

/* Style global du corps et typographie */
body {
  background-color: var(--stripe-bg-body);
  color: var(--stripe-text-medium);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--stripe-text-dark);
  font-weight: 600;
}

/* Sidebar */
.sidebar {
  background: linear-gradient(135deg, var(--stripe-secondary) 0%, #1a174d 100%);
  box-shadow: var(--stripe-shadow);
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--stripe-radius);
  margin-bottom: 4px;
  transition: all 0.2s ease-in-out;
}

.sidebar .nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
}

.sidebar .nav-link.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
}

.sidebar .nav-link i {
  color: rgba(255, 255, 255, 0.7);
  margin-right: 10px;
}

/* Style amélioré pour la sidebar avec sous-menus */
#sidebar {
  background: linear-gradient(135deg, var(--stripe-secondary) 0%, #1a174d 100%);
  box-shadow: var(--stripe-shadow);
  color: var(--stripe-text-white);
  width: 250px;
}

#sidebar .sidebar-header {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#sidebar .sidebar-header h3 {
  color: white;
  font-size: 1.25rem;
  margin: 0;
  font-weight: 600;
}

#sidebar .components li a {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.875rem 1rem;
  border-radius: var(--stripe-radius-sm);
  margin: 0.25rem 0.5rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

#sidebar .components li a:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
}

#sidebar .components li.active > a {
  background: var(--stripe-primary);
  color: white;
}

/* Style moderne pour le sous-menu Administration */
#sidebar #adminSubmenu {
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--stripe-radius-sm);
  margin: 0 0.5rem;
  padding: 0.5rem 0;
  overflow: hidden;
}

#sidebar #adminSubmenu li a {
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  margin: 0.125rem 0.25rem;
  font-size: 0.9rem;
  border-radius: var(--stripe-radius-sm);
  position: relative;
}

#sidebar #adminSubmenu li a i {
  position: absolute;
  left: 1rem;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}

#sidebar #adminSubmenu li a:hover i {
  color: white;
}

#sidebar #adminSubmenu li.active a {
  background: rgba(var(--stripe-primary-rgb), 0.3);
}

#sidebar .dropdown-toggle::after {
  margin-left: auto;
  vertical-align: middle;
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

#sidebar .sidebar-footer {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#sidebar .sidebar-footer a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

#sidebar .sidebar-footer a i {
  margin-right: 0.5rem;
}

#sidebar .sidebar-footer a:hover {
  color: white;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--stripe-radius);
  box-shadow: var(--stripe-shadow);
  background-color: var(--stripe-bg-card);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: var(--stripe-shadow-lg);
}

.card-body {
  padding: 1.5rem;
}

.card-header {
  border-bottom: 1px solid var(--stripe-border-color);
  background-color: var(--stripe-bg-card);
  padding: 1rem 1.25rem;
  border-top-left-radius: var(--stripe-radius) !important;
  border-top-right-radius: var(--stripe-radius) !important;
}

.card-header h5 {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--stripe-text-dark);
}

/* Boutons */
.btn {
  border-radius: var(--stripe-radius);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.15s ease;
  font-size: 0.875rem;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
  border: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.btn-primary {
  background-color: var(--stripe-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--stripe-primary-dark);
}

.btn-success {
  background-color: var(--stripe-success);
  color: white;
}

.btn-danger {
  background-color: var(--stripe-danger);
  color: white;
}

.btn-warning {
  background-color: var(--stripe-warning);
  color: white;
}

.btn-light {
  background-color: #f8f9fa;
  color: var(--stripe-text-medium);
}

.btn-sm {
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
}

/* Formulaires */
.form-control {
  border: 1px solid #e4e9f0;
  border-radius: var(--stripe-radius);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(50, 50, 93, 0.15), 0 1px 0 rgba(0, 0, 0, 0.02);
}

.form-control:focus {
  border-color: var(--stripe-primary-light);
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.form-select {
  border: 1px solid #e4e9f0;
  border-radius: var(--stripe-radius);
  font-size: 0.875rem;
  box-shadow: 0 1px 3px rgba(50, 50, 93, 0.15), 0 1px 0 rgba(0, 0, 0, 0.02);
}

.form-label {
  font-size: 0.875rem;
  color: var(--stripe-text-dark);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Tables */
.table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.table th {
  font-weight: 600;
  color: var(--stripe-text-dark);
  border-top: none;
  padding: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.table td {
  padding: 1rem;
  vertical-align: middle;
  color: var(--stripe-text-medium);
  font-size: 0.875rem;
  border-top: 1px solid var(--stripe-border-color);
}

.table tbody tr:hover {
  background-color: rgba(var(--stripe-primary-rgb), 0.03);
}

/* Badges */
.badge {
  padding: 0.35em 0.65em;
  font-weight: 600;
  font-size: 0.75em;
  border-radius: 50rem;
}

/* Alerts */
.alert {
  border: none;
  border-radius: var(--stripe-radius);
  font-size: 0.875rem;
  font-weight: 500;
}

.alert-success {
  background-color: rgba(36, 180, 126, 0.1);
  color: var(--stripe-success);
}

.alert-danger {
  background-color: rgba(245, 54, 92, 0.1);
  color: var(--stripe-danger);
}

.alert-warning {
  background-color: rgba(251, 99, 64, 0.1);
  color: var(--stripe-warning);
}

.alert-info {
  background-color: rgba(17, 205, 239, 0.1);
  color: var(--stripe-info);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
}

.page-link {
  color: var(--stripe-text-medium);
  background-color: var(--stripe-bg-card);
  border: 1px solid var(--stripe-border-color);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.page-link:hover {
  z-index: 2;
  color: var(--stripe-primary);
  background-color: rgba(var(--stripe-primary-rgb), 0.05);
  border-color: var(--stripe-border-color);
}

.page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: var(--stripe-primary);
  border-color: var(--stripe-primary);
}

.page-item.disabled .page-link {
  color: var(--stripe-text-light);
  background-color: var(--stripe-bg-card);
  border-color: var(--stripe-border-color);
}

/* Modal */
.modal-content {
  border: none;
  border-radius: var(--stripe-radius);
  box-shadow: var(--stripe-shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--stripe-border-color);
  background-color: var(--stripe-bg-card);
  padding: 1.25rem;
}

.modal-footer {
  border-top: 1px solid var(--stripe-border-color);
  padding: 1.25rem;
}

.modal-title {
  font-weight: 600;
  color: var(--stripe-text-dark);
}

/* Style du dashboard */
.stats-card {
  border-radius: var(--stripe-radius);
  box-shadow: var(--stripe-shadow);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--stripe-shadow-lg);
}

.stats-card .card-body {
  display: flex;
  align-items: center;
}

.stats-card .stats-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: white;
  font-size: 1.5rem;
}

.stats-card .stats-info h3 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.stats-card .stats-info p {
  color: var(--stripe-text-light);
  margin-bottom: 0;
  font-size: 0.875rem;
}

/* Badges des statuts */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
  text-align: center;
  white-space: nowrap;
  min-width: 100px;
}

/* Centrer les badges de statut dans leur colonne */
td.text-center .status-badge {
  margin: 0 auto;
}

/* Alignement des en-têtes de colonnes */
.table th {
  text-align: center;
  vertical-align: middle;
}

/* Aligner spécifiquement la colonne de statut */
.table th:nth-child(5), 
.table td:nth-child(5) {
  text-align: center;
}

/* Style de prévisualisation sur la page statuts */
.status-preview {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  min-width: 120px;
  text-align: center;
}

/* Statut des leads */
.status-nouveau {
  background-color: var(--stripe-info);
  color: white;
}

.status-contacté, .status-contact {
  background-color: var(--stripe-primary);
  color: white;
}

.status-intéressé, .status-qualification {
  background-color: var(--stripe-warning);
  color: white;
}

.status-converti, .status-gagné {
  background-color: var(--stripe-success);
  color: white;
}

.status-perdu {
  background-color: var(--stripe-danger);
  color: white;
}

/* Media queries */
@media (max-width: 768px) {
  #sidebar {
    margin-left: -250px;
  }
  #sidebar.active {
    margin-left: 0;
  }
}

/* Animation transitions douces */
.btn, .form-control, .badge, .card, .page-link, .nav-link, a {
  transition: all 0.2s ease-in-out;
}

/* Stylisation des cases à cocher pour la sélection de masse */
.form-check-input.select-all-checkbox,
.form-check-input.lead-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(var(--stripe-primary-rgb), 0.3);
  background-color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 1px 3px rgba(50, 50, 93, 0.1), 0 0 0 1px rgba(var(--stripe-primary-rgb), 0.1);
  outline: 1px solid rgba(var(--stripe-primary-rgb), 0.15);
  outline-offset: 1px;
}

.form-check-input.select-all-checkbox:hover,
.form-check-input.lead-checkbox:hover {
  border-color: var(--stripe-primary);
  box-shadow: 0 2px 5px rgba(var(--stripe-primary-rgb), 0.2);
  outline-color: rgba(var(--stripe-primary-rgb), 0.3);
}

.form-check-input.select-all-checkbox:checked,
.form-check-input.lead-checkbox:checked {
  background-color: var(--stripe-primary);
  border-color: var(--stripe-primary);
  box-shadow: 0 2px 5px rgba(var(--stripe-primary-rgb), 0.3);
}

.form-check-input.select-all-checkbox:focus,
.form-check-input.lead-checkbox:focus {
  border-color: var(--stripe-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--stripe-primary-rgb), 0.25);
}

.form-check-input.select-all-checkbox:after,
.form-check-input.lead-checkbox:after {
  content: '';
  position: absolute;
  display: none;
}

.form-check-input.select-all-checkbox:checked:after,
.form-check-input.lead-checkbox:checked:after {
  display: block;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Table des leads avec cases à cocher */
.table th:first-child,
.table td:first-child {
  width: 50px;
  text-align: center;
  vertical-align: middle;
}

.form-check {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

/* ====== AMÉLIORATIONS POUR PAGE VIEW_LEAD ====== */

.lead-details-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.lead-details-container .card-header {
    background: linear-gradient(135deg, var(--stripe-primary) 0%, var(--stripe-primary-dark) 100%);
    color: white;
}

.lead-details-container .card-header h5 {
    color: white;
}

.lead-details-container .card-header .btn-light {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
}

.lead-details-container .card-header .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.lead-details-container h6 {
    color: var(--stripe-text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.lead-details-container .btn {
    margin-right: 0.5rem;
}

/* Styles pour les commentaires */
.comment {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--stripe-bg-light);
    border-radius: var(--stripe-radius);
    border-left: 3px solid var(--stripe-primary);
    transition: all 0.2s;
}

.comment:hover {
    background-color: #f1f4f8;
    box-shadow: var(--stripe-shadow-sm);
}

.comment-header {
    margin-bottom: 0.5rem;
}

/* Styles pour la timeline */
.timeline {
    position: relative;
    margin: 0 0 1.5rem 1.5rem;
    padding: 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 12px;
    height: 100%;
    width: 2px;
    background: var(--stripe-border-color);
}

.timeline-item {
    position: relative;
    padding: 0 0 1.5rem 40px;
}

.timeline-icon {
    position: absolute;
    left: -14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--stripe-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-content {
    padding: 1rem;
    background-color: var(--stripe-bg-light);
    border-radius: var(--stripe-radius);
    box-shadow: var(--stripe-shadow-sm);
}

/* Styles pour les badges de statut */
.status-badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-weight: 500;
    font-size: 0.75em;
    border-radius: 50rem;
    text-transform: capitalize;
}

.status-nouveau {
    background-color: var(--stripe-info);
    color: #ffffff;
}

.status-contact {
    background-color: var(--stripe-primary);
    color: #ffffff;
}

.status-qualification {
    background-color: var(--stripe-accent);
    color: #ffffff;
}

.status-négociation {
    background-color: var(--stripe-warning);
    color: #ffffff;
}

.status-gagné {
    background-color: var(--stripe-success);
    color: #ffffff;
}

.status-perdu {
    background-color: var(--stripe-danger);
    color: #ffffff;
}

/* ====== AMÉLIORATIONS POUR PAGE DASHBOARD ====== */

/* Conteneur de dashboard */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Cartes statistiques */
.dashboard-container .stat-card {
  background-color: var(--stripe-bg-card);
  border-radius: var(--stripe-radius);
  box-shadow: var(--stripe-shadow);
  padding: 1.5rem;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-container .stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--stripe-shadow-lg);
}

.dashboard-container .stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.dashboard-container .stat-card.primary::before {
  background: linear-gradient(90deg, var(--stripe-primary) 0%, var(--stripe-primary-light) 100%);
}

.dashboard-container .stat-card.success::before {
  background: linear-gradient(90deg, var(--stripe-success) 0%, #34d399 100%);
}

.dashboard-container .stat-card.warning::before {
  background: linear-gradient(90deg, var(--stripe-warning) 0%, #fbbf24 100%);
}

.dashboard-container .stat-card.danger::before {
  background: linear-gradient(90deg, var(--stripe-danger) 0%, #f87171 100%);
}

.dashboard-container .stat-icon {
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--stripe-primary);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.dashboard-container .stat-card.primary .stat-icon {
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--stripe-primary);
}

.dashboard-container .stat-card.success .stat-icon {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--stripe-success);
}

.dashboard-container .stat-card.warning .stat-icon {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--stripe-warning);
}

.dashboard-container .stat-card.danger .stat-icon {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--stripe-danger);
}

.dashboard-container .stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  color: var(--stripe-text-dark);
}

.dashboard-container .stat-label {
  color: var(--stripe-text-medium);
  font-size: 0.875rem;
}

/* Cartes des graphiques */
.dashboard-container .card {
  border: none;
  border-radius: var(--stripe-radius);
  box-shadow: var(--stripe-shadow);
  height: 100%;
  transition: box-shadow 0.3s ease;
}

.dashboard-container .card:hover {
  box-shadow: var(--stripe-shadow-lg);
}

.dashboard-container .card-header {
  background-color: var(--stripe-bg-card);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--stripe-text-dark);
  display: flex;
  align-items: center;
}

.dashboard-container .card-header i {
  margin-right: 0.5rem;
  color: var(--stripe-primary);
}

/* Section d'activité récente */
.dashboard-container .activity-item {
  position: relative;
}

.dashboard-container .activity-icon {
  background-color: var(--stripe-bg-body);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stripe-primary);
  flex-shrink: 0;
  box-shadow: var(--stripe-shadow-sm);
}

.dashboard-container .activity-content {
  background-color: var(--stripe-bg-body);
  border-radius: var(--stripe-radius);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--stripe-shadow-sm);
  flex-grow: 1;
}

.dashboard-container .activity-time {
  color: var(--stripe-text-light);
  font-size: 0.75rem;
  white-space: nowrap;
}

.dashboard-container .activity-content a {
  color: var(--stripe-primary);
  font-weight: 500;
  text-decoration: none;
}

.dashboard-container .activity-content a:hover {
  text-decoration: underline;
}

/* Timeline de l'activité */
.dashboard-container .timeline {
  position: relative;
  padding-left: 1rem;
}

.dashboard-container .timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
  border-left: 1px solid rgba(var(--stripe-primary-rgb), 0.2);
  padding-left: 1.5rem;
}

.dashboard-container .timeline-item:last-child {
  border-left: none;
}

.dashboard-container .timeline-icon {
  position: absolute;
  left: -12px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--stripe-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 0 0 4px white;
}

.dashboard-container .timeline-content {
  background-color: white;
  border-radius: var(--stripe-radius);
  box-shadow: var(--stripe-shadow-sm);
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.dashboard-container .timeline-content a.lead-link {
  color: var(--stripe-primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dashboard-container .timeline-content a.lead-link:hover {
  color: var(--stripe-primary-dark);
  text-decoration: underline;
}

.dashboard-container .timeline-content .text-secondary {
  color: var(--stripe-primary) !important;
}

.dashboard-container .timeline-content .activity-details {
  margin: 0.5rem 0;
}

.dashboard-container .timeline-content .activity-details p {
  margin: 0.25rem 0 0 0;
  padding: 0;
  color: var(--stripe-text-medium);
}

.dashboard-container .timeline-content .activity-user {
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(var(--stripe-primary-rgb), 0.1);
  color: var(--stripe-text-light);
}

.dashboard-container .timeline-content .badge {
  font-weight: 500;
  background-color: rgba(var(--stripe-primary-rgb), 0.1) !important;
  color: var(--stripe-text-medium) !important;
}

.activity-timeline .timeline-item:last-child {
  padding-bottom: 0;
}

/* Pagination améliorée */
.dashboard-container .pagination {
  gap: 0.25rem;
  flex-wrap: wrap;
}

.dashboard-container .page-item .page-link {
  border: none;
  min-width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stripe-text-medium);
  border-radius: var(--stripe-radius-sm);
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
}

.dashboard-container .page-item.active .page-link {
  background-color: var(--stripe-primary);
  color: white;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.4);
}

.dashboard-container .page-item .page-link:hover {
  background-color: var(--stripe-secondary);
  color: var(--stripe-primary);
}

/* ====== AMÉLIORATIONS POUR PAGE DASHBOARD ====== */

/* Conteneur de dashboard */
.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
}

/* Cartes statistiques */
.dashboard-container .stat-card {
  display: flex;
  background-color: white;
  border-radius: var(--stripe-radius);
  box-shadow: var(--stripe-shadow-sm);
  overflow: hidden;
  transition: all 0.3s;
  height: 100%;
}

.dashboard-container .stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--stripe-shadow);
}

.dashboard-container .stat-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  background: linear-gradient(135deg, var(--stripe-primary) 0%, var(--stripe-primary-dark) 100%);
  color: white;
  font-size: 1.5rem;
}

.dashboard-container .stat-card-content {
  flex: 1;
  padding: 1rem;
}

.dashboard-container .stat-card-content h6 {
  margin: 0;
  color: var(--stripe-text-medium);
  font-size: 0.875rem;
  font-weight: 500;
}

.dashboard-container .stat-card-content h3 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--stripe-text-dark);
}

.activity-timeline .timeline-item:last-child {
  padding-bottom: 0;
}

.lead-link {
  color: var(--stripe-primary);
  text-decoration: none;
  transition: all 0.2s;
}

.lead-link:hover {
  color: var(--stripe-primary-dark);
  text-decoration: underline;
}

canvas {
  max-width: 100%;
}

/* Login page */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--stripe-primary) 0%, var(--stripe-accent) 100%);
}

.login-card {
  background-color: var(--stripe-bg-card);
  border-radius: var(--stripe-radius-lg);
  box-shadow: var(--stripe-shadow-lg);
  width: 100%;
  max-width: 480px;
  padding: 2.5rem;
}

.login-logo h1 {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--stripe-primary);
}

.login-form {
  margin-top: 2rem;
}

.login-footer {
  margin-top: 2rem;
  text-align: center;
  color: var(--stripe-text-light);
  font-size: 0.875rem;
}

/* Boutons de filtre pour les leads */
.filter-options {
  display: flex;
  align-items: center;
}

.filter-options .btn-group {
  border-radius: var(--stripe-radius);
  box-shadow: var(--stripe-shadow-sm);
  overflow: hidden;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--stripe-border-color);
  background-color: white;
  color: var(--stripe-text-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
  min-width: 100px;
}

.filter-btn:first-child {
  border-top-left-radius: var(--stripe-radius);
  border-bottom-left-radius: var(--stripe-radius);
  border-right: none;
}

.filter-btn:last-child {
  border-top-right-radius: var(--stripe-radius);
  border-bottom-right-radius: var(--stripe-radius);
}

.filter-btn:hover {
  background-color: rgba(var(--stripe-primary-rgb), 0.05);
  color: var(--stripe-primary);
}

.filter-btn.active {
  background-color: var(--stripe-primary);
  border-color: var(--stripe-primary);
  color: white;
  font-weight: 500;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Styles pour la configuration des colonnes */
.column-list .handle {
    cursor: grab;
    color: #aaa;
}

.column-list li {
    transition: background-color 0.2s ease;
}

.column-list li:hover {
    background-color: var(--theme-bg-light);
}

.column-list .form-check-label {
    cursor: pointer;
    font-weight: 500;
}

.column-list .column-checkbox {
    cursor: pointer;
}

.column-list li.disabled {
    opacity: 0.7;
}

.columns-config-container {
    max-height: 400px;
    overflow-y: auto;
}

/* Styles pour les éléments fixes */
.column-list .badge {
    font-size: 0.7rem;
    padding: 0.3em 0.6em;
}

/* Animation des éléments lors du tri */
.sortable-ghost {
    background-color: var(--theme-primary-lighter) !important;
    opacity: 0.8;
}

/* Styles pour le drag-and-drop des colonnes */
.column-list {
    padding: 0;
    margin: 0;
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.column-list .list-group-item {
    cursor: grab;
    transition: background-color 0.2s;
    padding: 0.75rem 1rem;
    border: 1px solid var(--bs-border-color);
    margin-bottom: 5px;
    border-radius: 4px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.column-list .list-group-item:hover {
    background-color: var(--bs-light);
}

.column-list .list-group-item.sortable-chosen {
    cursor: grabbing;
    background-color: var(--bs-light);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.column-list .handle {
    cursor: grab;
    color: var(--bs-gray-500);
    transition: color 0.2s;
    padding: 0.5rem;
    margin-left: -0.5rem;
}

.column-list .handle:hover {
    color: var(--bs-primary);
}

.column-list .list-group-item.sortable-ghost {
    opacity: 0.5;
    background-color: var(--bs-light);
    border: 2px dashed var(--bs-primary);
}

/* Styles pour le formulaire de configuration des colonnes */
#configureColumnsForm .form-check {
    cursor: pointer;
    padding-left: 2.5rem;
    display: flex;
    align-items: center;
}

#configureColumnsForm .form-check-input {
    margin-top: 0;
    margin-right: 8px;
    cursor: pointer;
    width: 1.3em;
    height: 1.3em;
}

#configureColumnsForm .form-check-label {
    cursor: pointer;
    font-weight: 500;
}

.columns-config-container {
    padding: 15px;
    border-radius: 4px;
    background-color: var(--bs-light-bg-subtle);
}

.modal-body .alert-info {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
}

/* Styles pour les éléments fixes dans la liste des colonnes */
.column-list .list-group-item.fixed-item {
    background-color: var(--bs-light-bg-subtle);
    border-left: 3px solid var(--bs-primary);
}

.column-list .list-group-item.fixed-item .handle {
    color: var(--bs-gray-400);
    cursor: not-allowed;
}

/* Style pour le corps pendant le glisser-déposer */
body.sorting-active {
    cursor: grabbing;
}

/* Amélioration du style du modal de configuration des colonnes */
#configureColumnsModal .modal-body {
    padding: 1.5rem;
}

/* Style pour l'élément en cours de déplacement */
.sortable-drag {
    background-color: var(--bs-light);
    border: 2px solid var(--bs-primary) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    opacity: 0.8;
    z-index: 1050 !important;
}

/* Alignement des colonnes de tableau */
.table th, .table td {
  vertical-align: middle;
  text-align: center;
}

.table th:first-child, 
.table td:first-child,
.table th:nth-child(2), 
.table td:nth-child(2) {
  text-align: left;
}

/* Styles spécifiques pour certaines colonnes */
.table th:nth-child(5), 
.table td:nth-child(5) {
  text-align: center;
} 