/* ============================================================
 * Leads Display - Admin + Frontend
 * ============================================================ */

/* ============== ADMIN ============== */

.lcf-admin-wrap .lcf-stats {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.lcf-admin-wrap .lcf-stat {
    flex: 1;
    min-width: 140px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 18px 20px;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.2s ease;
    text-align: center;
}

.lcf-admin-wrap .lcf-stat:hover {
    border-color: #2271b1;
    transform: translateY(-2px);
}

.lcf-admin-wrap .lcf-stat.active {
    border-color: #2271b1;
    background: #f0f7fc;
}

.lcf-admin-wrap .lcf-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #2271b1;
    margin-bottom: 4px;
}

.lcf-admin-wrap .lcf-stat-label {
    display: block;
    font-size: 13px;
    color: #666;
}

.lcf-admin-wrap .lcf-search-form {
    margin: 15px 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.lcf-admin-wrap .lcf-leads-table {
    margin-top: 15px;
}

.lcf-admin-wrap .lcf-leads-table th,
.lcf-admin-wrap .lcf-leads-table td {
    text-align: right;
}

.lcf-admin-wrap .lcf-details-row td {
    background: #f9f9f9 !important;
    padding: 18px 24px !important;
}

.lcf-admin-wrap .lcf-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px 20px;
}

.lcf-admin-wrap .lcf-details-grid > div {
    background: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    line-height: 1.5;
    font-size: 13px;
}

.lcf-admin-wrap .lcf-details-grid strong {
    color: #2271b1;
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Status badges */
.lcf-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.lcf-badge-new {
    background: #fff3e0;
    color: #e65100;
}

.lcf-badge-enriched {
    background: #e8f5e9;
    color: #2e7d32;
}


/* ============== FRONTEND ============== */

.lcf-leads-public {
    direction: rtl;
    text-align: right;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Heebo", "Rubik", Arial, sans-serif;
    margin: 20px 0;
}

.lcf-no-access {
    padding: 30px;
    background: #fff3e0;
    color: #e65100;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.lcf-leads-search {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    max-width: 400px;
}

.lcf-leads-search input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    direction: rtl;
    text-align: right;
    background: #fafafa;
    font-family: inherit;
}

.lcf-leads-search input[type="search"]:focus {
    outline: none;
    border-color: #2271b1;
    background: #fff;
}

.lcf-leads-search button {
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
}

.lcf-leads-search button:hover {
    background: #135e96;
}

.lcf-leads-table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.lcf-leads-public-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lcf-leads-public-table thead {
    background: #f5f5f5;
}

.lcf-leads-public-table th {
    padding: 14px 16px;
    text-align: right;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}

.lcf-leads-public-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.lcf-leads-public-table tbody tr:hover {
    background: #fafafa;
}

.lcf-leads-public-table tbody tr:last-child td {
    border-bottom: none;
}

.lcf-leads-empty {
    padding: 40px;
    text-align: center;
    color: #888;
    background: #fafafa;
    border-radius: 8px;
}

.lcf-leads-pagination {
    margin-top: 20px;
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.lcf-leads-pagination a {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    min-width: 38px;
    text-align: center;
}

.lcf-leads-pagination a:hover {
    border-color: #2271b1;
    color: #2271b1;
}

.lcf-leads-pagination a.current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.lcf-leads-summary {
    margin-top: 12px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

/* Mobile - stack table cells */
@media (max-width: 768px) {
    .lcf-leads-public-table thead {
        display: none;
    }

    .lcf-leads-public-table,
    .lcf-leads-public-table tbody,
    .lcf-leads-public-table tr,
    .lcf-leads-public-table td {
        display: block;
        width: 100%;
    }

    .lcf-leads-public-table tr {
        margin-bottom: 12px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 8px 12px;
        background: #fff;
    }

    .lcf-leads-public-table td {
        border: none;
        padding: 6px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .lcf-leads-public-table td::before {
        content: attr(data-label) ":";
        font-weight: 600;
        color: #666;
        margin-left: 12px;
        flex-shrink: 0;
    }
}
