/* Datenfund Admin CSS */

.df-admin {
    max-width: 1200px;
}

/* Stats-Dashboard */
.df-stats-grid {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.df-stat-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

.df-stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1;
}

.df-stat-label {
    font-size: 13px;
    color: #646970;
    margin-top: 6px;
    text-align: center;
}

/* Badges */
.df-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.df-badge--pending  { background: #f0f0f1; color: #646970; }
.df-badge--running  { background: #fcf9e8; color: #8a6f00; }
.df-badge--done     { background: #edfaef; color: #00622a; }
.df-badge--failed   { background: #fcf0f1; color: #8a1f28; }

/* WP_List_Table Anpassungen */
.wp-list-table .column-slug      { width: 160px; }
.wp-list-table .column-category  { width: 110px; }
.wp-list-table .column-risk_level{ width: 100px; }
.wp-list-table .column-third_country { width: 80px; text-align: center; }
.wp-list-table .column-patterns  { width: 80px; text-align: center; }
.wp-list-table .column-is_active { width: 60px; text-align: center; }

/* ── Datenfund Frontend ───────────────────────── */
.df-scanner { max-width: 700px; margin: 2rem auto; font-family: sans-serif; }
.df-scanner h1 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.df-scanner form { display: flex; gap: 0.5rem; margin: 1rem 0; }
.df-scanner input[type="url"] { flex: 1; padding: 0.5rem 0.75rem; font-size: 1rem; border: 1px solid #ccc; border-radius: 4px; }
.df-scanner button[type="submit"] { padding: 0.5rem 1.25rem; background: #2271b1; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 1rem; }
.df-scanner button[type="submit"]:disabled { background: #aaa; cursor: not-allowed; }

.df-result { margin-top: 1.5rem; }
.df-ampel { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: #f9f9f9; border-radius: 6px; margin-bottom: 1rem; }
.df-ampel-icon { font-size: 2rem; }
.df-ampel strong { font-size: 1.2rem; }
.df-ampel p { margin: 0.25rem 0 0; color: #555; }

.df-top3 h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.df-top3 ul { list-style: none; padding: 0; margin: 0; }
.df-top3 li { padding: 0.5rem 0; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

.df-badge { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 3px; font-size: 0.75rem; font-weight: bold; }
.df-badge--high     { background: #fdecea; color: #c0392b; }
.df-badge--medium   { background: #fef3e2; color: #e67e22; }
.df-badge--low      { background: #eafaf1; color: #27ae60; }
.df-badge--transfer { background: #eaf0fb; color: #2471a3; }

.df-toggle { margin: 1rem 0; background: none; border: 1px solid #2271b1; color: #2271b1; padding: 0.4rem 1rem; border-radius: 4px; cursor: pointer; font-size: 0.9rem; }
.df-toggle:hover { background: #f0f6ff; }

.df-layer2 h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.df-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.df-table th { text-align: left; padding: 0.5rem 0.75rem; background: #f1f1f1; border-bottom: 2px solid #ddd; }
.df-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid #eee; vertical-align: middle; }
.df-table tr:hover td { background: #fafafa; }

.df-status { color: #27ae60; font-weight: bold; margin-top: 1rem; }
.df-error  { color: #c0392b; margin-top: 0.5rem; }