/* Ajoutez ce CSS dans votre composant ou global */
.cursor-pointer {
  cursor: pointer;
}

.cursor-pointer:hover {
  background-color: #f8f9fa;
}

.fs-12 {
  font-size: 12px;
}

.transactions-container {
  .cursor-pointer {
    cursor: pointer;
    
    &:hover {
      background-color: rgba(0, 0, 0, 0.02);
    }
  }

  .fs-12 {
    font-size: 12px;
  }

  .spin {
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  .table {
    th {
      border-top: none;
      font-weight: 600;
      color: #6c757d;
      font-size: 0.875rem;
    }
    
    td {
      vertical-align: middle;
    }
  }

  .badge {
    font-size: 0.75em;
    font-weight: 500;
  }

  .font-monospace {
    font-family: 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', monospace;
  }
}

.transaction-details {
  .transaction-amount-icon,
  .transaction-date-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .font-monospace {
    font-family: 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', monospace;
  }

  .badge {
    font-size: 0.75em;
    font-weight: 500;
  }

  .spin {
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  // Styles pour l'impression
  @media print {
    .btn, .card-header .d-flex:last-child {
      display: none !important;
    }
    
    .card {
      border: 1px solid #dee2e6 !important;
      box-shadow: none !important;
    }
  }
}

.merchants-container {
  .cursor-pointer {
    cursor: pointer;
    
    &:hover {
      background-color: rgba(0, 0, 0, 0.02);
    }
  }

  .fs-12 {
    font-size: 12px;
  }

  .spin {
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  .avatar-sm {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
  }

  .table {
    th {
      border-top: none;
      font-weight: 600;
      color: #6c757d;
      font-size: 0.875rem;
      padding: 1rem 0.75rem;
      background-color: #f8f9fa;
      
      &.cursor-pointer {
        &:hover {
          background-color: #e9ecef;
        }
      }
    }
    
    td {
      padding: 1rem 0.75rem;
      vertical-align: middle;
      border-top: 1px solid #e9ecef;
    }

    tbody tr {
      transition: all 0.2s ease;
      
      &:hover {
        background-color: rgba(0, 123, 255, 0.04);
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      }
    }
  }

  .badge {
    font-size: 0.75em;
    font-weight: 500;
    padding: 0.35em 0.65em;
    
    // Couleurs personnalisées pour les catégories
    &.bg-purple {
      background-color: #6f42c1 !important;
    }
    
    &.bg-teal {
      background-color: #20c997 !important;
    }
    
    // Statuts
    &.bg-success {
      background: linear-gradient(135deg, #28a745, #20c997);
    }
    
    &.bg-warning {
      background: linear-gradient(135deg, #ffc107, #fd7e14);
    }
    
    &.bg-danger {
      background: linear-gradient(135deg, #dc3545, #e83e8c);
    }
    
    &.bg-info {
      background: linear-gradient(135deg, #17a2b8, #6f42c1);
    }
    
    &.bg-secondary {
      background: linear-gradient(135deg, #6c757d, #868e96);
    }
  }

  .font-monospace {
    font-family: 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 0.875em;
  }

  .btn-group-sm {
    .btn {
      padding: 0.25rem 0.5rem;
      border-radius: 0.375rem;
      
      &:not(:last-child) {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
      }
      
      &:not(:first-child) {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
      }
    }
  }

  // Cartes de statistiques
  .stats-card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    
    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
    
    .card-body {
      padding: 1.5rem;
    }
  }

  // Pagination personnalisée
  .pagination {
    .page-item {
      margin: 0 2px;
      
      .page-link {
        border: none;
        border-radius: 6px;
        color: #6c757d;
        font-weight: 500;
        padding: 0.5rem 0.75rem;
        
        &:hover {
          background-color: #e9ecef;
          color: #495057;
        }
      }
      
      &.active .page-link {
        background: linear-gradient(135deg, #007bff, #0056b3);
        border-color: #007bff;
      }
      
      &.disabled .page-link {
        color: #adb5bd;
        background-color: #f8f9fa;
      }
    }
  }

  // Dropdown personnalisé
  .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem;
    
    .dropdown-item {
      padding: 0.5rem 1rem;
      border-radius: 4px;
      font-size: 0.875rem;
      display: flex;
      align-items: center;
      
      &:hover {
        background-color: #f8f9fa;
      }
      
      ng-icon {
        margin-right: 0.5rem;
        font-size: 1em;
      }
      
      &.text-danger {
        color: #dc3545 !important;
        
        &:hover {
          background-color: #f8d7da;
        }
      }
    }
    
    .dropdown-divider {
      margin: 0.5rem 0;
      border-color: #e9ecef;
    }
  }

  // Alertes personnalisées
  .alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    
    &.alert-danger {
      background: linear-gradient(135deg, #f8d7da, #f1aeb5);
      color: #721c24;
    }
  }

  // Responsive design
  @media (max-width: 768px) {
    .table-responsive {
      border: 1px solid #e9ecef;
      border-radius: 8px;
      
      .table {
        margin-bottom: 0;
        
        th, td {
          padding: 0.75rem 0.5rem;
          font-size: 0.875rem;
        }
      }
    }
    
    .btn-group-sm {
      flex-direction: column;
      
      .btn {
        margin-bottom: 2px;
        border-radius: 4px !important;
        
        &:not(:last-child) {
          margin-right: 0;
        }
      }
    }
    
    .d-flex.gap-2 {
      gap: 0.5rem !important;
    }
    
    .stats-card .card-body {
      padding: 1rem;
    }
  }

  @media (max-width: 576px) {
    .table {
      font-size: 0.875rem;
      
      th, td {
        padding: 0.5rem 0.25rem;
      }
      
      .badge {
        font-size: 0.7em;
        padding: 0.25em 0.5em;
      }
    }
    
    .pagination {
      .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
      }
    }
  }

  // Animation pour le chargement
  .loading-skeleton {
    animation: pulse 1.5s ease-in-out infinite;
  }

  @keyframes pulse {
    0% {
      opacity: 1;
    }
    50% {
      opacity: 0.5;
    }
    100% {
      opacity: 1;
    }
  }

  // Styles pour les états vides
  .empty-state {
    padding: 3rem 1rem;
    text-align: center;
    
    ng-icon {
      font-size: 4rem;
      margin-bottom: 1rem;
      opacity: 0.5;
    }
    
    p {
      color: #6c757d;
      margin-bottom: 1.5rem;
    }
  }
}

.merchant-details-container {
  .merchant-avatar {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .font-monospace {
    font-family: 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', monospace;
  }

  .badge {
    font-size: 0.75em;
    font-weight: 500;
  }

  .spin {
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  // Styles pour l'impression
  @media print {
    .btn, .card-header .d-flex:last-child {
      display: none !important;
    }
    
    .card {
      border: 1px solid #dee2e6 !important;
      box-shadow: none !important;
    }
  }
}

.merchant-config-container {
  .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
  }

  .card {
    border: 1px solid #e9ecef;
    
    .card-header {
      background-color: #f8f9fa;
      border-bottom: 1px solid #e9ecef;
    }
  }

  .input-group-text {
    background-color: #f8f9fa;
    border-color: #ced4da;
  }

  // Responsive adjustments
  @media (max-width: 768px) {
    .row.g-3 {
      margin-bottom: -0.5rem;
      
      > [class*="col-"] {
        margin-bottom: 0.5rem;
      }
    }
  }
}

.merchant-stats-container {
  .stats-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-radius: 12px;
    background: white;
    
    &:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .card-body {
      padding: 1.5rem;
    }
  }

  .stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    ng-icon {
      font-size: 24px;
    }
  }

  .stats-title {
    color: #2c3e50;
    font-weight: 600;
  }

  .stats-controls {
    .btn-sm {
      padding: 0.375rem 0.5rem;
      border-radius: 8px;
    }
  }

  // Progress bars personnalisées
  .progress {
    border-radius: 10px;
    background-color: #f8f9fa;
    overflow: hidden;
    
    .progress-bar {
      border-radius: 10px;
      transition: width 0.6s ease;
      
      &.bg-success {
        background: linear-gradient(135deg, #28a745, #20c997) !important;
      }
      
      &.bg-warning {
        background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
      }
    }
  }

  // Animations
  .spin {
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  // Couleurs pour les variations
  .text-success {
    color: #28a745 !important;
  }

  .text-danger {
    color: #dc3545 !important;
  }

  .text-primary {
    color: #007bff !important;
  }

  .text-warning {
    color: #ffc107 !important;
  }

  .text-info {
    color: #17a2b8 !important;
  }

  // État vide
  .empty-state {
    padding: 3rem 2rem;
    
    ng-icon {
      opacity: 0.3;
    }
  }

  // Responsive design
  @media (max-width: 768px) {
    .stats-card .card-body {
      padding: 1.25rem;
    }
    
    .stats-icon {
      width: 50px;
      height: 50px;
      
      ng-icon {
        font-size: 20px;
      }
    }
    
    .h4 {
      font-size: 1.5rem;
    }
  }

  @media (max-width: 576px) {
    .stats-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
    }
    
    .stats-controls {
      align-self: flex-end;
    }
    
    .stats-card .card-body {
      padding: 1rem;
    }
    
    .stats-icon {
      width: 45px;
      height: 45px;
      
      ng-icon {
        font-size: 18px;
      }
    }
  }

  // Typographie améliorée
  .h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
  }

  .text-muted {
    color: #6c757d !important;
    font-size: 0.875rem;
  }

  .small {
    font-size: 0.8125rem;
  }
}