/* ============================================================
   Styles partagés pour toutes les cartes de scraper
   (DefaultScraperCard, PortfolioScraperCard)
   
   ?? Ce fichier n'est PAS scopé (pas de .razor.css)
 ============================================================ */

/* Carte de scraper */
.scraper-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
 box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid;
    transition: transform 0.2s, box-shadow 0.2s;
}

.scraper-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Couleurs selon l'état de santé */
.scraper-card.health-healthy {
 border-color: #10b981;
}

.scraper-card.health-warning {
    border-color: #f59e0b;
}

.scraper-card.health-critical {
    border-color: #ef4444;
}

/* En-tête de la carte */
.scraper-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.scraper-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scraper-title i {
    font-size: 1.5rem;
    color: #176d86;
}

.scraper-title h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #1f2937;
}

/* Badge de santé */
.health-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.health-badge.health-healthy {
    background: #ecfdf5;
    color: #065f46;
}

.health-badge.health-warning {
    background: #fffbeb;
    color: #92400e;
}

.health-badge.health-critical {
    background: #fef2f2;
    color: #991b1b;
}

/* Métriques */
.scraper-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.85rem;
  color: #6b7280;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

/* Section des problèmes */
.scraper-issues {
    background: #fef2f2;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 3px solid #ef4444;
}

.issues-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
  color: #991b1b;
    margin-bottom: 12px;
}

.issues-list {
    list-style: none;
    padding: 0;
    margin: 0;
display: flex;
    flex-direction: column;
    gap: 8px;
}

.issues-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.issue-critical {
    color: #991b1b;
}

.issue-warning {
    color: #92400e;
}

.issue-info {
    color: #1e40af;
}

/* Actions */
.scraper-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.scraper-actions .btn {
    flex: 1;
    min-width: 100px;
}

/* Date picker */
.date-picker-container {
    width: 100%;
    margin-bottom: 8px;
}

.date-picker-input {
    width: 100%;
 padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.date-picker-input:hover {
    border-color: #9ca3af;
}

.date-picker-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.date-picker-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .scraper-card {
        padding: 16px;
    }

    .scraper-metrics {
    grid-template-columns: 1fr;
    }

    .scraper-actions {
        flex-direction: column;
    }

    .scraper-actions .btn {
        width: 100%;
    }
}
